/* ============================================
   苏州宜昌商会 - 主样式表 (ctcvnhcmc.vn 风格)
   ============================================ */

/* CSS 变量 */
:root {
    --navy: #1b3a6b;
    --navy-light: #2d5c9e;
    --navy-dark: #0f2440;
    --gold: #c9a227;
    --gold-light: #d4b44a;
    --gold-bg: #fdf8e8;
    --ice: #f8f9ff;
    --ice-dark: #eef0f8;
    --white: #ffffff;
    --ink: #1a1a1a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --success: #15803d;
    --danger: #dc2626;

    --font-sans: "Noto Sans SC", -apple-system, "system-ui", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;

    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    --nav-height: 150px;
    --nav-height-mobile: 110px;
    --max-width: 1200px;

    /* 子页面兼容变量 (映射到新变量) */
    --primary: #1b3a6b;
    --primary-dark: #0f2440;
    --primary-light: #2d5c9e;
    --primary-bg: #f0f4ff;
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9ff;
    --bg-tertiary: #f1f5f9;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius-xl: 24px;
    --warning: #f59e0b;
    --accent: #c9a227;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; scroll-padding-top: var(--nav-height); }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   导航栏 - 单行布局，左侧品牌 + 右侧下拉菜单
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
}

/* ---- 品牌区 ---- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand-logo {
    height: 48px;
    width: auto;
    display: block;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-brand-cn {
    font-size: 0;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;
}
.nav-brand-cn > * {
    font-size: initial;
}
.nav-brand-sycc {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}
.nav-brand-s,
.nav-brand-cc {
    color: var(--navy);
}
.nav-brand-y {
    color: var(--gold);
}
.nav-brand-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-left: 6px;
}
.nav-brand-en {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 1.8px;
    white-space: nowrap;
}

/* ---- 桌面端水平菜单 ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 60px;
}
.nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-links .nav-link:hover {
    background: var(--gold-bg);
    color: var(--navy);
}
.nav-links .nav-link.active {
    color: var(--gold);
    font-weight: 600;
    background: var(--gold-bg);
}

/* ---- 右侧汉堡按钮 (移动端显示) ---- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
    position: relative;
    z-index: 1001;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- 下拉菜单面板 (移动端) ---- */
.nav-dropdown {
    position: fixed;
    top: 64px;
    right: 0;
    width: 260px;
    max-width: 85vw;
    background: var(--white);
    box-shadow: -4px 4px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 0 var(--radius);
    padding: 8px 0;
    display: none;
    z-index: 999;
    animation: slideDown 0.2s ease;
}
.nav-dropdown.active { display: block; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown .nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-dropdown .nav-link:hover {
    background: var(--gold-bg);
    color: var(--navy);
}
.nav-dropdown .nav-link.active {
    color: var(--gold);
    font-weight: 600;
    background: var(--gold-bg);
}

/* ---- 遮罩层 (移动端) ---- */
.nav-backdrop {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    display: none;
}
.nav-backdrop.active { display: block; }

/* ============================================
   Hero 通栏 - Marquee 连续滚动照片
   ============================================ */
.marquee-section {
    position: relative;
    width: 100%;
    height: 334px;
    overflow: hidden;
    background: var(--navy-dark);
}

/* 滚动轨道 */
.marquee-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

/* 关键帧：从 0 平移到 -50%（内容已复制双份，实现无缝循环） */
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 单个图片项 */
.marquee-item {
    flex-shrink: 0;
    width: 360px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marquee-item img {
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.4;
}
.marquee-item .marquee-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.2;
}

/* 遮罩层 + 文字内容 */
.marquee-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    /* mask-image 左右边缘渐变淡出 */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
}

/* 复用 carousel-content 文字样式 */
.carousel-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
    width: 100%;
    pointer-events: auto;
}
.carousel-label {
    display: inline-block;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    background: rgba(15, 36, 64, 0.6);
    padding: 4px 14px;
    border-radius: 4px;
}
.carousel-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    max-width: 600px;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.carousel-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin-bottom: 28px;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.carousel-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--gold);
    color: var(--navy);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* hover 暂停滚动 */
.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

/* ============================================
   数据统计条
   ============================================ */
.stats-bar {
    border-top: 3px solid var(--gold);
    background: var(--ice);
    padding: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}
