﻿/* ============================================================
   Ļ�� �� Entracte �� ȫ����ʽ
   ��ɫ����Ƥֽ�װ� + ��̿�� + ��ʽ�ƺ�
   ���壺Cormorant Garamond�����⣩+ Noto Serif SC�����ģ�+ DM Mono�����֣�
   ============================================================ */

:root {
    --cream: #F4EFE6;
    --cream-2: #EDE5D8;
    --cream-3: #E4DAC9;
    --parchment: #D9CEBC;
    --white: #FDFAF5;
    --charcoal: #1A1A1A;
    --charcoal-2: #333333;
    --charcoal-3: #555555;
    --charcoal-4: #888888;
    --rouge: #8C1C13;
    --rouge-2: #A52520;
    --rouge-muted: #B87068;
    --gold: #7A6545;
    --gold-2: #A08B6A;
    --divider: #D5C9B5;
    --divider-2: #E8E0D2;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Noto Serif SC', 'STSong', serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --tab-h: 68px;
    --status-h: 44px;
    --phone-w: 402px;
    --phone-h: 874px;
    --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-hero: 0 8px 32px rgba(0,0,0,0.18);
}

/* ���� Reset ������������������������������������������������������������������������������������������������������ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: #BDB3A6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* ���� Phone shell �������������������������������������������������������������������������������������������� */
.phone {
    width: var(--phone-w);
    height: var(--phone-h);
    background: var(--cream);
    border-radius: 52px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.1), 0 20px 60px rgba(0,0,0,0.3), 0 60px 100px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
    body {
        background: var(--cream);
        align-items: flex-start;
    }

    .phone {
        border-radius: 0;
        box-shadow: none;
        width: 100vw;
        height: 100dvh;
    }
}

/* ���� Status bar ���������������������������������������������������������������������������������������������� */
.status-bar {
    height: var(--status-h);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.03em;
    color: var(--charcoal);
}

.status-right {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 12px;
}

/* ���� Screen container ���������������������������������������������������������������������������������� */
.screens {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--cream);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    scrollbar-width: none;
}

    .screen::-webkit-scrollbar {
        display: none;
    }

    .screen.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

/* ���� Tab bar ���������������������������������������������������������������������������������������������������� */
.tab-bar {
    height: var(--tab-h);
    background: var(--white);
    border-top: 1px solid var(--divider);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
    padding: 0 4px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.15s;
    min-width: 56px;
}

    .tab:active {
        background: var(--cream-2);
    }

.tab-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tab-icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--charcoal-4);
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke 0.15s;
    }

.tab-label {
    font-size: 10px;
    color: var(--charcoal-4);
    letter-spacing: 0.06em;
    font-weight: 300;
    transition: color 0.15s;
    white-space: nowrap;
}

.tab.active .tab-icon svg {
    stroke: var(--rouge);
}

.tab.active .tab-label {
    color: var(--rouge);
    font-weight: 400;
}

.tab.active {
    background: rgba(140,28,19,0.05);
}

/* ============================================================
   ͨ�����
   ============================================================ */

