/* ================= 基础 & 涂鸦风格变量 ================= */
@import url('../../../assets/vendor/fonts/pangolin.css');

:root {
    --bg-paper: #f9f8f3;
    --ink-color: #2b2b2b;
    --accent-yellow: #ffd83b;
    --accent-blue: #6bc2ea;
    --accent-pink: #ff7b93;
    --accent-green: #7fd959;
    --font-main: 'Pangolin', 'Comic Sans MS', 'Chalkboard SE', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    /* 涂鸦风边框与阴影参数 */
    --doodle-border: 3px solid var(--ink-color);
    --doodle-shadow: 6px 6px 0px var(--ink-color);
    --doodle-shadow-hover: 10px 10px 0px var(--ink-color);
    --radius-1: 255px 15px 225px 15px/15px 225px 15px 255px;
    --radius-2: 15px 225px 15px 255px/255px 15px 225px 15px;
    --radius-3: 3% 95% 4% 92% / 95% 5% 92% 5%;
}

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

body {
    font-family: var(--font-main);
    color: var(--ink-color);
    background-color: var(--bg-paper);
    /* 网格笔记本背景 */
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, .03) 25%, rgba(0, 0, 0, .03) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .03) 75%, rgba(0, 0, 0, .03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, .03) 25%, rgba(0, 0, 0, .03) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .03) 75%, rgba(0, 0, 0, .03) 76%, transparent 77%, transparent);
    background-size: 40px 40px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--ink-color);
    font-weight: bold;
}

/* ================= 核心涂鸦 UI 组件 ================= */
.doodle-box {
    background: #fff;
    border: var(--doodle-border);
    border-radius: var(--radius-1);
    box-shadow: var(--doodle-shadow);
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 1;
}

.doodle-box:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--doodle-shadow-hover);
}

.doodle-box.alt-radius {
    border-radius: var(--radius-2);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-yellow);
}

.btn-secondary {
    background-color: #fff;
}

.marker-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.marker-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -5px;
    right: -5px;
    height: 12px;
    background-color: var(--accent-pink);
    z-index: -1;
    transform: rotate(-2deg);
    opacity: 0.7;
    border-radius: 10px;
}

/* ================= 导航栏 ================= */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(249, 248, 243, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transform: rotate(-10deg);
}

.logo-icon--sm {
    width: 30px;
    height: 30px;
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 1.1rem;
    position: relative;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: var(--ink-color);
    border-radius: 5px;
    transform: rotate(-2deg);
}

.nav-links a.nav-active {
    color: var(--ink-color);
}

.lang-switch {
    border: 2px solid var(--ink-color);
    padding: 5px 15px;
    border-radius: 20px 5px 20px 5px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--ink-color);
}

