/* ========================================
   温州市心理咨询行业协会 - 公共样式 (合并优化版)
   ======================================== */

/* CSS变量定义 */
:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2a4a73;
    
    --accent: #c9a962;
    --accent-light: #d4b978;
    --accent-dark: #b8984f;
    
    --warm: #e67e22;
    --success: #27ae60;
    --error: #e74c3c;
    --info: #3498db;
    
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;
    --border-light: #eeeeee;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; }

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

/* ========== 顶部栏 ========== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 9px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-left {
    display: flex;
    gap: 28px;
    flex-shrink: 1;
    overflow: hidden;
}

.top-bar-left span {
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }

/* ========== 主导航 ========== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    flex-wrap: nowrap;
    gap: 16px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.logo-text p {
    font-size: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow: visible;
}

.main-nav a {
    color: var(--text-dark);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    height: 85px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* 防御性 .nav-menu 样式（兼容旧版页面结构） */
.main-nav .nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 85px;
    align-items: center;
}

.main-nav .nav-menu li a {
    color: var(--text-dark);
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    height: 85px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 140px;
    padding: 8px 32px 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    font-size: 13px;
    transition: all 0.3s;
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    width: 170px;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.06);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 5px 7px;
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-box button:hover {
    opacity: 1;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 9px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30,58,95,0.3);
}

/* ========== Hero轮播 ========== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(30,58,95,0.9) 0%, rgba(30,58,95,0.6) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

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

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--accent);
    width: 35px;
    border-radius: 6px;
}

/* ========== 快捷入口 ========== */
.quick-access {
    background: var(--white);
    padding: 45px 0 20px;
    margin-top: -55px;
    position: relative;
    z-index: 100;
}

.quick-access-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.quick-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.quick-item:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s;
}

.quick-item:hover .quick-icon {
    background: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* ========== 统计数据 ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 70px 0;
    color: var(--white);
}

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

.stat-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-family: 'Noto Serif SC', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ========== 新闻资讯 ========== */
.news-section {
    padding: 90px 0 70px;
    background: var(--bg-light);
}

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

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 38px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-gray);
    font-size: 16px;
    margin-top: 8px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-main {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

/* ========== 新闻轮播 ========== */
.news-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    height: 420px;
    cursor: pointer;
    overflow: hidden;
}

.carousel-slide-skeleton {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a73 50%, #1e3a5f 100%);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.carousel-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 6s ease;
}

.carousel-slide:hover .carousel-img {
    transform: scale(1.05);
}

.carousel-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 40, 70, 0.85) 0%,
        rgba(20, 40, 70, 0.3) 40%,
        rgba(20, 40, 70, 0.15) 70%,
        transparent 100%
    );
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 35px 35px;
    z-index: 2;
    background: linear-gradient(to top, rgba(15, 30, 55, 0.7) 0%, transparent 100%);
}

.carousel-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.carousel-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(201, 169, 98, 0.5);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s;
}

.news-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.4);
    border-color: var(--accent);
    color: var(--accent);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* ========== 旧新闻样式保留 ========== */
.news-main-img {
    height: 280px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
}

