/* ============================================================
   JK漫画 · 官网样式
   风格：天蓝薰衣草 / 清新阅读
   ============================================================ */

:root {
    --bg: #F4F7FE;
    --bg-soft: #E6ECFB;
    --bg-card: #FFFFFF;
    --line: #D4DEF7;
    --text: #1A1F3D;
    --text-soft: #5C6590;
    --text-faint: #9AA3C7;
    --primary: #6366F1;
    --primary-bright: #818CF8;
    --primary-deep: #4338CA;
    --accent: #A855F7;
    --radius: 18px;
    --shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
    --shadow-lg: 0 24px 60px rgba(99, 102, 241, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ 导航 ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: all .3s ease;
}
.nav.scrolled {
    background: rgba(244, 247, 254, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.1);
    padding: 10px 0;
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo {
    height: 40px; width: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.nav-cta {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
    transition: all .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99, 102, 241, 0.45); }

/* ============ Hero ============ */
.hero {
    padding: 130px 0 60px;
    background:
        radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.25), transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(168, 85, 247, 0.08), transparent 50%);
    text-align: center;
}
.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--primary-deep);
    margin-bottom: 24px;
    font-weight: 600;
}
.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.9;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.hero-tags span {
    font-size: 13px;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary-deep);
    transition: all .2s;
}
.hero-tags span:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hero-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hero-note-inline { font-size: 13px; color: var(--text-faint); }
.hero-meta { font-size: 13px; color: var(--text-faint); margin-bottom: 50px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all .25s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5); }
.btn-white {
    background: #fff;
    color: var(--primary-deep);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18); }
.btn-lg { padding: 18px 44px; font-size: 17px; }

/* 统计 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 50px;
}
.stat .num, .stat .unit {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-deep);
}
.stat p { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* 手机截图 */
.hero-phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}
.phone {
    width: 200px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform .4s;
}
.phone-1 { transform: rotate(-6deg) translateY(10px); }
.phone-2 { transform: scale(1.08); z-index: 2; }
.phone-3 { transform: rotate(6deg) translateY(10px); }
.hero-phones:hover .phone-1 { transform: rotate(-3deg) translateY(0); }
.hero-phones:hover .phone-3 { transform: rotate(3deg) translateY(0); }

/* ============ Section 通用 ============ */
section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-tag {
    display: block;
    text-align: center;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--primary-deep);
    font-weight: 700;
    margin-bottom: 14px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
}
.section-sub {
    text-align: center;
    font-size: 15px;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ============ 功能卡片 ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    background: var(--bg-card);
    padding: 32px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ============ 热门页面 ============ */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.anime-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s;
}
.anime-card:hover { transform: translateY(-6px); }
.anime-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.anime-card h4 {
    font-size: 17px;
    padding: 16px 20px 4px;
}
.anime-card p {
    font-size: 13px;
    color: var(--text-soft);
    padding: 0 20px 18px;
}

/* ============ 下载 CTA ============ */
.download {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--accent) 100%);
    text-align: center;
    color: #fff;
    padding: 100px 0;
}
.download h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
}
.download p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.download-meta {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 18px;
}

/* ============ 页脚 ============ */
.footer {
    background: #1A1F3D;
    color: rgba(255, 255, 255, 0.55);
    padding: 32px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-logo { height: 32px; width: 32px; border-radius: 8px; }
.footer-copy { font-size: 13px; }

/* ============ 滚动渐入 ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .hero-title { font-size: 36px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .anime-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .phone { width: 150px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
    .hero-title { font-size: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .phone { width: 120px; }
    .download h2 { font-size: 26px; }
    .section-title { font-size: 28px; }
}
