:root {
    --primary-color: #e67e22;
    --primary-dark: #c0392b;
    --secondary-color: #f39c12;
    --page-bg: #fefefe;
    --page-bg-mid: #faf7f3;
    --page-bg-warm: #fff8f0;
    --soft-bg: #fffdfb;
    --card-bg: #ffffff;
    --text-color: #2c241c;
    --light-text: #6b6158;
    --placeholder-text: #9a9086;
    --border-color: #efe8e0;
    --border-accent: rgba(230, 160, 90, 0.22);
    --shadow: 0 8px 22px rgba(200, 120, 60, 0.09);
    --shadow-soft: 0 2px 10px rgba(44, 36, 28, 0.05);
    --shadow-card: 0 4px 14px rgba(44, 36, 28, 0.06);
    --shadow-btn: 0 1px 3px rgba(180, 95, 40, 0.14);
    --shadow-btn-hover: 0 2px 6px rgba(200, 110, 50, 0.18);
    --radius: 14px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    background-color: #fcfcfb;
    background-image:
        radial-gradient(120% 55% at 50% -8%, rgba(255, 236, 214, 0.55) 0%, transparent 52%),
        radial-gradient(90% 40% at 100% 30%, rgba(255, 245, 230, 0.35) 0%, transparent 45%),
        radial-gradient(70% 35% at 0% 70%, rgba(250, 240, 232, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--page-bg-mid) 42%, #fffefd 78%, var(--page-bg-warm) 100%);
    background-attachment: fixed;
}

body.overlay-open {
    overflow: hidden;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow-x: hidden;
}

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.page.active {
    display: block;
}

/* 首页 */
.home-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 14px 8px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(230, 150, 80, 0.05);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fff5eb 100%);
    border-radius: 999px;
    border: 1px solid rgba(245, 220, 198, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 1px 3px rgba(230, 126, 34, 0.06);
}

.search-bar i {
    color: #c4b8ab;
    font-size: 14px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--placeholder-text);
}

