:root {
    --brand: #2563EB;
    --brand-hover: #1D4ED8;
    --secondary: #0F766E;
    --accent: #F59E0B;
    --danger: #E11D48;
    --success: #16A34A;
    --surface: #FFFFFF;
    --surface-alt: #F6F8FB;
    --surface-soft: #EEF6FF;
    --text-strong: #111827;
    --text: #374151;
    --muted: #6B7280;
    --border: #E5E7EB;
    --footer: #0B1220;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 14px 36px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
button, a, input, textarea, select { outline-color: var(--brand); }
.hidden { display: none !important; }
.q-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.top-strip {
    background: #0B1220;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}
.top-strip-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.top-strip-right { display: inline-flex; align-items: center; gap: 20px; white-space: nowrap; }
.top-strip-contact { color: #fff; }
.nav-wrap {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-strong);
    font-size: 23px;
    font-weight: 700;
    white-space: nowrap;
}
.brand img { height: 48px; max-width: 168px; object-fit: contain; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-right: auto;
    color: #1F2937;
    font-size: 16px;
    font-weight: 600;
}
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .icon-link:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-consult {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--brand);
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}
.nav-consult:hover { background: #DBEAFE; color: var(--brand-hover); }
.icon-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #1F2937;
    transition: background .2s ease, color .2s ease;
}
.icon-link:hover { background: var(--surface-alt); }
.header-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mobile-menu {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-strong);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 20px rgba(37,99,235,.16); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-dark { background: #111827; color: #fff; }
.btn-dark:hover { background: #020617; color: #fff; }
.btn-outline { border-color: #C7D2FE; background: #fff; color: var(--brand); }
.btn-outline:hover { background: var(--surface-soft); color: var(--brand-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 13px; }

.section { padding: 78px 0; }
.section-soft, .section-alt { background: var(--surface-alt); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}
.section-head h2, .home-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
}
.section-head p, .section-title-block p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}
.section-title-block { margin-bottom: 32px; text-align: center; }
.section-title-block.align-left { text-align: left; margin-bottom: 0; }
.section-kicker, .service-kicker, .footer-kicker, .shop-eyebrow {
    display: inline-flex;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.view-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}
.view-more:hover { color: var(--brand-hover); }

.learning-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 18%, rgba(15,118,110,.12), transparent 28%),
        linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
}
.learning-hero-inner {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    gap: 52px;
    align-items: center;
    padding: 58px 0 68px;
}
.hero-copy h1 {
    margin: 14px 0 0;
    color: var(--text-strong);
    font-size: 48px;
    line-height: 1.18;
    font-weight: 800;
}
.hero-copy p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #4B5563;
    font-size: 18px;
    line-height: 1.9;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}
.hero-metrics span {
    min-height: 78px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    box-shadow: var(--shadow);
}
.hero-metrics strong {
    display: block;
    color: var(--text-strong);
    font-size: 22px;
    line-height: 1.2;
}
.hero-board {
    position: relative;
    padding: 18px;
    border-radius: 8px;
    background: #0B1220;
    color: #D1FAE5;
    box-shadow: 0 24px 60px rgba(15,23,42,.20);
}
.hero-board::after {
    content: "";
    position: absolute;
    right: 34px;
    bottom: -22px;
    width: 220px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15,23,42,.15);
    filter: blur(6px);
    z-index: -1;
}
.hero-board-head {
    display: flex;
    gap: 8px;
    padding: 4px 0 16px;
}
.hero-board-head span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #F97316;
}
.hero-board-head span:nth-child(2) { background: #F59E0B; }
.hero-board-head span:nth-child(3) { background: #16A34A; }
.hero-board pre {
    min-height: 286px;
    margin: 0;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    background: #111827;
    overflow: auto;
    color: #E5E7EB;
    font-family: Consolas, "Courier New", monospace;
    font-size: 16px;
    line-height: 1.8;
}
.hero-board-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
}
.hero-board-foot span {
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(37,99,235,.18);
    color: #BFDBFE;
    font-size: 12px;
    font-weight: 700;
}

.course-reminder-band {
    padding: 22px 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}
.course-reminder {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 16px;
    width: min(820px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 10px 20px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .96), rgba(15, 118, 110, .92));
    box-shadow: 0 16px 34px rgba(37, 99, 235, .16);
}
.course-reminder-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #DBEAFE;
}
.course-reminder-icon:last-child { color: #FDE68A; }
.course-reminder-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.course-reminder-copy { min-width: 0; text-align: center; }
.course-reminder-copy span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 800;
}
.course-reminder-copy strong {
    display: block;
    color: #FFFFFF;
    font-size: 20px;
    line-height: 1.34;
    font-weight: 800;
    letter-spacing: 0;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.path-card, .advantage, .panel, .service-card, .article-card, .address-card, .order-card, .profile-card, .profile-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.path-card {
    min-height: 228px;
    padding: 24px;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.path-card:hover, .advantage:hover, .service-card:hover, .article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #CBD5E1;
}
.path-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #E0F2FE;
    color: var(--brand);
    font-weight: 800;
}
.path-card h3, .advantage h3 {
    margin: 18px 0 8px;
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 800;
}
.path-card p, .advantage p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.split-section {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}
.advantage-grid, .service-grid, .article-list, .dashboard-grid { display: grid; gap: 24px; }
.advantage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learning-advantage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.advantage { padding: 24px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.advantage-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ECFDF5;
    color: var(--secondary);
}
.advantage-icon i { font-size: 24px; }

