/* ============================================================
   css/style.css — JMComic2 样式表
   ============================================================ */

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
    background: #fff6ef;
    color: #2d1f14;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 全局分隔线 ===== */
.divider {
    width: 100%;
    height: 1px;
    background: #2d1f14;
    border: none;
    opacity: 0.15;
}

/* ===== 头部导航 ===== */
.header {
    padding: 14px 0;
    background: #fff6ef;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #2d1f14;
    flex-shrink: 0;
}

.brand img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 15px;
    color: #4a3728;
    flex-shrink: 0;
}

.nav-links a {
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #e8833a;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8833a;
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-download:hover {
    background: #d6732e;
}

/* ===== 英雄区 ===== */
.hero {
    padding: 50px 0 60px;
    background: #fff6ef;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #2d1f14;
    margin-bottom: 16px;
}

.hero-content h1 .highlight {
    color: #e8833a;
}

.hero-content p {
    color: #4a3728;
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a3728;
    font-weight: 500;
}

.hero-features .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #e8833a;
    border-radius: 50%;
    margin-right: 4px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e8833a;
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 17px;
    transition: background 0.2s;
    box-shadow: 0 4px 16px rgba(232, 131, 58, 0.35);
}

.btn-hero:hover {
    background: #d6732e;
    box-shadow: 0 6px 24px rgba(232, 131, 58, 0.45);
}

.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== 手机框架 ===== */
.phone-mockup {
    width: 280px;
    height: 540px;
    background: #1a1210;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1210;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wallpaper-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #2d1f14;
    cursor: pointer;
}

.wallpaper-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.wallpaper-slide.active {
    opacity: 1;
}

/* ============================================================
   最新漫画更新版块
   ============================================================ */
.latest-updates {
    padding: 50px 0 60px;
    background: #fff6ef;
}

.latest-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.latest-header-left .label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #e8833a;
    text-transform: uppercase;
}

.latest-header-left h2 {
    font-size: 28px;
    font-weight: 900;
    color: #2d1f14;
    line-height: 1.2;
    margin-top: 2px;
}

.filter-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.filter-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #2d1f14;
    background: #fff;
    border: 2px solid #2d1f14;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 #2d1f14;
    font-family: inherit;
}

.filter-btn:hover {
    background: #e8c9a0;
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 #2d1f14;
}

.filter-btn.active {
    background: #e8c9a0;
    box-shadow: 2px 2px 0 #2d1f14;
}

/* ===== 漫画卡片网格 ===== */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.comic-card {
    background: #fff;
    border: 2px solid #2d1f14;
    border-radius: 4px;
    box-shadow: 3px 3px 0 #2d1f14;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.comic-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 #2d1f14;
}

/* 封面图区域 — 显示图片，自适应 */
.comic-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-bottom: 2px solid #2d1f14;
    background: #e8d5c4;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 章节标签 — 悬浮在图片上方 */
.chapter-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    background: #e8c9a0;
    border: 2px solid #2d1f14;
    border-radius: 2px;
    color: #2d1f14;
    z-index: 3;
}

.chapter-badge.white-text {
    background: #e8833a;
    color: #fff;
}

.chapter-badge.ink-bg {
    background: #2d1f14;
    color: #e8c9a0;
    border-color: #e8c9a0;
}

/* 卡片信息区 */
.comic-info {
    padding: 12px 14px 14px;
}

.comic-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2d1f14;
    line-height: 1.3;
}

.comic-info h3 a {
    transition: color 0.2s;
}

.comic-info h3 a:hover {
    color: #e8833a;
}

.comic-info .tags {
    font-size: 12px;
    color: #6d4c33;
    margin-top: 2px;
}

.comic-info .time {
    font-size: 12px;
    font-weight: 700;
    color: #2d1f14;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comic-info .time i {
    color: #e8833a;
}

/* ===== 特色展示版块 (四站界面) ===== */
.showcase {
    padding: 60px 0 70px;
    background: #fff6ef;
}

.showcase .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.showcase .section-header .label {
    font-size: 13px;
    letter-spacing: 3px;
    color: #999;
    font-weight: 600;
}

