﻿/* ====== Cards ====== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin: 0 16px 12px;
  border: 1px solid #e2e8f0;
}
.card-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ====== Section Headers ====== */
.section { padding: 24px 20px; }
.sec-eyebrow {
  font-size: 10px; letter-spacing: 4px; color: var(--gold);
  font-weight: 600; text-transform: uppercase; margin-bottom: 4px;
}
.sec-title {
  font-size: 18px; font-weight: 700;
  color: var(--ink); line-height: 1.35; margin-bottom: 6px;
}
.sec-divider {
  width: 40px; height: 3px; background: var(--gold);
  margin-bottom: 16px; border-radius: 2px;
}
.sec-body { font-size: 13px; color: var(--gray); line-height: 1.9; }

/* ====== Home Hero ====== */
.hero-block {
  background: var(--navy); padding: 28px 20px 0;
  position: relative; overflow: hidden;
}
.hero-block::before {
  content: '且'; font-family: serif; font-size: 280px; font-weight: 900;
  color: rgba(255,255,255,.04); position: absolute; right: -40px;
  top: -50px; line-height: 1; pointer-events: none;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: 4px; color: var(--gold);
  font-weight: 500; text-transform: uppercase; margin-bottom: 14px;
}
.hero-h1 {
  font-size: 28px; font-weight: 700;
  color: #fff; line-height: 1.35; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.hero-h1 span { color: #F5C842; font-style: normal; display: block; }
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.9;
  margin-bottom: 22px; position: relative; z-index: 1; max-width: 90%;
}
.hero-cta-row {
  display: flex; gap: 10px; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.hcta-primary {
  flex: 1; background: linear-gradient(135deg, var(--gold), #C99A2E); color: #fff;
  border: none; padding: 14px 0; border-radius: 10px; font-size: 15px;
  font-weight: 700; font-family: inherit; cursor: pointer;
  transition: all .2s; box-shadow: 0 4px 14px rgba(184,137,26,.3);
}
.hcta-primary:active { transform: scale(.98); }
.hcta-sub {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2); padding: 14px 18px;
  border-radius: 10px; font-size: 13px; font-family: inherit;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  font-weight: 500;
}
.hcta-sub:active { background: rgba(255,255,255,.18); transform: scale(.98); }

.stat-strip {
  background: rgba(0,0,0,.2);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 0;
  backdrop-filter: blur(10px);
}
.ss-item { text-align: center; position: relative; }
.ss-item + .ss-item::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: .5px; background: rgba(255,255,255,.1);
}
.ss-num {
  font-size: 24px; font-weight: 700;
  color: #F5C842; line-height: 1;
}
.ss-unit { font-size: 12px; color: #F5C842; font-weight: 400; }
.ss-label { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 4px; letter-spacing: .3px; }

/* ====== Banner / Hero ====== */
.home-hero { position: relative; margin-bottom: 0; }
.home-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-scroll { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; scrollbar-width: none; position: relative; z-index: 1; }
.home-hero-scroll::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0; position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  padding: 0; transition: all .3s;
}
.banner-dot.on { background: rgba(255,255,255,.85); width: 20px; }

/* Topbar search pill */
.topbar-search-pill input::placeholder { color: rgba(255,255,255,.5); }

/* ====== Product Cards (grid) ====== */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.pg-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: .5px solid var(--border); cursor: pointer;
  transition: all .2s;
}
.pg-card:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pg-img { height: 130px; background: var(--warm); display: flex; align-items: center; justify-content: center; font-size: 44px; overflow: hidden; }
.pg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pg-card:active .pg-img img { transform: scale(1.05); }
.pg-body { padding: 12px 14px 14px; }
.pg-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-price { font-size: 18px; font-weight: 700; color: var(--gold); }
.pg-price s { font-size: 11px; color: var(--gray); font-weight: 400; margin-left: 6px; }

