:root {
  color-scheme: light;
  --page: #f4f6f2;
  --paper: #ffffff;
  --ink: #191d20;
  --muted: #737b80;
  --light: #eef0ef;
  --green: #09a33d;
  --green-deep: #075c2a;
  --green-soft: #1f8d5a;
  --red: #d41132;
  --orange: #c68a24;
  --gold: #f3c765;
  --shadow: 0 12px 30px rgba(25, 29, 32, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ededed;
  color: var(--ink);
}

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-app {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.screen {
  min-height: 100vh;
  padding: 10px 14px 86px;
}

.home-view {
  display: grid;
  gap: 10px;
}

.home-hero {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: 8px;
  background: #102218;
  box-shadow: 0 18px 38px rgba(18, 37, 28, 0.18);
}

.hero-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 14, 0.88) 0%, rgba(8, 22, 14, 0.48) 43%, rgba(8, 22, 14, 0.1) 74%),
    linear-gradient(90deg, rgba(8, 22, 14, 0.62), rgba(8, 22, 14, 0.08));
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 200px;
  padding: 16px 16px 13px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(243, 199, 101, 0.72);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffdf8a;
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h2 {
  max-width: 320px;
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.14;
}

.hero-copy p {
  max-width: 320px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.48;
}

.hero-copy .hero-warning {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 7px;
  border: 1px solid rgba(255, 232, 130, 0.92);
  border-left: 4px solid #ffd345;
  padding: 6px 9px;
  background: linear-gradient(90deg, rgba(255, 214, 72, 0.96), rgba(255, 247, 205, 0.9));
  color: #15351e;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.3;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.trust-strip div {
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.trust-strip div {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 7px 5px;
  text-align: center;
}

.trust-strip strong {
  color: #0c7f35;
  font-size: 16px;
  font-weight: 950;
}

.trust-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.teacher-db strong {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.22;
}

.teacher-db span {
  font-size: 10.5px;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 56px;
  min-height: 128px;
  align-items: center;
  gap: 11px;
  border: 1px solid #e2e9e4;
  border-radius: 8px;
  padding: 13px 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 37, 28, 0.07);
  text-align: left;
}

.product-card.featured {
  border-color: rgba(9, 163, 61, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.product-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  justify-self: center;
  color: var(--green-soft);
}

.product-icon.people svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
  stroke: none;
}

.product-icon.excel {
  position: relative;
  width: 35px;
  height: 42px;
  border-radius: 4px 8px 4px 4px;
  background: #08b439;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.product-icon.excel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 0 7px 0 4px;
  background: #c6f1cf;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  content: "";
}

.product-main {
  min-width: 0;
}