.showcase .section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d1f14;
    margin-top: 4px;
}

.showcase .section-header p {
    color: #888;
    font-size: 15px;
    text-align: right;
    flex-shrink: 0;
}

.showcase-slider {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.showcase-slider figure {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-slider figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.showcase-slider .img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #eee;
    overflow: hidden;
}

.showcase-slider .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-slider figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    font-size: 14px;
}

.showcase-slider figcaption span {
    color: #999;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
}

.showcase-slider figcaption b {
    color: #2d1f14;
    font-size: 15px;
    flex: 1;
    margin: 0 6px;
}

.showcase-slider figcaption i {
    color: #ccc;
    font-size: 18px;
    transition: color 0.2s;
}

.showcase-slider figure:hover figcaption i {
    color: #e8833a;
}

/* 移动端滑动 */
@media (max-width: 820px) {
    .showcase-slider {
        overflow-x: auto;
        overflow-y: hidden;
        grid-template-columns: repeat(4, minmax(200px, 70vw));
        gap: 16px;
        padding-right: 17px;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        max-width: 100%;
    }

    .showcase-slider::-webkit-scrollbar {
        display: none;
    }

    .showcase-slider figure {
        scroll-snap-align: start;
        width: 100%;
    }

    .showcase .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .showcase .section-header p {
        text-align: left;
        margin-top: 4px;
    }

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

@media (max-width: 480px) {
    .showcase-slider {
        grid-template-columns: repeat(4, minmax(150px, 72vw));
        gap: 12px;
        padding-right: 12px;
    }

    .showcase-slider figcaption {
        padding: 10px 10px;
        font-size: 13px;
    }

    .showcase-slider figcaption b {
        font-size: 13px;
    }
}

/* ============================================================
   常见问题（居中版）
   ============================================================ */
.faq {
    padding: 70px 0 80px;
    background: #fff6ef;
    position: relative;
}

/* 标题区 — 居中 */
.faq-header {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(232, 131, 58, 0.10);
}

.faq-header-center {
    text-align: center;
    max-width: 600px;
}

/* 装饰横线 + FAQ 标签 */
.faq-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}

.faq-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: #e8833a;
    border-radius: 2px;
    opacity: 0.4;
}

.faq-label {
    font-size: 13px;
    letter-spacing: 4px;
    color: #e8833a;
    font-weight: 600;
    text-transform: uppercase;
}

/* 主标题 */
.faq-header-center h2 {
    font-size: 30px;
    font-weight: 700;
    color: #2d1f14;
    margin: 4px 0 6px;
    line-height: 1.2;
}

/* 副标题 */
.faq-subtitle {
    color: #6d4c33;
    font-size: 15px;
    margin: 0 0 12px 0;
}

/* 底部三个小圆点装饰 */
.faq-dot-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.faq-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #e8833a;
    border-radius: 50%;
    opacity: 0.25;
}

.faq-dot:nth-child(2) {
    opacity: 0.5;
}

.faq-dot:nth-child(3) {
    opacity: 0.25;
}

/* 问题列表 */
.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(232, 131, 58, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    transition: background 0.25s;
    font-weight: 500;
    color: #2d1f14;
    user-select: none;
    border-radius: 14px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: #fdf7f2;
}

.faq-item .faq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #fdf0e8;
    color: #e8833a;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.25s;
}

.faq-item summary:hover .faq-num {
    background: #f5e0d0;
}

.faq-item .faq-question {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #2d1f14;
}

.faq-item .faq-icon {
    font-size: 22px;
    color: #c49a7a;
    transition: transform 0.35s ease;
    font-style: normal;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: #e8833a;
}

.faq-item .faq-answer {
    padding: 0 24px 22px 70px;
    color: #4a3728;
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 2px;
}

.faq-item .faq-answer a {
    color: #e8833a;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-item .faq-answer a:hover {
    color: #d6732e;
    text-decoration: none;
}

.faq-item[open] {
    border-color: rgba(232, 131, 58, 0.15);
    box-shadow: 0 4px 20px rgba(232, 131, 58, 0.06);
}

