/* ===== 蓝色圆点 渠道代理系统 - 品牌设计系统 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* 品牌色 */
    --primary: #E55A32;
    --primary-light: #F0932B;
    --primary-lighter: #FFBE76;
    --primary-bg: rgba(229, 90, 50, 0.06);
    --primary-bg-hover: rgba(229, 90, 50, 0.10);

    /* 语义色 */
    --success: #4CAF50;
    --success-bg: #F1F8E9;
    --warning: #F0932B;
    --warning-bg: #FFF3E0;
    --danger: #E53935;
    --danger-bg: #FFEBEE;

    /* 文字 */
    --text: #3D2B1F;
    --text-secondary: #8B6545;
    --text-hint: #B89B7A;

    /* 背景与边框 */
    --bg-warm: #FFFAF4;
    --bg-section: #FFF5E6;
    --card: #FFFFFF;
    --border: #F0E0D0;
    --border-light: #F5EDE4;

    /* 圆角 */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(139, 101, 69, 0.06);
    --shadow-md: 0 4px 20px rgba(139, 101, 69, 0.08);
    --shadow-lg: 0 8px 32px rgba(139, 101, 69, 0.12);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--bg-warm);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 页面容器 ===== */
.page {
    padding: 20px 20px 32px;
    position: relative;
}

/* 顶部品牌栏 */
.brand-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 8px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}

/* 页头 */
.page-header {
    text-align: center;
    padding: 16px 0 24px;
}

.page-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}

.page-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-hint);
    font-weight: 400;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #FFFCF9;
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(229, 90, 50, 0.08);
}

.form-input::placeholder {
    color: var(--text-hint);
}

.form-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #FFFCF9;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%238B6545'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    outline: none;
    transition: all 0.25s ease;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 90, 50, 0.08);
}

/* 验证码行 */
.code-row {
    display: flex;
    gap: 10px;
}

.code-row .form-input {
    flex: 1;
}

.code-btn {
    min-width: 120px;
    height: 48px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.code-btn:hover {
    background: var(--primary-bg);
}

.code-btn:disabled {
    border-color: var(--border);
    color: var(--text-hint);
    background: var(--bg-section);
    cursor: not-allowed;
}

/* 性别选择 */
.sex-group {
    display: flex;
    gap: 12px;
}

.sex-option {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    background: #FFFCF9;
    transition: all 0.25s ease;
    color: var(--text-secondary);
}

.sex-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 500;
}

.sex-option .sex-icon {
    font-size: 18px;
}

/* ===== 按钮 ===== */
.btn {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 50px;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #D04A28);
    color: #fff;
    box-shadow: 0 4px 16px rgba(229, 90, 50, 0.25);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(229, 90, 50, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #388E3C);
    color: #fff;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-sm {
    display: inline-block;
    width: auto;
    height: 38px;
    line-height: 38px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 8px;
}

/* ===== 产品选择卡片（市场风格） ===== */
.product-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    padding: 20px 20px 20px 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: var(--radius) 0 0 var(--radius);
    transition: opacity 0.3s ease;
}

.product-card:nth-child(1)::before {
    background: linear-gradient(180deg, #FF9F43, #FFBE76);
}

.product-card:nth-child(2)::before {
    background: linear-gradient(180deg, #E55A32, #F0932B);
}

.product-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 4px 20px rgba(229, 90, 50, 0.12);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.product-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.product-card:nth-child(1) .product-card-icon {
    background: linear-gradient(135deg, #FF9F43, #FFBE76);
}

.product-card:nth-child(2) .product-card-icon {
    background: linear-gradient(135deg, #E55A32, #F0932B);
}

.product-card-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    flex-grow: 1;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(229, 90, 50, 0.08);
    padding: 4px 12px;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-card-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.product-card-features {
    list-style: none;
    padding: 0;
}

.product-card-features li {
    font-size: 13px;
    color: #7A5230;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.product-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-lighter);
}

.product-card .product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 0 var(--radius) 0 var(--radius-sm);
    letter-spacing: 1px;
}

/* 产品亮点标语 */
.product-callout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.product-callout-text {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    line-height: 1.6;
}

.product-callout-highlight {
    font-size: 16px;
    font-weight: 700;
}

/* ===== 套餐列表 ===== */
.plan-list {
    margin-bottom: 20px;
}

.plan-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
}

.plan-item:hover {
    border-color: var(--primary-lighter);
}

.plan-item.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.plan-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s ease;
}

.plan-item.active .plan-radio {
    border-color: var(--primary);
}

.plan-item.active .plan-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.plan-save {
    font-size: 12px;
    color: var(--danger);
    margin-left: 6px;
}

.plan-badge {
    font-size: 11px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

/* ===== 统计卡片 ===== */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Noto Serif SC', serif;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== 列表 ===== */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.list-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.item-desc {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 2px;
}

.item-right {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}

.item-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

/* ===== 绑定码展示 ===== */
.bind-code-display {
    text-align: center;
    padding: 24px 0;
}

.bind-code-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.bind-code-value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 10px;
    color: var(--primary);
    font-family: 'Noto Serif SC', serif;
    padding: 16px 0;
    cursor: pointer;
    user-select: all;
}