/* �������� */
.section-head {
    padding: 20px 22px 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

    .section-head h2 {
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 400;
        color: var(--charcoal);
        letter-spacing: 0.06em;
    }

    .section-head a {
        font-size: 11.5px;
        color: var(--rouge);
        cursor: pointer;
        letter-spacing: 0.04em;
        font-weight: 300;
        text-decoration: none;
    }

/* ��Ƭ���� */
.card {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .card + .card {
        margin-top: 10px;
    }

/* ��Ƭͷ�� */
.card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--divider-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-head-left h3 {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.card-head-left span {
    font-family: var(--font-display);
    font-size: 11px;
    font-style: italic;
    color: var(--charcoal-4);
    font-weight: 300;
}

/* �۵���ͷ */
.toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--divider);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.15s;
    flex-shrink: 0;
}

    .toggle-btn svg {
        width: 12px;
        height: 12px;
        stroke: var(--charcoal-3);
        stroke-width: 2;
        fill: none;
        transition: transform 0.2s;
    }

    .toggle-btn.open svg {
        transform: rotate(180deg);
    }

    .toggle-btn:hover {
        background: var(--cream-2);
    }

/* �۵����� */
.collapsible {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 1;
}

    .collapsible.collapsed {
        max-height: 0 !important;
        opacity: 0;
    }

/* ��ǩ���� */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.tag-rouge {
    background: var(--rouge);
    color: var(--cream);
}

.tag-outline {
    border: 1px solid var(--divider);
    color: var(--charcoal-3);
    background: transparent;
}

.tag-done {
    background: rgba(140,28,19,0.08);
    color: var(--rouge);
}

.tag-progress {
    background: rgba(122,101,69,0.12);
    color: var(--gold);
}

.tag-todo {
    background: var(--cream-2);
    color: var(--charcoal-4);
}

/* ������ */
.prog-bar {
    height: 3px;
    background: var(--divider);
    border-radius: 2px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: var(--rouge);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ��ť */
.btn-primary {
    background: var(--charcoal);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-md);
    padding: 15px 24px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.08em;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: opacity 0.15s;
}

    .btn-primary:active {
        opacity: 0.8;
    }

.btn-rouge {
    background: var(--rouge);
    color: var(--cream);
    border: none;
    border-radius: 20px;
    padding: 9px 20px;
    font-size: 12px;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.06em;
    font-weight: 300;
    transition: opacity 0.15s;
}

    .btn-rouge:active {
        opacity: 0.8;
    }

/* ���ÿ� */
.quote-block {
    border-left: 2px solid var(--rouge-muted);
    padding: 10px 14px;
    background: var(--cream-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    line-height: 1.75;
    color: var(--charcoal-3);
    font-weight: 300;
}

/* �ָ��� */
.row-divider {
    border: none;
    border-top: 1px solid var(--divider-2);
    margin: 0;
}

/* ============================================================
   ��ҳ
   ============================================================ */

.home-sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--cream);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .home-sticky.scrolled {
        border-color: var(--divider);
        box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    }

.home-topbar {
    padding: 18px 22px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 0.14em;
    font-style: italic;
}

    .wordmark em {
        color: var(--rouge);
        font-style: italic;
    }

.user-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--cream);
    font-style: italic;
    cursor: pointer;
}

.search-wrap {
    padding: 0 22px 14px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--cream-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    gap: 8px;
}

    .search-box svg {
        width: 15px;
        height: 15px;
        stroke: var(--charcoal-4);
        stroke-width: 1.8;
        fill: none;
        flex-shrink: 0;
    }

    .search-box input {
        border: none;
        background: transparent;
        font-family: var(--font-body);
        font-size: 13px;
        color: var(--charcoal);
        flex: 1;
        outline: none;
        font-weight: 300;
    }

        .search-box input::placeholder {
            color: var(--charcoal-4);
        }

/* ��ѡ banner */
.featured {
    margin: 4px 22px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--charcoal);
    height: 196px;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s;
}

    .featured:active {
        transform: scale(0.99);
    }

.featured-texture {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( -55deg, transparent, transparent 3px, rgba(140,28,19,0.05) 3px, rgba(140,28,19,0.05) 4px );
}

.featured-ring {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(140,28,19,0.22);
    border-radius: 50%;
}

    .featured-ring::after {
        content: '';
        position: absolute;
        inset: 22px;
        border: 1px solid rgba(140,28,19,0.14);
        border-radius: 50%;
    }