.search-band {
    padding: 34px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.search-box {
    display: flex;
    max-width: 820px;
    align-items: center;
    margin: 0 auto;
}
.search-label {
    flex: 0 0 auto;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: var(--surface-alt);
    color: var(--text-strong);
    font-weight: 800;
}
.search-box input {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    border: 1px solid var(--border);
    padding: 0 16px;
    outline: none;
}
.search-box input:focus { border-color: var(--brand); }
.search-box button {
    min-width: 132px;
    height: 50px;
    border-radius: 0 6px 6px 0;
}
.shop-search-form .search-label { display: none; }
.shop-search-form { max-width: 720px; margin: 18px 0 0; }

.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
    display: flex;
    min-height: 392px;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    cursor: pointer;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-alt);
}
.service-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.service-card:hover .service-cover img { transform: scale(1.04); }
.service-cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(11,18,32,.84);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.service-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px; }
.service-kicker { margin-bottom: 8px; }
.service-title {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}
.service-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 16px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.service-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; color: var(--muted); font-size: 13px; }
.price { color: var(--danger); font-size: 22px; line-height: 1; font-weight: 800; }
.service-hot { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.service-hot i { color: var(--accent); font-size: 15px; }

.article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card {
    display: block;
    min-height: 196px;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-date { color: var(--secondary); font-size: 13px; font-weight: 800; }
.article-card h3 {
    display: -webkit-box;
    margin: 10px 0 10px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-strong);
    font-size: 19px;
    line-height: 1.5;
    font-weight: 800;
}
.article-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 16px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
}
.article-card strong { color: var(--brand); font-size: 14px; }
.search-article-list { margin-top: 32px; }

.page-hero {
    padding: 58px 0;
    border-bottom: 1px solid var(--border);
    background: #F8FBFF;
}
.page-hero h1 { margin: 10px 0 0; color: var(--text-strong); font-size: 34px; line-height: 1.25; font-weight: 800; }
.page-hero p { max-width: 720px; margin: 12px 0 0; color: var(--muted); }
.breadcrumb, .help-breadcrumb, .shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumb { padding: 0 0 20px; width: 100%; }
.breadcrumb a, .help-breadcrumb a, .shop-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a:hover, .help-breadcrumb a:hover, .shop-breadcrumb a:hover { color: var(--brand); }
.shop-breadcrumb { margin: 24px 0; }
.shop-breadcrumb strong, .help-breadcrumb strong { color: var(--text-strong); font-weight: 700; }
.list-layout { padding: 40px 0 72px; }
.pagination { margin-top: 32px; text-align: center; color: var(--muted); }