.news-item {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

/* ========== 专家团队 ========== */
.experts-section {
    padding: 90px 0 70px;
    background: var(--white);
}

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

.expert-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.expert-img {
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    position: relative;
    overflow: hidden;
}

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

.expert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.expert-info {
    padding: 25px;
}

.expert-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.expert-role {
    display: inline-block;
    background: linear-gradient(135deg, #c9a96e, #a67c00);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 1px;
}

.expert-title {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 400;
}

.expert-years {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.expert-tag {
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.btn-book {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* ========== 视频学习 ========== */
.video-section {
    padding: 90px 0 70px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

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

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.video-thumb {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.video-info {
    padding: 25px;
}

.video-category {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 13px;
}

/* ========== 底部 ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0.85;
    font-size: 14px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 20px;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30,58,95,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========== 响应式 ========== */

/* 中间断点：导航栏开始拥挤，隐藏搜索框 */
@media (max-width: 1150px) {
    .header-content {
        gap: 12px;
    }
    .search-box {
        display: none;
    }
    .main-nav a {
        padding: 0 11px;
        font-size: 13px;
    }
    .header-actions .btn-primary {
        padding: 8px 14px;
        font-size: 12px;
    }
    .logo-text h1 {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .top-bar-left span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 1024px) {
    .quick-access-content {
        grid-template-columns: repeat(4, 1fr);
    }
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---- 导航移动端适配 ---- */
    .mobile-menu-toggle {
        display: block !important;
    }
    .header-content {
        flex-wrap: nowrap;
        gap: 12px;
        height: 72px;
    }
    .main-nav {
        display: none;
        order: 3;
        width: 100%;
    }
    .main-nav.open {
        display: flex !important;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        z-index: 999;
        padding: 6px 0;
        flex-direction: column;
        border-top: 1px solid var(--border-light);
    }
    .main-nav.open a {
        display: block;
        padding: 15px 28px;
        height: auto;
        width: 100%;
        font-size: 15px;
        border-bottom: none;
    }
    .main-nav.open a:not(:last-child) {
        border-bottom: 1px solid var(--border-light);
    }
    .header-actions {
        order: 1;
        margin-left: auto;
    }
    .header-actions .search-box {
        display: none;
    }
    .header-actions .btn-primary {
        padding: 8px 16px;
        font-size: 12px;
    }
    .logo {
        order: 0;
    }
    .logo-text h1 {
        font-size: 15px;
    }
    .logo-text p {
        font-size: 9px;
    }
    /* 防御性 .nav-menu 移动端 */
    .main-nav .nav-menu {
        display: none;
    }
    .main-nav.open .nav-menu {
        display: flex !important;
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        z-index: 999;
        padding: 10px 0;
        flex-direction: column;
        height: auto;
        border-top: 1px solid var(--border-light);
    }
    .main-nav.open .nav-menu li a {
        display: block;
        padding: 14px 25px;
        border-bottom: 1px solid var(--border-light);
        height: auto;
        width: 100%;
    }
}

/* ========= 移动端菜单按钮（基础样式） ========= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--primary);
    font-size: 24px;
    z-index: 1001;
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
}

/* ========= 小屏幕响应式 (≤768px) ========= */
@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }
    .top-bar-right {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    .top-bar-right a {
        font-size: 12px;
    }
    .hero-title {
        font-size: 28px;
        line-height: 1.35;
    }
    .hero-desc {
        font-size: 15px;
    }
    .hero-section {
        height: 420px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn-accent,
    .hero-buttons .btn-outline {
        justify-content: center;
        padding: 12px 25px;
        font-size: 14px;
    }
    .quick-access {
        padding: 30px 15px;
        margin-top: -30px;
    }
    .quick-access-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 20px 15px;
    }
    .quick-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .quick-item {
        font-size: 11px;
        padding: 8px 3px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-number {
        font-size: 36px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-main-img {
        height: 200px;
    }
    .news-carousel {
        min-height: 280px;
    }
    .carousel-slide {
        height: 280px;
    }
    .carousel-title {
        font-size: 17px;
    }
    .carousel-overlay {
        padding: 30px 20px 25px;
    }
    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .news-item {
        padding: 18px;
    }
    .experts-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .section-title {
        font-size: 26px;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .news-section, .experts-section, .video-section {
        padding: 45px 0;
    }
    .hero-content {
        max-width: 100%;
    }
    .header-content {
        height: auto;
        min-height: 60px;
        padding: 6px 0;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .logo-text h1 {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .logo-text p {
        font-size: 7px;
    }
    .main-nav.open {
        top: 60px;
    }
    .btn-primary {
        padding: 7px 14px;
        font-size: 11px;
    }
}

/* 平滑页面过渡 */
html {
    scroll-behavior: smooth;
}

/* 卡片悬浮微交互增强 */
.expert-card,
.news-card,
.service-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.expert-card:hover,
.news-card:hover,
.service-card:hover {
    border-color: var(--accent);
}

/* 按钮涟漪效果 */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* 节标题装饰线 */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 内容卡片入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 交错动画延迟 */
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* 导航栏链接微妙缩放 */
.main-nav a {
    transition: color 0.3s ease,
                border-bottom-color 0.3s ease,
                background 0.3s ease;
}

.main-nav a:hover {
    background: linear-gradient(to bottom, transparent 95%, rgba(201,169,98,0.08) 95%);
}

/* Logo区域增强 */
.logo-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(30,58,95,0.2);
}

/* 页面横幅渐变增强 */
.page-banner {
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}

/* 表单聚焦增强 */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08), 0 2px 10px rgba(0,0,0,0.04) !important;
}

/* 卡片渐变边框微光 */
.expert-card {
    position: relative;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expert-card:hover::before {
    opacity: 1;
}
