/* ===================================
   南京上门按摩服务网 - 样式表
   =================================== */

/* CSS 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #D4AF37;      /* 金色/香槟金 - 主色调 */
    --primary-dark: #B8962E;       /* 金色深色变体 */
    --primary-light: #FFF8E1;      /* 金色浅色背景 */
    --secondary-color: #2C3E50;    /* 深蓝灰 - 辅助色 */
    --accent-color: #E74C3C;       /* 珊瑚红 - CTA按钮 */
    --accent-hover: #C0392B;       /* 珊瑚红悬停 */
    --bg-color: #FAFAFA;           /* 浅灰白背景 */
    --white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-bottom: 60px; /* 为移动端固定底部栏留空间 */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    padding-left: 1.5rem;
    list-style: none;
}

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

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

/* ===================================
   导航栏样式
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Banner/Hero 区域
   =================================== */
.hero-banner {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.hero-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero-banner .subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.hero-banner .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hero-banner .cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: var(--white);
}

/* ===================================
   通用section样式
   =================================== */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===================================
   服务亮点区
   =================================== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   服务卡片区
   =================================== */
.services-section {
    background: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 54px;
}

.service-card .link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card .link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ===================================
   服务区域展示
   =================================== */
.area-section {
    background: var(--white);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.area-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--primary-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.area-item:hover {
    background: var(--primary-color);
}

.area-item:hover h4,
.area-item:hover p {
    color: var(--white);
}

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

.area-item p {
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}

.area-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.area-item:hover .area-icon {
    color: var(--white);
}

/* ===================================
   服务流程区
   =================================== */
.process-section {
    background: var(--secondary-color);
    color: var(--white);
}

.process-section .section-title {
    color: var(--white);
}

.process-section .section-title::after {
    background: var(--primary-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.process-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
    position: relative;
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    opacity: 0.85;
}

/* ===================================
   用户评价区
   =================================== */
.reviews-section {
    background: var(--bg-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.author-info h5 {
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--text-color);
}

.author-info span {
    font-size: 13px;
    color: var(--text-light);
}

.rating {
    color: #FFB800;
    margin-bottom: 10px;
    font-size: 16px;
}

/* ===================================
   预约咨询CTA区
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-section .section-title::after {
    background: var(--white);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 35px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 200px;
}

.contact-method .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-method h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-method .value {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 16px 50px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* ===================================
   页脚
   =================================== */
.site-footer {
    background: var(--secondary-color);
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
}

/* ===================================
   面包屑导航
   =================================== */
.breadcrumb {
    padding: 30px 0;
    background: var(--white);
    margin-bottom: 40px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span.separator {
    color: var(--border-color);
}

.breadcrumb span.current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===================================
   技师卡片样式
   =================================== */
.therapists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.therapist-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.therapist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.therapist-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.therapist-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.therapist-experience {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.therapist-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.skill-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.book-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ===================================
   服务项目详情样式
   =================================== */
.service-detail-section {
    background: var(--white);
}

.service-category {
    margin-bottom: 40px;
}

.service-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-item .duration {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   价格说明区
   =================================== */
.pricing-info {
    background: var(--primary-light);
    padding: 40px;
    border-radius: var(--radius);
    margin: 40px 0;
}

.pricing-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.pricing-info ul {
    list-style: none;
}

.pricing-info li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
}

.pricing-info li:last-child {
    border-bottom: none;
}

.pricing-info li .label {
    color: var(--text-color);
}

.pricing-info li .value {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   关于我们页
   =================================== */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
    color: var(--text-color);
    font-size: 16px;
}

.about-content h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
}

.about-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.about-content li {
    margin-bottom: 12px;
    list-style-type: disc;
}

/* FAQ样式 */
.faq-section {
    background: var(--bg-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question .icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 2px;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 30px;
}

/* ===================================
   筛选器样式
   =================================== */
.filter-section {
    background: var(--white);
    padding: 25px 0;
    margin-bottom: 30px;
    border-radius: var(--radius);
}

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

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* ===================================
   固定底部咨询栏（移动端）
   =================================== */
.fixed-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    height: 60px;
}

.fixed-bottom-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.bottom-contact {
    display: flex;
    gap: 20px;
}

.bottom-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.bottom-contact-item:hover {
    color: var(--primary-color);
}

.bottom-contact-item .icon {
    font-size: 20px;
    color: var(--primary-color);
}

.bottom-cta-btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 992px) {
    /* 平板端调整 */
    .features-grid,
    .services-grid,
    .therapists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .process-steps::before {
        left: 30px;
        right: 30px;
    }

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

@media (max-width: 768px) {
    /* 移动端菜单 */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Banner */
    .hero-banner {
        margin-top: 70px;
        padding: 50px 0;
    }

    .hero-banner h1 {
        font-size: 28px;
    }

    .hero-banner .subtitle {
        font-size: 16px;
    }

    .hero-banner .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Features */
    .features-grid,
    .services-grid,
    .therapists-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

    /* Process */
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }

    /* CTA */
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-method {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Service Items */
    .service-items {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    /* 固定底部栏 */
    .fixed-bottom-bar {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-banner h1 {
        font-size: 24px;
    }

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

    .feature-card,
    .service-card {
        padding: 20px;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===================================
   工具类
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}

/* ===================================
   动画
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   图片查看器（Lightbox）
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}
