/* ============================================================
   EMLOG 登山线路模板 - 主样式表
   Version: 2.5 - Banner 渐变兜底版
   ============================================================ */

/* ============================================================
   1. 全局变量
   ============================================================ */
:root {
    --primary: #2d8a4e;
    --primary-dark: #1e6b3a;
    --primary-light: #4caf50;
    --primary-soft: rgba(45, 138, 78, 0.1);

    --accent: #f39c12;
    --accent-soft: rgba(243, 156, 18, 0.12);
    --danger: #e74c3c;
    --danger-soft: rgba(231, 76, 60, 0.15);

    --bg: #f5f7f5;
    --bg-soft: #eef2ee;
    --bg-input: #f5f8f5;
    --card-bg: #ffffff;

    --text: #1f2d24;
    --text-sub: #5a6b60;
    --text-light: #93a399;
    --text-placeholder: #a9b8ad;

    --border: #e8efe9;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(31, 45, 36, 0.06);
    --shadow: 0 8px 24px rgba(31, 45, 36, 0.08);
    --shadow-lg: 0 20px 48px rgba(31, 45, 36, 0.12);

    --header-h: 64px;
    --container: 1200px;
}

/* ============================================================
   2. Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

/* ============================================================
   3. 顶部导航
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.site-logo .logo-icon { font-size: 24px; line-height: 1; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }

.site-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    transition: all 0.25s;
}

.site-nav a:hover,
.site-nav li.active a {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   4. 主内容容器
   ============================================================ */
.site-main {
    display: block;
    width: 100%;
    min-height: 60vh;
}

/* ============================================================
   5. 首页 Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #1f2d24;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 30, 20, 0.78) 0%, rgba(15, 30, 20, 0.48) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    padding: 0 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(45, 138, 78, 0.35);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 138, 78, 0.45);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* ============================================================
   6. 特色栏
   ============================================================ */
.features {
    max-width: var(--container);
    margin: -60px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.25s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.feature-item h4 { font-size: 15px; color: var(--text); margin: 0 0 4px; }
.feature-item p { font-size: 12px; color: var(--text-light); margin: 0; }

/* ============================================================
   7. 通用 Section
   ============================================================ */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 24px 40px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 4px;
    flex-shrink: 0;
}

.section-desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    padding-left: 16px;
}

/* ============================================================
   8. 线路卡片网格
   ============================================================ */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.route-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.route-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.route-card-link { display: block; color: inherit; }

.route-cover {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    overflow: hidden;
    background: var(--bg-soft);
}

.route-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.route-card:hover .route-cover img { transform: scale(1.06); }

.cover-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 40%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.route-cover .difficulty-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
}

