/* ==========================================================================
   光棍天堂 51nw.net - 动漫迷聚集地
   完整样式表 (style.css)
   风格：二次元渐变 + 毛玻璃质感 + 圆角卡片
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 基础重置与 CSS 变量
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 亮色主题 */
    --bg-primary: #f4f6fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-strong: rgba(255, 255, 255, 0.88);
    --text-primary: #1a1e2c;
    --text-secondary: #4a4e5c;
    --text-muted: #7a7e8c;
    --border-color: #e2e6f0;
    --border-glass: rgba(255, 255, 255, 0.6);
    --accent-color: #ff6b6b;
    --accent-hover: #ee5a5a;
    --accent-light: #fff0f0;
    --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff9a6b 100%);
    --accent-gradient-2: linear-gradient(135deg, #7b6bff 0%, #ff6b9d 100%);
    --shadow-sm: 0 2px 8px rgba(26, 30, 44, 0.05);
    --shadow-md: 0 6px 20px rgba(26, 30, 44, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 30, 44, 0.12);
    --shadow-glow: 0 8px 28px rgba(255, 107, 107, 0.28);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 66px;
    --max-width: 1200px;
    --blur: blur(16px);
    --blur-strong: blur(24px);
}

[data-theme="dark"] {
    --bg-primary: #0d1017;
    --bg-secondary: #161b26;
    --bg-card: #1b2130;
    --bg-glass: rgba(27, 33, 48, 0.72);
    --bg-glass-strong: rgba(22, 27, 38, 0.9);
    --text-primary: #eaeef7;
    --text-secondary: #aeb6cc;
    --text-muted: #767f99;
    --border-color: #272e40;
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --accent-light: rgba(255, 107, 107, 0.12);
    --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff9a6b 100%);
    --accent-gradient-2: linear-gradient(135deg, #8b7bff 0%, #ff6b9d 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 28px rgba(255, 107, 107, 0.35);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    transition: background-color 0.35s ease, color 0.35s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
}

::selection {
    background: var(--accent-color);
    color: #fff;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
    border: 2px solid var(--bg-primary);
}

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

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

/* --------------------------------------------------------------------------
   3. 头部导航（毛玻璃）
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-glass-strong);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.logo svg {
    width: 36px;
    height: 36px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover svg {
    transform: rotate(-8deg) scale(1.08);
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    position: relative;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.main-nav a:hover::after {
    width: 60%;
}

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

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0 4px 0 14px;
    height: 38px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
    background: var(--bg-secondary);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 130px;
    font-family: inherit;
}

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

.search-box button {
    background: var(--accent-gradient);
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box button:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
}

.search-box button svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* 主题切换 */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(20deg);
    background: var(--accent-light);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.menu-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. 面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    color: var(--border-color);
}

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

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

/* --------------------------------------------------------------------------
   5. Banner 轮播（渐变 + 光晕）
   -------------------------------------------------------------------------- */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 16px 0 36px;
    background: linear-gradient(135deg, #1a1e2c 0%, #2d1b3d 50%, #1a1e2c 100%);
    min-height: 380px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.35) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-banner::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(123, 107, 255, 0.28) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.banner-slides {
    position: relative;
    width: 100%;
    min-height: 380px;
    z-index: 1;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    padding: 48px;
    min-height: 380px;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, #1a1e2c 0%, #2d1b3d 50%, #1a1e2c 100%);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #14242a 0%, #1b3d34 50%, #1a1e2c 100%);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #2c1a22 0%, #3d1b30 50%, #1a1e2c 100%);
}

.banner-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.32;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.banner-content h1 em {
    font-style: normal;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 26px;
    line-height: 1.85;
    max-width: 560px;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #fff;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(255, 107, 107, 0.35);
    position: relative;
    overflow: hidden;
}

.banner-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.banner-cta:hover::before {
    opacity: 1;
}

.banner-cta svg {
    transition: transform 0.3s ease;
}

.banner-cta:hover svg {
    transform: translateX(4px);
}

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

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.banner-dot.active {
    background: var(--accent-gradient);
    width: 30px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.6);
}

/* --------------------------------------------------------------------------
   6. 数字统计
   -------------------------------------------------------------------------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: transparent;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. 区块通用
   -------------------------------------------------------------------------- */