.stat-card {
    text-align: center;
    padding: 20px 16px;
    border-right: 1px solid var(--gray-200);
}
.stat-card:last-child { border-right: none; }
.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ============================================
   通用 Section
   ============================================ */
.section { padding: 40px 0; }
.section-alt { background: var(--ice); }

.section-header {
    text-align: center;
    margin-bottom: 24px;
}
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}
.section-line {
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============================================
   新闻卡片 (参照 ctcvnhcmc.vn)
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}
.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
    cursor: pointer;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 6px; }
.news-item:hover .news-item-title { color: var(--navy-light); }

.news-date-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: var(--radius-sm);
    color: var(--white);
}
.news-date-day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}
.news-date-month {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 1px;
}
.news-item-body { flex: 1; min-width: 0; }
.news-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-400);
}
.news-item-category {
    display: inline-block;
    padding: 2px 8px;
    background: var(--ice);
    color: var(--navy-light);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}
.news-item-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-fast);
}
.news-item:hover .news-item-link { color: var(--gold); }
.news-item-link:hover { color: var(--gold); }

.news-view-all {
    text-align: center;
    margin-top: 24px;
}
.news-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}
.news-view-all a:hover { color: var(--gold); }

/* ============================================
   精彩瞬间卡片 (参照 ctcvnhcmc.vn)
   ============================================ */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}
.gallery-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}
.gallery-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--navy-light);
}
.gallery-card-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    width: 100%;
}
.gallery-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-card-image-wrap img { transform: scale(1.08); }
.gallery-card-body {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
}
.gallery-card-title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card-date {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: auto;
    padding-top: 4px;
}

.gallery-view-all {
    text-align: center;
    margin-top: 24px;
}
.gallery-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}
.gallery-view-all a:hover { color: var(--gold); }

/* ============================================
   会员企业卡片 (参照 ctcvnhcmc.vn)
   ============================================ */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.member-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--navy-light);
    transform: translateY(-2px);
}
/* Logo 图片容器 */
.member-avatar {
    width: 240px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
/* 无 Logo 时的首字占位符 */
.member-avatar.no-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.member-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.member-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    background: var(--ice);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}
.member-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.member-tag {
    font-size: 11px;
    color: var(--gray-500);
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.pinned-tag {
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
}

.members-view-all {
    text-align: center;
    margin-top: 36px;
}
.members-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
}
.members-view-all a:hover { color: var(--gold); }

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-brand p { font-size: 14px; }

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}
.footer-links ul a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}
.social-link:hover { background: var(--gold); }

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

/* ============================================
   弹窗
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.modal-close:hover { background: var(--gray-200); color: var(--ink); }
.modal-body { padding: 24px; }
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.member-detail-modal { max-width: 640px; }
.news-detail-modal { max-width: 680px; }
.gallery-detail-modal { max-width: 720px; }
.auth-modal { max-width: 420px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    transition: var(--transition-fast);
    outline: none;
}
.form-input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(27,58,107,0.1); }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--navy); background: var(--ice); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}
.btn-icon:hover { background: rgba(220,38,38,0.1); color: var(--danger); }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 16px;
}
.auth-switch a {
    color: var(--navy-light);
    font-weight: 600;
    cursor: pointer;
}
.auth-switch a:hover { text-decoration: underline; }

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }

/* ============================================
   Gallery detail image
   ============================================ */
.gallery-detail-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.gallery-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   子页面兼容样式
   ============================================ */
.subpage-header {
    background: var(--ice);
    color: var(--ink);
    padding: 100px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.subpage-header h1 { font-size: 32px; margin-bottom: 8px; color: var(--ink); }
.subpage-header p { font-size: 16px; color: var(--gray-500); }
.subpage-header .breadcrumb {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 16px;
}
.subpage-header .breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}
.subpage-header .breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

.subpage-body { padding: 48px 0; }

/* 分类筛选按钮 */
.news-categories, .gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.news-cat, .gallery-cat {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.news-cat.active, .gallery-cat.active {
    background: var(--navy);
    color: white;
}
.news-cat:hover:not(.active), .gallery-cat:hover:not(.active) {
    background: var(--gray-200);
}

/* 子页面新闻卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.news-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-light);
}
.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
    font-size: 12px;
}
.news-card-category {
    padding: 2px 10px;
    background: var(--primary-bg);
    color: var(--navy-light);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 12px;
}
.news-card-date { color: var(--text-light); font-size: 12px; }
.news-image {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--primary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 12px 20px 0;
    border-radius: var(--radius);
}
.news-body { padding: 16px 20px; }
.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
}
.author { color: var(--text-light); }
.read-more {
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
}

/* 新闻详情 */
.news-detail-modal { max-width: 750px; }
.news-detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.news-detail-meta span {
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 4px;
}
.news-detail-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 2;
}