.featured-inner {
    position: relative;
    z-index: 2;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-top .tag {
    margin-bottom: 10px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.04em;
    line-height: 1.15;
    font-style: italic;
}

.featured-zh {
    font-size: 13px;
    color: rgba(244,239,230,0.6);
    margin-top: 5px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.featured-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-meta {
    font-size: 11px;
    color: rgba(244,239,230,0.45);
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}

/* ɸѡ */
.filter-row {
    display: flex;
    gap: 7px;
    padding: 16px 22px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .filter-row::-webkit-scrollbar {
        display: none;
    }

.filter-chip {
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--divider);
    background: transparent;
    color: var(--charcoal-3);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.04em;
    transition: all 0.18s;
    flex-shrink: 0;
}

    .filter-chip.on {
        background: var(--charcoal);
        color: var(--cream);
        border-color: var(--charcoal);
    }

/* ��Ŀ���� */
.drama-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 22px;
}

.drama-card {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .drama-card:active {
        transform: scale(0.97);
    }

.drama-thumb {
    height: 106px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.drama-thumb-letter {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.2;
    padding: 0 8px;
}

.drama-thumb-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.drama-body {
    padding: 10px 12px 12px;
}

.drama-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.drama-name-fr {
    font-family: var(--font-display);
    font-size: 10px;
    font-style: italic;
    color: var(--charcoal-4);
    font-weight: 300;
    margin-bottom: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drama-prog {
    display: flex;
    align-items: center;
    gap: 7px;
}

.drama-pct {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--charcoal-4);
    flex-shrink: 0;
}

/* ============================================================
   ѧϰҳ
   ============================================================ */

.learn-hero {
    height: 252px;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.learn-hero-texture {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( -48deg, transparent, transparent 4px, rgba(140,28,19,0.06) 4px, rgba(140,28,19,0.06) 5px );
}

.learn-hero-ring {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(140,28,19,0.18);
    border-radius: 50%;
}

    .learn-hero-ring::after {
        content: '';
        position: absolute;
        inset: 30px;
        border: 1px solid rgba(140,28,19,0.1);
        border-radius: 50%;
    }

.learn-hero-inner {
    position: relative;
    z-index: 2;
    padding: 20px 22px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(244,239,230,0.1);
    border: 1px solid rgba(244,239,230,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

    .back-btn:hover {
        background: rgba(244,239,230,0.18);
    }

    .back-btn svg {
        width: 14px;
        height: 14px;
        stroke: var(--cream);
        stroke-width: 2;
        fill: none;
    }

.hero-tag {
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.04em;
    line-height: 1.12;
    font-style: italic;
}

.hero-zh {
    font-size: 14px;
    color: rgba(244,239,230,0.55);
    margin-top: 6px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* ���Ȼ� */
.ring-wrap {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 68px;
    height: 68px;
}

    .ring-wrap svg {
        transform: rotate(-90deg);
    }

.ring-track {
    fill: none;
    stroke: rgba(244,239,230,0.1);
    stroke-width: 3;
}

.ring-prog {
    fill: none;
    stroke: var(--rouge);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 176;
    stroke-dashoffset: 162;
    transition: stroke-dashoffset 0.6s ease;
}

.ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cream);
}

/* ѧϰ������ */
.learn-content {
    padding: 0 22px;
}

.learn-section {
    margin-top: 14px;
}

/* ��Ա */
.cast-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 18px;
}

    .cast-row + .cast-row {
        border-top: 1px solid var(--divider-2);
    }

.cast-ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--cream);
    font-style: italic;
    flex-shrink: 0;
}

.cast-info {
    flex: 1;
}

.cast-role {
    font-size: 13px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.cast-actor {
    font-size: 11px;
    color: var(--rouge);
    font-style: italic;
    font-family: var(--font-display);
    font-weight: 300;
    margin-bottom: 4px;
}

.cast-desc {
    font-size: 11.5px;
    color: var(--charcoal-3);
    line-height: 1.6;
    font-weight: 300;
}

/* ��ʿγ� */
.lesson-row {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    cursor: pointer;
    transition: background 0.12s;
}

    .lesson-row + .lesson-row {
        border-top: 1px solid var(--divider-2);
    }

    .lesson-row:active {
        background: var(--cream-2);
    }

.lesson-left {
    flex: 1;
}

.lesson-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--charcoal-4);
    margin-bottom: 3px;
    letter-spacing: 0.08em;
}

.lesson-fr {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-style: italic;
    color: var(--charcoal);
    font-weight: 400;
    margin-bottom: 2px;
}

.lesson-zh {
    font-size: 11.5px;
    color: var(--charcoal-4);
    font-weight: 300;
}

.lesson-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    margin-left: 12px;
    flex-shrink: 0;
}

