/* ============================================================
   耽漫漫画 · 官网样式
   风格：粉色杂志风 / 耽美文艺
   ============================================================ */

:root {
    --bg: #FFF8FA;
    --bg-warm: #FFEFF4;
    --ink: #4A1930;
    --ink-soft: #9B6B82;
    --ink-faint: #C49AAE;
    --pink: #FF4E8A;
    --pink-soft: #FFB3CC;
    --pink-deep: #E91E63;
    --purple: #B83B9E;
    --card: #FFFFFF;
    --line: #FFD6E4;
    --radius: 20px;
    --shadow: 0 8px 30px rgba(255, 78, 138, 0.1);
    --shadow-lg: 0 20px 60px rgba(255, 78, 138, 0.18);
}

* { 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(--ink);
    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;
}
.container-narrow { max-width: 760px; }

/* ============ 导航 ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all .3s ease;
}
.nav.scrolled {
    background: rgba(255, 248, 250, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding: 10px 0;
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    height: 38px; width: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(255, 78, 138, 0.3);
}
.brand-name {
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-deep), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-menu { display: flex; gap: 36px; }
.nav-menu a {
    font-size: 14px;
    color: var(--ink-soft);
    transition: color .2s;
}
.nav-menu a:hover { color: var(--pink-deep); }
.nav-cta {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(255, 78, 138, 0.35);
    transition: all .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 78, 138, 0.45); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
    padding: 150px 0 80px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 179, 204, 0.35), transparent 50%),
        radial-gradient(circle at 5% 90%, rgba(255, 78, 138, 0.08), transparent 50%);
}
.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--pink-deep);
    margin-bottom: 24px;
    font-weight: 600;
}
.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: 16px;
    color: var(--ink-soft);
    margin-bottom: 36px;
    line-height: 2;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--ink-faint); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all .25s;
}
.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 28px rgba(74, 25, 48, 0.2);
}
.btn-dark:hover { background: var(--pink-deep); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(233, 30, 99, 0.4); }
.btn-line {
    border: 1.5px solid var(--ink);
    color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white {
    background: #fff;
    color: var(--pink-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; }

.hero-visual { position: relative; }
.hero-img-wrap {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform .4s;
}
.hero-img-wrap:hover { transform: rotate(0) scale(1.02); }
.hero-img { width: 100%; object-fit: cover; }
.hero-tag {
    position: absolute;
    background: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
}
.hero-tag-1 { top: 20px; left: -20px; animation: floatY 4s ease-in-out infinite; }
.hero-tag-2 { bottom: 30px; right: -10px; animation: floatY 4s ease-in-out 1.2s infinite; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============ Section 通用 ============ */
section { padding: 100px 0; }
.section-warm { background: var(--bg-warm); }
.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--pink-deep);
    font-weight: 700;
    margin-bottom: 18px;
}
.section-tag.light { color: rgba(255, 255, 255, 0.85); }
.section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 640px;
    margin-bottom: 50px;
}

/* ============ 本期主视觉 ============ */
.featured { background: var(--bg-warm); }
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.featured-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-text h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
}
.featured-text > p {
    color: var(--ink-soft);
    margin-bottom: 28px;
}
.featured-points { list-style: none; }
.featured-points li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-soft);
}
.featured-points li:last-child { border-bottom: 1px solid var(--line); }
.featured-points strong {
    color: var(--ink);
    margin-right: 8px;
    font-weight: 700;
}

/* ============ 漫画频道 ============ */
.story-list { display: flex; flex-direction: column; gap: 50px; }
.story {
    display: grid;
    grid-template-columns: auto 280px 1fr;
    gap: 36px;
    align-items: center;
    padding: 30px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.story:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-num {
    font-size: 56px;
    font-weight: 800;
    color: var(--pink-soft);
    line-height: 1;
    font-style: italic;
}
.story-img {
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
}
.story-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.story:hover .story-img img { transform: scale(1.05); }
.story-genre {
    display: inline-block;
    font-size: 12px;
    color: var(--pink-deep);
    background: rgba(255, 78, 138, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-weight: 600;
}
.story-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.story-body p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.8;
}
.story-note {
    text-align: center;
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 40px;
}

/* ============ 下载 CTA ============ */
.download {
    background: linear-gradient(135deg, var(--pink-deep) 0%, var(--purple) 100%);
    text-align: center;
    color: #fff;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 50%);
}
.download-inner { position: relative; }
.download-title {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 16px;
}
.download-sub {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 36px;
}
.download-note {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 20px;
}

/* ============ FAQ ============ */
.faq { background: var(--bg); }
.faq-list { margin-top: 10px; }
.faq-item {
    background: var(--card);
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
}
.faq-icon {
    font-size: 22px;
    color: var(--pink-deep);
    transition: transform .3s;
    font-weight: 300;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-a p {
    padding: 0 28px 22px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.9;
}

/* ============ 页脚 ============ */
.footer {
    background: #3D1525;
    color: rgba(255, 255, 255, 0.55);
    padding: 36px 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 { padding: 120px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 40px; }
    .hero-visual { order: -1; }
    .featured-grid { grid-template-columns: 1fr; gap: 36px; }
    .story { grid-template-columns: auto 1fr; gap: 20px; }
    .story-img { grid-column: 1 / -1; height: 200px; }
    .story-num { font-size: 40px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px 32px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }
    .nav-menu.open { display: flex; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .section-title, .download-title { font-size: 30px; }
    .featured-text h2 { font-size: 26px; }
}
@media (max-width: 560px) {
    .container, .nav-inner, .hero-inner { padding: 0 20px; }
    .hero-title { font-size: 32px; }
    .story { padding: 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