.home-body {
    padding: 10px 12px 16px;
    margin-top: 2px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(
        180deg,
        rgba(255, 252, 248, 0.95) 0%,
        rgba(255, 255, 255, 0.65) 24%,
        rgba(252, 248, 243, 0.5) 55%,
        rgba(255, 255, 255, 0.85) 100%
    );
    border: 1px solid rgba(240, 228, 216, 0.45);
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-surface {
    background: linear-gradient(165deg, #ffffff 0%, #fffdfa 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(237, 226, 214, 0.95);
    box-shadow: var(--shadow-soft);
    padding: 16px;
    margin-bottom: 12px;
}

.card-elevated {
    background: linear-gradient(160deg, #ffffff 0%, #fffdfb 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 225, 205, 0.65);
    box-shadow: var(--shadow-card);
    margin: 0 12px 12px;
}

.card-surface--flush {
    padding: 0;
    overflow: hidden;
}

.banner {
    position: relative;
    height: 168px;
    overflow: hidden;
    margin-top: 4px;
    padding: 0;
}

.banner-track {
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(35, 22, 12, 0.75), transparent);
}

.banner-text h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 12px;
    opacity: 0.95;
}

.banner-dots {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.dot.active {
    width: 18px;
    border-radius: 6px;
    background: #fff;
}

.quick-entry {
    padding: 18px 14px;
}

.quick-grid {
    display: grid;
    gap: 8px 12px;
}

.quick-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.quick-item {
    text-align: center;
    font-size: 11px;
    color: var(--text-color);
    cursor: pointer;
}

.quick-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f9b772, #e88f38);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-btn);
}

.quick-icon--alt {
    background: linear-gradient(145deg, #f8c26c, #eb9533);
}

.quick-icon--alt2 {
    background: linear-gradient(145deg, #efb063, #df7f1d);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.section-head--inline {
    margin-bottom: 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.course-section .section-head .section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.course-section .section-head .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(243, 156, 18, 0.4), transparent);
}

.section-sub {
    font-size: 12px;
    color: #756860;
}

.section-more {
    font-size: 12px;
    color: #b8966a;
}

.course-section {
    margin-bottom: 10px;
    padding: 12px 4px 4px;
    border-radius: 14px;
    background: rgba(255, 250, 244, 0.55);
    border: 1px solid rgba(245, 232, 218, 0.45);
}

.course-section .section-head {
    padding: 0 8px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.category-btn {
    border: 1px solid #e8d2bc;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    background: #fff;
    color: #5a5048;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn.active {
    background: linear-gradient(135deg, #f5a962, var(--primary-color));
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-btn);
}

.category-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.category-panel.active {
    display: flex;
}

.course-card--row {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.course-thumb {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 14px;
    overflow: hidden;
    background: #f0ebe5;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, var(--primary-dark));
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(160, 50, 40, 0.25);
}

.thumb-tag--soft {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.course-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.course-cat {
    font-size: 11px;
    color: #8a6d4e;
    margin-bottom: 4px;
}

.course-main h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.35;
}

.course-desc {
    font-size: 12px;
    color: var(--light-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 8px;
}

.course-sales {
    font-size: 11px;
    color: var(--light-text);
}

.course-sales i {
    margin-right: 4px;
    opacity: 0.85;
}

.price {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
}

.price--emphasis {
    font-size: 17px;
}

.buy-btn,
.switch-btn {
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.buy-btn {
    align-self: flex-start;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-btn);
}

.buy-btn:hover {
    filter: brightness(1.03);
    box-shadow: var(--shadow-btn-hover);
}

.buy-btn--ghost {
    background: #fffaf6;
    color: #9a4a18;
    border: 1px solid #deb896;
    box-shadow: 0 1px 2px rgba(44, 36, 28, 0.04);
}

.buy-btn--ghost:hover {
    background: #fff3e6;
    border-color: #d4a574;
    color: var(--primary-dark);
}

.guess-like {
    margin-bottom: 8px;
    border: 1px solid rgba(245, 228, 210, 0.75);
    background: linear-gradient(145deg, #ffffff 0%, #fffaf3 55%, #fff5eb 100%);
}

.guess-hint {
    font-size: 12px;
    color: var(--light-text);
    line-height: 1.55;
}

/* 工作台 */
.page-screen-head {
    padding: 18px 16px 12px;
    padding-top: calc(18px + env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.9) 0%, transparent 100%);
    margin: 0 0 4px;
    border-radius: 0 0 16px 16px;
}

.page-screen-head h2 {
    font-size: 22px;
    font-weight: 700;
}

.page-screen-desc {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 4px;
}

.campus-switch {
    display: flex;
    gap: 10px;
    margin: 0 12px 12px;
}

.switch-btn {
    flex: 1;
    padding: 11px;
    border-radius: 12px;
    background: #fffaf5;
    color: var(--primary-dark);
    border: 1px solid #f3d2af;
    font-weight: 600;
    font-size: 14px;
}

.switch-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
}

.modules {
    padding: 0 12px 24px;
}

.module-section {
    margin-bottom: 12px;
}

.module-section .section-title {
    margin-bottom: 14px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}

.module-item {
    text-align: center;
}

.module-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 14px;
    color: #fff;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon.blue,
.module-icon.green,
.module-icon.indigo {
    background: linear-gradient(145deg, #efb063, #df7f1d);
    box-shadow: var(--shadow-btn);
}

.module-icon.orange,
.module-icon.teal,
.module-icon.yellow {
    background: linear-gradient(145deg, #f8c26c, #eb9533);
    box-shadow: var(--shadow-btn);
}

.module-icon.purple,
.module-icon.red {
    background: linear-gradient(145deg, #ef8b4f, #d8612f);
    box-shadow: var(--shadow-btn);
}

.module-name {
    font-size: 11px;
    color: var(--text-color);
    line-height: 1.3;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #f3ab5c, #dc7f1e);
    font-size: 22px;
    flex-shrink: 0;
}

/* 个人中心 */
.profile-page {
    padding-top: env(safe-area-inset-top);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: radial-gradient(100% 45% at 50% 0%, rgba(255, 236, 214, 0.35) 0%, transparent 55%);
}

.profile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 6px;
}

.profile-top-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.profile-top-actions {
    display: flex;
    gap: 10px;
}

.icon-btn-round {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    border-radius: 50%;
    background: #faf6f1;
    color: #5c534c;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(44, 36, 28, 0.06);
    transition: var(--transition);
}

.icon-btn-round:active {
    transform: scale(0.95);
}

.profile-hero {
    padding: 18px 16px;
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar--profile {
    width: 68px;
    height: 68px;
    font-size: 28px;
    background: linear-gradient(145deg, #f9b772, #e67e22);
    box-shadow: var(--shadow-btn-hover);
    border: 3px solid #fff;
}

.profile-hero-text {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1410;
    margin-bottom: 8px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #b35a18;
    background: linear-gradient(180deg, #fff9f0, #ffeedc);
    border: 1px solid #f5d9bc;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(230, 126, 34, 0.08);
}

.profile-badge i {
    font-size: 11px;
    opacity: 0.9;
}

.profile-quick {
    padding: 18px 12px 16px;
}

.profile-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 8px;
}

.profile-quick-item {
    border: none;
    background: transparent;
    padding: 10px 4px 8px;
    min-height: 72px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-color);
    transition: var(--transition);
}

.profile-quick-item:active {
    transform: scale(0.96);
}

.pq-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    box-shadow: var(--shadow-btn);
}

.pq-orange {
    background: linear-gradient(145deg, #ffb347, #e67e22);
}

.pq-blue {
    background: linear-gradient(145deg, #7eb8da, #4a90c8);
}

.pq-coral {
    background: linear-gradient(145deg, #ff8a7a, #e85d4c);
}

.pq-green {
    background: linear-gradient(145deg, #7bcf8e, #3fa654);
}

.profile-menu {
    padding: 0;
    overflow: hidden;
}

.profile-menu-heading {
    margin: 0;
    padding: 12px 16px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #8a7565;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
}

.profile-menu-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f3ebe4;
    transition: background 0.15s ease;
}

.profile-menu-row:last-child,
.profile-menu-row--last {
    border-bottom: none;
}

.profile-menu-row:active {
    background: #fffaf5;
}

.profile-menu-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    color: #a85c28;
    background: linear-gradient(180deg, #fff8f0, #ffeedd);
    border: 1px solid rgba(245, 220, 198, 0.9);
    box-shadow: 0 1px 2px rgba(44, 36, 28, 0.04);
}

.profile-menu-label {
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.profile-menu-extra {
    font-size: 12px;
    color: var(--light-text);
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-menu-chevron {
    font-size: 11px;
    color: #cfc4ba;
    flex-shrink: 0;
    margin-left: 4px;
}

/* 浮层 */
.overlay-page {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    background: linear-gradient(175deg, #ffffff 0%, #faf6f1 45%, #fff9f2 100%);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.overlay-page.active {
    transform: translateX(0);
}

#richtextPage .rich-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top));
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
}

.overlay-header h3 {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-right: 34px;
}

.back-btn {
    border: none;
    background: #fff1df;
    color: var(--primary-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.rich-content {
    margin: 12px;
    padding: 18px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.rich-content h4 {
    margin-bottom: 10px;
    font-size: 17px;
}

.rich-content p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.65;
}

.rich-content ul {
    padding-left: 18px;
}

.rich-content li {
    margin-bottom: 8px;
    color: var(--light-text);
    font-size: 14px;
}

/* 课程详情 */
.detail-overlay {
    overflow: hidden;
    min-height: 0;
}

.detail-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.product-hero {
    margin-top: 8px;
}

.product-hero img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-head {
    margin-top: 12px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-dark);
    font-weight: 700;
}

.product-price small {
    font-size: 15px;
    margin-right: 2px;
}

.product-price em {
    font-size: 28px;
    font-style: normal;
    line-height: 1;
}

.product-price--placeholder small {
    display: none;
}

.product-price--placeholder em {
    font-size: 17px;
    font-weight: 600;
    color: #756860;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tag {
    background: #fff3e8;
    color: var(--primary-dark);
    border: 1px solid #f2cfab;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
}

.product-tag--outline {
    background: #fff;
    color: #a87d52;
}

.product-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.product-sales {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.product-lead {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.65;
}

.detail-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 0;
    padding: 5px;
    background: #f5f0ea;
    border-radius: 12px;
    border: 1px solid #efe5dc;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

.detail-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 14px;
    color: #5a5048;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.detail-tab.active {
    color: var(--primary-dark);
    font-weight: 700;
    background: #fff;
    box-shadow: 0 1px 4px rgba(44, 36, 28, 0.07);
}

.detail-panel {
    display: none;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 14px 16px;
}

.detail-panel.active {
    display: block;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.panel-text {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 14px;
    line-height: 1.65;
}

.product-specs {
    border-top: 1px dashed #e8ddd4;
    padding-top: 4px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f3ebe4;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item span {
    color: var(--light-text);
    font-size: 13px;
    flex-shrink: 0;
}

.spec-item strong {
    color: #3d3228;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.syllabus-list {
    list-style: none;
}

.syllabus-list li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3ebe4;
    align-items: flex-start;
}

.syllabus-list li:last-child {
    border-bottom: none;
}

.syll-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    width: 28px;
    flex-shrink: 0;
}

.syllabus-list strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.syll-meta {
    font-size: 12px;
    color: var(--light-text);
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.review-score {
    text-align: center;
}

.review-score strong {
    display: block;
    font-size: 28px;
    color: var(--primary-dark);
    line-height: 1;
}

.stars {
    color: #f39c12;
    font-size: 12px;
    letter-spacing: 2px;
}

.review-count {
    font-size: 12px;
    color: var(--light-text);
    flex: 1;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.review-tags span {
    padding: 5px 10px;
    font-size: 11px;
    background: #fff5eb;
    color: #8b7355;
    border-radius: 999px;
    border: 1px solid #f0e0d0;
}

.review-list {
    list-style: none;
}

.review-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3ebe4;
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.55;
}

.review-list li:last-child {
    border-bottom: none;
}

.review-item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--light-text);
}

.review-name {
    font-weight: 600;
    color: #6b6158;
}

.product-bottom-bar {
    flex-shrink: 0;
    width: 100%;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: stretch;
    gap: 12px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -6px 24px rgba(44, 36, 28, 0.06);
}

.bar-side-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    gap: 2px;
    border: none;
    background: transparent;
    color: #7a6f66;
    font-size: 10px;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
}

.icon-action i {
    font-size: 20px;
    color: #5c534c;
}

.icon-action.is-active {
    color: var(--primary-color);
}

.icon-action.is-active i {
    color: var(--primary-color);
}

.detail-join-btn {
    flex: 1;
    align-self: stretch;
    min-height: 46px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    padding: 0 20px;
    background: linear-gradient(135deg, #ff9f43, var(--primary-color));
    color: #fff;
    border: none;
    box-shadow: var(--shadow-btn-hover);
}

.detail-join-btn:active {
    opacity: 0.94;
    transform: scale(0.99);
}

/* 底栏 */
.footer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: 8px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(44, 36, 28, 0.06);
    z-index: 99;
}

.footer-item {
    color: #a89888;
    font-size: 10px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    flex: 1;
}

.footer-item i {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

.footer-item.active {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 360px) {
    .quick-grid-four {
        gap: 4px;
    }

    .quick-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .module-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