.diff-dots {
    display: flex;
    gap: 3px;
}

.diff-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--divider);
}

    .diff-dot.on {
        background: var(--rouge);
    }

/* �﷨ģ�� */
.grammar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
}

.grammar-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--divider);
    font-size: 12px;
    color: var(--charcoal-3);
    cursor: pointer;
    background: var(--cream);
    transition: all 0.15s;
    font-weight: 300;
    letter-spacing: 0.02em;
}

    .grammar-chip.on {
        border-color: var(--rouge);
        background: rgba(140,28,19,0.07);
        color: var(--rouge);
    }

.grammar-detail {
    padding: 0 18px 16px;
}

.grammar-lyric {
    padding: 11px 14px;
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--rouge-muted);
    margin-bottom: 10px;
}

.grammar-lyric-fr {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-style: italic;
    color: var(--charcoal);
    font-weight: 400;
    margin-bottom: 3px;
}

.grammar-lyric-zh {
    font-size: 11.5px;
    color: var(--charcoal-3);
    font-weight: 300;
    margin-bottom: 4px;
}

.grammar-lyric-note {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.grammar-explain {
    font-size: 12px;
    line-height: 1.85;
    color: var(--charcoal-3);
    font-weight: 300;
}

.grammar-key {
    color: var(--charcoal);
    font-weight: 400;
}

/* ����Ĺ��� */
.story-tabs {
    display: flex;
    border-bottom: 1px solid var(--divider-2);
}

.stab {
    padding: 11px 18px;
    font-size: 12px;
    cursor: pointer;
    color: var(--charcoal-4);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 300;
    transition: all 0.18s;
    white-space: nowrap;
}

    .stab.on {
        color: var(--charcoal);
        border-bottom-color: var(--rouge);
        font-weight: 400;
    }

.story-panel {
    padding: 16px 18px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--charcoal-3);
    font-weight: 300;
    display: none;
}

    .story-panel.on {
        display: block;
    }

    .story-panel h4 {
        font-size: 12px;
        font-weight: 400;
        color: var(--rouge);
        margin-bottom: 5px;
        margin-top: 14px;
        letter-spacing: 0.04em;
    }

        .story-panel h4:first-child {
            margin-top: 0;
        }

    .story-panel .excerpt {
        font-family: var(--font-display);
        font-style: italic;
        font-size: 13px;
        color: var(--charcoal-4);
        line-height: 1.8;
    }

/* ��̸ */
.interview-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--divider-2);
    display: flex;
    gap: 13px;
    align-items: center;
}

.interview-ava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--cream);
    font-style: italic;
    flex-shrink: 0;
}

.interview-name {
    font-size: 15px;
    font-weight: 400;
    color: var(--charcoal);
}

.interview-role {
    font-size: 11px;
    color: var(--rouge);
    font-style: italic;
    font-family: var(--font-display);
    margin-top: 2px;
}

.qa-list {
    padding: 14px 18px;
}

.qa {
    margin-bottom: 13px;
}

    .qa:last-child {
        margin-bottom: 0;
    }

.qa-q {
    display: flex;
    gap: 7px;
    margin-bottom: 5px;
}

.qa-q-mark {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--rouge);
    font-weight: 400;
    flex-shrink: 0;
    line-height: 1.6;
}

.qa-q-text {
    font-size: 12px;
    color: var(--charcoal-3);
    font-weight: 300;
    line-height: 1.6;
}

.qa-a {
    display: flex;
    gap: 7px;
}

.qa-a-mark {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gold);
    font-weight: 400;
    flex-shrink: 0;
    line-height: 1.7;
}