/* ================= Hero 区域 ================= */
.hero {
    padding: 80px 5% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.hero p.subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    color: #444;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 信任背书贴纸 */
.trust-badge {
    background: var(--accent-green);
    padding: 15px 25px;
    border: var(--doodle-border);
    border-radius: var(--radius-3);
    transform: rotate(2deg);
    display: inline-flex;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 4px 4px 0px var(--ink-color);
    margin-top: 20px;
}

.trust-badge div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= 产品特性 ================= */
.features {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    transform: rotate(-1deg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    background: #fff;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border: 3px solid var(--ink-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--bg-paper);
    box-shadow: 3px 3px 0px var(--ink-color);
}

/* ================= 下载平台入口 ================= */
.downloads {
    padding: 80px 5%;
    background-color: #fff;
    border-top: var(--doodle-border);
    border-bottom: var(--doodle-border);
    text-align: center;
    position: relative;
}

/* 涂鸦胶带装饰 */
.tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 10;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.platform-card {
    flex: 1 1 180px;
    max-width: 200px;
    padding: 25px 15px;
    background: var(--bg-paper);
    text-align: center;
    text-decoration: none;
    color: var(--ink-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.platform-card:nth-child(even) {
    transform: rotate(2deg);
}

.platform-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.platform-card:hover {
    transform: translateY(-10px) rotate(0deg);
    background: var(--accent-yellow);
}

.platform-icon {
    font-size: 3rem;
}

/* ================= GitHub & Footer ================= */
.github-banner {
    padding: 50px 5%;
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    background: var(--accent-blue);
    transform: rotate(-1deg);
    color: #000;
}

.github-banner p {
    margin: 15px 0 25px;
}

footer {
    padding: 40px 5%;
    background: #2b2b2b;
    color: #f9f8f3;
    text-align: center;
    border-top: 5px solid var(--accent-pink);
}

footer a {
    color: var(--accent-yellow);
    text-decoration: underline;
    text-decoration-style: wavy;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

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

.footer-lang-switch {
    background: #444;
    color: #fff;
    border-color: #777;
}

/* ================= Language Switcher Dropdown ================= */
.lang-switch-wrapper {
    position: relative;
    user-select: none;
}

.lang-switch-wrapper.doodle-box:hover {
    transform: none;
    box-shadow: var(--doodle-shadow);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: var(--doodle-border);
    border-radius: var(--radius-2);
    box-shadow: var(--doodle-shadow);
    min-width: 160px;
    z-index: 300;
    flex-direction: column;
    overflow: hidden;
}

.lang-switch-wrapper.open .lang-dropdown {
    display: flex;
}

.lang-option {
    display: block;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--ink-color);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    transition: background 0.15s;
    white-space: nowrap;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-paper);
}

.lang-option--active {
    background: var(--accent-yellow);
}

.footer-lang-switch .lang-dropdown {
    bottom: calc(100% + 10px);
    top: auto;
    background: #333;
    border-color: #666;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
}

.footer-lang-switch .lang-option {
    color: #f9f8f3;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-lang-switch .lang-option:hover {
    background: #444;
}

.footer-lang-switch .lang-option--active {
    background: var(--accent-yellow);
    color: var(--ink-color);
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

/* ================= 下载页 ================= */
.page-hero {
    padding: 60px 5% 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.page-hero p {
    font-size: 1.2rem;
    color: #555;
}

/* 平台 Tab 导航 */
.download-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 5% 50px;
    max-width: 900px;
    margin: 0 auto;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 1.05rem;
    font-family: var(--font-main);
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    border: var(--doodle-border);
    border-radius: var(--radius-2);
    box-shadow: 4px 4px 0px var(--ink-color);
    transition: all 0.15s ease-in-out;
    color: var(--ink-color);
}

.tab-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--ink-color);
}

.tab-btn.active {
    background: var(--accent-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--ink-color);
}

/* 面板容器 */
.download-panels {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.download-panel {
    display: none;
}

.download-panel.active {
    display: block;
}

/* App 卡片网格 */
.app-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 35px;
}

/* 单个 App 下载卡片 */
.app-card {
    padding: 35px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-card-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 2.5px solid var(--ink-color);
    border-radius: 14px;
    box-shadow: 3px 3px 0px var(--ink-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.app-card-icon svg {
    width: 100%;
    height: 100%;
}

.icon-windows  { background: #e3f2fd; }
.icon-apple    { background: #f5f5f5; }
.icon-android  { background: #e0f8e8; }
.icon-shield   { background: #fff8e1; }
.icon-rocket   { background: #fce4ec; }
.icon-terminal { background: #1a1a2e; }
.icon-verge    { background: #e8eaf6; }

.app-card-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-card-title h2 {
    font-size: 1.6rem;
    line-height: 1.1;
}

.version-badge {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--accent-green);
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    padding: 2px 12px;
    font-weight: bold;
    align-self: flex-start;
}

.app-card-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    font-weight: bold;
    color: #fff;
    background: var(--ink-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.download-btns .btn {
    font-size: 1rem;
    padding: 10px 22px;
}

.app-card-note {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px dashed #ccc;
    padding-top: 12px;
}

/* 注意事项区块 */
.notice-section {
    background: var(--accent-pink);
    border: var(--doodle-border);
    border-radius: var(--radius-1);
    box-shadow: var(--doodle-shadow);
    padding: 35px 40px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.notice-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-list li {
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 8px;
    border-left: 4px solid var(--ink-color);
}

/* ================= 教程页面 ================= */

/* 目录导航 */
.toc {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 30px 40px;
    background: var(--accent-yellow);
    transform: rotate(-0.5deg);
}

.toc-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toc-list li::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: var(--ink-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toc-list a {
    font-size: 1.05rem;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 3px;
}

.toc-list a:hover {
    color: #c0392b;
}

/* 教程主体 */
.tutorial-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5% 40px;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* 各章节 */
.tut-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tut-section-header h2 {
    font-size: 2rem;
}

.tut-step-badge {
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 14px;
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0px var(--ink-color);
    white-space: nowrap;
}

.tut-intro {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 28px;
    line-height: 1.8;
}

/* 准备工作双栏 */
.prepare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prepare-card {
    padding: 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prepare-icon {
    width: 52px;
    height: 52px;
    border: 3px solid var(--ink-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 3px 3px 0px var(--ink-color);
}

/* 提示框 */
.tip-box {
    background: var(--bg-paper);
    border: 2px dashed var(--ink-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-box--warn {
    background: #fff8e1;
    border-color: #f0a500;
}

.tip-label {
    font-weight: bold;
    font-size: 0.85rem;
}

code {
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.06);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 步骤列表 */
.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    background: #fff;
    align-items: flex-start;
}

.step-num {
    width: 42px;
    height: 42px;
    background: var(--ink-color);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-content h3 {
    font-size: 1.25rem;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* 代理模式卡片 */
.mode-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.mode-card {
    flex: 1 1 160px;
    border: 2px solid var(--ink-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0px var(--ink-color);
}

.mode-card strong {
    font-size: 0.95rem;
}

.mode-card span {
    font-size: 0.82rem;
    color: #555;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

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

.faq-item summary::after {
    content: '＋';
    font-size: 1.4rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 2px dashed rgba(0,0,0,0.15);
}

.faq-body {
    padding: 18px 24px;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.faq-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-left: 4px;
}

.faq-body ul li {
    padding-left: 20px;
    position: relative;
}

.faq-body ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ================= 下载页：快速推荐 ================= */
.pick-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 5%;
    text-align: center;
}

.pick-section > h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pick-section > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: left;
}

.pick-card {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    cursor: pointer;
}

.pick-icon {
    font-size: 2rem;
    line-height: 1;
}

.pick-card h3 {
    font-size: 1.1rem;
}

.pick-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.pick-tag {
    display: inline-block;
    background: var(--accent-yellow);
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    align-self: flex-start;
    box-shadow: 2px 2px 0px var(--ink-color);
}

/* ================= 下载页：推荐徽章 ================= */
.recommend-badge {
    background: var(--accent-pink) !important;
}

/* ================= 下载页：功能对比表 ================= */
.compare-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.compare-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.compare-table-wrap {
    overflow-x: auto;
    padding: 0;
    background: #fff;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.compare-table th,
.compare-table td {
    padding: 13px 16px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.compare-table th {
    background: var(--ink-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    white-space: nowrap;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.compare-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.018);
}

.compare-table tr:hover td {
    background: var(--bg-paper);
}

.check-yes  { color: #2e7d32; font-size: 1.15rem; font-weight: bold; }
.check-no   { color: #c62828; font-size: 1.15rem; }
.check-part { color: #f57c00; font-size: 0.85rem; }

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: bold;
    border: 1.5px solid var(--ink-color);
}

.status-active { background: var(--accent-green); }
.status-eol    { background: #eee; color: #888; border-color: #ccc; }
.status-slow   { background: var(--accent-yellow); }

/* ================= 下载页：FAQ ================= */
.dl-faq-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.dl-faq-section > h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* ================= 下载页：CTA ================= */
.dl-cta-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 50px 40px;
    background: var(--accent-blue);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.dl-cta-content {
    flex: 1 1 320px;
}

.dl-cta-content h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.dl-cta-content p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

.dl-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
}

/* ================= 响应式设计 ================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-paper);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: var(--doodle-border);
        box-shadow: 0 5px 0px rgba(0, 0, 0, 1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .trust-badge {
        flex-direction: column;
        gap: 10px;
        transform: rotate(0);
    }

    .footer-content {
        flex-direction: column;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .app-cards-grid {
        grid-template-columns: 1fr;
    }

    .notice-section {
        padding: 25px 20px;
    }

    .toc {
        padding: 24px 22px;
        transform: rotate(0);
    }

    .tut-section-header h2 {
        font-size: 1.6rem;
    }

    .step-item {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

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

    .mode-cards {
        flex-direction: column;
    }

    .faq-item summary {
        font-size: 1rem;
        padding: 16px 18px;
    }

    .faq-body {
        padding: 14px 18px;
    }

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

    .compare-section h2,
    .dl-faq-section > h2 {
        font-size: 1.6rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 10px;
        font-size: 0.82rem;
    }

    .dl-cta-section {
        flex-direction: column;
        text-align: center;
        padding: 32px 22px;
    }

    .dl-cta-btns {
        justify-content: center;
    }

    .dl-cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ================= 博客列表页 ================= */

/* 分类筛选栏 */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 5% 50px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    padding: 8px 22px;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    border: var(--doodle-border);
    border-radius: var(--radius-2);
    box-shadow: 4px 4px 0px var(--ink-color);
    transition: all 0.15s ease-in-out;
    color: var(--ink-color);
}

.filter-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--ink-color);
}

.filter-btn.active {
    background: var(--accent-pink);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--ink-color);
}

/* 整体两栏布局 */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px;
    align-items: start;
}

/* 精选大卡 */
.blog-featured {
    background: #fff;
    padding: 36px 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: linear-gradient(135deg, #fff 80%, var(--accent-blue) 100%);
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-badge {
    font-size: 0.8rem;
    font-weight: bold;
    background: var(--accent-pink);
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    padding: 2px 12px;
    box-shadow: 2px 2px 0px var(--ink-color);
}

.blog-featured-title {
    font-size: 1.9rem;
    line-height: 1.3;
}

.blog-featured-title a {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 4px;
}

.blog-featured-title a:hover {
    color: #c0392b;
}

.blog-featured-excerpt {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
}

.blog-featured-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-read-btn {
    font-size: 0.95rem;
    padding: 10px 22px;
}

/* 普通文章网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #fff;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
}

.blog-card h3 a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.blog-card h3 a:hover {
    color: #c0392b;
}

.blog-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
    flex: 1;
}

.blog-card-meta,
.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

/* 文章标签 */
.blog-tag {
    font-size: 0.78rem;
    font-weight: bold;
    padding: 3px 12px;
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    box-shadow: 2px 2px 0px var(--ink-color);
}

.tag-tutorial { background: var(--accent-yellow); }
.tag-config   { background: var(--accent-blue); }
.tag-news     { background: var(--accent-green); }
.tag-faq      { background: var(--accent-pink); }

.blog-date {
    font-size: 0.82rem;
    color: #888;
}

.blog-read-time {
    font-size: 0.82rem;
    color: #888;
}

.blog-link {
    font-size: 0.92rem;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: wavy;
}

.blog-link:hover {
    color: #c0392b;
}

/* 分页 */
.blog-pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 18px;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    border: var(--doodle-border);
    border-radius: var(--radius-1);
    box-shadow: 4px 4px 0px var(--ink-color);
    transition: all 0.15s ease;
    color: var(--ink-color);
    text-decoration: none;
    display: inline-block;
}

.page-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--ink-color);
}

.page-btn--active {
    background: var(--accent-yellow);
}

.page-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 侧边栏 */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-title {
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--ink-color);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 14px;
    font-family: var(--font-main);
    font-size: 1rem;
    border: 2px solid var(--ink-color);
    border-radius: 8px;
    background: var(--bg-paper);
    outline: none;
    color: var(--ink-color);
}

.search-input:focus {
    box-shadow: 3px 3px 0px var(--ink-color);
}

.search-btn {
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--ink-color);
    color: #fff;
    border: 2px solid var(--ink-color);
    border-radius: 8px;
    transition: opacity 0.15s;
}

.search-btn:hover {
    opacity: 0.8;
}

/* 分类列表 */
.cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.98rem;
}

.cat-list a:hover {
    color: #c0392b;
}

.cat-count {
    background: var(--bg-paper);
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    padding: 1px 10px;
    font-size: 0.78rem;
    font-weight: bold;
}

/* 热门文章列表 */
.popular-list {
    list-style: none;
    counter-reset: pop-counter;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.popular-list li {
    counter-increment: pop-counter;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.popular-list li::before {
    content: counter(pop-counter);
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    background: var(--ink-color);
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.popular-list a {
    text-decoration: underline;
    text-decoration-style: dotted;
    font-weight: normal;
}

.popular-list a:hover {
    color: #c0392b;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    font-size: 0.82rem;
    font-weight: bold;
    padding: 4px 14px;
    border: 2px solid var(--ink-color);
    border-radius: 20px;
    background: var(--bg-paper);
    box-shadow: 2px 2px 0px var(--ink-color);
    transition: all 0.15s ease;
}

.tag-pill:hover {
    background: var(--accent-yellow);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--ink-color);
}

/* 侧边栏 CTA */
.sidebar-cta {
    text-align: center;
    gap: 14px;
}

.sidebar-cta h3 {
    font-size: 1.15rem;
}

.sidebar-cta p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.sidebar-cta .btn {
    font-size: 0.95rem;
    padding: 9px 20px;
}

/* 博客淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 博客响应式 */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-featured {
        padding: 24px 22px;
    }

    .blog-featured-title {
        font-size: 1.5rem;
    }

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

/* ================= 文章详情页 ================= */

.article-main {
    padding-bottom: 80px;
}

.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 5%;
}

.article-back {
    display: inline-block;
    margin: 30px 0 32px;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    background: #fff;
    transition: all 0.15s ease;
}

.article-back:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--doodle-shadow-hover);
}

/* 文章头部（覆盖全局 header { display: flex } 避免与导航栏样式冲突） */
.article-header {
    display: block;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 2px dashed rgba(0,0,0,0.15);
    background: none;
    border-bottom-color: rgba(0,0,0,0.15);
    position: static;
    backdrop-filter: none;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.article-header h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 2px 2px 0px #fff, 3px 3px 0px rgba(0,0,0,0.08);
}

.article-lead {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.85;
    border-left: 4px solid var(--accent-pink);
    padding-left: 16px;
}

/* 正文内容 */
.article-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    line-height: 1.85;
}

.article-content h2 {
    font-size: 1.7rem;
    margin-top: 16px;
    padding-bottom: 8px;
    border-bottom: 2px dashed rgba(0,0,0,0.12);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 4px;
}

.article-content p {
    font-size: 1.02rem;
    color: #333;
}

.article-content ul,
.article-content ol {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-content ul li {
    padding-left: 22px;
    position: relative;
    font-size: 1rem;
    color: #333;
}

.article-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-content ol {
    counter-reset: ol-counter;
}

.article-content ol li {
    counter-increment: ol-counter;
    padding-left: 34px;
    position: relative;
    font-size: 1rem;
    color: #333;
}

.article-content ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    font-size: 0.78rem;
    font-weight: bold;
    color: #fff;
    background: var(--ink-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 2px;
}

/* 代码块 */
.article-code {
    background: #1e1e2e;
    border: var(--doodle-border);
    border-radius: 10px;
    box-shadow: var(--doodle-shadow);
    overflow-x: auto;
}

.article-code pre {
    margin: 0;
    padding: 20px 24px;
}

.article-code code {
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 0.88rem;
    color: #cdd6f4;
    background: none;
    padding: 0;
    line-height: 1.7;
    white-space: pre;
}

/* 提示框（文章内） */
.article-tip {
    background: #fffbe6;
    border: 2px dashed #f0a500;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 文章底部操作 */
.article-footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px dashed rgba(0,0,0,0.12);
}

/* 相关文章 */
.related-posts {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.related-card {
    background: #fff;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-color);
    transition: all 0.15s ease;
}

.related-card h3 {
    font-size: 0.98rem;
    line-height: 1.5;
}

.related-card:hover h3 {
    color: #c0392b;
}

/* 文章页响应式 */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .article-code code {
        font-size: 0.8rem;
    }

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