.product-badges {
  display: flex;
  min-height: 22px;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.product-badges span,
.product-badges em {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.product-badges span {
  background: #eaf7ef;
  color: #0a7c34;
}

.product-badges em {
  background: #fff0d2;
  color: #9a610c;
}

.product-title {
  display: -webkit-box;
  margin-bottom: 5px;
  overflow: hidden;
  color: #171a1c;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-pitch {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #626d73;
  font-size: 12px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.price {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.product-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: #858b90;
  font-size: 12px;
}

.product-side > span:first-child {
  color: #465157;
  font-weight: 850;
}

.download-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #858d92;
  white-space: normal;
}

.download-count svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.meta-download {
  grid-column: 1 / -1;
  margin-top: -1px;
  font-size: 12px;
  line-height: 1.25;
}

.product-side strong {
  display: inline-grid;
  min-width: 52px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.detail-view {
  display: grid;
  gap: 16px;
}

.detail-card {
  border-radius: 8px;
  padding: 20px 14px;
  background: #fff;
  box-shadow: none;
}

.hero-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 18px 14px 16px;
}

.hero-info {
  min-width: 0;
}

.hero-title {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.detail-badges {
  margin-bottom: 8px;
}

.hero-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.hero-line .price {
  color: var(--green);
  font-size: 18px;
}

.hero-desc {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #858b90;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.purchase-reasons {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  border-radius: 7px;
  padding: 12px 10px;
  background: #f6faf7;
}

.purchase-reasons h3 {
  margin: 0;
  color: #121719;
  font-size: 16px;
  font-weight: 950;
}

.purchase-reasons div {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--green);
  padding-left: 9px;
}

.purchase-reasons strong {
  color: #16211a;
  font-size: 14px;
  font-weight: 900;
}

.purchase-reasons span {
  color: #657078;
  font-size: 12px;
  line-height: 1.45;
}

.province-selector {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 6px;
  border: 1px solid rgba(9, 163, 61, 0.18);
  border-radius: 8px;
  padding: 12px 10px;
  background: #ffffff;
}

.province-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.province-head strong {
  color: #121719;
  font-size: 15px;
  font-weight: 950;
}

.province-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.province-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.province-grid button {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid #e1e8e3;
  border-radius: 7px;
  background: #f8fbf9;
  color: #24302a;
  font-size: 13px;
  font-weight: 850;
}

.province-grid button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(9, 163, 61, 0.18);
}

.province-selector p {
  margin: 0;
  color: #7b8388;
  font-size: 12px;
  line-height: 1.45;
}

.detail-assurance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.detail-assurance span {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 7px;
  padding: 6px;
  background: #f2faf5;
  color: #0b7434;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.source-text {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: #a3a8ac;
  font-size: 13px;
}

.detail-card h2 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-card .hero-title {
  color: #111;
}

.hero-card .product-icon.excel {
  width: 44px;
  height: 52px;
  align-self: start;
  font-size: 25px;
}

.hero-card .product-icon.people svg {
  width: 50px;
  height: 50px;
}

.value-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: #080a0c;
  line-height: 1.45;
}

.value-tag {
  display: inline-grid;
  height: 27px;
  place-items: center;
  border-radius: 5px;
  background: #ffae35;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.value-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.value-copy strong {
  color: #101416;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.28;
}

.value-copy p {
  margin: 0;
  color: #657078;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.preview-box {
  border-radius: 6px;
  padding: 0;
  background: #f7f7f7;
  color: #202326;
  font-size: 17px;
  line-height: 1.55;
}

.preview-table {
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.preview-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 76px;
  gap: 8px;
  border-bottom: 1px solid #e8e8e8;
  padding: 7px 10px;
  white-space: nowrap;
}

.preview-row strong,
.preview-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-preview {
  overflow: hidden;
  border-radius: 6px;
  background: #f7f7f7;
}

.service-preview p {
  margin: 0;
  padding: 16px 1px 14px;
  color: #0c0f12;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.service-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.notice-card h2 {
  color: var(--red);
}

.notice-card h2 span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  margin-left: 2px;
  border: 1px solid #f4a9bd;
  border-radius: 50%;
  color: #e76b8d;
  font-size: 12px;
}

.notice-card p {
  margin: 0;
  color: #8d9296;
  font-size: 15px;
}

.mine-view {
  display: grid;
  gap: 14px;
}

.mine-toolbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mine-toolbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.mine-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.refresh-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #f4f6f5;
  color: var(--green);
}

.refresh-button svg {
  width: 22px;
  height: 22px;
}

.mine-state {
  color: var(--muted);
  font-size: 15px;
}