.qa-a-text {
    font-size: 12.5px;
    color: var(--charcoal-2);
    font-weight: 300;
    line-height: 1.75;
}

/* ============================================================
   ��ϰҳ
   ============================================================ */

.practice-header {
    padding: 20px 22px 0;
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--divider-2);
    padding-bottom: 0;
}

.practice-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 0.06em;
    font-style: italic;
    margin-bottom: 3px;
}

.practice-sub {
    font-size: 11.5px;
    color: var(--charcoal-4);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.practice-tabs {
    display: flex;
}

.ptab {
    padding: 10px 0;
    margin-right: 22px;
    font-size: 12.5px;
    color: var(--charcoal-4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 300;
    letter-spacing: 0.04em;
    transition: all 0.18s;
    white-space: nowrap;
}

    .ptab.on {
        color: var(--charcoal);
        border-bottom-color: var(--rouge);
        font-weight: 400;
    }

.practice-body {
    padding: 16px 22px;
    display: none;
}

    .practice-body.on {
        display: block;
    }

/* ���⿨ */
.quiz-card {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 12px;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.quiz-type {
    font-size: 11.5px;
    color: var(--charcoal-4);
    font-weight: 300;
    letter-spacing: 0.04em;
}

.quiz-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--charcoal-4);
}

.quiz-prog {
    margin-bottom: 16px;
}

.quiz-ctx {
    padding: 10px 13px;
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--rouge-muted);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12.5px;
    color: var(--charcoal-3);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 13px;
}

.quiz-q {
    font-size: 14.5px;
    color: var(--charcoal);
    line-height: 1.75;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.quiz-blank {
    display: inline-block;
    min-width: 55px;
    border-bottom: 2px solid var(--rouge);
    text-align: center;
    color: var(--rouge);
    font-style: italic;
    font-family: var(--font-display);
    vertical-align: bottom;
    padding: 0 4px;
}

.quiz-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quiz-opt {
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    text-align: center;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--cream);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--charcoal);
    user-select: none;
}

    .quiz-opt:hover {
        border-color: var(--charcoal-3);
    }

    .quiz-opt.correct {
        background: rgba(140,28,19,0.07);
        border-color: var(--rouge);
        color: var(--rouge);
    }

    .quiz-opt.wrong {
        background: var(--cream-2);
        border-color: var(--divider);
        color: var(--charcoal-4);
        text-decoration: line-through;
        pointer-events: none;
    }

/* �ʻ��б� */
.vocab-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: var(--cream-2);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.vocab-word {
    font-family: var(--font-display);
    font-size: 16px;
    font-style: italic;
    color: var(--charcoal);
    font-weight: 400;
}

.vocab-def {
    font-size: 11px;
    color: var(--charcoal-4);
    margin-top: 2px;
    font-weight: 300;
}

.vocab-heart {
    font-size: 17px;
    cursor: pointer;
    color: var(--divider);
    transition: color 0.15s;
}

    .vocab-heart.liked {
        color: var(--rouge);
    }

/* AI �Ի� */
.ai-card-head {
    padding: 13px 18px;
    border-bottom: 1px solid var(--divider-2);
    display: flex;
    align-items: center;
    gap: 11px;
}

.ai-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--cream);
    font-style: italic;
    flex-shrink: 0;
}

.ai-info {
    flex: 1;
}

.ai-name {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--charcoal);
}

.ai-role {
    font-size: 11px;
    color: var(--rouge);
    font-style: italic;
    font-family: var(--font-display);
    margin-top: 1px;
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #4A7A4A;
}

.ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4A7A4A;
}

.chat-area {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 230px;
    overflow-y: auto;
    scrollbar-width: none;
}

    .chat-area::-webkit-scrollbar {
        display: none;
    }

.bubble {
    max-width: 84%;
}

    .bubble.ai {
        align-self: flex-start;
    }

    .bubble.user {
        align-self: flex-end;
    }

.bubble-inner {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.65;
}

