/* ============================================================
   全局样式
   ============================================================ */

:root {
    --primary-color: #000000;
    --primary-light: #333333;
    --primary-dark: #000000;
    --background-color: #ffffff;
    --text-color: #000000;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --accent-color: #f5f5f5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* 思源黑体 - 标题使用 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================================
   导航栏
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    background-color: #000000;
    background-image: url('images/work.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    z-index: 100;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3.5rem 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 16px;
    }
}
@media (max-width: 900px) {
    .nav-container {
        padding: 0 8px;
    }
}
@media (max-width: 600px) {
    .nav-container {
        padding: 0 2vw;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Noto Sans SC', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    transition: var(--transition);
    font-weight: 300;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================================
   英雄区
   ============================================================ */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    padding-left: 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero-links {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: flex-start;
}

.hero-link {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-family: 'Noto Sans SC', sans-serif;
}

.hero-link:hover {
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

/* ============================================================
   容器
   ============================================================ */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================================
   介绍部分
   ============================================================ */

.intro-section {
    text-align: center;
    margin-bottom: 5rem;
}

.intro-section h2 {
    color: var(--primary-color);
}

.intro-section > p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.intro-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   按钮
   ============================================================ */

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ============================================================
   特色部分
   ============================================================ */

.features-section {
    margin-bottom: 5rem;
}

.features-section h2 {
    text-align: center;
    color: var(--primary-color);
}

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

.feature-card {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background-color: white;
    border: 1px solid var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================================
   页面标题
   ============================================================ */

.about-hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

.about-hero .hero-info {
    position: absolute;
    bottom: auto;
    top: 200px;
    left: 30px;
    color: #000;
    text-align: left;
}

.about-hero .hero-info h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 0;
    color: #000;
}

.about-hero .hero-info .hero-name {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 8px;
    color: #000;
    margin-bottom: 0.3rem;
}

.about-hero .hero-info p {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.about-hero .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.about-hero .hero-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: #000;
}

.about-hero .hero-btn {
    position: fixed;
    top: 30px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    z-index: 50;
}

.about-hero .hero-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
    color: white;
    transform: scale(1.1);
}

/* 极简风格关于我 - 左对齐 */
.about-minimal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
    text-align: left;
}

.about-minimal h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 0.3rem;
    letter-spacing: 3px;
}

