/* ============================================================
   妻社 - 主样式文件
   官网：ca5kak.cn
   ============================================================ */

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

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --accent: #ec4899;
    --accent-light: #f9a8d4;
    --dark: #0f0a1e;
    --dark-2: #1a1035;
    --dark-3: #231a4a;
    --text: #e2d9f3;
    --text-muted: #9d8ec4;
    --white: #ffffff;
    --card-bg: rgba(35, 26, 74, 0.85);
    --border: rgba(124, 58, 237, 0.3);
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(180deg, #0f0a1e 0%, #1a1035 100%);
    --shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
    --shadow-hover: 0 16px 48px rgba(236, 72, 153, 0.35);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

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

a:hover {
    color: var(--accent);
}

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

ul, ol {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

/* ---- 标题样式 ---- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
}

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: var(--shadow);
}

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

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ---- 顶部公告栏 ---- */
.top-bar {
    background: var(--gradient-main);
    color: var(--white);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar a {
    color: var(--white);
    text-decoration: underline;
}

/* ---- 导航栏 ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

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

.navbar-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.navbar-logo .brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
}

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

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    font-size: 1.4rem;
}

/* ---- 搜索框 ---- */
.search-bar-wrap {
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: var(--font-main);
    outline: none;
    transition: all var(--transition);
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.search-input-wrap .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.search-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: center;
}

.search-tag {
    padding: 3px 12px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.search-tag:hover {
    background: rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
}

/* ---- 英雄区 ---- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_banner.jpg');
    background-size: cover;
    background-position: center top;
    filter: brightness(0.45);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,10,30,0.92) 40%, rgba(15,10,30,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(124, 58, 237, 0.3);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--white);
}

.hero h1 span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(226, 217, 243, 0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- 视频卡片 ---- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--dark-3);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.06);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    background: rgba(0,0,0,0.4);
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.play-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.6);
    transform: scale(0.85);
    transition: transform var(--transition);
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.play-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
    margin-left: 3px;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: var(--gradient-main);
    border-radius: 4px;
    font-size: 0.72rem;
    color: white;
    font-weight: 600;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.75);
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
}

.video-info {
    padding: 14px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- 功能模块卡片 ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- 图片社区展示 ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,10,30,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

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

.gallery-overlay span {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
}

/* ---- 专家展示 ---- */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 14px;
    border: 3px solid var(--primary);
}

.expert-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.expert-role {
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.expert-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}

.expert-tag {
    padding: 2px 10px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.expert-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ---- 合作品牌 ---- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.partner-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: all var(--transition);
}

.partner-item:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

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

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.open {
    border-color: var(--primary);
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    gap: 12px;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
    font-size: 0.8rem;
    color: var(--primary-light);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 20px 18px;
}

/* ---- 用户评论 ---- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition);
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.review-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--white);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.review-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 2px 10px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* ---- 联系我们 ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.contact-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    word-break: break-all;
}

/* ---- 二维码区 ---- */
.qrcode-wrap {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.qrcode-item {
    text-align: center;
}

.qrcode-box {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.qrcode-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.qrcode-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---- 分享按钮 ---- */
.share-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    color: white;
}

.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #010101; border: 1px solid #333; }
.share-btn.bilibili { background: #00a1d6; }

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ---- 底部 ---- */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

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

.footer-brand .brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ---- 面包屑 ---- */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

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

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

.breadcrumb .current {
    color: var(--primary-light);
}

/* ---- 标签 ---- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 14px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.tag:hover, .tag.active {
    background: rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
    border-color: var(--primary);
}

/* ---- 加载动画 ---- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- 滚动动画 ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- 直播标记 ---- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: #ef4444;
    border-radius: 4px;
    font-size: 0.72rem;
    color: white;
    font-weight: 700;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.2s ease infinite;
}

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

/* ---- 弹幕效果 ---- */
.danmu-wrap {
    position: relative;
    height: 40px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-bottom: 16px;
}

.danmu-item {
    position: absolute;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text);
    top: 50%;
    transform: translateY(-50%);
    animation: danmu-move 12s linear infinite;
}

@keyframes danmu-move {
    from { left: 100%; }
    to { left: -100%; }
}

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

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(15, 10, 30, 0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .navbar-nav.open {
        display: flex;
    }

    .navbar-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .navbar-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .section {
        padding: 50px 0;
    }
}

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

    .hero-btns {
        flex-direction: column;
    }

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

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

/* ---- 内页 Banner ---- */
.page-banner {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: 0;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,10,30,0.6), rgba(15,10,30,0.9));
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 1rem;
    color: rgba(226, 217, 243, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- 分页 ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
}

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

/* ---- 工具卡片 ---- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.tool-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- 通知条 ---- */
.notice-bar {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.notice-bar .notice-icon {
    color: var(--primary-light);
    flex-shrink: 0;
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