.bubble.ai .bubble-inner {
    background: var(--cream-2);
    border-radius: 4px 14px 14px 14px;
    color: var(--charcoal);
}

.bubble.user .bubble-inner {
    background: var(--charcoal);
    color: var(--cream);
    border-radius: 14px 4px 14px 14px;
}

.b-fr {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13.5px;
    font-weight: 400;
    display: block;
    margin-bottom: 3px;
}

.b-zh {
    font-size: 11px;
    display: block;
    font-weight: 300;
}

.bubble.ai .b-zh {
    color: var(--charcoal-4);
}

.bubble.user .b-zh {
    color: rgba(244,239,230,0.6);
}

.chat-input-row {
    padding: 11px 16px;
    border-top: 1px solid var(--divider-2);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: var(--cream-2);
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--charcoal);
    outline: none;
    font-weight: 300;
}

.chat-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rouge);
    border: none;
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .chat-send:active {
        opacity: 0.8;
    }

    .chat-send svg {
        width: 14px;
        height: 14px;
        stroke: var(--cream);
        stroke-width: 2;
        fill: none;
    }

/* ������ */
.scene-card {
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
}

.scene-card-head {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(244,239,230,0.08);
    display: flex;
    align-items: center;
    gap: 11px;
}

.scene-icon-box {
    width: 36px;
    height: 36px;
    background: var(--rouge);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .scene-icon-box svg {
        width: 18px;
        height: 18px;
        stroke: var(--cream);
        stroke-width: 1.6;
        fill: none;
    }

.scene-name {
    font-size: 14px;
    color: var(--cream);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.scene-name-fr {
    font-size: 11px;
    color: rgba(244,239,230,0.45);
    font-style: italic;
    font-family: var(--font-display);
    margin-top: 1px;
}

.scene-preview {
    padding: 13px 18px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12.5px;
    color: rgba(244,239,230,0.55);
    line-height: 1.75;
    font-weight: 300;
    border-bottom: 1px solid rgba(244,239,230,0.06);
}

.scene-cta {
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scene-cta-txt {
    font-size: 11.5px;
    color: var(--rouge-muted);
    letter-spacing: 0.06em;
    font-weight: 300;
}

.scene-cta-arr {
    color: var(--rouge-muted);
    font-size: 14px;
}

/* ============================================================
   ����ҳ
   ============================================================ */

.comm-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--divider);
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 10;
}

.comm-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 0.08em;
    font-style: italic;
}

.comm-sub {
    font-size: 11px;
    color: var(--charcoal-4);
    margin-top: 2px;
    font-weight: 300;
    letter-spacing: 0.04em;
}

/* �򿨿� */
.checkin-card {
    margin: 16px 22px;
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.checkin-texture {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( -60deg, transparent, transparent 5px, rgba(140,28,19,0.04) 5px, rgba(140,28,19,0.04) 6px );
}

.checkin-inner {
    position: relative;
    z-index: 1;
}

.checkin-label {
    font-size: 10.5px;
    color: rgba(244,239,230,0.45);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.checkin-days {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
}

.checkin-day {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(244,239,230,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(244,239,230,0.35);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

    .checkin-day.done {
        background: var(--rouge);
        border-color: var(--rouge);
        color: var(--cream);
    }

    .checkin-day.today {
        border-color: var(--rouge);
        color: var(--cream);
    }

.checkin-today-label {
    font-size: 13.5px;
    color: var(--cream);
    font-weight: 300;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

/* Feed */
.feed-tabs {
    display: flex;
    border-bottom: 1px solid var(--divider);
    padding: 0 22px;
}

.feed-tab {
    padding: 11px 0;
    margin-right: 22px;
    font-size: 12.5px;
    color: var(--charcoal-4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 300;
    letter-spacing: 0.04em;
    transition: all 0.18s;
}

    .feed-tab.on {
        color: var(--charcoal);
        border-bottom-color: var(--rouge);
        font-weight: 400;
    }

.post {
    padding: 15px 22px;
    border-bottom: 1px solid var(--divider-2);
}

.post-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 9px;
}

.post-ava {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
}

.post-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--charcoal);
}

.post-time {
    font-size: 11px;
    color: var(--charcoal-4);
    font-weight: 300;
    margin-top: 1px;
}

.post-body {
    font-size: 13px;
    line-height: 1.75;
    color: var(--charcoal-2);
    margin-bottom: 9px;
    font-weight: 300;
}

.post-footer {
    display: flex;
    gap: 16px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--charcoal-4);
    cursor: pointer;
    font-weight: 300;
}

    .post-action svg {
        width: 14px;
        height: 14px;
        stroke: var(--charcoal-4);
        stroke-width: 1.5;
        fill: none;
    }

/* ѧϰС�� */
.group-card {
    margin: 14px 22px;
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.group-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}

.group-title {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--charcoal);
}

.group-members {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.member-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--cream-2);
    border-radius: 20px;
}