.section {
    margin-bottom: 56px;
}

.section-header {
    margin-bottom: 26px;
}

.section-header h2 {
    font-size: 27px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-top: 12px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 760px;
    line-height: 1.85;
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   8. 卡片网格
   -------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent-gradient);
    transform: scale(1.06) rotate(-4deg);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
    transition: fill 0.3s ease;
}

.card:hover .card-icon svg {
    fill: #ffffff;
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
}

.card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.card ul a {
    font-size: 14px;
    color: var(--text-secondary);
}

.card ul a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

/* --------------------------------------------------------------------------
   9. 文章列表
   -------------------------------------------------------------------------- */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.article-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-light), rgba(123, 107, 255, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.article-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-thumb::before {
    opacity: 0.12;
}

.article-thumb svg {
    width: 64px;
    height: 64px;
    fill: var(--accent-color);
    opacity: 0.55;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.article-card:hover .article-thumb svg {
    transform: scale(1.12) rotate(-6deg);
    opacity: 0.85;
}

.article-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta span {
    padding: 2px 10px;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 999px;
    font-weight: 600;
}

.article-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.article-card:hover .article-body h3 {
    color: var(--accent-color);
}

.article-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.85;
    flex: 1;
    margin-bottom: 14px;
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    gap: 9px;
}

/* --------------------------------------------------------------------------
   10. FAQ 手风琴
   -------------------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
    line-height: 1.6;
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

.faq-icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon::before {
    background: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    margin: 0 24px 20px;
    padding-left: 0;
    padding-right: 0;
}

/* --------------------------------------------------------------------------
   11. HowTo 步骤
   -------------------------------------------------------------------------- */
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.howto-step {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.howto-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.howto-step:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.howto-step:hover::before {
    transform: scaleY(1);
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.howto-step:hover .step-number {
    transform: scale(1.08) rotate(-6deg);
}

.step-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* --------------------------------------------------------------------------
   12. 团队卡片
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.team-card:hover::before {
    transform: scaleX(1);
}

.team-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.45);
}

.team-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.team-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   13. 联系方式
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.contact-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--accent-gradient);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-color);
    transition: fill 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    fill: #ffffff;
}

.contact-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
    word-break: break-all;
}

/* --------------------------------------------------------------------------
   14. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 52px 0 24px;
    margin-top: 56px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0.7;
}

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

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-top: 14px;
    max-width: 340px;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   15. 返回顶部
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 36px rgba(255, 107, 107, 0.55);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* --------------------------------------------------------------------------
   16. 滚动动画
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   17. 移动端菜单（毛玻璃）
   -------------------------------------------------------------------------- */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    z-index: 998;
    padding: 20px;
    overflow-y: auto;
    flex-direction: column;
    gap: 4px;
    animation: menuFadeIn 0.3s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mobile-menu a:hover {
    background: var(--accent-light);
    color: var(--accent-color);
    border-color: var(--border-color);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   18. 响应式布局
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .search-box {
        display: none;
    }

    .hero-banner {
        border-radius: var(--radius-lg);
        min-height: 340px;
    }

    .banner-slides,
    .banner-slide {
        min-height: 340px;
    }

    .banner-slide {
        padding: 32px 24px;
    }

    .banner-content h1 {
        font-size: 26px;
    }

    .banner-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .banner-cta {
        padding: 11px 24px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section {
        margin-bottom: 44px;
    }

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

    .article-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 20px 14px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

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

    .howto-step {
        flex-direction: column;
        gap: 12px;
    }

    .banner-content h1 {
        font-size: 22px;
    }

    .banner-content p {
        font-size: 13px;
    }

    .banner-slide {
        padding: 24px 18px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .faq-question {
        padding: 15px 18px;
        font-size: 14px;
    }

    .faq-answer-inner {
        margin: 0 18px 18px;
    }

    .card {
        padding: 20px;
    }

    .article-body {
        padding: 16px;
    }
}

/* --------------------------------------------------------------------------
   19. 辅助类
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* --------------------------------------------------------------------------
   20. 无障碍与动效偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 键盘聚焦可见性 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 打印样式 */
@media print {
    .site-header,
    .mobile-menu,
    .back-to-top,
    .hero-banner,
    .banner-dots {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card,
    .article-card,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}