.about-minimal .about-title {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-minimal .about-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-minimal .about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.about-minimal .about-tags span {
    padding: 0.4rem 1rem;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.about-minimal .about-detail {
    margin-top: -1.2rem;
    padding-top: 0.5rem;
}

.about-minimal .about-detail h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    margin: 3rem 0 1.5rem 0;
}

.about-minimal .about-detail p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 5列工作经历布局 */
.about-minimal .experience-5col {
    display: flex;
    align-items: flex-start;
    width: auto;
    margin-top: 1.5rem;
}

.about-minimal .exp-separator {
    border-top: 1px dashed #ccc;
    margin: 2rem 0;
}

.about-minimal .exp-col-1 {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.about-minimal .exp-line {
    width: 27%;
    height: 8px;
    background: #333;
    border-radius: 2px;
    margin-top: 12px;
}

.about-minimal .exp-col-gap-1 {
    width: 50px;
    flex-shrink: 0;
}

.about-minimal .exp-col-2 {
    width: 340px;
    flex-shrink: 0;
    text-align: left;
}

.about-minimal .exp-col-gap-2 {
    width: 30px;
    flex-shrink: 0;
}

.about-minimal .exp-col-3 {
    width: 460px;
    flex-shrink: 0;
    text-align: left;
}

.about-minimal .company-name {
    font-size: 1.6rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-minimal .company-period {
    font-size: 1rem;
    color: #888;
    display: block;
    margin-bottom: 1rem;
}

.about-minimal .company-intro {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    font-style: italic;
    text-align: justify;
    letter-spacing: -0.3px;
}

.about-minimal .exp-section {
    margin-bottom: 1.5rem;
}

.about-minimal .exp-section h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.8rem;
}

.about-minimal .exp-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-minimal .exp-section ul li {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.1rem;
    padding-left: 0;
}

/* 工作经历卡片样式 */
.about-minimal .experience-card {
    background: transparent;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.about-minimal .experience-layout {
    display: flex;
    gap: 50px;
    width: auto;
    margin: 0;
}

.about-minimal .experience-col-1 {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.about-minimal .experience-col-2 {
    width: 320px;
    flex-shrink: 0;
}

.about-minimal .experience-col-3 {
    width: 460px;
    flex-shrink: 0;
}

.about-minimal .experience-line {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-top: 12px;
}

.about-minimal .experience-right {
    flex: 7;
}

.about-minimal .experience-section {
    margin-bottom: 1rem;
}

.about-minimal .experience-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.about-minimal .experience-section ul {
    list-style: none;
    padding-left: 0;
}

.about-minimal .experience-section ul li {
    font-size: 1.5rem;
    color: #666;
    line-height: 1;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0;
}



.about-minimal .about-detail ul {
    list-style: none;
    padding: 0;
}

.about-minimal .about-detail ul li {
    font-size: 0.85rem;
    color: #666;
    padding: 0.3rem 0;
    line-height: 1.6;
}

.about-minimal .about-detail ul li strong {
    color: #333;
}

.about-minimal .experience-item,
.about-minimal .education-item {
    font-size: 0.85rem;
    color: #666;
    padding: 0.5rem 0;
    line-height: 1.6;
}

.about-minimal .exp-title {
    font-weight: 500;
    color: #333;
}

.about-minimal .exp-date,
.about-minimal .exp-company {
    margin-right: 1rem;
}

.page-header {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, white 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ============================================================
   作品集
   ============================================================ */

.portfolio-section {
    margin: 0;
    padding: 4rem 0 0 0;
    min-height: 100vh;
    width: 100%;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: sticky;
    top: 70px;
    background-color: white;
    padding: 1rem 0;
    z-index: 50;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-family: 'Noto Sans SC', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}


/* Pinterest风格瀑布流 */
.portfolio-grid {
    column-count: 4;
    column-gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
@media (max-width: 1200px) {
    .container {
        padding: 0 16px;
    }
    .portfolio-grid {
        column-count: 3;
    }
}
@media (max-width: 900px) {
    .container {
        padding: 0 8px;
    }
    .portfolio-grid {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 2vw;
    }
    .portfolio-grid {
        column-count: 1;
    }
}

.portfolio-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    break-inside: avoid;
    transition: var(--transition);
}

.portfolio-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: var(--accent-color);
}

.portfolio-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 124, 158, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.view-btn {
    padding: 0.6rem 1.5rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Noto Sans SC', sans-serif;
}

.view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-info {
    display: none;
}

/* ============================================================
   灯箱
   ============================================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
        padding: 1.55rem 32px;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
}

.lightbox-close {
    top: 10px;
    right: 10px;
    background-color: transparent;
    border-radius: 0;
    color: transparent;
    font-size: 0;
    width: 80px;
    height: 80px;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

.lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border-radius: 0;
    color: transparent;
    font-size: 0;
    width: 150px;
    height: 150px;
    bottom: auto;
}

.lightbox-prev::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border-radius: 0;
    color: transparent;
    font-size: 0;
    width: 150px;
    height: 150px;
    bottom: auto;
}

.lightbox-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close:hover {
    background-color: transparent;
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: transparent;
    transform: translateY(-50%) scale(1.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   关于页面
   ============================================================ */

.about-section {
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-image {
    text-align: center;
}

.avatar-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 1rem;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values-list {
    list-style: none;
    margin-bottom: 2rem;
}

.values-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    color: var(--text-light);
    position: relative;
    line-height: 1.8;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 技能栏 */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.skill-bar {
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.6s ease;
}

/* 工作经历 */
.experience-list,
.education-list {
    margin-bottom: 2rem;
}

.experience-item,
.education-item {
    padding: 1.5rem;
    background-color: var(--accent-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-header h4,
.education-item h4 {
    color: var(--primary-color);
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.company,
.school {
    color: var(--text-light);
    font-weight: 500;
    margin: 0.5rem 0;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 统计部分 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin: 3rem auto 4rem auto;
    max-width: 1200px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 5rem;
    text-align: left;
}

.stat-card {
    padding: 2rem;
}

.stat-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 0;
}

.stat-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================================
   联系表单
   ============================================================ */

.contact-section {
    background-color: var(--accent-color);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-color);
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 158, 0.1);
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #c8e6c9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background-color: #ffcdd2;
    color: #d32f2f;
    display: block;
}

/* ============================================================
   页脚
   ============================================================ */

.footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

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

.footer-content p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================================
   响应式设计
   ============================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* 导航栏 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #000000;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow);
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid #333333;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    /* 英雄区 */
    .hero {
        padding-left: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-links {
        gap: 2rem;
    }

    .hero-link {
        font-size: 1.2rem;
    }

    /* 移动端禁用视差效果 */
    .hero-background {
        background-attachment: scroll;
    }

    /* 容器 */
    .container {
        padding: 2rem 1rem;
    }

    /* 关于页面 */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* 特色卡片 */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* 作品集 */
    .portfolio-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .portfolio-section {
        padding: 1.5rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* 灯箱 */
    .lightbox-prev,
    .lightbox-next {
        left: 10px;
        right: auto;
        width: 40px;
        height: 40px;
    }

    .lightbox-next {
        left: auto;
        right: 10px;
    }

.lightbox-close {
    top: 10px;
    right: 10px;
    background-color: transparent;
    border-radius: 0;
    color: transparent;
    font-size: 0;
    width: 80px;
    height: 80px;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.7);
}

    /* 联系表单 */
    .contact-section {
        padding: 2rem 1rem;
    }

    /* 统计 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    /* 介绍按钮 */
    .intro-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    h3 {
    font-size: 2rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .hero {
    padding-left: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 200px;
    }

    .hero-link {
        font-size: 1rem;
        text-align: left;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    }

    .nav-menu li {
        padding: 0.8rem 1rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .date {
        margin-top: 0.5rem;
    }
}

/* 手机端全面适配 */
@media (max-width: 768px) {
    /* about.html 页面适配 */
    .about-hero {
        height: 300px !important;
    }
    .about-hero .hero-info {
        top: 100px !important;
        left: 15px !important;
    }
    .about-hero .hero-info h2 {
        font-size: 1.8rem !important;
    }
    .about-hero .hero-info .hero-name {
        font-size: 1.2rem !important;
    }
    .about-hero .hero-tags {
        flex-direction: row;
        gap: 5px;
    }
    .about-hero .hero-tags span {
        font-size: 0.6rem !important;
        padding: 2px 6px;
    }

    .about-minimal {
        padding: 1.5rem 1rem !important;
    }
    .about-minimal .about-detail h3 {
        font-size: 1.3rem !important;
    }
    .about-minimal .about-detail p {
        font-size: 0.85rem !important;
    }

    /* 5列工作经历改为单列 */
    .experience-5col {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .exp-col-1, .exp-col-2, .exp-col-3 {
        width: 100% !important;
    }
    .exp-separator {
        margin: 1rem 0 !important;
    }
    .company-name {
        font-size: 1.1rem !important;
    }
    .company-period {
        font-size: 0.8rem !important;
    }
    .exp-section ul li {
        font-size: 0.8rem !important;
    }

    /* 黑色底部区域 - 手机端 */
    .about-detail + div[style*="height: 200px"] {
        height: auto !important;
        min-height: 180px;
        padding: 20px 15px !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .about-detail + div[style*="height: 200px"] img {
        width: 60px !important;
        height: 60px !important;
        margin-left: 0 !important;
    }
    .about-detail + div[style*="height: 200px"] > div:not(:first-child) {
        gap: 1.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }
    .about-detail + div[style*="height: 200px"] > div:not(:first-child) > div {
        text-align: center !important;
    }
    .about-detail + div[style*="height: 200px"] > div:not(:first-child) > div span:first-child {
        font-size: 1.5rem !important;
    }

    /* 底部80px白色区域 */
    .about-detail + div + div[style*="height: 80px"] {
        height: 40px !important;
    }

    /* 悬浮按钮 - 手机端 */
    .floating-buttons {
        top: 10px !important;
        right: 10px !important;
        gap: 8px !important;
    }
    .float-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .float-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* 联系弹窗 - 手机端 */
    .contact-popup, #contactPopup {
        padding: 20px !important;
        min-width: auto !important;
        width: 85vw !important;
        max-width: 320px !important;
    }
    .contact-popup .contact-logo img, #contactPopup img {
        width: 60px !important;
        height: 60px !important;
    }
    .contact-popup .contact-intro {
        font-size: 18px !important;
    }
    .contact-popup .contact-item {
        font-size: 14px !important;
        flex-direction: column;
        gap: 5px;
    }
    .popup-close {
        width: 30px !important;
        height: 30px !important;
        font-size: 24px !important;
    }

    /* works.html 页面适配 */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .portfolio-section {
        padding: 60px 10px 20px !important;
    }

    /* 灯箱弹窗 */
    .lightbox-content img {
        max-width: 95vw !important;
        max-height: 80vh !important;
    }
    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        font-size: 30px !important;
    }

    /* 首页英雄区 */
    .hero {
        padding: 20px !important;
    }
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-links {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-link {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }
}