/* ===== 底部 CTA ===== */
.cta {
    padding: 50px 0;
    background: #2d1f14;
    text-align: center;
}

.cta h2 {
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

.cta p {
    color: #c49a7a;
    font-size: 16px;
    margin: 10px 0 28px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e8833a;
    color: #fff;
    padding: 14px 44px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 17px;
    transition: background 0.2s;
    box-shadow: 0 4px 20px rgba(232, 131, 58, 0.3);
}

.btn-cta:hover {
    background: #d6732e;
}

/* ===== 页脚 ===== */
.footer {
    padding: 30px 0 24px;
    background: #2d1f14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer .brand {
    font-size: 18px;
    color: #fff;
}

.footer .brand img {
    height: 30px;
    width: auto;
    display: block;
}

.footer .tagline {
    color: #8a705a;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #8a705a;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #e8833a;
}

.footer .copy {
    color: #5a4a3a;
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .latest-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-nav {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 50px 0 60px;
    }

    .faq-header {
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .faq-header-center h2 {
        font-size: 24px;
    }

    .faq-line {
        width: 20px;
    }

    .faq-decoration {
        gap: 10px;
    }

    .faq-item summary {
        padding: 14px 16px;
        gap: 10px;
    }

    .faq-item .faq-question {
        font-size: 15px;
    }

    .faq-item .faq-answer {
        padding: 0 16px 18px 56px;
        font-size: 14px;
    }

    .faq-item .faq-num {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .faq-item .faq-icon {
        font-size: 20px;
    }

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

    .latest-header-left h2 {
        font-size: 24px;
    }
}

/* ============================================================
   移动端（≤640px）— 强制 Logo 和导航同行
   ============================================================ */
@media (max-width: 640px) {
    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 2px;
    }

    .header-inner::-webkit-scrollbar {
        display: none;
    }

    .brand {
        flex-shrink: 0;
    }

    .brand img {
        height: 24px;
        width: auto;
        max-width: 100px;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
        font-size: 12px;
        justify-content: flex-start;
    }

    .nav-links a {
        white-space: nowrap;
        padding: 2px 3px;
    }

    .btn-download {
        flex-shrink: 0;
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 14px;
        gap: 4px;
    }

    .btn-download span {
        font-size: 11px;
    }

    /* 其他移动端样式保持不变 */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-features {
        gap: 14px;
        font-size: 13px;
    }

    .btn-hero {
        padding: 12px 28px;
        font-size: 15px;
    }

    .phone-mockup {
        width: 180px;
        height: 360px;
        padding: 8px;
    }

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

    .cta h2 {
        font-size: 22px;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 15px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 4px 12px;
    }

    .comic-info h3 {
        font-size: 14px;
    }

    .comic-info .tags {
        font-size: 11px;
    }
}

/* 极窄屏（≤400px）进一步压缩 */
@media (max-width: 400px) {
    .brand img {
        height: 20px;
        max-width: 80px;
    }

    .nav-links {
        gap: 4px;
        font-size: 10px;
    }

    .nav-links a {
        padding: 2px 2px;
    }

    .btn-download {
        padding: 3px 6px;
        font-size: 10px;
    }

    .btn-download span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .faq-item summary {
        padding: 12px 14px;
    }

    .faq-item .faq-question {
        font-size: 14px;
    }

    .faq-item .faq-answer {
        padding: 0 14px 16px 50px;
        font-size: 13px;
    }

    .faq-item .faq-num {
        min-width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .comic-cover img {
        object-fit: cover;
    }

    .chapter-badge {
        font-size: 10px;
        padding: 1px 8px;
        bottom: 6px;
        left: 6px;
    }

    .comic-info {
        padding: 8px 10px 10px;
    }

    .comic-info h3 {
        font-size: 13px;
    }

    .footer .brand img {
        height: 24px;
    }
}

@media (max-width: 380px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-btn {
        font-size: 11px;
        padding: 3px 10px;
    }

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

    .comic-info h3 {
        font-size: 12px;
    }

    .comic-info .tags {
        font-size: 10px;
    }

    .comic-info .time {
        font-size: 10px;
    }
}