/* 桌面端手机预览外壳 */
.phone-frame {
    /* 1080 × 1920 的 9:16 屏幕按比例缩放到浏览器可见区域 */
    --phone-screen-width: min(414px, calc(56.25dvh - 51.75px));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98) 0, rgba(245, 247, 251, 0.9) 32%, transparent 62%),
        linear-gradient(145deg, #edf1f7 0%, #dce3ed 100%);
}

.phone-shell {
    position: relative;
    flex: 0 0 auto;
    width: calc(var(--phone-screen-width) + 24px);
    padding: 28px 12px 24px;
    border: 1px solid #101216;
    border-radius: 48px;
    background:
        linear-gradient(145deg, #4c5158 0%, #14171b 18%, #07090c 72%, #30343a 100%);
    box-shadow:
        0 34px 70px rgba(26, 35, 48, 0.28),
        0 10px 24px rgba(17, 24, 36, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 0 4px rgba(0, 0, 0, 0.4);
}

.phone-shell::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 42px;
}

.phone-speaker,
.phone-camera,
.phone-home-indicator,
.phone-button {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.phone-speaker {
    top: 11px;
    left: 50%;
    width: 58px;
    height: 6px;
    border-radius: 999px;
    background: #050609;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.09);
    transform: translateX(-50%);
}

.phone-camera {
    top: 10px;
    left: calc(50% + 43px);
    width: 8px;
    height: 8px;
    border: 2px solid #090b0f;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #405773 0 14%, #172334 25%, #05070a 70%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-home-indicator {
    bottom: 9px;
    left: 50%;
    width: 116px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    transform: translateX(-50%);
}

.phone-button {
    width: 4px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, #444950, #111318 22%, #090b0e 78%, #363a40);
    box-shadow: -1px 0 1px rgba(0, 0, 0, 0.45);
}

.phone-button-silent {
    top: 105px;
    left: -4px;
    height: 30px;
}

.phone-button-volume-up {
    top: 157px;
    left: -4px;
    height: 54px;
}

.phone-button-volume-down {
    top: 222px;
    left: -4px;
    height: 54px;
}

.phone-button-power {
    top: 169px;
    right: -4px;
    width: 4px;
    height: 82px;
    border-radius: 0 3px 3px 0;
    box-shadow: 1px 0 1px rgba(0, 0, 0, 0.45);
}

.login-container {
    position: relative;
    z-index: 1;
    width: var(--phone-screen-width);
    height: auto;
    aspect-ratio: 1080 / 1920;
    overflow: hidden;
    background: #fff;
    border: 1px solid #020305;
    border-radius: 25px;
    box-shadow:
        0 0 0 2px #030508,
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px), (max-height: 700px) {
    .phone-frame {
        display: block;
        min-height: 100dvh;
        padding: 0;
        overflow: visible;
        background: #fff;
    }

    .phone-shell {
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .phone-shell::before,
    .phone-speaker,
    .phone-camera,
    .phone-home-indicator,
    .phone-button {
        display: none;
    }

    .login-container {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.home-container {
    background-color: #f5f7fa;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for tab bar */
}

/* 顶部搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #FF4757;
    gap: 10px;
}

.grade-selector {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    gap: 4px;
    cursor: pointer;
}

.grade-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-icon {
    font-size: 12px;
    color: white;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 8px 12px;
    gap: 8px;
}

.search-icon {
    font-size: 16px;
}

.search-input input {
    flex: 1;
    font-size: 14px;
    color: #333;
    border: none;
    outline: none;
}

.search-placeholder {
    color: #999;
}

/* 启望教育横幅 */
.banner {
    margin: 15px;
    background: linear-gradient(135deg, #FF6B7A 0%, #FF8E9B 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.education-tag {
    color: white;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.brand-name {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.banner-image {
    font-size: 40px;
}

/* 功能菜单 */
.menu-grid {
    padding: 0 15px;
    margin-bottom: 20px;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
    cursor: pointer;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B7A 0%, #FF8E9B 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 122, 0.3);
}

.icon-text {
    font-size: 20px;
    line-height: 1;
}

/* 为不同功能模块设置不同的背景色 */
.course-study {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.special-practice {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    box-shadow: 0 2px 8px rgba(86, 204, 242, 0.3);
}

.academic-test {
    background: linear-gradient(135deg, #FFA726 0%, #FF7043 100%);
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.exam-zone {
    background: linear-gradient(135deg, #AB47BC 0%, #8E24AA 100%);
    box-shadow: 0 2px 8px rgba(171, 71, 188, 0.3);
}

.online-qa {
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.my-service {
    background: linear-gradient(135deg, #FF7043 0%, #F4511E 100%);
    box-shadow: 0 2px 8px rgba(255, 112, 67, 0.3);
}

.menu-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 最新学情 */
.analysis-section {
    padding: 0 15px;
    margin-bottom: 20px;
}

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

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.analysis-row {
    margin-bottom: 20px;
}

/* Chart Styles */
.chart-container {
    width: 100%;
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 0; /* Remove bottom margin as it's handled by header-row */
}

.chart-filters {
    display: flex;
    gap: 8px;
}

.chart-filter {
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 12px;
    padding: 4px 24px 4px 10px;
    font-size: 12px;
    color: #333;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chart-wrapper {
    display: flex;
    height: 150px;
    margin-bottom: 5px;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
    color: #999;
    font-size: 10px;
    text-align: right;
    width: 30px;
}

.y-axis span {
    line-height: 1;
    transform: translateY(50%);
}
.y-axis span:first-child { transform: translateY(0); }
.y-axis span:last-child { transform: translateY(0); }

.chart-content-area {
    flex: 1;
    position: relative;
    border-left: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 0;
}

.grid-line {
    width: 100%;
    height: 1px;
    background-color: #f5f5f5;
}
.grid-line:last-child {
    background-color: transparent; /* Bottom border handled by container */
}

.chart-bars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.chart-item {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    /* Add a transparent hover area if needed */
}

.chart-item:active {
    background-color: rgba(0,0,0,0.02);
}

.bar-rect {
    width: 10px;
    background: #FFECEE;
    border-radius: 4px 4px 0 0;
    pointer-events: none; /* Let clicks pass to item */
}

.point-dot {
    width: 6px;
    height: 6px;
    background: white;
    border: 2px solid #FF4757;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%); /* Center on the line point */
    pointer-events: none;
    z-index: 2;
}

.chart-svg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.x-axis {
    display: flex;
    padding-left: 30px; /* Match Y-axis width */
    margin-top: 5px;
}

.x-label {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: #999;
}

/* Tooltip */
.chart-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    transform: translateX(-50%); /* Only center horizontally */
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    /* Transition for smooth movement if desired, but simple display toggle is fine */
}

.tooltip-row {
    margin-bottom: 2px;
}
.tooltip-row:last-child { margin-bottom: 0; }

.tooltip-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-align: center;
}

.tooltip-arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Report Entry */
.report-entry {
    margin-top: 15px;
    background: #FFF5F6;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid #FFECEE;
}

.report-entry:active {
    background: #FFE0E4;
}

.entry-text {
    font-size: 14px;
    color: #FF4757;
    font-weight: 500;
}

.entry-arrow {
    font-size: 18px;
    color: #FF4757;
    line-height: 1;
}

.analysis-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item {
    flex: 1;
}

.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 12px;
    color: #999;
}

.view-btn {
    font-size: 12px;
    color: #FF4757;
    cursor: pointer;
    border: 1px solid #FF4757;
    padding: 2px 8px;
    border-radius: 12px;
    line-height: 1;
}
.view-btn:hover {
    background-color: #fff0f0;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.weak-tag {
    font-size: 11px;
    color: #FF4757;
    background: #FFECEE;
    padding: 4px 8px;
    border-radius: 4px;
}

.detail-divider {
    width: 1px;
    height: 30px;
    background: #eee;
    margin: 0 20px;
}

.error-count {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.error-count .unit {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 2px;
}

/* 推荐课程 - 已移除相关样式，保留结构兼容 */
.more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.more-text {
    font-size: 14px;
    color: #999;
}

.arrow-icon {
    font-size: 12px;
    color: #999;
}

.course-scroll {
    overflow-x: auto;
    margin-bottom: 15px;
    padding-bottom: 10px; /* Hide scrollbar or give space */
    -webkit-overflow-scrolling: touch;
}

.course-scroll::-webkit-scrollbar {
    display: none;
}

.course-list {
    display: inline-flex;
    gap: 10px;
    padding-right: 15px; /* End padding */
}

.course-card {
    width: 200px;
    height: 120px;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-card.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-card.green {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
}

.course-tag {
    color: white;
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.course-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.4;
}

.course-subtitle {
    color: white;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.course-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* 课程详情卡片 */
.course-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.course-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.course-info {
    flex: 1;
}

.course-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
    display: block;
}

.course-tags {
    display: flex;
    gap: 6px;
}

.tag {
    background-color: #FF4757;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 6px;
}

/* Tab Bar */
.tab-bar {
    position: absolute;
    bottom: 34px; /* Move up by safe area height */
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
}

/* Extend background behind safe area for seamless look */
.tab-bar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 34px; /* match safe-area-bottom height */
    background: white;
    z-index: -1;
}

.tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.tab-icon {
    font-size: 20px;
}

.tab-text {
    font-size: 10px;
    color: #999;
}

.tab-bar-item.active .tab-text {
    color: #FF4757;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    width: 85%;
    max-width: 340px;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-content {
    overflow-y: auto;
    padding-right: 4px; /* Avoid scrollbar overlap */
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.required {
    color: #FF4757;
    margin-left: 2px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select,
.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    appearance: none; /* 去除原生下拉箭头 */
    outline: none;
}

.select-wrapper select:focus,
.form-group input:focus {
    border-color: #FF4757;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.btn-skip, .btn-save {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.btn-skip {
    background-color: #f5f5f5;
    color: #666;
}

.btn-save {
    background-color: #FF4757;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Child form styles */
.child-form {
    border-bottom: 1px dashed #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
    animation: slideDown 0.3s ease-out;
}

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

.child-divider {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.child-title {
    display: flex;
    align-items: center;
}

.child-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background-color: #FF4757;
    margin-right: 8px;
    border-radius: 2px;
}

.delete-child-btn {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f5f5f5;
}

.delete-child-btn:hover {
    color: #FF4757;
    background: #fff0f0;
}

.add-child-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #FF4757;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    margin-top: -10px;
}

.add-child-btn:hover {
    opacity: 0.8;
}

.plus-icon {
    font-size: 18px;
    line-height: 1;
}

/* ID Toggle Styles */
.id-toggle-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.toggle-label {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-label.active {
    color: #333;
    font-weight: 500;
}

.toggle-separator {
    margin: 0 8px;
    color: #ddd;
    font-size: 12px;
}

/* 首页 2026 视觉升级 */
.home-screen > .status-bar {
    display: none;
}

.home-screen .home-container {
    height: 100%;
    padding-bottom: 76px;
    background:
        linear-gradient(180deg, #ff3038 0 154px, #fffafb 154px 100%);
    color: #171111;
}

.home-screen .search-bar {
    position: relative;
    z-index: 5;
    min-height: 76px;
    padding: 17px 15px 12px;
    gap: 8px;
    background: transparent;
}

.home-screen .search-bar::before,
.home-screen .search-bar::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.home-screen .search-bar::before {
    top: -48px;
    left: 48px;
    width: 90px;
    height: 90px;
}

.home-screen .search-bar::after {
    top: -38px;
    right: -17px;
    width: 88px;
    height: 88px;
}

.home-screen .grade-selector {
    flex: 0 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    gap: 7px;
}

.home-screen .grade-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1px;
}

.home-screen .dropdown-icon {
    font-size: 12px;
}

.home-screen .search-input {
    height: 43px;
    margin-right: 84px;
    padding: 0 12px;
    border-radius: 9px;
    gap: 9px;
    box-shadow: none;
}

.home-screen .search-icon {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    overflow: hidden;
    color: #ff4450;
    font-size: 18px;
    filter: saturate(1.3);
}

.home-screen .search-input input {
    min-width: 0;
    font-size: 14px;
}

.home-capsule {
    position: absolute;
    top: 18px;
    right: 7px;
    width: 116px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
}

.capsule-dots {
    display: flex;
    gap: 3px;
}

.capsule-dots i {
    width: 5px;
    height: 5px;
    display: block;
    border-radius: 50%;
    background: #171717;
}

.capsule-line {
    width: 1px;
    height: 18px;
    background: rgba(0, 0, 0, 0.14);
}

.home-capsule .capsule-minus {
    width: 15px;
    height: 3px;
    border-radius: 999px;
    background: #171717;
}

.home-capsule .capsule-target {
    position: relative;
    width: 20px;
    height: 20px;
    border: 3px solid #171717;
    border-radius: 50%;
}

.home-capsule .capsule-target::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #171717;
}

.home-screen .banner {
    height: 145px;
    margin: 0 13px 24px;
    padding: 0;
    border-radius: 11px;
    background:
        radial-gradient(circle at 58% 16%, rgba(255, 255, 255, 0.86) 0 35px, transparent 85px),
        linear-gradient(135deg, #ffd2df 0%, #ffc8a8 56%, #ffe8a5 100%);
    box-shadow: none;
}

.home-screen .banner::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -20px;
    width: 190px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(-12deg);
}

.home-screen .banner-content {
    position: relative;
    height: 100%;
}

.home-screen .banner-text {
    position: relative;
    z-index: 2;
    margin-left: 40px;
    gap: 8px;
}

.home-screen .education-tag {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f16f6e, #e94d49);
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-weight: 800;
}

.home-screen .brand-name {
    color: #2f0909;
    font-family: "STHeiti", "PingFang SC", sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.15);
}

.home-screen .banner-image {
    position: absolute;
    right: 17px;
    bottom: 13px;
    width: 128px;
    height: 112px;
    font-size: 0;
    transform: rotate(-3deg);
}

.banner-sheet {
    position: absolute;
    right: 35px;
    bottom: 0;
    width: 69px;
    height: 96px;
    border-radius: 10px 10px 34px 12px;
    background: linear-gradient(145deg, #fff 0%, #ffe4e5 76%);
    box-shadow: 0 8px 16px rgba(206, 81, 75, 0.14);
    transform: rotate(5deg);
}

.banner-bag {
    position: absolute;
    right: 0;
    top: 26px;
    width: 91px;
    height: 55px;
    border-radius: 10px 14px 16px 12px;
    background: linear-gradient(145deg, #ff837c, #ec3a3a);
    box-shadow: 0 8px 12px rgba(205, 39, 47, 0.2);
}

.banner-bag::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 16px;
    width: 43px;
    height: 9px;
    border: 4px solid #ef5757;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.banner-bag::after {
    content: "";
    position: absolute;
    left: 35px;
    top: 21px;
    width: 28px;
    height: 9px;
    border-radius: 999px;
    background: #fff;
}

.banner-pen {
    position: absolute;
    right: 1px;
    bottom: 6px;
    width: 62px;
    height: 10px;
    border: 2px solid #fff3ed;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff, #ff8b84 55%, #e63535);
    box-shadow: 0 3px 5px rgba(154, 38, 38, 0.16);
    transform: rotate(48deg);
}

.home-screen .menu-grid {
    margin-bottom: 16px;
    padding: 0 15px;
}

.home-screen .menu-row {
    margin-bottom: 22px;
}

.home-screen .menu-item {
    width: 31%;
    gap: 9px;
}

.home-screen .menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    box-shadow: none;
}

.home-screen .menu-icon .icon-text {
    color: #fff;
    font-size: 23px;
    font-weight: 900;
}

.home-screen .course-study {
    background: linear-gradient(145deg, #55dcf5, #20bfe8);
}

.home-screen .special-practice {
    background: linear-gradient(145deg, #ffe44f, #ffca2f);
}

.home-screen .academic-test {
    background: linear-gradient(145deg, #bfe1ff, #2f7bea);
}

.home-screen .exam-zone {
    background: linear-gradient(145deg, #ff9167, #ff536d);
}

.home-screen .online-qa {
    background: linear-gradient(145deg, #ff7191, #dd4d80);
}

.home-screen .my-service {
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd34c, #ffad20);
}

.home-screen .menu-text {
    color: #0f0c0c;
    font-size: 15px;
    font-weight: 500;
}

.recommended-section {
    margin-bottom: 22px;
    padding: 0 13px;
}

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

.recommended-header h2 {
    position: relative;
    margin: 0;
    color: #121010;
    font-size: 20px;
    line-height: 1;
}

.recommended-header h2::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -5px;
    bottom: -4px;
    left: 0;
    height: 6px;
    border-radius: 999px;
    background: #ff6d76;
}

.recommended-header button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8e8989;
    font-size: 14px;
    cursor: pointer;
}

.recommended-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.course-card {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 7px rgba(60, 35, 35, 0.07);
    cursor: pointer;
}

.course-cover {
    position: relative;
    height: 115px;
    overflow: hidden;
    padding: 17px 8px 8px;
}

.course-cover::before,
.course-cover::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.55);
    transform: rotate(28deg);
}

.course-cover::before {
    inset: -50px 28px;
}

.course-cover::after {
    inset: -25px 78px;
}

.course-cover-math {
    background: linear-gradient(135deg, #bfe0ff, #cbc4ff 64%, #87a6ff);
    color: #083459;
}

.course-cover-science {
    background: linear-gradient(135deg, #ffe5a6, #ffd379 58%, #fff0b3);
    color: #66320a;
}

.cover-badge,
.course-cover strong,
.course-cover small,
.cover-device,
.service-bubble {
    position: relative;
    z-index: 2;
}

.cover-badge {
    display: block;
    font-size: 7px;
}

.course-cover strong {
    display: block;
    margin-top: 7px;
    font-size: 18px;
    line-height: 1.25;
}

.course-cover small {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 5px;
    border-radius: 2px;
    background: #2e89ea;
    color: #fff;
    font-size: 7px;
}

.course-cover-science small {
    background: #ff8d24;
}

.cover-device {
    position: absolute;
    right: 8px;
    top: 14px;
    width: 58px;
    height: 82px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    border: 4px solid #2f73e4;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.66);
    color: #2f73e4;
    font-size: 8px;
    font-weight: 800;
    transform: rotate(8deg);
}

.course-cover-science .cover-device {
    border-color: #ff7135;
    color: #ff7135;
}

.service-bubble {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7268, #ff4d45);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.course-copy {
    min-height: 112px;
    padding: 11px 9px 8px;
}

.course-copy h3 {
    margin: 0;
    color: #161313;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.course-copy h3 i {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 4px;
    background: #f0442f;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    transform: skew(-8deg);
}

.course-copy p {
    overflow: hidden;
    margin: 7px 0 0;
    color: #969191;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-tags {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.course-tags span {
    padding: 2px 7px;
    background: #ffe3e4;
    color: #f0525d;
    font-size: 9px;
}

.home-screen .analysis-section {
    padding: 0 13px;
}

.home-screen .analysis-section .section-title {
    position: relative;
    font-size: 20px;
}

.home-screen .analysis-section .section-title::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -5px;
    bottom: -4px;
    left: 0;
    height: 6px;
    border-radius: 999px;
    background: #ff6d76;
}

.home-screen .tab-bar {
    height: 66px;
    padding: 7px 20px 4px;
    border-top: 1px solid #ece8e8;
    background: rgba(255, 255, 255, 0.98);
}

.home-screen .tab-bar::after {
    display: none;
}

.home-screen .tab-bar-item {
    gap: 2px;
}

.home-screen .tab-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #aaa;
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
}

.home-screen .tab-bar-item .tab-text {
    color: #666;
    font-size: 11px;
}

.home-screen .tab-bar-item.active .tab-icon,
.home-screen .tab-bar-item.active .tab-text {
    color: #ff3138;
}

.home-screen .tab-bar-item.active .tab-icon {
    border-radius: 9px 9px 7px 7px;
    background: #ff3138;
    color: #fff;
    font-size: 21px;
}

.home-screen .safe-area-bottom {
    height: 0;
}

@media (max-width: 360px) {
    .home-screen .search-input {
        margin-right: 78px;
    }

    .home-capsule {
        width: 108px;
    }

    .home-screen .brand-name {
        font-size: 30px;
    }

    .course-cover strong {
        font-size: 16px;
    }
}