/* ====== Checkin Card ====== */
.checkin-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2B50 100%);
  border-radius: 16px; padding: 20px; margin-top: 12px;
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  transition: all .2s;
}
.checkin-card:active { transform: scale(.99); }
.checkin-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center; font-size: 26px;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.08);
}
.checkin-info { flex: 1; }
.checkin-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.checkin-sub { font-size: 12px; color: rgba(255,255,255,.45); }
.checkin-btn {
  background: var(--gold); color: #fff; border: none;
  padding: 9px 20px; border-radius: 22px; font-size: 13px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  white-space: nowrap; transition: all .2s;
}
.checkin-btn:active { transform: scale(.95); }

/* ====== Teacher Cards ====== */
.teacher-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.teacher-scroll::-webkit-scrollbar { display: none; }
.tf-card { flex-shrink: 0; width: 250px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.tf-head { padding: 18px 16px; position: relative; overflow: hidden; min-height: 90px; }
.tf-letter { position: absolute; right: -4px; top: -8px; font-family: serif; font-size: 72px; font-weight: 700; color: rgba(255,255,255,.1); line-height: 1; pointer-events: none; }
.tf-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; font-family: serif; position: relative; z-index: 1; }
.tf-name { font-size: 17px; font-weight: 700; color: #fff; position: relative; z-index: 1; margin-top: 6px; }
.tf-info { font-size: 10px; color: rgba(255,255,255,.55); position: relative; z-index: 1; }
.tf-body { padding: 14px 16px; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tf-tag { font-size: 10px; padding: 3px 10px; background: var(--lgray); color: var(--gray); border-radius: 20px; font-weight: 500; }
.tf-quote { font-size: 12px; color: var(--ink); line-height: 1.8; font-style: italic; }

/* ====== Course Cards ====== */
.course-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.course-scroll::-webkit-scrollbar { display: none; }
.cc-card { flex-shrink: 0; width: 210px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,.04); transition: all .2s; }
.cc-card:active { transform: scale(.97); }
.cc-stripe { height: 4px; }
.cc-inner { padding: 16px; }
.cc-icon { font-size: 28px; margin-bottom: 8px; }
.cc-grade { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; margin-bottom: 4px; }
.cc-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cc-desc { font-size: 11px; color: var(--gray); line-height: 1.7; }

/* ====== Shop (legacy — keep only non-duplicated rules) ====== */
.search-bar { display: flex; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.search-input { flex: 1; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-family: inherit; background: #f8fafc; transition: border-color .2s; }
.search-input:focus { border-color: #1e3a5f; background: #fff; }
.search-btn { padding: 9px 16px; background: #1e3a5f; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.shop-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.si-cat { font-size: 10px; color: var(--teal); background: rgba(20,143,119,.1); padding: 2px 8px; border-radius: 4px; width: fit-content; margin-bottom: 6px; font-weight: 500; }

/* ====== Cart ====== */
.cart-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.cart-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; background: #fff; font-size: 12px; transition: all .2s; }
.cart-check.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cart-img { width: 60px; height: 60px; border-radius: 8px; background: var(--warm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-price { font-size: 18px; font-weight: 700; color: var(--gold); }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; color: var(--ink); transition: all .2s; }
.cart-qty button:active { background: var(--lgray); }
.cart-qty span { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-del { color: var(--danger); font-size: 12px; cursor: pointer; background: none; border: none; font-family: inherit; padding: 6px; opacity: .7; }
.cart-del:active { opacity: 1; }
.cart-footer { background: #fff; border-top: .5px solid var(--border); padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: sticky; bottom: calc(55px + env(safe-area-inset-bottom, 0px)); z-index: 90; }
.cart-total { flex: 1; font-size: 14px; color: var(--gray); }
.cart-total strong { font-size: 20px; color: var(--gold); font-weight: 700; }
.cart-checkout { background: var(--navy); color: #fff; border: none; padding: 12px 30px; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s; }
.cart-checkout:active { transform: scale(.97); }

/* ====== Checkout Coupons ====== */
.co-coupon-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; transition: all .2s;
}
.co-coupon-item:active { border-color: var(--gold); }
.co-coupon-item.on { border-color: var(--gold); background: #FFFBEB; }
.co-coupon-value { font-size: 20px; font-weight: 700; color: var(--gold); line-height: 1; }
.co-coupon-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.co-coupon-limit { font-size: 11px; color: var(--gray); margin-top: 2px; }
.co-coupon-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.co-coupon-item.on .co-coupon-check {
  background: var(--gold); border-color: var(--gold);
}
.co-coupon-item.on .co-coupon-check::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
}

/* ====== Forms ====== */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%; padding: 13px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 14px; color: var(--ink); font-family: inherit;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,.06); }
.form-input::placeholder { color: #bbb; }
.form-select {
  width: 100%; padding: 13px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 14px; color: var(--ink); font-family: inherit;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ====== Auth ====== */
.auth-wrap { padding: 40px 20px; text-align: center; }
.auth-logo { font-size: 56px; margin-bottom: 16px; }
.auth-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--gray); margin-bottom: 32px; }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .form-input { flex: 1; }
.auth-send-btn { padding: 13px 18px; background: var(--navy); color: #fff; border: none; border-radius: 12px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; transition: all .2s; }
.auth-send-btn:disabled { background: var(--gray); cursor: not-allowed; opacity: .6; }
.auth-send-btn:active:not(:disabled) { transform: scale(.97); }
.auth-switch { font-size: 13px; color: var(--gray); text-align: center; margin-top: 16px; }
.auth-switch a { color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-error { color: var(--danger); font-size: 13px; text-align: center; margin-top: 12px; display: none; }

/* ====== Profile ====== */
.profile-header { background: var(--navy); padding: 32px 20px; display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 700; color: #fff; }
.profile-phone { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 3px; }
.profile-orders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; margin: 0 16px; border-radius: 12px; margin-top: -22px; overflow: hidden; border: 1px solid var(--border); position: relative; z-index: 2; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.po-item { padding: 16px 0; text-align: center; border-right: .5px solid var(--border); cursor: pointer; transition: all .2s; }
.po-item:last-child { border-right: none; }
.po-item:active { background: var(--warm); }
.po-num { font-size: 20px; font-weight: 700; color: var(--navy); }
.po-label { font-size: 11px; color: var(--gray); margin-top: 3px; }
.menu-list { background: #fff; margin: 12px 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: .5px solid var(--border); cursor: pointer; transition: all .15s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--warm); }
.menu-icon { font-size: 18px; width: 24px; text-align: center; }
.menu-text { flex: 1; font-size: 14px; color: var(--ink); font-weight: 500; }
.menu-arrow { color: var(--border); font-size: 18px; }
.menu-badge { background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 10px; }

/* ====== Orders ====== */
.order-tabs { display: flex; background: #fff; border-bottom: .5px solid var(--border); position: sticky; top: 0; z-index: 40; }
.order-tab { flex: 1; padding: 14px 0; border: none; background: none; font-size: 13px; color: var(--gray); font-family: inherit; cursor: pointer; position: relative; transition: all .2s; }
.order-tab.on { color: var(--navy); font-weight: 700; }
.order-tab.on::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }
.order-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.order-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.order-head { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: .5px solid var(--border); font-size: 12px; }
.order-no { color: var(--gray); font-size: 11px; }
.order-status { font-weight: 600; font-size: 12px; }
.order-body { padding: 14px 16px; display: flex; gap: 12px; align-items: center; transition: background .15s; }
.order-body[onclick]:active { background: var(--warm); }
.order-body .oi-img { width: 48px; height: 48px; border-radius: 8px; background: var(--warm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.order-body .oi-img img { width: 100%; height: 100%; object-fit: cover; }
.order-body .oi-info { flex: 1; }
.order-body .oi-name { font-size: 13px; font-weight: 600; }
.order-body .oi-qty { font-size: 11px; color: var(--gray); margin-top: 2px; }
.order-body .oi-price { font-size: 18px; font-weight: 700; color: var(--gold); }
.order-foot { padding: 10px 16px; display: flex; gap: 8px; justify-content: flex-end; border-top: .5px solid var(--border); }
.order-foot button { padding: 8px 18px; border-radius: 8px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; font-family: inherit; transition: all .2s; }
.of-btn-primary { background: var(--navy); color: #fff; }
.of-btn-primary:active { opacity: .9; }
.of-btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--border) !important; }
.of-btn-outline:active { background: var(--warm); }

/* ====== Product Detail Modal ====== */
.detail-img { text-align: center; margin-bottom: 16px; }
.detail-img img { max-width: 100%; max-height: 320px; border-radius: 14px; }
.detail-name { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.detail-price { font-size: 24px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.detail-price s { font-size: 13px; color: #94a3b8; font-weight: 400; margin-left: 10px; }
.detail-meta { font-size: 12px; color: var(--gray); margin-bottom: 18px; display: flex; gap: 20px; }
.detail-section { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--border); }
.detail-section h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.detail-section p { font-size: 13px; color: var(--ink); line-height: 1.8; }
.detail-section img { max-width: 100%; border-radius: 8px; }
.detail-bar { position: sticky; bottom: 70px; background: #fff; border-top: .5px solid var(--border); padding: 12px 20px; display: flex; gap: 12px; z-index: 50; }
.detail-bar .btn-cart { flex: 1; padding: 12px; background: #fff; border: 1px solid var(--navy); color: var(--navy); border-radius: 12px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s; }
.detail-bar .btn-cart:active { background: var(--warm); }
.detail-bar .btn-buy { flex: 1; padding: 12px; background: var(--navy); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s; }
.detail-bar .btn-buy:active { transform: scale(.98); }

/* ====== Address ====== */
.address-card { background: #fff; border-radius: 12px; padding: 16px; border: .5px solid var(--border); margin-bottom: 12px; position: relative; }
.ac-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ac-phone { font-size: 13px; color: var(--gray); margin-left: 10px; }
.ac-addr { font-size: 12px; color: var(--gray); margin-top: 4px; line-height: 1.6; }
.ac-default { font-size: 10px; color: var(--teal); background: rgba(20,143,119,.1); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-top: 4px; font-weight: 500; }
.ac-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; }
.ac-actions button { background: none; border: none; font-size: 12px; cursor: pointer; font-family: inherit; color: var(--gray); padding: 4px 6px; }
.ac-actions .edit { color: var(--navy); font-weight: 600; }

/* ====== Checkin Rewards ====== */
.reward-card { background: linear-gradient(135deg, var(--navy), #0F2B50); border-radius: 16px; padding: 24px; text-align: center; margin: 12px 16px; color: #fff; }
.reward-num { font-size: 52px; font-weight: 700; color: var(--gold); line-height: 1; }
.reward-label { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 6px; }
.reward-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; margin: 0 16px; border-radius: 14px; overflow: hidden; border: .5px solid var(--border); }
.rs-item { padding: 16px 0; text-align: center; border-right: .5px solid var(--border); }
.rs-item:last-child { border-right: none; }
.rs-num { font-size: 22px; font-weight: 700; color: var(--navy); }
.rs-label { font-size: 11px; color: var(--gray); margin-top: 3px; }

/* ====== Empty State（统一） ====== */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .icon { font-size: 52px; margin-bottom: 14px; opacity: .2; }
.empty-state .icon svg { width: 56px; height: 56px; stroke: var(--gray); }
.empty-state .title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.empty-state .desc { font-size: 13px; color: #94a3b8; margin-bottom: 18px; line-height: 1.6; }
.empty-state .btn { display: inline-block; padding: 10px 24px; background: var(--navy); color: #fff; border-radius: 12px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }

/* ====== Skeleton Loading ====== */
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.skel { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200px 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 6px; }
.skel-line { height: 13px; margin-bottom: 8px; }
.skel-line.w80 { width: 80%; } .skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; }
.skel-img { aspect-ratio: 1; border-radius: 8px; }
.skel-card { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--border); margin-bottom: 10px; display: flex; gap: 12px; }
.skel-card .skel-img { width: 80px; height: 80px; flex-shrink: 0; }
.skel-card-body { flex: 1; padding-top: 4px; }

/* ====== Toast ====== */
.toast {
  position: fixed; top: 50px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 500; max-width: 80%;
  text-align: center; animation: toastIn .3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.toast.success { background: #065f46; color: #fff; }
.toast.error { background: #991b1b; color: #fff; }
.toast.warning { background: #92400e; color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ====== Loading ====== */
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 9998; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.loading-spinner { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
.loading-text { margin-top: 18px; color: var(--ink); font-size: 14px; font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== Checkin Page ====== */
.checkin-reward-banner {
  background: linear-gradient(135deg, var(--navy), #2a5298);
  color: #fff;
  border-radius: 14px;
  margin: 12px 16px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.checkin-reward-banner::before {
  content: ''; position: absolute; right: -10px; bottom: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.08); opacity: .15;
}
.checkin-reward-banner h2 { font-size: 18px; margin-bottom: 4px; position: relative; z-index: 1; }
.checkin-reward-banner p { font-size: 13px; opacity: .8; position: relative; z-index: 1; }

.checkin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checkin-stat-item { text-align: center; padding: 16px 8px; background: var(--warm); border-radius: 10px; }
.checkin-stat-value { font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; }
.checkin-stat-label { font-size: 11px; color: var(--gray); margin-top: 6px; }

.checkin-progress-wrap { margin-top: 16px; }
.checkin-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.checkin-progress-bar { background: var(--lgray); border-radius: 12px; height: 10px; overflow: hidden; }
.checkin-progress-fill { background: linear-gradient(90deg, var(--gold), #D4A843); height: 100%; border-radius: 12px; transition: width .4s ease; }

.checkin-action-area { padding: 0 16px; margin-bottom: 12px; }

.checkin-reward-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; margin-bottom: 8px; border-radius: 12px; }
.checkin-reward-item.done { background: #e8f8ee; }
.checkin-reward-item.pending { background: var(--warm); }
.checkin-reward-info .checkin-reward-days { font-weight: 600; font-size: 14px; }
.checkin-reward-info .checkin-reward-desc { font-size: 12px; color: var(--gray); margin-top: 2px; }

.checkin-record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.checkin-record-item:last-child { border-bottom: none; }
.checkin-record-date { font-size: 14px; font-weight: 600; min-width: 80px; flex-shrink: 0; }
.checkin-record-img { width: 100%; border-radius: 10px; margin-bottom: 10px; }

.checkin-rank-tab {
  padding: 4px 10px; border: none; background: #f1f5f9;
  font-size: 11px; font-weight: 500; color: #64748b;
  border-radius: 8px; cursor: pointer; font-family: inherit;
}
.checkin-rank-tab.on { background: #1e293b; color: #fff; }

.checkin-rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.checkin-rank-item:last-child { border-bottom: none; }
.checkin-rank-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.checkin-rank-num.rank-1 { background: linear-gradient(135deg, #ffd700, #f0c000); color: #fff; }
.checkin-rank-num.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); color: #fff; }
.checkin-rank-num.rank-3 { background: linear-gradient(135deg, #cd7f32, #b8702a); color: #fff; }
.checkin-rank-num.rank-other { background: var(--lgray); color: var(--gray); }
.checkin-rank-info { flex: 1; min-width: 0; }
.checkin-rank-name { font-size: 14px; font-weight: 600; }
.checkin-rank-days { font-size: 12px; color: var(--gray); margin-top: 2px; }
.checkin-rank-me { background: #eef2f7; margin: 0 -12px; padding: 10px 12px !important; border-radius: 8px; border-bottom: none !important; }
.checkin-rank-mypos { text-align: center; padding: 12px; font-size: 12px; color: var(--gray); }

.checkin-upload-area {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 36px 20px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.checkin-upload-area:active { border-color: var(--gold); background: var(--warm); }
.checkin-upload-icon { font-size: 40px; margin-bottom: 10px; }
.checkin-upload-text { font-size: 13px; color: var(--gray); }
.checkin-preview-img { width: 100%; border-radius: 10px; margin-top: 12px; }

/* ====== Shop Search Pill ====== */
.shop-search-wrap {
  display: flex; gap: 8px; padding: 0 16px 12px;
}
.shop-search-pill {
  flex: 1; display: flex; align-items: center; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 24px; padding: 0 14px;
  height: 42px; transition: border-color .2s;
}
.shop-search-pill:focus-within { border-color: var(--navy); }
.shop-search-pill input {
  flex: 1; border: none; outline: none; font-size: 13px;
  color: var(--ink); background: transparent; font-family: inherit;
}
.shop-search-pill input::placeholder { color: #94a3b8; }
.shop-search-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all .2s;
}
.shop-search-btn:active { transform: scale(.94); }

/* ====== Home Promo Card ====== */
.home-promo {
  margin: 0 20px 24px; background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px; padding: 16px; display: flex;
  align-items: center; gap: 14px; cursor: pointer;
  transition: all .2s; position: relative; overflow: hidden;
}
.home-promo::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.home-promo:active { transform: scale(.98); }
.hp-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.2); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}
.hp-icon svg { width: 24px; height: 24px; stroke: #fff; }
.hp-info { flex: 1; position: relative; z-index: 1; }
.hp-title { font-size: 15px; font-weight: 700; color: #fff; }
.hp-desc { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-btn {
  background: #fff; color: #d97706; border: none;
  padding: 8px 18px; border-radius: 20px; font-size: 12px;
  font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap; position: relative; z-index: 1;
  transition: all .2s;
}
.hp-btn:active { transform: scale(.95); }

/* ====== SVG Icon Wrapper ====== */
.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico-s { width: 20px; height: 20px; }
.ico-m { width: 24px; height: 24px; }
.ico-l { width: 32px; height: 32px; }
.ico-xl { width: 44px; height: 44px; }
.ico-navy svg { stroke: var(--navy); }
.ico-gold svg { stroke: var(--gold); }
.ico-white svg { stroke: #fff; }
.ico-gray svg { stroke: var(--gray); }

/* ====== Shop Waterfall Grid ====== */
.shop-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 16px; margin-bottom: 12px;
}
.shop-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.shop-card:active { transform: scale(.98); }
.sc-img {
  aspect-ratio: 1; background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden; position: relative;
}
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  background: rgba(30,58,95,.85); color: #fff; font-weight: 500;
  pointer-events: none;
}
.sc-body { padding: 12px; }
.sc-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sc-price-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px;
}
.sc-price { font-size: 18px; font-weight: 700; color: var(--gold); }
.sc-price s { font-size: 11px; color: #94a3b8; font-weight: 400; text-decoration: line-through; }
.sc-actions { display: flex; gap: 6px; }
.sc-buy {
  flex: 1; background: var(--navy); color: #fff; border: none;
  border-radius: 10px; padding: 7px 0; font-size: 11px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all .2s; text-align: center;
}
.sc-buy:active { transform: scale(.95); opacity: .9; }
.sc-cart {
  flex: 1; background: #fff; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 10px;
  padding: 7px 0; font-size: 11px; font-weight: 500;
  font-family: inherit; cursor: pointer; transition: all .2s;
  text-align: center;
}
.sc-cart:active { transform: scale(.95); background: var(--warm); }

/* ====== Category & Sort Bar (standardized) ====== */
.cat-bar { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid #f1f5f9; position: sticky; top: 0; z-index: 40; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-btn { flex-shrink: 0; padding: 7px 18px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; font-weight: 500; color: #64748b; cursor: pointer; font-family: inherit; transition: all .2s; }
.cat-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.sort-bar { display: flex; gap: 0; padding: 0 16px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.sort-btn { flex: 1; padding: 12px 0; border: none; background: none; font-size: 12px; color: #64748b; font-family: inherit; cursor: pointer; transition: all .2s; }
.sort-btn.on { color: var(--ink); font-weight: 700; }

/* ====== Standardized Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s; border: none;
  background: #f1f5f9; color: var(--ink);
}
.btn:active { transform: scale(.98); }

.btn-primary {
  width: 100%; padding: 12px; background: var(--navy); color: #fff;
  border: none; border-radius: 12px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.btn-primary:active { transform: scale(.98); opacity: .92; }

.btn-gold {
  width: 100%; padding: 12px; background: linear-gradient(135deg, var(--gold), #C99A2E); color: #fff;
  border: none; border-radius: 12px; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 14px rgba(184,137,26,.2);
}
.btn-gold:active { transform: scale(.98); }

.btn-sm {
  padding: 6px 14px; border-radius: 12px; font-size: 11px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all .2s; border: none;
}
.btn-sm-navy { background: var(--navy); color: #fff; }
.btn-sm-navy:active { transform: scale(.95); opacity: .9; }
.btn-sm-outline { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-sm-outline:active { transform: scale(.95); background: var(--warm); }

/* ====== Discover Hero (standardized) ====== */
.discover-hero {
  margin: 0 20px; background: linear-gradient(135deg, var(--navy) 0%, #0F2B50 100%);
  border-radius: 12px; padding: 24px 20px; position: relative; overflow: hidden;
}
.discover-hero::before {
  content: '✦'; font-family: serif; font-size: 140px; font-weight: 900;
  color: rgba(255,255,255,.03); position: absolute; right: -20px;
  top: -30px; line-height: 1; pointer-events: none;
}
.dh-eyebrow {
  font-size: 10px; letter-spacing: 3px; color: var(--gold);
  font-weight: 600; text-transform: uppercase; margin-bottom: 8px;
  position: relative; z-index: 1;
}
.dh-title {
  font-size: 22px; font-weight: 700; color: #fff;
  line-height: 1.3; margin-bottom: 6px; position: relative; z-index: 1;
}
.dh-sub {
  font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.dh-cta {
  display: inline-block; background: var(--gold); color: #fff;
  border: none; padding: 10px 24px; border-radius: 12px; font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer;
  position: relative; z-index: 1; transition: all .2s;
}
.dh-cta:active { transform: scale(.96); }

/* ====== Section Heading (shared) ====== */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 20px; margin-bottom: 12px;
}
.sec-head-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.sec-head-link { font-size: 12px; color: #64748b; text-decoration: none; cursor: pointer; font-weight: 500; }

/* ====== Course Grid 2-col (standardized) ====== */
.course-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 20px; margin-bottom: 8px;
}
.cg-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cg-card:active { transform: scale(.97); }
.cg-stripe { height: 4px; }
.cg-body { padding: 14px; }
.cg-icon { margin-bottom: 8px; }
.cg-icon svg { width: 24px; height: 24px; }
.cg-grade { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; margin-bottom: 4px; }
.cg-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cg-desc { font-size: 11px; color: var(--gray); line-height: 1.6; }

/* ====== Advantage Grid 2x2 (standardized) ====== */
.adv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 0 20px; margin-bottom: 8px;
}
.ag-card {
  background: #fff; border-radius: 12px; padding: 18px 14px;
  border: 1px solid var(--border); text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ag-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 10px;
}
.ag-icon svg { width: 22px; height: 22px; stroke: #fff; }
.ag-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ag-desc { font-size: 12px; color: var(--gray); line-height: 1.6; }

/* ====== Discover CTA (standardized) ====== */
.discover-cta {
  margin: 4px 20px 8px; background: linear-gradient(135deg, var(--navy), #0F2B50);
  border-radius: 12px; padding: 24px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.discover-cta::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.dc-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; position: relative; z-index: 1; }
.dc-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; position: relative; z-index: 1; }
.dc-btn {
  display: inline-block; background: var(--gold); color: #fff;
  border: none; padding: 10px 28px; border-radius: 12px; font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer;
  position: relative; z-index: 1; transition: all .2s;
  box-shadow: 0 4px 14px rgba(184,137,26,.25);
}
.dc-btn:active { transform: scale(.96); }

/* ====== Shop Hero Strip (standardized) ====== */
.shop-hero-strip {
  margin: 0; background: linear-gradient(135deg, var(--navy), #1d4ed8);
  border-radius: 14px; padding: 16px 18px; position: relative; overflow: hidden;
}
.shop-hero-strip::after {
  content: ''; position: absolute; right: -12px; top: -12px;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.shs-title { font-size: 16px; font-weight: 700; color: #fff; position: relative; z-index: 1; }
.shs-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; position: relative; z-index: 1; }

/* ====== Article Cards v3 ====== */
.ac-cover-img { width: 100%; height: 180px; overflow: hidden; background: #f1f5f9; }
.ac-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-body { padding: 12px 14px; }
.ac-cat-tag { display: inline-block; font-size: 10px; background: #eff6ff; color: var(--navy); padding: 2px 8px; border-radius: 4px; font-weight: 500; margin-right: 6px; }
.ac-feat-tag { display: inline-block; font-size: 10px; background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.ac-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; margin: 6px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-summary { font-size: 13px; color: #94a3b8; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-meta { display: flex; gap: 12px; font-size: 11px; color: #94a3b8; align-items: center; }
.ac-product { margin-top: 8px; padding: 8px 10px; background: #f8fafc; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; cursor: pointer; }
.ac-product:active { background: #e2e8f0; }

/* 文章详情内嵌展开 */
.ac-detail { border-top: 1px solid #e2e8f0; background: #fafafa; border-radius: 0 0 12px 12px; overflow: hidden; }
.ac-detail-title { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.ac-detail-meta { font-size: 12px; color: #94a3b8; margin-bottom: 16px; }
.ac-detail-content { font-size: 15px; line-height: 2; color: #333; word-break: break-word; }
.ac-detail-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.ac-detail-content p { margin-bottom: 14px; }
.ac-detail-content h2, .ac-detail-content h3 { margin: 20px 0 12px; font-weight: 700; }
.ac-detail-product { margin-top: 24px; padding: 16px; background: #fff; border-radius: 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; }
/* ====== Article Cards v3 ====== */
.ac-skel { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skelShimmer 1.5s infinite; }
@keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.discover-cats { white-space: nowrap; overflow-x: auto; padding-bottom: 8px; }
.dc-item { display: inline-block; padding: 6px 16px; margin-right: 8px; border-radius: 20px; font-size: 13px; font-weight: 500; background: #f1f5f9; color: #475569; cursor: pointer; }
.dc-item.active { background: var(--navy); color: #fff; }

.ac-wrap { margin-bottom: 12px; }
.ac-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ac-card:active { background: #fafafa; }
.ac-card.ac-compact { display: flex; }
.ac-card.ac-compact .ac-cover-img { width: 110px; height: 90px; flex-shrink: 0; }
.ac-card.ac-cover .ac-cover-img, .ac-card.ac-compact .ac-cover-img { width: 100%; height: 180px; overflow: hidden; background: #f1f5f9; }
.ac-card.ac-compact .ac-cover-img { height: 100px; width: 110px; }


/* 商品详情 */
.pd-type { display: inline-block; padding: 8px 20px; border-radius: 8px; font-size: 13px; background: #f1f5f9; cursor: pointer; font-weight: 500; }
.pd-type.active { background: var(--navy); color: #fff; }
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

.ac-compact { display:flex !important; flex-wrap:wrap !important; }
.ac-compact .ac-cover-img { width:110px !important; height:90px !important; flex-shrink:0; }
.ac-compact .ac-body { flex:1; min-width:0; padding:10px 12px; }
.ac-compact .ac-product { width:100% !important; margin-left:0 !important; margin-top:4px !important; border-radius:0 0 8px 8px; }

/* ====== Schedule Cards (课表) ====== */
.sch-card{background:#fff;border-radius:12px;padding:18px;margin-bottom:12px;border:1px solid #e2e8f0}
.sch-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sch-date{font-size:13px;color:#64748b}
.sch-status{font-size:11px;font-weight:600;padding:3px 10px;border-radius:10px}
.sch-status-scheduled{background:#dbeafe;color:#1e40af}
.sch-status-completed{background:#d1fae5;color:#065f46}
.sch-status-cancelled{background:#fee2e2;color:#991b1b}
.sch-main{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.sch-time-bar{width:4px;height:48px;background:#1e3a5f;border-radius:2px;flex-shrink:0}
.sch-info{flex:1;min-width:0}
.sch-time{font-size:17px;font-weight:700;color:#1e293b}
.sch-course{font-size:13px;color:#1e293b;margin-top:3px}
.sch-teacher{display:flex;align-items:center;gap:6px;font-size:12px;color:#64748b;margin-bottom:8px}
.sch-remark{font-size:12px;color:#94a3b8;margin-bottom:10px;padding:8px 10px;background:#f8fafc;border-radius:6px;line-height:1.6}
.sch-enter-btn{display:block;text-align:center;background:#1e3a5f;color:#fff;padding:10px;border-radius:12px;font-size:13px;font-weight:600;text-decoration:none;transition:opacity .2s}
.sch-enter-btn:active{opacity:.85}