.difficulty-easy     { background: #27ae60; }
.difficulty-beginner { background: #2ecc71; }
.difficulty-medium   { background: #f39c12; }
.difficulty-hard     { background: #e67e22; }
.difficulty-expert   { background: #e74c3c; }

.full-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    height: 24px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cover-bottom {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 3;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.route-body { padding: 20px 20px 22px; }

.route-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
    word-break: break-word;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-sub);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-soft);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 100px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
}

.progress-text strong { color: var(--primary); font-weight: 700; }

.route-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.route-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: var(--danger);
}

.price-symbol { font-size: 14px; }
.price-num { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.price-unit { font-size: 12px; color: var(--text-light); margin-left: 2px; }
.price-free { color: var(--primary); font-weight: 700; font-size: 18px; }

.route-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s;
    white-space: nowrap;
}

.route-card:hover .route-btn { background: var(--primary); color: #fff; }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
    line-height: 1;
}

/* ============================================================
   9. 分页
   ============================================================ */
.pagination-wrap {
    text-align: center;
    margin-top: 40px;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0 3px 6px 3px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}

.pagination-wrap a:hover,
.pagination-wrap .current {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   10. 详情页
   ============================================================ */
.detail-page {
    width: 100%;
    background: var(--bg);
    padding-bottom: 40px;
}

/* ---------- 顶部图片区 ---------- */
.detail-banner {
    width: 100%;
    height: 380px;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
}

.detail-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.detail-banner:hover .detail-banner-img {
    transform: scale(1.03);
}

/* ---------- 无图时的渐变兜底 ---------- */
.detail-banner.no-img {
    background: linear-gradient(135deg, #2d8a4e 0%, #1e6b3a 50%, #0f3d20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.detail-banner.no-img::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.detail-banner.no-img::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner-placeholder {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: bannerFadeIn 0.8s ease;
}

.banner-placeholder-icon {
    display: block;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 14px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.banner-placeholder-text {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 标题卡片 ---------- */
.detail-header-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(31, 45, 36, 0.06);
    margin-bottom: 0;
}

.detail-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 24px 24px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--primary); }
.crumb-sep { opacity: 0.5; }

.detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px;
    line-height: 1.35;
    letter-spacing: -0.3px;
    word-break: break-word;
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-full,
.tag-fee {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.tag-full {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.tag-fee {
    background: rgba(243, 156, 18, 0.15);
    color: #b06e00;
}

.tag-fee.tag-free {
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary);
}

/* ---------- 数据统计条 ---------- */
.detail-stats {
    background: #fff;
    border-top: 1px solid var(--border);
}

.stats-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1 1 25%;
    min-width: 140px;
    padding: 20px 12px;
    text-align: center;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item:last-child { border-right: none; }

.stat-icon { font-size: 18px; line-height: 1; opacity: 0.85; }

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.3px;
    word-break: break-word;
}

.stat-value small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 2px;
}

.stat-label { font-size: 12px; color: var(--text-light); }

/* ---------- 主体两栏布局 ---------- */
.detail-body {
    width: 100%;
    padding: 32px 0 0;
}

.detail-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.detail-main {
    flex: 1 1 640px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- 内容卡片 ---------- */
.content-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.content-card-warn {
    background: #fffbf2;
    border-left: 4px solid var(--accent);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.card-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    font-size: 16px;
    flex-shrink: 0;
}

.content-card-warn .card-icon { background: var(--accent-soft); }

.card-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-sub);
    word-break: break-word;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-block {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

/* ---------- 正文排版 ---------- */
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-sub);
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    text-align: left;
}

.article-content * { max-width: 100%; box-sizing: border-box; }

.article-content img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 16px auto;
    border-radius: 12px;
}

.article-content p { margin: 0 0 16px; line-height: 1.9; }
.article-content p:last-child { margin-bottom: 0; }

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
    color: var(--text);
    font-weight: 700;
    margin: 24px 0 12px;
    line-height: 1.4;
    padding: 0;
    border: none;
    background: none;
}

.article-content h1 { font-size: 22px; }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17px; }
.article-content h4 { font-size: 16px; }
.article-content h5 { font-size: 15px; }

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    word-break: break-all;
}

.article-content a:hover { color: var(--primary-dark); }

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
    list-style: revert;
}

.article-content li { margin-bottom: 6px; line-height: 1.8; }

.article-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: var(--bg-input);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-sub);
}

.article-content blockquote p:last-child { margin-bottom: 0; }

.article-content code {
    background: #f0f4f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: #c7254e;
    word-break: break-all;
}

.article-content pre {
    background: #1f2d24;
    color: #e0e6e1;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
    max-width: 100%;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.article-content pre code { background: none; color: inherit; padding: 0; }

.article-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.article-content th { background: var(--bg-input); font-weight: 600; }

.article-content iframe,
.article-content video {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
}

.article-content iframe { width: 100% !important; min-height: 300px; }

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* ---------- 报名卡片 ---------- */
.signup-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.signup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.signup-head-left { min-width: 0; flex: 1; }

.signup-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.signup-sub {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.signup-sub strong { color: var(--primary); font-weight: 700; }
.signup-sub .remain { color: var(--danger); font-size: 15px; font-weight: 700; }

.signup-stat {
    text-align: center;
    padding: 8px 18px;
    background: #f3f8f3;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.signup-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.signup-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.signup-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius);
}

.signup-progress-bar {
    flex: 1;
    height: 10px;
    background: #e2ebe3;
    border-radius: 100px;
    overflow: hidden;
}

.signup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 100px;
    transition: width 0.6s;
}

.signup-progress-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* ---------- 表单 ---------- */
.signup-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.signup-form .form-group { flex: 1 1 200px; min-width: 0; }
.signup-form .form-group-full { flex: 1 1 100%; margin-bottom: 16px; }

.signup-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.signup-form .required { color: var(--danger); }

.signup-form input,
.signup-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder { color: var(--text-placeholder); }

.signup-form input:focus,
.signup-form textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.signup-form textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.btn-signup {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 20px rgba(45, 138, 78, 0.25);
    margin-top: 8px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signup:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 138, 78, 0.35);
}

