/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Noto+Sans+SC:wght@400;700&display=swap');

/* ============================================
   CSS 变量 - 全局主题配置
   ============================================ */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #2563eb;
    --text-color: #111;
    --text-light: #666;
    --bg-color: #f8f8f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
    --container-width: 1100px;
    --header-height: 70px;
}

/* ============================================
   重置与基础
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   滚动条美化
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ============================================
   容器
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   顶部导航栏
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1002;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* -------- 汉堡菜单按钮 -------- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(0,0,0,0.06); }
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- 桌面端导航 -------- */
/* ================================================
   两级导航栏样式
   ================================================ */

/* -------- 一级导航：顶部固定 -------- */
.nav-overlay {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list > li { position: relative; }

.nav-list a {
    display: block;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    border-radius: 6px;
}

.nav-list a:hover {
    color: var(--text-color);
    background: rgba(37, 99, 235, 0.06);
}

.nav-list a.active {
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 500;
}

/* 移除下拉箭头样式 */
.nav-parent::after { display: none; }

/* -------- 二级导航：分类页顶部 -------- */
.category-sub-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-sub-nav a {
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    color: var(--text-light);
    border-radius: 20px;
    transition: all 0.2s;
    background: var(--bg-color);
}

.category-sub-nav a:hover {
    background: #e8e8e8;
    color: var(--text-color);
}

.category-sub-nav a.active {
    background: var(--accent-color);
    color: #fff;
    font-weight: 500;
}

/* -------- 移动端底部固定导航 -------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

/* 移动端底部导航占位，防止内容被遮挡 */
@media (max-width: 900px) {
    body {
        padding-bottom: 60px;
    }
}

.mobile-bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-bottom-nav-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    color: var(--text-light);
    text-decoration: none;
    gap: 2px;
    transition: color 0.2s;
}

.mobile-bottom-nav-list a:hover,
.mobile-bottom-nav-list a.active {
    color: var(--accent-color);
}

.mobile-bottom-nav-list a svg {
    width: 20px;
    height: 20px;
}

/* -------- 移动端导航 -------- */
@media (max-width: 900px) {
    .nav-hamburger { display: flex; }

    .nav-overlay {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 80vw);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-overlay.open { transform: translateX(0); }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-list > li { width: 100%; }

    .nav-list a {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        background: transparent;
    }

    .nav-list a:hover {
        background: rgba(37, 99, 235, 0.06);
        color: var(--accent-color);
    }

    .nav-list a.active { color: var(--accent-color); background: rgba(37, 99, 235, 0.1); }

    /* 移动端底部固定导航 */
    .mobile-bottom-nav { display: block; }

    /* 遮罩层 - 去掉变暗效果 */
    .nav-mask {
        position: fixed;
        inset: 0;
        background: transparent;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 1000;
    }
    .nav-mask.show { opacity: 1; visibility: visible; }
}

/* ============================================
   主内容区域
   ============================================ */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ============================================
   页面标题区
   ============================================ */
