@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4A90E2;
    --light-blue: #E6F2FF;
    --paper-white: #FEFEFE;
    --dark-blue: #2C5282;
    --medium-blue: #5A8FC4;
    --light-gray: #F0F4F8;
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #7A8A9A;
    --shadow-soft: 0 4px 15px rgba(74, 144, 226, 0.1);
    --shadow-medium: 0 8px 25px rgba(74, 144, 226, 0.15);
    --shadow-heavy: 0 12px 35px rgba(74, 144, 226, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #FAFBFC;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

/* ===== 手绘纸张纹理 ===== */
.paper-texture {
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(74, 144, 226, 0.03) 2px, rgba(74, 144, 226, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(74, 144, 226, 0.03) 2px, rgba(74, 144, 226, 0.03) 4px),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(74, 144, 226, 0.02) 10px, rgba(74, 144, 226, 0.02) 20px);
    background-color: var(--paper-white);
}

.grid-texture {
    background-image: 
        linear-gradient(var(--primary-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-blue) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: rgba(74, 144, 226, 0.03);
}

/* ===== 导航栏 ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-soft);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== 英雄区 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grid-texture);
    z-index: -1;
}

.doodle-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.doodle {
    position: absolute;
    opacity: 0.15;
    animation: float 6s infinite ease-in-out;
}

.doodle-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation-delay: 0s;
}

.doodle-2 {
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-blue);
    transform: rotate(45deg);
    animation-delay: 1s;
}

.doodle-3 {
    bottom: 15%;
    left: 8%;
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-blue);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
}

.doodle-4 {
    bottom: 20%;
    right: 5%;
    width: 70px;
    height: 70px;
    border: 3px solid var(--primary-blue);
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: var(--paper-white);
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.binder-holes {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    pointer-events: none;
}

.binder-holes::before,
.binder-holes::after,
.binder-holes .hole {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

.hero-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.1);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

.hero-title {
    font-size: clamp(42px, 7vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -2px;
    position: relative;
}

.hero-title span {
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--light-blue);
    z-index: -1;
    transition: height 0.3s ease;
}

.hero-card:hover .hero-title span::after {
    height: 15px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
}

/* ===== 求职相关模块 ===== */
.job-info {
    padding: 80px 20px;
    background: var(--paper-texture);
}

.info-card {
    background: var(--paper-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    border-radius: 50%;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-medium);
    font-size: 14px;
}

.resume-download {
    text-align: center;
    margin-top: 20px;
}

/* ===== 关于我 ===== */
.about {
    padding: 100px 20px;
    background: var(--paper-texture);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--light-blue);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.profile-card {
    background: var(--paper-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
    border-color: var(--light-blue);
}

.profile-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #4CAF50;
    border: 4px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.profile-title {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 12px;
    color: var(--text-medium);
    text-transform: uppercase;
}

.about-details {
    background: var(--paper-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.about-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.skill-card:hover::before {
    transform: scale(1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.skill-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.skill-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.skill-level {
    font-size: 14px;
    color: var(--text-medium);
}

/* ===== 项目展示 ===== */
.projects {
    padding: 100px 20px;
    background: var(--paper-texture);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: var(--text-medium);
    border: 2px solid var(--light-gray);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--paper-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-tech-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.tech-label {
    background: rgba(74, 144, 226, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-content {
    padding: 30px;
}

.project-category {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-medium);
    font-size: 14px;
}

.detail-item i {
    color: var(--primary-blue);
    width: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--light-gray);
    color: var(--text-medium);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* ===== 技能矩阵 ===== */
.skill-matrix {
    padding: 100px 20px;
    background: var(--paper-texture);
}

.matrix-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-category {
    background: var(--paper-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-blue);
    text-align: center;
}

.skill-item-matrix {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.skill-item-matrix:last-child {
    border-bottom: none;
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
}

.skill-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.dot.filled {
    background: var(--primary-blue);
}

.skill-level {
    font-size: 14px;
    color: var(--text-medium);
    min-width: 50px;
    text-align: right;
}

/* ===== 联系区 ===== */
.contact {
    padding: 100px 20px;
    background: var(--primary-blue);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact .section-title::after {
    background: rgba(255, 255, 255, 0.3);
}

.contact-info {
    max-width: 800px;
    margin: 50px auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 24px;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.contact-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
	text-align: left;
	margin: 0; 
	padding: 0;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
	text-align: left;
	margin: 0;
	padding: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-5px) rotate(360deg);
}

/* ===== 作品展示区域 ===== */
.portfolio-showcase {
    padding: 100px 20px;
    background: var(--paper-texture);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ===== 作品展示区域优化 ===== */
.showcase-item {
    background: var(--paper-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.showcase-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay i {
    font-size: 32px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-overlay i {
    transform: scale(1);
}

.showcase-add-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--light-blue);
    border: 2px dashed var(--primary-blue);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.showcase-add-more:hover {
    background: var(--primary-blue);
    color: white;
}

.showcase-add-more i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.showcase-add-more:hover i {
    color: white;
    transform: scale(1.1);
}

.showcase-add-more span {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.showcase-add-more:hover span {
    color: white;
}

.showcase-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding: 0 15px;
}

.showcase-desc {
    color: var(--text-medium);
    font-size: 14px;
    padding: 0 15px;
    margin-bottom: 15px;
}
/* ===== 作品放大模态框 ===== */
.showcase-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.showcase-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.showcase-zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5vh auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.showcase-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.showcase-zoom-close:hover {
    background: var(--dark-blue);
    transform: rotate(90deg);
}

.showcase-zoom-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.showcase-zoom-info {
    padding: 20px;
    text-align: center;
}

.showcase-zoom-info h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.showcase-zoom-info p {
    color: var(--text-medium);
    font-size: 16px;
}

/* ===== 统一的媒体展示样式 ===== */
.showcase-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.showcase-media img,
.showcase-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-media img,
.showcase-item:hover .showcase-media video {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay i {
    font-size: 32px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-overlay i {
    transform: scale(1);
}

/* 视频控制条样式 */
.showcase-media video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.5);
}

.showcase-media video::-webkit-media-controls-play-button,
.showcase-media video::-webkit-media-controls-volume-slider {
    filter: brightness(1.2);
}

/* GIF特殊标识 */
.showcase-item[data-type="gif"] .showcase-overlay::before {
    content: 'GIF';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 视频特殊标识 */
.showcase-item[data-type="video"] .showcase-overlay::before {
    content: 'VIDEO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}


/* ===== 页脚 ===== */
footer {
    padding: 40px 20px;
    background: var(--text-dark);
    color: white;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-medium);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-card {
        padding: 40px 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-card {
        position: static;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .matrix-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matrix-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 动画和交互增强 ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 加载动画 ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 悬浮提示 ===== */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* ===== 项目详情模态框 ===== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.project-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    background: var(--paper-white);
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--dark-blue);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-project-hero {
    margin-bottom: 30px;
}

.modal-project-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-project-category {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.modal-gallery img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

.modal-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
}

.modal-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.project-details-section h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

/* ===== 多视频展示样式 ===== */
.modal-videos-section {
    margin: 40px 0;
}

.modal-videos-section h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

/* 单个视频容器 */
.single-video-container {
    margin-bottom: 20px;
}

.single-video-container .modal-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    background: #000;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
}

.single-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: contain;
}

.video-description {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

.video-description h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.video-description p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
}

/* 多视频网格布局 */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 视频卡片样式 */
.video-card {
    background: var(--paper-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* 视频缩略图 */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* 播放按钮覆盖层 */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-overlay i {
    font-size: 48px;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-card:hover .video-play-overlay i {
    font-size: 56px;
    opacity: 1;
    transform: scale(1.1);
}

/* 视频信息 */
.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* 视频播放器 */
.video-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 加载状态 */
.video-player.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* 响应式视频 */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h4 {
        font-size: 16px;
    }
    
    .video-info p {
        font-size: 13px;
    }
    
    .video-play-overlay i {
        font-size: 40px;
    }
    
    .video-card:hover .video-play-overlay i {
        font-size: 44px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