.btn-signup:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.form-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin: 12px 0 0;
}

.signup-msg {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

.signup-msg.success {
    background: #e8f7ee;
    color: var(--primary);
    border: 1px solid rgba(45, 138, 78, 0.2);
}

.signup-msg.error {
    background: #fdeceb;
    color: var(--danger);
    border: 1px solid var(--danger-soft);
}

.signup-tip {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
}

.signup-tip p { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--text); }
.signup-tip span { font-size: 13px; color: var(--text-light); }
.signup-tip-error { background: #fdeceb; }

/* ---------- 侧边栏 ---------- */
.detail-side {
    flex: 0 0 320px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.side-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.side-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}

.side-text {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.side-phone {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    word-break: break-all;
}

.recent-list li { margin-bottom: 12px; }
.recent-list li:last-child { margin-bottom: 0; }

.recent-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
    word-break: break-word;
    transition: color 0.2s, padding-left 0.2s;
}

.recent-list a:hover { color: var(--primary); padding-left: 4px; }

.recent-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* ---------- 移动端吸底 CTA（默认隐藏） ---------- */
.mobile-cta { display: none; }

/* ============================================================
   11. 页脚
   ============================================================ */
.site-footer {
    margin-top: 60px;
    padding: 32px 20px;
    background: #1f2d24;
    color: #9eb1a4;
    font-size: 14px;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.site-footer a { color: #cfe0d3; }
.site-footer a:hover { color: #fff; }
.footer-desc { margin: 0 0 6px; line-height: 1.6; }
.copyright { margin: 0; color: #7d8f83; }
.footer-links { line-height: 2; }
.links-title { color: #7d8f83; }
.footer-links a { margin-right: 12px; }

/* ============================================================
   12. 响应式 - 平板（≤ 1024px）
   ============================================================ */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 42px; }

    .detail-container { padding: 0 20px; }

    .detail-side {
        flex: 1 1 100%;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .detail-side .side-card { flex: 1 1 240px; }

    .detail-title { font-size: 28px; }
}

/* ============================================================
   13. 响应式 - 手机（≤ 768px）
   ============================================================ */
@media (max-width: 768px) {
    :root { --header-h: 56px; }
    body { font-size: 14px; }

    /* 导航 */
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav.open { max-height: 480px; }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 16px;
        gap: 2px;
    }

    .site-nav a { padding: 12px 16px; }

    /* 首页 Hero */
    .hero { min-height: 420px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
    .btn-hero { min-width: 120px; height: 44px; font-size: 14px; padding: 0 22px; }

    .features { margin-top: -40px; padding: 0 16px; gap: 10px; }
    .feature-item { padding: 16px 10px; }
    .feature-icon { font-size: 22px; }
    .feature-item h4 { font-size: 13px; }
    .feature-item p { font-size: 11px; }

    .section { padding: 48px 16px 20px; }
    .section-head { margin-bottom: 24px; }
    .section-title { font-size: 22px; }

    .route-grid { grid-template-columns: 1fr; gap: 16px; }
    .route-card { border-radius: var(--radius-md); }
    .route-body { padding: 16px; }
    .route-title { font-size: 16px; min-height: auto; margin-bottom: 10px; }
    .route-meta { gap: 10px; font-size: 12px; margin-bottom: 12px; }
    .price-num { font-size: 20px; }

    /* ---------- 详情页 - 手机 ---------- */
    .detail-page { padding-bottom: 84px; }

    .detail-banner { height: 220px; }

    .banner-placeholder-icon { font-size: 48px; margin-bottom: 8px; }
    .banner-placeholder-text { font-size: 16px; }

    .detail-header-inner { padding: 20px 16px; }
    .breadcrumb { font-size: 12px; margin-bottom: 10px; }
    .detail-title { font-size: 20px; margin-bottom: 14px; line-height: 1.4; }
    .detail-tags { gap: 8px; }
    .tag-full,
    .tag-fee,
    .detail-tags .difficulty-badge {
        height: 24px;
        padding: 0 10px;
        font-size: 12px;
    }

    /* 数据条 2×2 */
    .stats-inner { padding: 0; }
    .stat-item {
        flex: 1 1 50%;
        min-width: 50%;
        padding: 14px 8px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
    .stat-icon { font-size: 15px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 11px; }

    /* 主体 */
    .detail-body { padding: 20px 0 0; }
    .detail-container { padding: 0 12px; gap: 14px; }
    .detail-main { flex: 1 1 100%; gap: 14px; }
    .detail-side { flex: 1 1 100%; max-width: 100%; flex-direction: column; gap: 14px; }

    /* 内容卡片 */
    .content-card { padding: 20px 18px; border-radius: var(--radius); }
    .card-title { font-size: 15px; margin-bottom: 14px; }
    .card-icon { width: 28px; height: 28px; font-size: 14px; }
    .card-text { font-size: 14px; line-height: 1.8; }

    .info-grid { gap: 14px; }
    .info-block { flex: 1 1 100%; }
    .info-value { font-size: 15px; }

    /* 报名卡片 */
    .signup-card { padding: 20px 18px; border-radius: var(--radius); }
    .signup-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    .signup-head-left { width: 100%; }
    .signup-title { font-size: 17px; }
    .signup-stat {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 14px;
    }
    .signup-stat-num { font-size: 20px; display: inline; }
    .signup-stat-label { display: inline; margin: 0; }

    /* 表单单列 */
    .signup-form .form-row { flex-direction: column; gap: 14px; margin-bottom: 14px; }
    .signup-form .form-group { flex: 1 1 100%; }
    .signup-form .form-group-full { margin-bottom: 14px; }
    .signup-form input,
    .signup-form textarea { padding: 12px 14px; font-size: 15px; }
    .btn-signup { height: 50px; font-size: 16px; }

    /* 正文 */
    .article-content { font-size: 15px; line-height: 1.85; }
    .article-content img { margin: 12px auto; border-radius: 8px; }
    .article-content h1 { font-size: 19px; }
    .article-content h2 { font-size: 18px; }
    .article-content h3 { font-size: 16px; }
    .article-content pre { padding: 12px 14px; font-size: 12px; border-radius: 8px; }
    .article-content table { font-size: 13px; }
    .article-content th,
    .article-content td { padding: 8px 10px; }
    .article-content iframe { min-height: 200px; }

    /* 侧边栏 */
    .side-card { padding: 20px 18px; }

    /* 吸底 CTA */
    .mobile-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: #fff;
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        align-items: center;
        gap: 12px;
    }

    .mobile-cta-price {
        font-size: 22px;
        font-weight: 800;
        color: var(--danger);
        flex-shrink: 0;
        line-height: 1;
    }

    .mobile-cta-price span { font-size: 14px; }

    .mobile-cta-btn {
        flex: 1;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: #fff;
        border-radius: 100px;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 6px 16px rgba(45, 138, 78, 0.3);
        text-decoration: none;
    }

    /* 分页 */
    .pagination-wrap a,
    .pagination-wrap span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        margin: 0 2px 6px 2px;
    }

    /* 页脚 */
    .site-footer { margin-top: 40px; }
    .footer-inner { flex-direction: column; }
}

/* ============================================================
   14. 响应式 - 超小屏（≤ 360px）
   ============================================================ */
@media (max-width: 360px) {
    .hero-title { font-size: 22px; }
    .feature-item h4 { font-size: 12px; }
    .route-title { font-size: 15px; }
    .detail-title { font-size: 18px; }
    .stat-value { font-size: 16px; }
    .content-card,
    .signup-card { padding: 16px 14px; }
    .mobile-cta-price { font-size: 18px; }
    .article-content { font-size: 14px; }
    .detail-banner { height: 180px; }
    .banner-placeholder-icon { font-size: 36px; }
    .banner-placeholder-text { font-size: 14px; }
}