.page-header {
    background: #f8f8f8;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

/* ============================================
   全宽横幅图（紧贴网页顶部）
   ============================================ */
.top-banner {
    width: 100%;
    margin-top: var(--header-height);
}

.top-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   首页 - 英雄区（Hero）
   ============================================ */
.hero-section {
    background: #f8f8f8;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.hero-tag {
    background: var(--bg-color);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.hero-cta {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   首页 - 作品分类标签栏
   ============================================ */
.filter-bar {
    background: #f8f8f8;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

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

/* ============================================
   首页 - 作品网格
   ============================================ */
.works-section {
    padding: 3rem 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    background: #f8f8f8;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--bg-color);
}

.work-card-body {
    padding: 1.25rem;
}

.work-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.work-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.work-tag {
    background: var(--bg-color);
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ============================================
   首页 - 关于简介区
   ============================================ */
.about-preview-section {
    background: #f8f8f8;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-preview-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-preview-photo-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-color);
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
}

.about-preview-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-preview-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.about-preview-content .subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.about-preview-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.about-preview-link {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    transition: opacity var(--transition);
}

.about-preview-link:hover {
    opacity: 0.7;
}

/* ============================================
   首页 - 页脚
   ============================================ */
.site-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   个人简介页 - 重新布局
   ============================================ */
.about-section {
    padding: 3rem 0;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 顶部英雄区 */
.about-hero {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.about-hero-left {
    flex-shrink: 0;
}

.about-hero-photo {
    width: 180px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: var(--shadow);
}

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

.about-hero-right {
    flex: 1;
    min-width: 0;
}

.about-hero-name h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.about-hero-name h1 span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 0.75rem;
}

.about-hero-title {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.about-hero-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.about-hero-summary p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.about-hero-summary p:last-child {
    margin-bottom: 0;
}

/* 主体两列布局 */
.about-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* 卡片样式 */
.about-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-card:last-child {
    margin-bottom: 0;
}

.about-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

/* 基本信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 70px;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* 技能条 */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.skill-bar-percent {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: var(--bg-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #4f8ef7);
    border-radius: 3px;
    transition: width 1s ease;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-content {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

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

.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.timeline-period {
    font-size: 0.8rem;
    color: var(--text-light);
}

.timeline-position {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    list-style: disc;
    padding-left: 1.2rem;
}

.timeline-desc li {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.timeline-desc li:last-child {
    margin-bottom: 0;
}

/* 项目经历 */
.project-item .timeline-content {
    background: #fff;
    border: 1px solid var(--border-color);
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 900px) {
    .about-main-grid {
        grid-template-columns: 1fr;
    }

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

    .about-hero-name h1 {
        font-size: 1.75rem;
    }

    .about-hero-name h1 span {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .info-item {
        justify-content: center;
    }

    .info-label {
        text-align: right;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: 1.5rem;
    }

    .about-hero-photo {
        width: 140px;
        height: 170px;
    }

    .about-card {
        padding: 1.25rem;
    }

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

    .timeline-company {
        font-size: 0.95rem;
    }
}

/* ============================================
   响应式适配
   ============================================ */
/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card {
    animation: fadeInUp 0.5s ease forwards;
}

.works-grid .work-card:nth-child(2) {
    animation-delay: 0.1s;
}

.works-grid .work-card:nth-child(3) {
    animation-delay: 0.2s;
}

.works-grid .work-card:nth-child(4) {
    animation-delay: 0.3s;
}

.works-grid .work-card:nth-child(5) {
    animation-delay: 0.4s;
}

.works-grid .work-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* ============================================
   导航栏下拉菜单（移动端逻辑已合并到上方）
   ============================================

/* ============================================
   英雄区背景图
   ============================================ */
.hero-section {
    position: relative;
    padding: 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 248, 248, 0.88);
}

.hero-section > .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ============================================
   页面标题区（封面图上方装饰元素）
   ============================================ */
.page-hero-header {
    text-align: center;
    padding-bottom: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* 标题上方装饰线 */
.page-hero-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.page-hero-tag {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.5rem;
}

.page-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    letter-spacing: 2px;
}

.page-hero-desc {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

/* ============================================
   子页面大封面（海报/排版/广告独立页面）
   ============================================ */
.subpage-hero {
    height: 280px;
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.subpage-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.78) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

/* 封面标题上方装饰线 */
.subpage-hero-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.subpage-hero-tag {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.subpage-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: 4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.subpage-hero-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

/* ============================================
   子页面作品展示
   ============================================ */
.waterfall-container {
    width: 100%;
    column-count: 4;
    column-gap: 16px;
}

.waterfall-column {
    break-inside: avoid;
}

.waterfall-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
    break-inside: avoid;
}

.waterfall-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.waterfall-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.waterfall-item img:not([src]),
.waterfall-item img[src=""] {
    display: none;
}

/* 移动端瀑布流响应式 */
@media (max-width: 900px) {
    .waterfall-container {
        column-count: 3;
        column-gap: 8px;
    }
    .waterfall-item {
        margin-bottom: 8px;
    }
}

@media (max-width: 600px) {
    .waterfall-container {
        column-count: 2;
        column-gap: 6px;
    }
    .waterfall-item {
        margin-bottom: 6px;
    }
}

/* ============================================
   六大分类封面区
   ============================================ */
.categories-section {
    padding: 3rem 0;
    background: #f8f8f8;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    background: var(--bg-color);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-color);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-body {
    padding: 1.25rem 1.5rem;
    background: #f8f8f8;
}

.category-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.category-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   顶部文字装饰
   ============================================ */
.top-decor-text {
    text-align: center;
    padding: 2.5rem 0 2rem;
}

.decor-en {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.decor-title {
    font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #222;
    letter-spacing: 6px;
    margin: 0 0 0.5rem;
}

.decor-keywords {
    font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 2px;
}

/* ============================================
   排版设计分类页 - 三大子分类卡片
   ============================================ */
.category-sub-section {
    padding: 3rem 0;
    background: #fff;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-sub-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    background: var(--bg-color);
}

.category-sub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-sub-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-color);
}

.category-sub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.category-sub-card:hover .category-sub-card-image img {
    transform: scale(1.05);
}

.category-sub-card-body {
    padding: 1.25rem 1.5rem;
    background: #f8f8f8;
    text-align: center;
}

.category-sub-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* ============================================
   轮播区
   ============================================ */
.carousel-section {
    padding: 2rem 0 3rem;
}

.carousel-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    aspect-ratio: 16 / 6;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(248, 248, 248, 0.9);
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 10;
    line-height: 1;
}

.carousel-btn:hover {
    background: #f8f8f8;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(248, 248, 248, 0.5);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: rgba(248, 248, 248, 0.95);
}

/* ============================================
   分类页通用样式
   ============================================ */
.category-page-section {
    padding: 3rem 0;
}

/* 标签页 */
.section-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-tab {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.section-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.section-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.tab-panel {
    display: none;
}

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

/* 版块标题 */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    margin-top: 0.5rem;
}

.category-page-header {
    background: #f8f8f8;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.category-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-align: center;
}

.category-page-header p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card-row {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    background: #f8f8f8;
}

.category-card-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.category-card-row-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-color);
}

.category-card-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.category-card-row:hover .category-card-row-image img {
    transform: scale(1.04);
}

.category-card-row-body {
    padding: 1rem 1.25rem;
}

.category-card-row-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.category-card-row-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   响应式补充
   ============================================ */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        gap: 1.2rem;
    }

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

    .hero-section > .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .nav-list {
        gap: 0.75rem;
    }

    .nav-list a {
        font-size: 0.85rem;
    }

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

/* ============================================
   图片放大弹窗
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    overflow: hidden;
}

.lightbox.show {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10002;
    padding: 10px;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-controls {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.lightbox-ctrl-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-ctrl-btn:hover {
    background: var(--accent-color);
}

/* 移动端图片放大弹窗优化 */
@media (max-width: 768px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 85vh;
        object-fit: contain;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 1.8rem;
        padding: 12px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }

    .lightbox-controls {
        top: 12px;
    }

    .lightbox-ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