.shop-category-hero {
    padding: 54px 0;
    background: linear-gradient(180deg, #F8FBFF 0%, #EEF6FF 100%);
    border-bottom: 1px solid var(--border);
}
.shop-category-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    align-items: center;
}
.shop-category-copy h1 {
    margin: 10px 0 0;
    color: var(--text-strong);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 800;
}
.shop-category-copy p { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.shop-category-panel {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.shop-category-panel span { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.shop-category-panel i { color: var(--brand); font-size: 20px; }
.shop-list-page, .shop-search-page, .shop-detail-page, .shop-cart-page, .checkout-page, .payment-page, .settings-page, .profile-page, .orders-page, .order-page, .order-detail-page, .address-page {
    min-height: calc(100vh - 80px);
    padding-bottom: 80px;
    background: var(--surface-alt);
}
.shop-list-head, .shop-search-head, .shop-cart-head { margin-bottom: 24px; }
.shop-list-head h1, .shop-list-head h2, .shop-search-head h1, .shop-cart-head h1, .checkout-title, .settings-title, .orders-title, .order-list-head h1, .address-title, .address-page-head h1 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: 30px;
    line-height: 1.4;
    font-weight: 800;
}
.shop-list-head p, .shop-search-head p, .shop-cart-head p { max-width: 760px; margin: 0 0 18px; color: var(--muted); }
.shop-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-category-tabs a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.shop-category-tabs a:hover { border-color: #BFDBFE; color: var(--brand); }
.shop-category-tabs a.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.shop-list-count, .shop-search-summary { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.shop-service-grid { margin-bottom: 8px; }

.shop-search-results { display: grid; gap: 16px; }
.shop-search-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-search-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #CBD5E1; }
.shop-search-cover { overflow: hidden; border-radius: 6px; background: var(--surface-alt); }
.shop-search-cover img { width: 100%; height: 128px; object-fit: cover; }
.shop-search-body { display: grid; align-content: start; gap: 9px; min-width: 0; }
.shop-search-body strong { color: var(--text-strong); font-size: 19px; font-weight: 800; line-height: 1.45; }
.shop-search-desc { color: var(--muted); }
.shop-search-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.shop-search-meta span { display: inline-flex; align-items: center; gap: 4px; }
.shop-search-price { color: var(--danger); font-size: 22px; font-weight: 800; }
.shop-search-empty, .checkout-empty, .payment-loading, .cart-empty {
    padding: 56px 16px;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}
.shop-search-empty-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand);
}
.shop-search-empty p, .cart-empty p, .checkout-empty p { margin: 0 0 8px; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.shop-search-empty span { display: block; margin-bottom: 22px; }

.shop-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    gap: 32px;
    margin-bottom: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.shop-detail-media { overflow: hidden; border-radius: 8px; background: var(--surface-alt); }
.shop-detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shop-detail-info { display: flex; flex-direction: column; padding: 0; position: static; }
.shop-detail-info h1 {
    margin: 10px 0 14px;
    color: var(--text-strong);
    font-size: 30px;
    line-height: 1.42;
    font-weight: 800;
}
.shop-detail-info > p { margin: 0 0 22px; color: var(--muted); line-height: 1.9; }
.shop-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.shop-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.shop-price-row { margin-bottom: 22px; padding: 18px; border-radius: 8px; background: #FFF1F2; }
.shop-price-row .price { font-size: 32px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 8px; color: var(--text-strong); font-weight: 800; }
.sku-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-item {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.sku-item:not(.disabled):hover { border-color: #BFDBFE; color: var(--brand); }
.sku-item.active { border-color: var(--brand); color: var(--brand); background: var(--surface-soft); }
.sku-item.disabled { color: #9CA3AF; background: #F3F4F6; cursor: not-allowed; }
.shop-qty-control { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 38px; height: 38px; border: 0; background: #fff; cursor: pointer; }
.qty-stepper input { width: 58px; height: 38px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; }
.shop-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.shop-detail-actions .btn { width: 100%; min-height: 48px; }
.shop-detail-tabs {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.shop-detail-tab-head { display: flex; border-bottom: 1px solid var(--border); }
.shop-detail-tab-head span {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    padding: 0 24px;
    color: var(--muted);
    font-weight: 800;
    border-bottom: 2px solid transparent;
}
.shop-detail-tab-head span.active { color: var(--brand); border-bottom-color: var(--brand); }
.shop-detail-content { padding: 30px; }
.content-body { color: var(--text); line-height: 1.95; }
.content-body img { max-width: 100%; height: auto; margin: 16px 0; border-radius: 6px; }
.content-body h1, .content-body h2, .content-body h3, .content-body h4 { color: var(--text-strong); line-height: 1.45; }

.help-page { padding: 40px 0 80px; background: var(--surface-alt); }
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.help-nav-panel { padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.help-nav-panel h2 { margin: 0 0 16px; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.help-nav { display: grid; gap: 8px; }
.help-nav a { padding: 10px 12px; border-radius: 6px; color: var(--text); transition: background .2s ease, color .2s ease; }
.help-nav a:hover, .help-nav a.active { background: var(--surface-soft); color: var(--brand); }
.help-content { padding: 24px; }
.help-article-list { display: grid; gap: 14px; }
.help-article {
    display: block;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.help-article:hover { transform: translateY(-2px); border-color: #CBD5E1; box-shadow: var(--shadow-hover); }
.help-article h3 { margin: 0 0 8px; color: var(--text-strong); font-size: 20px; font-weight: 800; line-height: 1.45; }
.help-article p { margin: 0 0 12px; color: var(--muted); }
.help-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.help-meta span { display: inline-flex; align-items: center; gap: 4px; }
.help-detail-head { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.help-detail-head h1 { margin: 0 0 14px; color: var(--text-strong); font-size: 30px; line-height: 1.45; font-weight: 800; }
.help-detail-body { padding: 24px 0; }
.help-detail-actions { padding-top: 18px; border-top: 1px solid var(--border); }

.auth-shell {
    min-height: calc(100vh - 114px);
    display: grid;
    place-items: center;
    padding: 56px 16px;
    background:
        radial-gradient(circle at 24% 20%, rgba(15,118,110,.10), transparent 24%),
        var(--surface-alt);
}
.auth-card { width: min(460px, 100%); padding: 30px; }
.auth-card h1 { margin: 0 0 8px; color: var(--text-strong); font-size: 28px; font-weight: 800; }
.auth-sub, .cart-sub { color: var(--muted); font-size: 13px; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
}
.form-row textarea { min-height: 96px; padding-top: 10px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); }
.form-required { color: var(--danger); margin-right: 4px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.code-input-row { display: flex; gap: 10px; align-items: stretch; }
.code-input-row input { flex: 1 1 auto; min-width: 0; }
.btn-code { flex: 0 0 112px; width: 112px; padding: 0 12px; white-space: nowrap; cursor: pointer; }
.btn-code[disabled] { cursor: not-allowed; opacity: .68; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 18px; color: var(--text-strong); font-weight: 700; line-height: 1.45; }
.check-row a { color: var(--brand); }
.check-row input[type="checkbox"], .cart-check, .checkout-address-card input, .payment-method-card input { accent-color: var(--brand); cursor: pointer; }

.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 32px; }
.profile-card { padding: 28px 24px; text-align: center; }
.profile-avatar {
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--brand);
    font-size: 32px;
    font-weight: 800;
    overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h1 { margin: 0 0 6px; color: var(--text-strong); font-size: 22px; font-weight: 800; }
.profile-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.profile-card .btn { width: 100%; }
.profile-settings-btn { margin-bottom: 16px; }
.profile-main, .settings-stack { display: grid; gap: 24px; }
.profile-panel, .settings-panel { padding: 24px; }
.profile-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.profile-panel-head h2, .settings-panel h2, .checkout-card-head h2, .checkout-summary h2 { margin: 0; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.profile-panel-head a { color: var(--brand); font-size: 14px; font-weight: 700; }
.profile-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-quick-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.profile-quick-card:hover { border-color: #BFDBFE; background: var(--surface-soft); transform: translateY(-1px); }
.profile-quick-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ECFDF5;
    color: var(--secondary);
}
.profile-quick-icon i { font-size: 22px; }
.profile-quick-card strong { color: var(--text-strong); font-size: 15px; font-weight: 800; }
.profile-quick-card small { color: var(--muted); font-size: 12px; }
.profile-empty-orders { padding: 28px 16px; border: 1px dashed #CBD5E1; border-radius: 8px; text-align: center; }

.shop-cart-panel, .checkout-card, .checkout-summary, .payment-result-card, .payment-card, .settings-panel, .address-card, .order-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.shop-cart-panel { overflow: hidden; margin-bottom: 24px; }
.cart-table-head, .cart-row {
    display: grid;
    grid-template-columns: 64px minmax(280px, 1fr) 120px 150px 120px 72px;
    gap: 16px;
    align-items: center;
}
.cart-table-head { padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 800; }
.cart-row { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-select { display: flex; justify-content: center; }
.cart-product { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cart-product img, .checkout-item img, .checkout-product-row img, .order-item img {
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-alt);
}
.cart-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text-strong); font-weight: 800; line-height: 1.5; }
.cart-price, .cart-qty, .cart-subtotal { text-align: center; }
.cart-subtotal { color: var(--danger); font-weight: 800; }
.cart-delete {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.cart-delete:hover { background: #FFF1F2; color: var(--danger); }
.summary-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.summary-label { color: var(--muted); font-size: 14px; }
.summary-bar strong { color: var(--danger); font-size: 24px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 24px; }
.checkout-card { overflow: hidden; padding: 24px; }
.checkout-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.checkout-card-head-bordered { margin: -24px -24px 0; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.checkout-manage-link { color: var(--brand); font-size: 14px; font-weight: 800; }
.checkout-address-list, .payment-method-list { display: grid; gap: 12px; }
.checkout-address-card, .payment-method-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.checkout-address-card:hover, .payment-method-card:hover { background: var(--surface-alt); }
.checkout-address-card.active, .payment-method-card.active { border-color: var(--brand); background: var(--surface-soft); }
.checkout-address-person { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.checkout-address-person strong { color: var(--text-strong); font-weight: 800; }
.checkout-address-person span, .checkout-product-info p, .checkout-product-price small { color: var(--muted); font-size: 13px; }
.checkout-address-person em { padding: 2px 8px; border-radius: 4px; background: #ECFDF5; color: var(--secondary); font-size: 12px; font-style: normal; }
.checkout-product-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 86px 86px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.checkout-product-row:last-child { border-bottom: 0; }
.checkout-product-info h3 { margin: 0 0 6px; color: var(--text-strong); font-size: 16px; font-weight: 800; line-height: 1.5; }
.checkout-product-price, .checkout-product-row > strong { text-align: right; }
.checkout-product-row > strong { color: var(--danger); font-weight: 800; }
.checkout-remark { padding-top: 18px; border-top: 1px solid var(--border); }
.checkout-remark label { display: block; margin-bottom: 8px; color: var(--text-strong); font-weight: 800; }
.checkout-remark textarea { width: 100%; min-height: 92px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; resize: vertical; }
.checkout-summary { position: sticky; top: 104px; padding: 24px; }
.checkout-summary-lines { display: grid; gap: 12px; margin: 16px 0 24px; }
.checkout-summary-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.checkout-summary-line strong { color: var(--text); font-weight: 800; }
.checkout-summary-line.total { padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-strong); font-size: 16px; font-weight: 800; }
.checkout-summary-line.total strong { color: var(--danger); font-size: 26px; }
.checkout-selected-address { margin-bottom: 24px; padding: 14px; border-radius: 6px; background: var(--surface-alt); color: var(--text); font-size: 14px; }
.checkout-summary .btn { width: 100%; min-height: 46px; }
.checkout-agreement { margin-top: 14px; color: var(--muted); text-align: center; font-size: 12px; }

.payment-method-card { align-items: center; position: relative; }
.payment-method-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-alt);
}
.payment-method-icon i { font-size: 20px; }
.payment-method-icon.wechat { color: var(--success); }
.payment-method-icon.alipay { color: var(--brand); }
.payment-method-icon.bankcard { color: var(--muted); }
.payment-method-copy { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.payment-method-copy strong { color: var(--text-strong); font-weight: 800; }
.payment-method-copy small { color: var(--muted); font-size: 13px; }
.payment-method-check { display: none; color: var(--brand); font-size: 18px; }
.payment-method-card.active .payment-method-check { display: inline-flex; }
.payment-info-list { display: grid; gap: 16px; padding-top: 18px; }
.payment-info-row { display: flex; align-items: flex-start; gap: 12px; }
.payment-info-row > i { margin-top: 2px; color: var(--muted); font-size: 17px; }
.payment-info-row span { color: var(--muted); font-size: 12px; }
.payment-info-row strong { color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.6; }
.payment-total-highlight { color: var(--danger); }
.payment-result-page { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 56px 16px; background: var(--surface-alt); }
.payment-result-card { width: min(560px, 100%); padding: 36px; text-align: center; }
.payment-result-icon { display: inline-flex; width: 66px; height: 66px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 50%; background: #ECFDF5; color: var(--success); font-size: 34px; }
.payment-result-icon.fail { background: #FFF1F2; color: var(--danger); }

.orders-list, .address-list { display: grid; gap: 16px; }
.order-card { overflow: hidden; }
.order-head, .order-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #fff; }
.order-head { border-bottom: 1px solid var(--border); }
.order-foot { border-top: 1px solid var(--border); }
.order-meta-line { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.order-items { display: grid; gap: 12px; padding: 18px 20px; }
.order-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.order-item strong { color: var(--text-strong); font-weight: 800; }
.order-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.order-total strong { color: var(--danger); font-size: 20px; }
.tag { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 4px; background: #F3F4F6; color: var(--muted); font-size: 12px; font-weight: 800; }
.tag-primary { background: var(--surface-soft); color: var(--brand); }
.tag-warning { background: #FEF3C7; color: #B45309; }
.tag-success { background: #ECFDF5; color: var(--success); }

.address-card { padding: 20px; }
.address-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.address-person { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.address-person strong { color: var(--text-strong); font-size: 18px; }
.address-person span { color: var(--muted); }
.address-card p { margin: 0 0 16px; color: var(--text); }
.address-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.address-region-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.address-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}
.address-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.46);
}
.address-modal-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15,23,42,.24);
}
.address-modal-dialog h2 { margin: 0 0 18px; color: var(--text-strong); font-size: 22px; font-weight: 800; }
.address-modal-actions { display: flex; justify-content: flex-end; gap: 12px; }

.order-list-head { margin-bottom: 20px; }
.order-list-head p { margin: 0; color: var(--muted); }
.order-tabs-panel {
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.order-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.order-tabs a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 14px;
    border-radius: 6px;
    color: var(--text);
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}
.order-tabs a:hover, .order-tabs a.active { background: var(--surface-soft); color: var(--brand); }
.order-empty {
    padding: 56px 16px;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}
.order-empty p { margin: 0 0 8px; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.order-empty span { display: block; margin-bottom: 20px; }

.order-detail-shell { padding-bottom: 80px; }
.order-detail-loading, .order-detail-empty {
    padding: 40px;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}
.order-detail-hero {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.order-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-detail-title h1 { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: 800; }
.order-detail-no { margin-top: 8px; color: var(--muted); }
.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 22px;
    align-items: start;
}
.order-detail-main, .order-detail-side { display: grid; gap: 18px; }
.order-detail-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.order-detail-card h2, .order-detail-card-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 800;
}
.order-detail-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand);
}
.order-detail-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.order-timeline { display: grid; gap: 0; }
.order-timeline-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; min-height: 58px; }
.order-timeline-marker { position: relative; display: flex; justify-content: center; }
.order-timeline-marker::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: -6px;
    width: 2px;
    background: var(--border);
}
.order-timeline-item.is-last .order-timeline-marker::after { display: none; }
.order-timeline-marker span {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 4px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    background: #fff;
}
.order-timeline-item.is-done .order-timeline-marker span { border-color: var(--brand); background: var(--brand); }
.order-timeline-copy strong { color: var(--text-strong); font-weight: 800; }
.order-timeline-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.order-detail-product {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 96px 96px;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.order-detail-product:last-child { border-bottom: 0; }
.order-detail-product img { width: 82px; height: 82px; object-fit: cover; border-radius: 6px; background: var(--surface-alt); }
.order-detail-product-info h3 { margin: 0 0 4px; color: var(--text-strong); font-size: 16px; font-weight: 800; line-height: 1.5; }
.order-detail-product-info p { margin: 0; color: var(--muted); font-size: 13px; }
.order-detail-product-price { text-align: right; }
.order-detail-product-price small { display: block; color: var(--muted); }
.order-detail-product > strong { color: var(--danger); text-align: right; }
.order-address strong { display: block; color: var(--text-strong); margin-bottom: 6px; }
.order-address p, .order-delivery-box p { margin: 0; color: var(--muted); }
.order-delivery-box { margin-top: 14px; padding: 12px; border-radius: 6px; background: var(--surface-alt); }
.order-info-list, .order-cost-list { display: grid; gap: 12px; }
.order-info-row { display: flex; gap: 10px; align-items: flex-start; }
.order-info-row span { color: var(--muted); font-size: 12px; }
.order-info-row strong { display: block; color: var(--text); font-weight: 800; }
.order-cost-list div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.order-cost-list strong { color: var(--text-strong); }
.order-cost-total { padding-top: 12px; border-top: 1px solid var(--border); }
.order-cost-total strong { color: var(--danger); font-size: 22px; }
.order-detail-actions { display: grid; gap: 10px; }
.order-detail-actions .btn { width: 100%; }

.site-footer {
    background: var(--footer);
    color: rgba(255,255,255,.78);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: 58px 0 34px;
}
.footer-brand-block h3 { margin: 10px 0; color: #fff; font-size: 26px; font-weight: 800; }
.footer-brand-block p { max-width: 520px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.9; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-trust span { padding: 5px 9px; border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; font-size: 12px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 16px; font-weight: 800; }
.site-footer a, .site-footer p { display: block; margin: 0 0 9px; color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.56); text-align: center; font-size: 13px; }
.footer-bottom a { display: inline; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1199px) {
    .learning-hero-inner { grid-template-columns: 1fr; min-height: auto; }
    .hero-board { max-width: 720px; }
    .path-grid, .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-section { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .q-container { width: min(100% - 32px, 1200px); }
    .top-strip { display: none; }
    .nav-wrap { height: 64px; gap: 12px; }
    .brand { font-size: 19px; }
    .brand img { height: 40px; max-width: 132px; }
    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-hover);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px; border-radius: 6px; }
    .main-nav a:hover { background: var(--surface-soft); }
    .mobile-menu { display: inline-flex; align-items: center; justify-content: center; }
    .nav-consult { display: none; }
    .learning-hero-inner { padding: 42px 0 52px; gap: 34px; }
    .hero-copy h1 { font-size: 36px; }
    .hero-copy p { font-size: 16px; }
    .section { padding: 56px 0; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .path-grid, .service-grid, .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-category-inner, .shop-detail-card, .checkout-layout, .profile-layout, .help-layout {
        grid-template-columns: 1fr;
    }
    .order-detail-layout, .address-grid { grid-template-columns: 1fr; }
    .shop-category-panel { max-width: 420px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cart-table-head { display: none; }
    .cart-row {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }
    .cart-price, .cart-qty, .cart-subtotal, .cart-row .cart-delete { grid-column: 2; text-align: left; }
    .checkout-summary { position: static; }
}

@media (max-width: 767px) {
    .q-container { width: min(100% - 32px, 1200px); }
    .hero-copy h1 { font-size: 30px; line-height: 1.25; }
    .hero-metrics, .path-grid, .service-grid, .article-list, .advantage-grid, .learning-advantage, .profile-quick-grid {
        grid-template-columns: 1fr;
    }
    .course-reminder-band { padding: 16px 0; }
    .course-reminder {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 10px;
        min-height: 58px;
        padding: 10px 14px;
        border-radius: 8px;
    }
    .course-reminder-icon {
        width: 28px;
        height: 28px;
    }
    .course-reminder-icon svg {
        width: 16px;
        height: 16px;
    }
    .course-reminder-copy strong { font-size: 16px; }
    .hero-board pre { min-height: 220px; padding: 18px; font-size: 13px; }
    .hero-actions, .form-actions, .shop-detail-actions { grid-template-columns: 1fr; }
    .hero-actions .btn, .form-actions .btn, .shop-detail-actions .btn { width: 100%; }
    .section-head h2, .home-title, .page-hero h1, .shop-category-copy h1 { font-size: 26px; }
    .shop-detail-info h1, .help-detail-head h1 { font-size: 24px; }
    .search-box { display: grid; gap: 10px; }
    .search-label, .search-box input, .search-box button {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 6px;
    }
    .shop-search-card { grid-template-columns: 1fr; }
    .shop-search-cover img { height: auto; aspect-ratio: 4 / 3; }
    .shop-detail-card { padding: 18px; }
    .shop-detail-actions { display: grid; }
    .checkout-product-row { grid-template-columns: 72px minmax(0, 1fr); }
    .checkout-product-price, .checkout-product-row > strong { grid-column: 2; text-align: left; }
    .summary-bar { align-items: stretch; flex-direction: column; }
    .summary-bar .btn { width: 100%; }
    .address-page-head, .order-detail-title, .order-head, .order-foot { align-items: flex-start; flex-direction: column; }
    .address-region-grid { grid-template-columns: 1fr; }
    .order-detail-product { grid-template-columns: 72px minmax(0, 1fr); }
    .order-detail-product-price, .order-detail-product > strong { grid-column: 2; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .q-container { width: min(100% - 28px, 1200px); }
    .brand span { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
    .icon-link { width: 38px; height: 38px; }
    .hero-copy h1 { font-size: 28px; }
    .service-body, .article-card, .path-card, .advantage, .help-content { padding: 18px; }
}