.member-ava {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.member-nm {
    font-size: 11px;
    color: var(--charcoal-2);
    font-weight: 300;
}

.group-activity {
    font-size: 12px;
    color: var(--charcoal-4);
    font-weight: 300;
    line-height: 1.55;
}

/* ============================================================
   �ҵ�ҳ
   ============================================================ */

.my-hero {
    background: var(--charcoal);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.my-hero-texture {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( 90deg, transparent, transparent 22px, rgba(244,239,230,0.02) 22px, rgba(244,239,230,0.02) 23px );
}

.my-hero-inner {
    position: relative;
    z-index: 1;
}

.my-user-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.my-ava {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--rouge);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 27px;
    color: var(--cream);
    font-style: italic;
    border: 2px solid rgba(244,239,230,0.15);
}

.my-user-info {
    flex: 1;
}

.my-username {
    font-size: 18px;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.04em;
}

.my-level {
    font-size: 11.5px;
    color: rgba(244,239,230,0.45);
    margin-top: 3px;
    font-style: italic;
    font-family: var(--font-display);
}

.my-edit-btn {
    font-size: 11px;
    color: rgba(244,239,230,0.35);
    cursor: pointer;
}

.my-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: rgba(244,239,230,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.my-stat {
    background: rgba(244,239,230,0.04);
    padding: 13px 10px;
    text-align: center;
}

.my-stat-n {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--cream);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.my-stat-l {
    font-size: 10px;
    color: rgba(244,239,230,0.38);
    margin-top: 3px;
    letter-spacing: 0.06em;
    font-weight: 300;
}

.my-section {
    margin: 14px 22px;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.quick-item {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
}

    .quick-item:active {
        background: var(--cream-2);
    }

.quick-icon {
    margin-bottom: 7px;
}

    .quick-icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--charcoal-3);
        stroke-width: 1.5;
        fill: none;
    }

.quick-label {
    font-size: 11px;
    color: var(--charcoal-3);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* �����б� */
.prog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
}

    .prog-item + .prog-item {
        border-top: 1px solid var(--divider-2);
    }

.prog-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.prog-info {
    flex: 1;
}

.prog-name {
    font-size: 13px;
    color: var(--charcoal);
    font-weight: 400;
    margin-bottom: 6px;
}

.prog-pct {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--charcoal-4);
    flex-shrink: 0;
}

/* ���а� */
.lb-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .lb-item + .lb-item {
        border-top: 1px solid var(--divider-2);
    }

.lb-rank {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--charcoal-4);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

    .lb-rank.top1 {
        color: var(--rouge);
        font-weight: 400;
    }

.lb-ava {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.lb-info {
    flex: 1;
}

.lb-name {
    font-size: 13px;
    color: var(--charcoal);
    font-weight: 400;
}

.lb-sub {
    font-size: 10.5px;
    color: var(--charcoal-4);
    font-weight: 300;
    margin-top: 1px;
}

.lb-score {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--rouge);
    flex-shrink: 0;
}

/* ���� �ײ���� ������ */
.pb {
    height: 20px;
}
