/* ==========================================================================
   笔趣阁官网 - 深蓝书卷绿风格样式（移动端优先）
   主色调：海军蓝 #1F5FA8 + 书卷绿 #3FA34D + 琥珀黄 #F5A623
   ========================================================================== */

/* ===== CSS变量 ===== */
:root {
    --color-primary: #1F5FA8;
    --color-primary-dark: #164A83;
    --color-secondary: #3FA34D;
    --color-accent: #0C2A56;
    --color-cyan: #3A8FD8;
    --color-green: #3FA34D;
    --color-yellow: #F5A623;
    --color-purple: #7C5CFF;
    --color-text: #1F2937;
    --color-text-light: #64748B;
    --color-bg: #FFFFFF;
    --color-bg-gray: #F0F5FB;
    --color-bg-dark: #0C2A56;
    --color-border: #D9E6F5;
    --color-danger: #E5484D;

    --gradient-sky: linear-gradient(135deg, #1F5FA8 0%, #3FA34D 100%);
    --gradient-ocean: linear-gradient(135deg, #0C2A56 0%, #1F5FA8 100%);
    --gradient-cyan: linear-gradient(135deg, #3A8FD8 0%, #7C5CFF 100%);
    --gradient-leaf: linear-gradient(135deg, #3FA34D 0%, #F5A623 100%);

    --shadow-sm: 0 2px 8px rgba(31, 95, 168, 0.08);
    --shadow-md: 0 6px 20px rgba(31, 95, 168, 0.12);
    --shadow-lg: 0 12px 40px rgba(31, 95, 168, 0.18);
    --shadow-xl: 0 20px 60px rgba(31, 95, 168, 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

ul { list-style: none; }

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

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--color-primary); color: #fff;
    padding: 8px 16px; z-index: 9999;
    border-radius: 0 0 8px 0; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border: none; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer;
    min-height: 48px; box-sizing: border-box;
    transition: var(--transition); text-decoration: none; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--gradient-sky); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline {
    background: transparent; color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; min-height: 56px; }
.btn-xl { padding: 20px 48px; font-size: 17px; border-radius: var(--radius-md); min-height: 64px; }
.btn-icon { font-size: 1.2em; }

/* ===== 顶部公告条 ===== */
.topbar {
    background: var(--gradient-ocean);
    color: #fff; font-size: 13px; padding: 8px 0; text-align: center;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.topbar-inner strong { color: var(--color-yellow); }
.topbar-cta {
    background: var(--color-yellow); color: #fff;
    padding: 4px 14px; border-radius: 14px; font-size: 12px; font-weight: 600;
}
.topbar-cta:hover { background: #e09610; color: #fff; }

/* ===== 头部导航 ===== */
.header {
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--color-border);
    z-index: 1000;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; gap: 20px;
}
.brand {
    display: flex; align-items: center; gap: 10px; color: var(--color-text);
    font-weight: 700; text-decoration: none;
}
.brand:hover { color: var(--color-primary); }
.brand-logo {
    width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.brand-text { display: inline-flex; align-items: center; gap: 8px; }
.brand-text strong { font-size: 20px; color: var(--color-accent); line-height: 1; }
.brand-text small { font-size: 11px; color: var(--color-text-light); font-weight: 400; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 24px; list-style: none; }
.nav-menu a {
    color: var(--color-text); font-size: 15px; font-weight: 500;
    padding: 8px 0; position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px; background: var(--gradient-sky);
    transition: var(--transition); transform: translateX(-50%);
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: var(--color-primary); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--color-text); transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-btn { padding: 10px 22px; min-height: 44px; font-size: 14px; }

/* ===== 面包屑导航 ===== */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--color-text-light);
}
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}
.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-list a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--transition);
    min-height: 28px;
    display: inline-flex;
    align-items: center;
}
.breadcrumb-list a:hover {
    color: var(--color-primary);
    background: var(--color-bg-gray);
}
.breadcrumb-list .sep {
    color: var(--color-text-light);
    opacity: 0.6;
    user-select: none;
    padding: 0 2px;
}
.breadcrumb-list .current {
    color: var(--color-accent);
    font-weight: 600;
    padding: 4px 6px;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Hero首屏 ===== */
.hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(31, 95, 168, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(63, 163, 77, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #F0F5FB 0%, #FFFFFF 100%);
    padding: 60px 0 80px; position: relative; overflow: hidden;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(63, 163, 77, 0.12); color: var(--color-secondary);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px;
    border: 1px solid rgba(63, 163, 77, 0.2);
}
.hero-title {
    font-size: 44px; font-weight: 800; line-height: 1.2;
    color: var(--color-accent); margin-bottom: 20px;
}
.hero-title-accent {
    display: block;
    background: var(--gradient-sky);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-desc {
    font-size: 17px; color: var(--color-text-light);
    line-height: 1.8; margin-bottom: 28px;
}
.hero-desc strong { color: var(--color-primary); font-weight: 600; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-bottom: 32px; padding: 24px;
    background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.stat-item { text-align: center; border-right: 1px solid var(--color-border); }
.stat-item:last-child { border-right: none; }
.stat-item strong {
    display: block; font-size: 24px; font-weight: 800;
    color: var(--color-primary); margin-bottom: 4px;
}
.stat-item small { font-size: 12px; color: var(--color-text-light); line-height: 1.4; display: block; }

.hero-actions { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.hero-meta {
    display: flex; flex-wrap: wrap; gap: 12px 20px;
    font-size: 13px; color: var(--color-text-light);
}
.hero-meta li { padding-left: 0; }

/* ===== Hero手机展示 & 占位卡 ===== */
.hero-media {
    position: relative; display: flex; justify-content: center; align-items: center;
    min-height: 540px;
}
.phone-card {
    width: 280px; height: 560px;
    background: var(--color-accent);
    border-radius: 40px; padding: 12px;
    box-shadow: var(--shadow-xl); position: relative;
    animation: floatPhone 4s ease-in-out infinite;
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.phone-card img {
    width: 100%; height: 100%; border-radius: 30px; object-fit: cover; background: #fff;
}
.hero-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #F0F5FB 0%, #ffffff 100%);
    border-radius: 28px; overflow: hidden;
    display: flex; flex-direction: column; padding: 18px;
    font-size: 12px;
}
.hf-header {
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; color: var(--color-primary); margin-bottom: 12px;
    font-size: 13px;
}
.hf-banner {
    background: var(--gradient-sky); color: #fff;
    padding: 12px; border-radius: 12px; font-weight: 600; margin-bottom: 12px;
}
.hf-tags {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px;
}
.hf-tags span {
    background: var(--color-bg-gray); color: var(--color-primary);
    padding: 5px 4px; border-radius: 8px; text-align: center; font-size: 10px; font-weight: 600;
}
.hf-books {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1;
    align-content: start;
}
.hf-book {
    background: #fff; border-radius: 8px; padding: 10px 4px;
    text-align: center; border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.hf-cover {
    font-size: 24px; margin-bottom: 6px; line-height: 1;
}
.hf-book small { font-size: 9px; color: var(--color-text-light); }

/* ===== 浮动徽章 ===== */
.floating-badge {
    position: absolute; background: #fff; border-radius: var(--radius-md);
    padding: 10px 14px; box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 8px; z-index: 5;
    font-weight: 600; color: var(--color-text); font-size: 13px;
}
.fb-1 { top: 60px; left: -10px; animation: floatBadge 3s ease-in-out infinite; color: var(--color-purple); }
.fb-2 { bottom: 120px; right: -10px; animation: floatBadge 3s ease-in-out infinite 1s; color: var(--color-secondary); }
.fb-3 { bottom: 40px; left: 20px; animation: floatBadge 3s ease-in-out infinite 2s; color: var(--color-primary); }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== 区块通用 ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--color-bg-gray); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    background: rgba(31, 95, 168, 0.1); color: var(--color-primary);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
    border: 1px solid rgba(31, 95, 168, 0.14);
}
.section-title {
    font-size: 32px; font-weight: 800; color: var(--color-accent);
    margin-bottom: 12px; line-height: 1.3;
}
.section-desc { font-size: 16px; color: var(--color-text-light); }

/* ===== 应用介绍卡片 ===== */
.intro-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 40px;
}
/* 隐私保护/免责说明：PC 端 2×2 布局 */
#privacy .intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.intro-card {
    background: #fff; border-radius: var(--radius-md); padding: 28px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--color-border);
}
.intro-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.intro-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; margin-bottom: 16px;
}
.icon-blue { background: linear-gradient(135deg, #1F5FA8, #3A8FD8); }
.icon-cyan { background: linear-gradient(135deg, #3A8FD8, #7C5CFF); }
.icon-green { background: linear-gradient(135deg, #3FA34D, #6ECB7C); }
.icon-navy { background: linear-gradient(135deg, #0C2A56, #1F5FA8); }
.icon-yellow { background: linear-gradient(135deg, #F5A623, #FFC866); color: #4a3200; }
.icon-purple { background: linear-gradient(135deg, #7C5CFF, #B19DFF); }

.intro-card h3 {
    font-size: 18px; font-weight: 700; color: var(--color-accent);
    margin-bottom: 12px;
}
.intro-card p {
    color: var(--color-text-light); line-height: 1.8; font-size: 15px;
}
.intro-card strong { color: var(--color-primary); font-weight: 600; }

.intro-cta {
    text-align: center; padding: 40px;
    background: var(--gradient-sky);
    border-radius: var(--radius-lg); color: #fff;
}
.intro-cta h3 { font-size: 22px; margin-bottom: 20px; }
.intro-cta .btn {
    background: #fff; color: var(--color-primary);
}
.intro-cta .btn:hover {
    background: var(--color-accent); color: #fff;
}

/* ===== 核心功能列表 ===== */
.features-list {
    display: flex; flex-direction: column; gap: 24px;
}
.feature-item {
    display: flex; gap: 24px; background: #fff;
    border-radius: var(--radius-md); padding: 28px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border-left: 4px solid var(--color-secondary);
}
.feature-item:hover {
    transform: translateX(8px); box-shadow: var(--shadow-md);
}
.feature-num {
    font-size: 36px; font-weight: 800; color: var(--color-secondary);
    opacity: 0.3; min-width: 60px; line-height: 1;
}
.feature-content { flex: 1; min-width: 0; }
.feature-content h3 {
    font-size: 20px; font-weight: 700; color: var(--color-accent);
    margin-bottom: 10px;
}
.feature-content p {
    color: var(--color-text-light); line-height: 1.8; margin-bottom: 12px;
}
.feature-content strong { color: var(--color-primary); font-weight: 600; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags li {
    background: var(--color-bg-gray); color: var(--color-secondary);
    padding: 4px 12px; border-radius: 12px;
    font-size: 13px; font-weight: 500;
}

/* ===== 小说分类 ===== */
.category-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cat-card {
    background: #fff; border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--color-border);
    color: var(--color-text); display: block;
}
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
    color: var(--color-text);
}
.cat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; margin-bottom: 14px;
}
.cat-1 .cat-icon { background: linear-gradient(135deg,#1F5FA8,#3A8FD8); }
.cat-2 .cat-icon { background: linear-gradient(135deg,#3FA34D,#6ECB7C); }
.cat-3 .cat-icon { background: linear-gradient(135deg,#F5A623,#FF8AAE); }
.cat-4 .cat-icon { background: linear-gradient(135deg,#7C5CFF,#3A8FD8); }
.cat-5 .cat-icon { background: linear-gradient(135deg,#0C2A56,#7C5CFF); }
.cat-6 .cat-icon { background: linear-gradient(135deg,#3A8FD8,#00C2CB); }
.cat-7 .cat-icon { background: linear-gradient(135deg,#4C1D95,#E5484D); }
.cat-8 .cat-icon { background: linear-gradient(135deg,#B45309,#78350F); }
.cat-card h3 {
    font-size: 18px; font-weight: 700; color: var(--color-accent);
    margin-bottom: 6px;
}
.cat-card p {
    font-size: 13px; color: var(--color-text-light); margin-bottom: 10px;
    line-height: 1.6;
}
.cat-card ul { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card ul li {
    background: var(--color-bg-gray); color: var(--color-primary);
    padding: 3px 10px; border-radius: 10px;
    font-size: 12px; font-weight: 500;
}

/* ===== 热门小说推荐榜 ===== */
.hot-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.book-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.book-card::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--gradient-leaf);
    opacity: 0.85;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}
.book-card h3 {
    font-size: 17px; line-height: 1.4; color: var(--color-accent);
    margin-bottom: 10px; font-weight: 700;
    padding-left: 10px;
}
.book-meta {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 10px; padding-left: 10px;
}
.book-tag {
    background: var(--color-bg-gray);
    color: var(--color-primary);
    padding: 3px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 500;
    line-height: 1.5;
}
.book-tag:nth-child(2) { background: rgba(63, 163, 77, 0.12); color: var(--color-secondary); }
.book-tag:nth-child(3) { background: rgba(245, 166, 35, 0.14); color: var(--color-yellow); }
.book-desc {
    font-size: 13px; color: var(--color-text-light);
    line-height: 1.7; padding-left: 10px;
    flex: 1;
}
.book-desc strong { color: var(--color-primary); font-weight: 600; }

/* ===== 使用教程步骤 ===== */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; position: relative;
}
.step-card {
    background: #fff; border-radius: var(--radius-md);
    padding: 32px 20px 24px; text-align: center;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    position: relative;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-number {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 32px;
    background: var(--gradient-sky); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; box-shadow: var(--shadow-sm);
}
.step-icon { font-size: 36px; margin: 12px 0 12px; }
.step-card h3 {
    font-size: 16px; font-weight: 700; color: var(--color-accent);
    margin-bottom: 10px;
}
.step-card p {
    font-size: 14px; color: var(--color-text-light);
    line-height: 1.7; margin-bottom: 12px;
}
.step-card strong { color: var(--color-primary); }
.step-link {
    color: var(--color-primary); font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; min-height: 30px;
}

/* ===== 界面展示 ===== */
.showcase-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.showcase-card { text-align: center; }
.showcase-card figcaption {
    font-size: 14px; color: var(--color-text-light);
    margin-top: 14px; line-height: 1.6;
}

/* ===== Mini手机组件（笔趣阁风格：书城/分类/阅读/书架） ===== */
.mini-phone {
    width: 100%; max-width: 200px; margin: 0 auto;
    aspect-ratio: 9 / 18;
    background: var(--color-accent);
    border-radius: 24px; padding: 6px;
    box-shadow: var(--shadow-md); transition: var(--transition);
}
.showcase-card:hover .mini-phone {
    transform: scale(1.05); box-shadow: var(--shadow-lg);
}
.mini-phone .mp-statusbar {
    display: flex; justify-content: space-between;
    padding: 4px 10px 2px; font-size: 8px; font-weight: 600;
    color: #fff;
}
.mini-phone .mp-statusbar.night { color: rgba(255,255,255,0.8); }
.mini-phone .mp-tabbar {
    margin-top: auto;
    display: flex; justify-content: space-around;
    padding: 4px 0 6px;
    background: #fff; border-top: 1px solid var(--color-border);
    font-size: 10px;
}
.mini-phone .mp-tabbar span { color: #94A3B8; }
.mini-phone .mp-tabbar span.active { color: var(--color-primary); font-weight: 600; }
.mini-phone .mp-body {
    flex: 1; overflow: hidden; background: #fff;
    border-radius: 0 0 18px 18px;
    display: flex; flex-direction: column; gap: 8px; padding: 8px;
    font-size: 9px; color: var(--color-text);
}
.mini-phone .mp-search {
    background: var(--color-bg-gray); padding: 5px 8px; border-radius: 8px;
    font-size: 8px; color: var(--color-text-light);
}
.mini-phone .mp-banner {
    background: var(--gradient-sky); color: #fff;
    padding: 6px 8px; border-radius: 8px;
    font-size: 8px; font-weight: 600;
}
.mini-phone .mp-section {
    padding: 4px 6px; background: #fff;
    border: 1px solid var(--color-border); border-radius: 6px;
    display: flex; flex-direction: column; gap: 4px;
}
.mini-phone .mp-section strong { font-size: 8px; color: var(--color-accent); }
.mini-phone .mp-section small { font-size: 7px; color: var(--color-text-light); }
.mini-phone .mp-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
}
.mini-phone .mp-row span {
    background: var(--color-bg-gray); aspect-ratio: 3/4;
    border-radius: 3px; font-size: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--color-text-light);
}
.mini-phone .mp-cats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    padding: 2px 4px;
}
.mini-phone .mp-cats span {
    background: linear-gradient(135deg, rgba(31,95,168,0.1), rgba(63,163,77,0.1));
    color: var(--color-primary);
    font-size: 7px; padding: 4px 2px; border-radius: 5px;
    text-align: center; font-weight: 600;
}
.mini-phone .night-reading { background: #FFF8E7; }
.mini-phone .mp-chapter-title {
    font-size: 9px; font-weight: 700; color: var(--color-accent);
    padding: 2px 4px;
}
.mini-phone .mp-text { padding: 4px 6px; font-size: 8px; line-height: 1.6; color: #5c4a2c; }
.mini-phone .mp-text.night { background: #FFF8E7; }
.mini-phone .mp-toolbar {
    margin-top: auto;
    display: flex; justify-content: space-around;
    padding: 4px 0; border-top: 1px solid var(--color-border);
    background: var(--color-bg-gray); font-size: 7px; color: var(--color-primary);
    font-weight: 600;
}

/* ===== 软件对比表 ===== */
.compare-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); background: #fff;
    position: relative; z-index: 1;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}
.compare-table {
    width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px;
    position: relative;
}
.compare-table th,
.compare-table td {
    padding: 14px 16px; text-align: center;
    border-bottom: 1px solid var(--color-border);
    -webkit-user-select: text; user-select: text;
    vertical-align: middle;
}
.compare-table th {
    background: var(--color-bg-gray);
    color: var(--color-text-light);
    font-weight: 600; font-size: 13px;
    position: sticky; top: 0; z-index: 3;
}
.compare-table th.highlight {
    background: var(--gradient-sky); color: #fff;
    z-index: 4;
}
.compare-table td.highlight {
    background: rgba(63, 163, 77, 0.06);
    color: var(--color-secondary); font-weight: 600;
}
.compare-table td:first-child {
    text-align: left; color: var(--color-text); font-weight: 500;
    position: sticky; left: 0; background: #fff; z-index: 2;
    box-shadow: 2px 0 4px -2px rgba(31, 95, 168, 0.15);
}
.compare-table th:first-child {
    position: sticky; left: 0; z-index: 5; background: var(--color-bg-gray);
}
.compare-table th.highlight:first-child {
    background: var(--gradient-sky); color: #fff;
}
.compare-table tbody tr:hover {
    background: rgba(63, 163, 77, 0.03);
}

/* ===== 用户评价 ===== */
.reviews-summary {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 40px; background: #fff;
    border-radius: var(--radius-md); padding: 32px;
    box-shadow: var(--shadow-sm); margin-bottom: 32px; align-items: center;
}
.review-score {
    text-align: center;
    border-right: 1px solid var(--color-border); padding-right: 40px;
}
.review-score strong {
    display: block; font-size: 56px; font-weight: 800;
    color: var(--color-primary); line-height: 1;
}
.review-stars {
    color: var(--color-yellow); font-size: 20px; margin: 8px 0;
}
.review-score small { color: var(--color-text-light); font-size: 13px; }
.review-bars {
    display: flex; flex-direction: column; gap: 8px;
}
.rb-item {
    display: grid; grid-template-columns: 40px 1fr 40px;
    gap: 12px; align-items: center;
    font-size: 13px; color: var(--color-text-light);
}
.rb-bar {
    height: 8px; background: var(--color-bg-gray);
    border-radius: 4px; overflow: hidden;
}
.rb-fill {
    height: 100%; background: var(--gradient-sky);
    border-radius: 4px;
}
.reviews-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.review-card {
    background: #fff; border-radius: var(--radius-md);
    padding: 24px; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px;
}
.av-blue { background: linear-gradient(135deg,#1F5FA8,#3A8FD8); }
.av-cyan { background: linear-gradient(135deg,#3A8FD8,#7C5CFF); }
.av-green { background: linear-gradient(135deg,#3FA34D,#6ECB7C); }
.av-navy { background: linear-gradient(135deg,#0C2A56,#1F5FA8); }
.review-head strong { display: block; font-size: 14px; color: var(--color-text); }
.review-stars-small { color: var(--color-yellow); font-size: 12px; }
.review-card p {
    color: var(--color-text-light); line-height: 1.8;
    margin-bottom: 12px; font-size: 14px;
}
.review-card p strong { color: var(--color-primary); font-weight: 600; }
.review-date { font-size: 12px; color: var(--color-text-light); }

/* ===== 版本更新日志 ===== */
.changelog-list {
    display: flex; flex-direction: column; gap: 16px;
    max-width: 900px; margin: 0 auto;
}
.changelog-item {
    display: grid; grid-template-columns: 100px 110px 1fr;
    gap: 24px; background: #fff;
    border-radius: var(--radius-md); padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition); align-items: center;
}
.changelog-item:hover { box-shadow: var(--shadow-md); }
.cl-version {
    font-size: 22px; font-weight: 800; color: var(--color-primary);
}
.cl-date { font-size: 13px; color: var(--color-text-light); }
.cl-content strong {
    display: block; margin-bottom: 8px;
    font-size: 15px; color: var(--color-secondary);
}
.cl-content ul { margin-top: 4px; }
.cl-content li {
    font-size: 14px; color: var(--color-text-light);
    padding: 4px 0; padding-left: 22px; position: relative; list-style: none;
    line-height: 1.6;
}
.cl-content li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--color-secondary); font-weight: 700;
}

/* ===== FAQ常见问题 ===== */
.faq-list {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
    background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item summary {
    padding: 16px 52px 16px 20px; font-size: 16px;
    font-weight: 600; color: var(--color-accent);
    cursor: pointer; list-style: none;
    position: relative;
    min-height: 52px;
    touch-action: manipulation;
    line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 24px; color: var(--color-primary); font-weight: 300;
    transition: transform 0.3s; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}
.faq-item summary:hover { color: var(--color-primary); }
.faq-item summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body {
    padding: 0 20px 20px; color: var(--color-text-light); line-height: 1.9;
    font-size: 15px;
}
.faq-body strong { color: var(--color-primary); font-weight: 600; }
.faq-body p { margin-bottom: 0; line-height: inherit; }
.faq-body a { color: var(--color-secondary); border-bottom: 1px dashed; }
.faq-body a:hover { color: var(--color-primary); }
.faq-body code {
    background: var(--color-bg-gray); padding: 1px 6px;
    border-radius: 4px; font-size: 13px; color: var(--color-accent);
}

/* ===== 相关搜索导航 ===== */
.kw-nav { padding: 60px 0; }
.kw-tags {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center;
    max-width: 1000px; margin: 0 auto;
}
.kw-tags a {
    display: inline-block; padding: 8px 18px;
    background: #fff; color: var(--color-text);
    border-radius: 20px; font-size: 14px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.kw-tags a:hover {
    background: var(--color-secondary); color: #fff;
    border-color: var(--color-secondary); transform: translateY(-2px);
}

/* ===== 下载CTA ===== */
.download-cta {
    padding: 80px 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(31, 95, 168, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(63, 163, 77, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #F0F5FB 0%, #FFFFFF 100%);
}
.cta-box {
    background: #fff; border-radius: var(--radius-lg);
    padding: 48px; box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    max-width: 960px; margin: 0 auto;
}
.cta-box h2 {
    font-size: 28px; font-weight: 800;
    color: var(--color-accent); margin-bottom: 12px;
}
.cta-desc {
    font-size: 16px; color: var(--color-text-light); margin-bottom: 28px;
    line-height: 1.8;
}
.cta-action {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.cta-meta {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; list-style: none;
    max-width: 720px; margin: 0 auto;
    padding: 16px 0 0;
    border-top: 1px dashed var(--color-border);
}
.cta-meta li {
    font-size: 13px; color: var(--color-text-light); padding: 6px 0;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--color-bg-dark); color: #fff;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    color: #fff;
}
.footer-brand strong { font-size: 18px; color: #fff; }
.footer-brand small { font-size: 11px; color: rgba(255,255,255,0.6); display: block; margin-top: 2px; }
.footer-brand-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8; font-size: 14px;
}
.footer-col h4 {
    font-size: 16px; margin-bottom: 16px; color: #fff;
}
.footer-col li {
    margin-bottom: 10px; font-size: 14px;
    line-height: 1.6;
}
.footer-col a, .footer-col li { color: rgba(255, 255, 255, 0.7); }
.footer-col a:hover { color: var(--color-secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px; text-align: center;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px; margin-bottom: 6px; line-height: 1.7;
}
.footer-bottom a { color: rgba(255,255,255,0.8); }
.footer-bottom a:hover { color: var(--color-yellow); }
.footer-bottom .sep { margin: 0 8px; opacity: 0.5; }

/* ===== 浮动下载条 ===== */
.float-download {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    display: none; align-items: center; justify-content: space-between;
    z-index: 999;
    gap: 12px;
    touch-action: manipulation;
}
.fd-icon { flex-shrink: 0; line-height: 0; }
.fd-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.fd-info strong { display: block; font-size: 14px; color: var(--color-text); line-height: 1.3; }
.fd-info small { font-size: 12px; color: var(--color-text-light); line-height: 1.2; display: block; }
.fd-info > div { min-width: 0; overflow: hidden; }
.fd-info strong, .fd-info small {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.float-download .btn {
    padding: 10px 20px; font-size: 14px;
    min-height: 44px;
    flex-shrink: 0;
}

/* ===== 回到顶部 ===== */
.back-top {
    position: fixed !important; bottom: 24px; right: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-sky); color: #fff;
    border: none; font-size: 22px; cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 998;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    touch-action: manipulation;
    display: inline-flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.back-top:active { transform: scale(0.95); }

/* ===== 无障碍：降低动画偏好 ===== */
@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;
    }
    .phone-card,
    .floating-badge { animation: none !important; }
}

/* ==========================================================================
   响应式适配
   ========================================================================== */

/* ===== 平板 (992px以下) ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr; gap: 40px; text-align: center;
    }
    .hero-content { order: 2; }
    .hero-media { order: 1; min-height: 440px; }
    .hero-actions { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-stats {
        max-width: 520px; margin-left: auto; margin-right: auto;
    }
    .intro-grid { grid-template-columns: repeat(2, 1fr); }
    #privacy .intro-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }

    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .hot-books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .reviews-summary {
        grid-template-columns: 1fr; gap: 24px;
    }
    .review-score {
        border-right: none; border-bottom: 1px solid var(--color-border);
        padding-right: 0; padding-bottom: 24px;
    }
    .cta-meta { grid-template-columns: repeat(2, 1fr); max-width: 500px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== 手机 (768px以下) ===== */
@media (max-width: 768px) {
    html { scroll-padding-top: 64px; }
    body {
        font-size: 15px;
        line-height: 1.9;
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
    p, li, .section-desc, .intro-card p, .feature-content p, .step-card p,
    .review-card p, .cta-desc { line-height: 1.9; }

    .container { padding: 0 16px; }
    .header-inner { padding: 10px 16px; }
    .breadcrumb { font-size: 12px; padding: 8px 0; }
    .breadcrumb-list .current { max-width: 50vw; }
    .main-nav { order: 3; flex: 0; }
    .nav-toggle {
        display: flex; min-width: 44px; min-height: 44px;
        align-items: center; justify-content: center;
    }
    .nav-menu {
        position: fixed; top: 58px; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0;
        padding: 0; max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.open { max-height: 72vh; overflow-y: auto; }
    .nav-menu li { border-bottom: 1px solid var(--color-border); }
    .nav-menu a {
        display: block; padding: 14px 20px;
        min-height: 46px;
        font-size: 15px;
    }
    .nav-menu a::after { display: none; }
    .nav-menu a:active { background: var(--color-bg-gray); }
    .header-btn { padding: 8px 14px; font-size: 13px; min-height: 40px; }
    .brand-text strong { font-size: 18px; }
    .brand-text small { display: none; }

    .topbar {
        font-size: 12px; padding: 6px 0;
        padding-top: calc(6px + env(safe-area-inset-top));
    }

    .hero { padding: 40px 0 60px; }
    .hero-title { font-size: 30px; line-height: 1.25; }
    .hero-desc { font-size: 15px; line-height: 1.9; }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; padding: 16px;
    }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(3) { border-right: 1px solid var(--color-border); }
    .stat-item strong { font-size: 20px; }
    .stat-item small { font-size: 12px; line-height: 1.4; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn {
        width: 100%;
        min-height: 50px;
        font-size: 16px;
    }
    .hero-meta { font-size: 12px; line-height: 1.6; }
    .hero-media { min-height: 420px; }
    .phone-card { width: 230px; height: 460px; }
    .floating-badge { display: none; }

    .section { padding: 52px 0; }
    .section-title { font-size: 24px; line-height: 1.35; }
    .section-desc { font-size: 14px; }

    .intro-grid { grid-template-columns: 1fr; gap: 16px; }
    #privacy .intro-grid { grid-template-columns: 1fr; gap: 16px; max-width: 100%; }
    .intro-card { padding: 20px; border-radius: var(--radius-md); }
    .intro-card h3 { font-size: 17px; line-height: 1.4; }
    .intro-icon { width: 46px; height: 46px; font-size: 22px; border-radius: 12px; }

    .hot-books-grid { grid-template-columns: 1fr; gap: 14px; }
    .book-card { padding: 18px 16px; }
    .book-card h3 { font-size: 16px; line-height: 1.4; }
    .book-desc { font-size: 13px; line-height: 1.75; }

    .feature-item {
        flex-direction: column; gap: 12px; padding: 20px;
    }
    .feature-num { font-size: 28px; min-width: auto; }
    .feature-content h3 { font-size: 18px; line-height: 1.4; }
    .feature-tags li {
        min-height: 28px;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 12px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr); gap: 28px 16px;
    }
    .step-card { padding: 22px 16px 18px; }
    .step-number { top: -14px; width: 28px; height: 28px; font-size: 14px; }
    .step-icon { font-size: 30px; margin: 12px 0 10px; }
    .step-card h3 { font-size: 15px; line-height: 1.4; }
    .step-card p { font-size: 13px; line-height: 1.8; }
    .step-link { min-height: 30px; display: inline-flex; align-items: center; }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr); gap: 16px;
    }
    .showcase-grid > * { min-width: 0; }
    .mini-phone {
        width: 100%;
        max-width: 180px;
    }

    .changelog-item {
        grid-template-columns: 1fr; gap: 8px;
        padding: 20px;
    }

    .cta-box { padding: 24px; }
    .cta-box h2 { font-size: 22px; line-height: 1.4; }
    .cta-desc { font-size: 14px; line-height: 1.8; }
    .cta-meta { grid-template-columns: repeat(2, 1fr); }
    .cta-meta li { font-size: 12px; line-height: 1.5; }
    .cta-action { flex-direction: column; }
    .cta-action .btn-xl { padding: 16px 32px; min-height: 52px; font-size: 16px; }

    .footer-grid {
        grid-template-columns: 1fr; gap: 24px; text-align: center;
    }
    .footer-brand { justify-content: center; }
    .footer-col h4 { font-size: 15px; }
    .footer-col li { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
    .footer-bottom p { font-size: 12px; line-height: 1.7; }

    .float-download { display: flex; }
    .fd-info small { display: none; }
    .back-top {
        width: 46px; height: 46px; font-size: 20px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        right: calc(14px + env(safe-area-inset-right));
    }

    /* ===== 移动端动画降级 ===== */
    .phone-card,
    .floating-badge { animation: none !important; }
    .intro-card:hover,
    .feature-item:hover,
    .step-card:hover,
    .showcase-card:hover .mini-phone,
    .cat-card:hover,
    .review-card:hover,
    .changelog-item:hover,
    .faq-item:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }
    .btn-primary:hover {
        background: var(--color-primary-dark);
    }
    .btn-outline:hover {
        background: var(--color-primary);
        color: #fff;
    }
    .kw-tags a:hover {
        transform: none !important;
    }
    .cta-box { box-shadow: var(--shadow-md); }

    /* ===== 移动端防止横向溢出 ===== */
    .hero-stats,
    .intro-grid,
    .category-grid,
    .hot-books-grid,
    .steps-grid,
    .showcase-grid,
    .reviews-grid,
    .changelog-list,
    .faq-list,
    .kw-tags,
    .cta-box,
    .reviews-summary,
    .footer-grid {
        min-width: 0;
    }
    .intro-grid *,
    .category-grid *,
    .hot-books-grid *,
    .steps-grid *,
    .showcase-grid * {
        min-width: 0;
    }
}

/* ===== 小屏手机 (480px以下) ===== */
@media (max-width: 480px) {
    .hero-title { font-size: 24px; }
    .hero-badge { font-size: 12px; }
    .section-title { font-size: 20px; }
    .intro-card { padding: 20px; }
    .intro-card h3 { font-size: 17px; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cat-card { padding: 18px 14px; }
    .cat-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
    .review-score strong { font-size: 40px; }
    .cta-meta { grid-template-columns: 1fr; }
    .kw-tags a { padding: 6px 12px; font-size: 13px; }
    .hero-media { min-height: 380px; }
    .phone-card { width: 200px; height: 400px; }

    .hot-books-grid { gap: 12px; }
    .book-card { padding: 16px 14px; }
    .book-card h3 { font-size: 15px; line-height: 1.4; }
    .book-tag { font-size: 10px; padding: 2px 8px; }
    .book-desc { font-size: 12px; line-height: 1.7; }
    .book-meta { gap: 4px; margin-bottom: 8px; }
}