.bind-code-timer {
    font-size: 13px;
    color: var(--text-hint);
    margin-top: 8px;
}

/* 引导步骤 */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 42px;
    bottom: -2px;
    width: 2px;
    background: var(--border);
}

.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 5px;
    line-height: 1.5;
}

.step-text strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== 状态标签 ===== */
.tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-trial, .tag-info {
    background: #FFF3E0;
    color: var(--warning);
}

.tag-active, .tag-success {
    background: var(--success-bg);
    color: var(--success);
}

.tag-expired, .tag-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.tag-inactive {
    background: #F5F5F5;
    color: #999;
}

.tag-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.tag-paid, .tag-confirmed {
    background: var(--success-bg);
    color: var(--success);
}

/* ===== 订阅卡片 ===== */
.sub-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.sub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.sub-card.sub-trial::before {
    background: linear-gradient(90deg, var(--warning), var(--primary-lighter));
}

.sub-card.sub-active::before {
    background: linear-gradient(90deg, var(--success), #81C784);
}

.sub-card.sub-expired::before {
    background: var(--border);
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sub-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
}

.sub-expire {
    font-size: 13px;
    color: var(--text-hint);
}

/* ===== 课程进度 ===== */
.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lesson-dot.completed {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.lesson-dot.locked {
    background: var(--border);
}

.lesson-dot.today {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 90, 50, 0.2);
}

/* ===== 设备列表 ===== */
.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.device-item:last-child {
    border-bottom: none;
}

.device-remove {
    font-size: 13px;
    color: var(--danger);
    background: none;
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.device-remove:hover {
    background: var(--danger-bg);
}

/* ===== 结果页 ===== */
.result-page {
    text-align: center;
    padding-top: 80px;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.result-icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.result-icon.fail {
    background: var(--danger-bg);
    color: var(--danger);
}

.result-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
}

/* ===== 代理仪表盘 ===== */
.agent-hero {
    background: linear-gradient(135deg, var(--primary), #C44220);
    color: #fff;
    padding: 32px 24px 28px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: -20px -20px 24px;
    position: relative;
    overflow: hidden;
}

.agent-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.agent-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.agent-hero .agent-greeting {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.agent-hero .agent-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
}

.agent-hero .agent-type {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.agent-hero .commission-block {
    margin-top: 24px;
    text-align: center;
}

.agent-hero .commission-label {
    font-size: 13px;
    opacity: 0.75;
}

.agent-hero .commission-total {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    margin: 4px 0;
}

.agent-hero .commission-sub {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.85;
}

/* 推广码 */
.promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.promo-item:last-child {
    border-bottom: none;
}

.promo-code {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    color: var(--primary);
    letter-spacing: 2px;
}

.promo-used {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 2px;
}

.promo-copy {
    height: 36px;
    padding: 0 16px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-copy:hover {
    background: var(--primary-bg);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(61, 43, 31, 0.88);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    animation: toastIn 0.3s ease;
    backdrop-filter: blur(4px);
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-hint);
}

/* 页面级全屏加载占位 */
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 14px;
}
.page-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #F0C07A;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.page-loading .spinner-text {
    font-size: 13px;
    color: var(--text-hint);
}

.empty {
    text-align: center;
    padding: 24px;
    color: var(--text-hint);
    font-size: 14px;
}

/* ===== 辅助 ===== */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-hint { color: var(--text-hint); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ===== 底部安全区 ===== */
.page-footer {
    padding: 16px 0 24px;
    text-align: center;
}

.page-footer .footer-link {
    font-size: 13px;
    color: var(--text-hint);
    text-decoration: none;
}

.page-footer .footer-link:hover {
    color: var(--primary);
}

/* ===== 分割线 ===== */
.divider-line {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

/* ===== 成功动画 ===== */
@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-icon.success {
    animation: checkmark 0.5s ease 0.2s both;
}

/* ===== 品牌 Hero 区域 ===== */
.brand-hero {
    background: linear-gradient(165deg, #FFF5E6 0%, #FFECD2 40%, #FFE0B5 80%, #FFD4A0 100%);
    margin: -20px -20px 24px;
    padding: 48px 32px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.brand-hero .deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero .deco-1 {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -40px;
    background: linear-gradient(135deg, #FF9F43, #FFBE76);
    opacity: 0.12;
}

.brand-hero .deco-2 {
    width: 120px;
    height: 120px;
    bottom: 20px;
    left: -30px;
    background: linear-gradient(135deg, #F0932B, #FFBE76);
    opacity: 0.10;
}

.brand-hero .deco-3 {
    width: 24px;
    height: 24px;
    top: 40px;
    left: 32px;
    background: #FF9F43;
    opacity: 0.15;
}

.brand-hero .deco-4 {
    width: 16px;
    height: 16px;
    top: 100px;
    right: 48px;
    background: #E55A32;
    opacity: 0.12;
}

.hero-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 8px 28px rgba(229, 90, 50, 0.20);
    position: relative;
    z-index: 2;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-brand {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    color: #7A5230;
    letter-spacing: 4px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* ===== 迷你品牌栏（内页顶部） ===== */
.brand-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 16px;
}

.brand-topbar img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
}

.brand-topbar span {
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
}

/* ===== 底部 Tab Bar ===== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid var(--border-light);
    display: flex;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(139, 101, 69, 0.06);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-item .tab-icon {
    font-size: 22px;
    line-height: 1;
}

.tab-item .tab-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-hint);
}

.tab-item.active .tab-label {
    color: var(--primary);
    font-weight: 600;
}

/* 有 tab bar 时，页面底部留出空间 */
.page-with-tabs {
    padding-bottom: 80px;
}

/* ===== 课程介绍卡片（市场风格） ===== */
.course-intro-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.course-intro-card .course-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.course-intro-card .course-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.course-intro-card .course-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* 三大课程展示列表 */
.course-showcase {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.course-showcase-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    padding: 16px 16px 16px 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.course-showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius) 0 0 var(--radius);
}

.course-showcase-item.course-daily::before {
    background: linear-gradient(180deg, #FF9F43, #FFBE76);
}

.course-showcase-item.course-literature::before {
    background: linear-gradient(180deg, #E55A32, #F0932B);
}

.course-showcase-item.course-knowledge::before {
    background: linear-gradient(180deg, #7A5230, #9B6A3C);
}

.course-showcase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.course-showcase-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.course-daily .course-showcase-icon {
    background: linear-gradient(135deg, #FF9F43, #FFBE76);
}

.course-literature .course-showcase-icon {
    background: linear-gradient(135deg, #E55A32, #F0932B);
}

.course-knowledge .course-showcase-icon {
    background: linear-gradient(135deg, #7A5230, #9B6A3C);
}

.course-showcase-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex-grow: 1;
}

.course-showcase-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.course-daily .course-showcase-badge {
    background: rgba(255, 159, 67, 0.12);
    color: #FF9F43;
}

.course-literature .course-showcase-badge,
.course-knowledge .course-showcase-badge {
    background: rgba(229, 90, 50, 0.08);
    color: var(--primary);
}

.course-showcase-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.course-showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-showcase-features span {
    font-size: 11px;
    color: var(--text-hint);
    background: var(--bg-section);
    padding: 2px 8px;
    border-radius: 6px;
}

/* ===== 书籍卡片（书→课两级导航）===== */
.book-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.book-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.book-cover {
    width: 58px;
    height: 78px;
    border-radius: 6px 8px 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    flex-shrink: 0;
    font-family: 'Noto Serif SC', serif;
    line-height: 1.4;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}
.book-list-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}
.book-list-back:active { opacity: 0.6; }
.book-progress-bar {
    background: #f0e6dc;
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
    margin-top: 6px;
}
.book-progress-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s;
}