.empty-state {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 20px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.empty-state strong {
  color: #15191c;
  font-size: 18px;
}

.empty-state span {
  color: #7f868b;
  line-height: 1.55;
}

.empty-state button {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.order-card h3 {
  margin: 0;
  overflow: hidden;
  color: #171a1c;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card p {
  margin: 7px 0 0;
  color: #8b9297;
  font-size: 12px;
}

.order-status {
  justify-self: end;
  color: #8b9297;
  font-size: 13px;
  font-weight: 800;
}

.order-status.paid {
  color: var(--green);
}

.order-card button {
  grid-column: 1 / -1;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.order-card button:disabled {
  background: #e8ebe9;
  color: #8d9498;
}

.teacher-button {
  position: fixed;
  right: max(0px, calc((100vw - 430px) / 2));
  bottom: 94px;
  z-index: 6;
  display: inline-flex;
  min-width: 130px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px 0 0 8px;
  background: rgba(55, 55, 55, 0.92);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.teacher-button svg {
  width: 28px;
  height: 28px;
}

.detail-action,
.tabbar {
  position: fixed;
  left: max(0px, calc((100vw - 430px) / 2));
  z-index: 8;
  width: min(100%, 430px);
  background: #fff;
}

.detail-action {
  bottom: 0;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
  min-height: 78px;
  align-items: center;
  border-top: 1px solid #ececec;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
}

.share-button,
.download-button {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.share-button {
  gap: 8px;
  color: #1f2326;
  font-size: 17px;
}

.share-button svg {
  width: 23px;
  height: 23px;
}

.download-button {
  background: var(--green);
  color: #fff;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.download-button:active {
  background: var(--green-deep);
}

.tabbar {
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 72px;
  border-top: 1px solid #e6e6e6;
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar button {
  display: grid;
  gap: 2px;
  place-items: center;
  align-content: center;
  color: #2f3336;
  font-size: 13px;
}

.tabbar svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}

.tabbar .active {
  color: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 20;
  max-width: min(340px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.delivery-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.36);
}

.delivery-card {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  gap: 12px;
  border-radius: 8px;
  padding: 22px 18px 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.delivery-card h2 {
  margin: 0;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.delivery-card p {
  margin: 0;
  color: #596167;
  line-height: 1.5;
}

.delivery-card label {
  display: grid;
  gap: 6px;
  color: #858b90;
  font-size: 13px;
  font-weight: 800;
}

.delivery-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e1e4e2;
  border-radius: 8px;
  padding: 9px 10px;
  color: #111;
  background: #f8f8f8;
  font: inherit;
}

.copy-delivery {
  height: 46px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.sheet-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: #7c8388;
  font-size: 26px;
  line-height: 1;
}

.delivery-note {
  font-size: 13px;
}

.sku-sheet {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.36);
}

.sku-card {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  max-height: min(84vh, 680px);
  overflow: auto;
  gap: 11px;
  border-radius: 10px 10px 8px 8px;
  padding: 22px 16px 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.sku-card h2 {
  margin: 0;
  color: #111;
  font-size: 20px;
  font-weight: 950;
}

.sku-title,
.sku-hint {
  margin: 0;
  color: #6f787e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.sku-title {
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.sku-list {
  min-height: 0;
}

.sheet-province-selector {
  margin-top: 0;
  border: 0;
  padding: 0;
}

.sheet-province-selector .province-head {
  display: none;
}

.sheet-province-selector .province-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sheet-province-selector .province-grid button {
  min-height: 38px;
  border-radius: 8px;
  background: #f6f8f7;
  font-size: 14px;
}

.sheet-province-selector .province-grid button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.sheet-province-selector p {
  border-radius: 7px;
  padding: 9px 10px;
  background: #f7faf8;
}

.sku-confirm {
  height: 48px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.sku-confirm:disabled {
  background: #e4e8e5;
  color: #8d9690;
}

@media (max-width: 360px) {
  .screen {
    padding-inline: 10px;
  }

  .home-hero,
  .hero-copy {
    min-height: 188px;
  }

  .hero-copy h2 {
    font-size: 21px;
  }

  .hero-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .hero-copy .hero-warning {
    font-size: 11.5px;
    line-height: 1.32;
  }

  .product-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .province-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet-province-selector .province-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value-list li {
    grid-template-columns: 46px minmax(0, 1fr);
    font-size: 16px;
  }

  .product-side {
    grid-column: 2;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    justify-items: start;
  }

}

@media (min-width: 431px) {
  body {
    padding: 18px 0;
  }

  .mobile-app {
    min-height: calc(100vh - 36px);
    border-radius: 8px;
  }

  .detail-action,
  .tabbar {
    bottom: 18px;
  }

  .teacher-button {
    right: calc((100vw - 430px) / 2);
    bottom: 112px;
  }
}