/* 子页面图片卡片网格 */
.gallery-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-card-image img { transform: scale(1.08); }
.gallery-card-image .gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 14px;
    font-weight: 500;
}
.gallery-card:hover .gallery-card-image .gallery-card-overlay { opacity: 1; }
.gallery-card-body {
    padding: 16px;
}
.gallery-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.gallery-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.gallery-card-date {
    font-size: 11px;
    font-style: italic;
    color: #999;
}
.gallery-card-category {
    padding: 2px 10px;
    background: var(--gold-bg);
    color: var(--gold);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

/* ===== 批量上传样式 ===== */
.batch-upload-modal {
    max-width: 900px !important;
    width: 95%;
}
.batch-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}
.batch-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.batch-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding: 2px;
}
.batch-preview-card {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.batch-preview-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.batch-preview-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
}
.batch-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.batch-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.batch-preview-remove:hover {
    background: #ef4444;
}
.batch-preview-info {
    padding: 8px 10px;
}
.batch-title-input,
.batch-desc-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 12px;
    box-sizing: border-box;
    outline: none;
    background: transparent;
    transition: border-color 0.15s, background 0.15s;
}
.batch-title-input {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-size: 13px;
}
.batch-desc-input {
    color: var(--text-light);
    font-size: 11px;
}
.batch-title-input:hover,
.batch-desc-input:hover {
    background: #f8fafc;
}
.batch-title-input:focus,
.batch-desc-input:focus {
    border-color: var(--primary);
    background: #fff;
}

.gallery-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.gallery-detail-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}
.gallery-detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* 分页 */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination-bar button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}
.pagination-bar button:hover:not(:disabled) {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.pagination-bar button.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    font-weight: 600;
}
.pagination-bar button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-info {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
}

/* 子页面会员卡片 */
.member-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.member-info { flex: 1; min-width: 0; }
.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.member-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.member-badge {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}
.badge-level { background: var(--primary-bg); color: var(--navy); }
.badge-industry { background: var(--bg-tertiary); color: var(--text-secondary); }
.member-card-body { margin-bottom: 16px; }
.member-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.member-tag {
    padding: 3px 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 11px;
}
.member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-light);
}
.member-link { color: var(--navy); font-weight: 600; cursor: pointer; }

/* 会员详情 */
.member-detail-hero {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.member-detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--gold);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.member-detail-hero-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.member-detail-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}
.member-detail-section {
    margin-bottom: 20px;
}
.member-detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.member-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.member-detail-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}
.member-detail-info-item .info-icon { font-size: 18px; flex-shrink: 0; }
.member-detail-info-item .info-label { font-size: 11px; color: var(--text-light); }
.member-detail-info-item .info-value { font-size: 13px; color: var(--text-primary); font-weight: 500; }
.member-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* AI生成占位 */
.ai-generating-placeholder {
    text-align: center;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}
.ai-generating-placeholder p {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}
.loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy-light);
    animation: dotPulse 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }
@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* 人物卡片 */
.figure-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.figure-card:hover { box-shadow: var(--shadow-lg); }
.figure-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--primary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.figure-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.figure-placeholder {
    font-size: 48px;
    color: var(--navy-light);
    font-weight: 700;
}
.figure-card-body {
    padding: 20px;
    text-align: center;
}
.figure-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.figure-card-position {
    font-size: 14px;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 4px;
}
.figure-card-company {
    font-size: 13px;
    color: var(--text-light);
}
.figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 搜索和筛选 */
.members-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}
.search-box input:focus { border-color: var(--navy-light); }
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
}
.filter-group {
    display: flex;
    gap: 8px;
}
.filter-group select {
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}
.filter-group select:focus { border-color: var(--navy-light); }

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    font-size: 15px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   响应式 - 平板横屏 / 小桌面 (≤1200px)
   ============================================ */
@media (max-width: 1200px) {
    .container { padding: 0 20px; }
}

/* ============================================
   响应式 - 平板 (≤960px)
   ============================================ */
@media (max-width: 960px) {
    .container { padding: 0 18px; }
    .nav-link { padding: 10px 12px; font-size: 14px; }
    .marquee-section { height: 300px; }
    .marquee-item { width: 280px; }
    .marquee-item img { max-height: 220px; }
    .carousel-content { padding: 0; }
    .carousel-title { font-size: 30px; max-width: 520px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-card { padding: 16px 10px; }
    .stat-number { font-size: 26px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .members-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   响应式 - 平板竖屏 / 大手机 (≤860px)
   导航切换为汉堡菜单
   ============================================ */
@media (max-width: 860px) {
    html { scroll-padding-top: var(--nav-height-mobile); }
    .container { padding: 0 16px; }

    /* 导航栏移动端：隐藏水平菜单，显示汉堡按钮 */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .navbar .container { height: 56px; }
    .nav-brand-cn { font-size: 18px; letter-spacing: 4px; }
    .nav-brand-en { font-size: 9px; }
    .nav-dropdown { top: 56px; }
    .nav-backdrop { top: 56px; }

    /* Marquee */
    .marquee-section { height: 260px; }
    .marquee-item { width: 240px; }
    .marquee-item img { max-height: 190px; }
    .carousel-content { padding: 0; }
    .carousel-label { font-size: 13px; }
    .carousel-title { font-size: 26px; max-width: 100%; }
    .carousel-desc { font-size: 14px; max-width: 100%; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 16px 12px; }
    .stat-card:nth-child(even) { border-right: none; }
    .stat-number { font-size: 28px; }

    /* Sections */
    .section { padding: 36px 0; }
    .section-title { font-size: 20px; }
    .section-header { margin-bottom: 24px; }

    /* Grids */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .members-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .news-grid { grid-template-columns: 1fr; }
    .figures-grid { grid-template-columns: 1fr; }

    /* Cards */
    .news-item { flex-wrap: wrap; gap: 10px; }
    .news-date-badge { width: 44px; height: 44px; }
    .news-date-day { font-size: 16px; }
    .news-date-month { font-size: 10px; }
    .news-item-title { font-size: 14px; }

    /* Member card mobile */
    .member-avatar { width: 100%; max-width: 240px; margin: 0 auto; }
    .member-avatar.no-logo { width: 64px; height: 64px; max-width: 64px; }

    /* Detail views */
    .member-detail-hero { flex-direction: column; align-items: center; text-align: center; }
    .member-detail-info-grid { grid-template-columns: 1fr; }
    .gallery-detail-nav { flex-direction: column; gap: 8px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .social-link { width: 44px; height: 44px; font-size: 20px; }
}

/* ============================================
   响应式 - 手机 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    /* 品牌 */
    .nav-brand-cn { font-size: 16px; letter-spacing: 3px; }
    .nav-brand-en { font-size: 8px; }
    .navbar .container { height: 52px; }
    .nav-dropdown { top: 52px; }
    .nav-backdrop { top: 52px; }

    /* Marquee */
    .marquee-section { height: 220px; }
    .marquee-item { width: 200px; }
    .marquee-item img { max-height: 160px; }
    .carousel-title { font-size: 20px; }
    .carousel-desc { font-size: 13px; }
    .carousel-btns { flex-direction: column; }
    .carousel-btns .btn-gold,
    .carousel-btns .btn-outline-white { width: 100%; justify-content: center; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 14px 8px; }
    .stat-number { font-size: 24px; }
    .stat-label { font-size: 12px; }

    /* Grids */
    .gallery-grid { grid-template-columns: 1fr; }
    .members-grid { grid-template-columns: 1fr; }
    .gallery-detail-image { aspect-ratio: 4/3; }

    /* Touch targets */
    .pagination-btn { min-width: 44px; height: 44px; font-size: 14px; }
    .modal-close { width: 40px; height: 40px; font-size: 20px; }
    .news-categories .filter-btn,
    .gallery-categories .filter-btn { padding: 6px 14px; font-size: 13px; }
}

/* ===== 微信文章抓取（新增资讯内嵌）===== */
.wechat-fetch-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.wechat-fetch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.wechat-fetch-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wechat-fetch-input-row input[type="url"] {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}
.wechat-fetch-input-row input[type="url"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
