/* ==========================================================================
   阳光校园主题 · Sunny Campus
   在基础样式之后加载；以明亮天空、草地、阳光与纸张质感重塑品牌氛围
   ========================================================================== */

:root {
  --ink: #203736;
  --forest: #2f765f;
  --forest-deep: #235b4a;
  --forest-soft: #5f9b82;
  --cream: #fffaf0;
  --cream-deep: #f8eedb;
  --paper: #fffefa;
  --sand: #f3e3c7;
  --line: #e8ddc9;
  --line-soft: #f2eadd;
  --terracotta: #e47e59;
  --terracotta-dark: #cc6642;
  --gold: #efc45f;
  --sage: #9fc6a9;
  --muted: #6c8076;
  --muted-light: #98a79f;
  --sky: #dceffb;
  --sky-deep: #76b1cf;
  --sun: #f7cc67;
  --grass: #79ad72;
  --campus-blue: #3a789c;
  --shadow-sm: 0 3px 14px rgba(39, 81, 66, 0.06);
  --shadow-md: 0 18px 48px rgba(39, 81, 66, 0.11);
  --shadow-lg: 0 34px 80px rgba(39, 81, 66, 0.15);
}

body {
  background: var(--cream);
  color: var(--ink);
}

::selection {
  background: #f7cc67;
  color: #203736;
}

/* --------------------------------------------------------------------------
   基础文字 / 按钮
   -------------------------------------------------------------------------- */

.eyebrow {
  color: #cf6b48;
}

.eyebrow.light {
  color: #f8d884;
}

.section-title {
  color: #1e3a37;
}

.section-sub {
  color: #708177;
}

.text-link {
  color: #2d6654;
  border-color: #bfd3c6;
}

.text-link:hover {
  color: #cf6b48;
  border-color: #cf6b48;
}

.btn-primary {
  background: var(--forest);
  color: #fffdf7;
  box-shadow: 0 10px 24px rgba(47, 118, 95, 0.2);
}

.btn-primary:hover {
  background: var(--forest-deep);
}

.btn-outline {
  border-color: #c7d8ce;
  background: rgba(255, 255, 255, 0.4);
  color: #315c4d;
}

.btn-outline:hover {
  border-color: #5c9a7f;
  background: #fffefb;
}

.btn-dark {
  background: #2e6653;
  color: #fffdf7;
}

.btn-dark:hover {
  background: #245541;
}

.btn-cream {
  background: #fff6d8;
  color: #315344;
}

.btn-cream:hover {
  background: #ffe9a5;
}

.btn-text {
  color: #6a8175;
}

.alert-error {
  border-color: #efc9bd;
  background: #fff6f1;
  color: #7b3d2e;
}

.alert-info {
  border-color: #c7e1ed;
  background: #f0f9fd;
  color: #325d6e;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #6cae98;
  box-shadow: 0 0 0 3px rgba(72, 140, 117, 0.1);
}

.field input,
.field select,
.field textarea {
  background: #fffefa;
}

.badge-success {
  background: #e7f6ea;
  color: #2b6b4c;
}

.badge-accent {
  background: #fff0e7;
  color: #b55835;
}

.badge-info {
  background: #e9f6fb;
  color: #2b6682;
}

.badge-warning {
  background: #fff5dc;
  color: #8b5e1b;
}

.flash {
  background: #fffefa;
  border-color: #eadfcb;
}

.page-btn.active {
  background: #2f765f;
  border-color: #2f765f;
}

/* --------------------------------------------------------------------------
   顶部公告 / 导航
   -------------------------------------------------------------------------- */

.announcement-bar {
  background:
    radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.48), transparent 24%),
    linear-gradient(90deg, #ffdf9a 0%, #fff1c9 48%, #e8f6fc 100%);
  color: #4b5b47;
  border-bottom: 1px solid rgba(198, 154, 67, 0.16);
}

.announcement-inner {
  font-weight: 500;
}

.announcement-dot {
  background: #e47e59;
  box-shadow: 0 0 0 3px rgba(228, 126, 89, 0.13);
}

.announcement-inner a {
  color: #2f6f5b;
  border-color: rgba(47, 111, 91, 0.34);
}

.announcement-close {
  color: rgba(59, 77, 62, 0.55);
}

.site-header {
  background: rgba(255, 250, 240, 0.93);
  border-bottom-color: rgba(214, 225, 213, 0.72);
  box-shadow: 0 4px 24px rgba(58, 93, 74, 0.035);
}

.brand-mark {
  color: #2f765f;
  border-color: #2f765f;
  background: rgba(255, 255, 255, 0.4);
}

.brand-type strong {
  color: #24413b;
}

.brand-type small {
  color: #7d9186;
}

.desktop-nav a {
  color: #72857b;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #24453d;
}

.desktop-nav a::after {
  background: #e47e59;
}

.header-text-link {
  color: #74877c;
}

.header-text-link:hover {
  color: #2f765f;
}

.cart-link {
  border-color: #d9e5dc;
  background: rgba(255, 255, 255, 0.72);
  color: #315248;
}

.cart-link:hover {
  border-color: #9abdaa;
  background: #fffefb;
}

.header-search {
  background: #fffdf7;
  border-top-color: #e9dfcf;
}

.header-search-inner button[type="submit"] {
  background: #2f765f;
}

.shop-closed-banner {
  background: #fff3d8;
  border-color: #f0d59c;
  color: #7e5f27;
}

/* --------------------------------------------------------------------------
   首页主视觉 · 阳光校园
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 213, 111, 0.55), transparent 25%),
    radial-gradient(circle at 8% 25%, rgba(255, 255, 255, 0.8), transparent 27%),
    radial-gradient(circle at 72% 74%, rgba(178, 220, 189, 0.28), transparent 34%),
    linear-gradient(180deg, #d6edfa 0%, #eef9fb 37%, #fffaf0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 4%;
  width: 210px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 55%, rgba(255, 255, 255, 0.82) 0 26px, transparent 27px),
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.9) 0 34px, transparent 35px),
    radial-gradient(circle at 68% 58%, rgba(255, 255, 255, 0.72) 0 24px, transparent 25px);
  opacity: 0.72;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 95px;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(143, 189, 130, 0.15), transparent 50%),
    radial-gradient(ellipse at 75% 100%, rgba(143, 189, 130, 0.16), transparent 45%);
  pointer-events: none;
}

.hero-grain {
  opacity: 0.18;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c86442;
  font-size: 10px;
}

.hero .eyebrow::before {
  content: "☀";
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
}

.hero-title {
  color: #1d3a37;
  font-weight: 500;
}

.hero-lead {
  color: #5c746b;
}

.hero-actions .btn-primary {
  background: #f6c95d;
  color: #29463b;
  box-shadow: 0 12px 26px rgba(200, 152, 48, 0.2);
}

.hero-actions .btn-primary:hover {
  background: #ffd978;
  color: #20392f;
}

.hero-actions .btn-text {
  color: #3c6b58;
}

.hero-trust {
  border-top-color: rgba(98, 137, 114, 0.2);
}

.hero-trust span {
  color: #647b70;
}

.hero-trust svg {
  color: #d57b55;
}

.hero-frame {
  border: 8px solid #fffdf6;
  border-radius: 250px 250px 22px 22px;
  box-shadow:
    0 35px 75px rgba(52, 98, 93, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  background: #f9f2e3;
}

.hero-frame::after {
  background: linear-gradient(180deg, rgba(255, 252, 243, 0.04), transparent 45%, rgba(30, 60, 48, 0.07));
}

.hero-frame > img {
  transform: scale(1.002);
}

.hero-image-caption {
  left: 22px;
  right: 22px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 253, 246, 0.91);
  color: #295044;
  box-shadow: 0 12px 30px rgba(41, 74, 61, 0.1);
  backdrop-filter: blur(9px);
}

.caption-num {
  color: #cf724c;
}

.hero-image-caption p {
  color: #3d5b50;
}

.hero-float-card {
  left: -22px;
  bottom: 105px;
  border-color: #f1e3c9;
  background: rgba(255, 253, 246, 0.95);
  box-shadow: 0 18px 45px rgba(53, 89, 69, 0.14);
}

.float-icon {
  background: #ffe6a0;
  color: #9d6e29;
}

.hero-float-card strong {
  color: #304d42;
}

.hero-float-card small {
  color: #85958b;
}

.hero-stamp {
  color: #4b786e;
  opacity: 0.84;
}

.hero-vertical {
  color: rgba(69, 105, 91, 0.54);
}

.hero-sticker {
  position: absolute;
  z-index: 7;
  top: 38px;
  left: -31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #f2d493;
  border-radius: 999px;
  background: #fff7dc;
  box-shadow: 0 9px 22px rgba(129, 98, 46, 0.12);
  color: #9a6931;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: rotate(-5deg);
}

.hero-sticker svg {
  color: #d8983e;
}

.hero-scroll {
  color: rgba(71, 111, 89, 0.52);
}

.hero-scroll i::after {
  background: #d77450;
}

/* 首页跑马灯 */
.marquee {
  border-color: #ead9b4;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 12px, transparent 12px 24px),
    #fff3d7;
}

.marquee-group span {
  color: #5e735f;
}

.marquee-group i {
  color: #d77a54;
}

/* --------------------------------------------------------------------------
   首页分区 / 分类
   -------------------------------------------------------------------------- */

.category-section {
  background:
    radial-gradient(circle at 93% 8%, rgba(241, 199, 103, 0.11), transparent 17%),
    #fffaf0;
}

.category-mosaic {
  gap: 16px;
}

.category-card {
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(75, 95, 68, 0.09);
}

.category-img img {
  filter: saturate(1.04);
}

.category-overlay {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0) 34%, rgba(255, 251, 241, 0.78) 62%, rgba(255, 249, 237, 0.99) 100%);
}

.category-content {
  color: #25443d;
  padding: 22px;
}

.category-content h3 {
  color: #203f37;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.category-content p {
  color: #587265;
  font-weight: 400;
}

.category-count {
  color: #a55f2d;
  font-weight: 600;
}

.circle-arrow {
  border-color: rgba(68, 108, 85, 0.33);
  background: rgba(255, 255, 255, 0.58);
  color: #376650;
}

.category-card:hover .circle-arrow {
  background: #2f765f;
  border-color: #2f765f;
  color: #fffdf7;
}

/* 商品卡片 */
.featured-section {
  background: #fffaf0;
}

.product-grid {
  row-gap: clamp(28px, 3vw, 40px);
}

.product-card {
  padding: 9px 9px 13px;
  border: 1px solid #eee3d1;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 5px 20px rgba(61, 88, 65, 0.035);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #dfd1b9;
  box-shadow: 0 22px 42px rgba(61, 88, 65, 0.1);
}

.product-card-media {
  border-radius: 12px;
  background: #eaf6ff;
}

.product-flag,
.product-discount {
  border-radius: 999px;
  padding: 5px 10px;
}

.product-flag {
  background: rgba(255, 254, 249, 0.95);
  color: #436251;
  box-shadow: 0 3px 10px rgba(51, 77, 66, 0.08);
}

.product-discount {
  background: #e9825b;
}

.product-card-body {
  padding: 13px 6px 0;
}

.product-card-title {
  color: #28453d;
}

.product-card-title:hover {
  color: #c96643;
}

.product-card-sub {
  color: #85948b;
}

.product-price {
  color: #22453e;
}

.commission-tag {
  background: #f0f8f2;
  color: #3a7259;
}

.card-arrow {
  color: #84988d;
}

/* --------------------------------------------------------------------------
   品牌故事 / 服务流程
   -------------------------------------------------------------------------- */

.story-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(249, 210, 118, 0.26), transparent 26%),
    linear-gradient(145deg, #eef9f4 0%, #f8fbf4 52%, #fff9ed 100%);
}

.story-section::before {
  content: "";
  position: absolute;
  top: 52px;
  right: 7%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(248, 206, 105, 0.24);
  box-shadow: 0 0 0 22px rgba(248, 206, 105, 0.08);
  pointer-events: none;
}

.story-image-wrap {
  border: 8px solid #fffdf5;
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(54, 93, 66, 0.14);
  transform: rotate(-1.3deg);
}

.story-copy {
  position: relative;
  z-index: 2;
}

.story-note {
  right: 5px;
  bottom: 10px;
  width: 218px;
  padding: 17px 18px;
  border: 1px solid #f0e2c9;
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.95);
  color: #788b80;
  box-shadow: 0 12px 30px rgba(63, 91, 67, 0.1);
  transform: rotate(2deg);
}

.story-note i {
  height: 42px;
  background: #df7b53;
}

.story-copy .section-title {
  max-width: 610px;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.32;
}

.story-text {
  color: #5d7267;
}

.story-points {
  border-top-color: #d3e4d9;
}

.story-points span {
  color: #cf6b48;
}

.story-points p {
  color: #7d8e83;
}

.process-section {
  background:
    radial-gradient(circle at 8% 94%, rgba(173, 214, 191, 0.2), transparent 22%),
    #fffbf3;
}

.process-grid {
  gap: 12px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.process-card {
  min-height: 225px;
  padding: 26px 22px;
  border: 1px solid #eee3d1;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 5px 20px rgba(67, 89, 63, 0.035);
}

.process-card:nth-child(1) .process-icon { background: #fff2ce; color: #c0872f; }
.process-card:nth-child(2) .process-icon { background: #eaf6fb; color: #4f8ba8; }
.process-card:nth-child(3) .process-icon { background: #eef8ef; color: #5e9369; }
.process-card:nth-child(4) .process-icon { background: #fff0e9; color: #ca7651; }

.process-card:hover {
  background: #fffefa;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(67, 89, 63, 0.08);
}

.process-icon {
  border: 0;
  border-radius: 14px;
  margin-bottom: 22px;
}

.process-num {
  color: #c9bca7;
}

.process-card h3 {
  color: #2c4a40;
}

.process-card p {
  color: #7f9187;
}

/* --------------------------------------------------------------------------
   分销招募横幅
   -------------------------------------------------------------------------- */

.partner-banner-section {
  background: #fffaf0;
}

.partner-banner {
  overflow: hidden;
  border: 1px solid #d8e8e7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 221, 135, 0.8), transparent 27%),
    radial-gradient(circle at 9% 16%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(135deg, #e4f4fb 0%, #eef9ef 58%, #fff6dc 100%);
  color: #23443c;
  box-shadow: 0 26px 60px rgba(64, 107, 88, 0.11);
}

.partner-banner::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -150px;
  width: 440px;
  height: 290px;
  border-radius: 50% 50% 0 0;
  background: rgba(139, 190, 135, 0.24);
  pointer-events: none;
}

.partner-banner::after {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -200px;
  width: 500px;
  height: 320px;
  border-radius: 50% 50% 0 0;
  background: rgba(120, 179, 152, 0.13);
  pointer-events: none;
}

.partner-orbit {
  border-color: rgba(89, 141, 112, 0.18);
}

.partner-banner-copy {
  z-index: 3;
}

.partner-banner .eyebrow.light {
  color: #b96543;
}

.partner-banner h2 {
  color: #22443b;
}

.partner-banner-copy > p:not(.eyebrow) {
  color: #4d695a;
  font-size: 13px;
}

.partner-actions .btn-cream {
  background: #2f765f;
  color: #fffdf7;
  box-shadow: 0 10px 22px rgba(47, 118, 95, 0.17);
}

.partner-actions .btn-cream:hover {
  background: #255f4c;
}

.partner-actions .btn-outline-light {
  border-color: #9fc1ae;
  color: #2c5b49;
  background: rgba(255, 255, 255, 0.36);
}

.partner-actions .btn-outline-light:hover {
  border-color: #5a8d73;
  background: rgba(255, 255, 255, 0.7);
}

.partner-levels {
  border: 1px solid rgba(95, 139, 107, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 251, 0.93);
  box-shadow: 0 12px 26px rgba(53, 92, 65, 0.08);
  backdrop-filter: blur(9px);
}

.partner-levels-title {
  color: #9f5932;
  font-size: 8.5px;
  font-weight: 700;
}

.partner-level-row {
  border-bottom-color: rgba(91, 127, 103, 0.18);
}

.level-index {
  color: #718a7c;
}

.level-name {
  color: #294c3c;
  font-size: 13px;
  font-weight: 500;
}

.partner-level-row strong {
  color: #90591f;
  font-size: 27px;
}

.partner-level-row strong.level-commission {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #5f7a6b;
}

.partner-levels-note {
  color: #5d7969;
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   页脚 · 明亮草地
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 5%, rgba(250, 200, 86, 0.3), transparent 24%),
    radial-gradient(circle at 12% 100%, rgba(111, 167, 135, 0.13), transparent 28%),
    linear-gradient(180deg, #ddefdd 0%, #cfe8d9 100%);
  color: #3e5c4d;
  border-top: 1px solid #bdd9c8;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 42px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(250, 201, 85, 0.28);
  box-shadow: 0 0 0 16px rgba(250, 201, 85, 0.08);
  pointer-events: none;
}

.footer-main,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-logo,
.footer-logo .brand-mark {
  color: #234a39;
}

.footer-logo .brand-mark {
  border-color: #5b8a71;
  background: rgba(255, 255, 255, 0.4);
}

.footer-logo small {
  color: #6e8878;
}

.footer-tagline {
  color: #345344;
  font-size: 16px;
}

.footer-company {
  color: #6f8778;
}

.footer-col h3 {
  color: #234535;
  font-size: 11px;
}

.footer-col a,
.footer-contact p,
.wechat-row {
  color: #405f4f;
  font-size: 11.5px;
}

.footer-col a:hover {
  color: #173d2c;
}

.footer-phone {
  color: #1f4d39 !important;
  font-size: 24px !important;
}

.copy-mini {
  color: #8a5728;
}

.footer-contact svg {
  color: #607d6c;
}

.footer-bottom {
  border-top-color: rgba(54, 96, 70, 0.2);
  color: #587364;
  font-size: 9px;
}

.footer-bottom-links a:hover {
  color: #213f30;
}

.back-to-top {
  border-color: #fffdf7;
  background: #2f765f;
  box-shadow: 0 12px 25px rgba(47, 118, 95, 0.24);
}

.mobile-tabbar {
  background: rgba(255, 253, 247, 0.96);
  border-top-color: #e6dccb;
}

.mobile-tabbar a {
  color: #8b9c92;
}

.mobile-tabbar a.active {
  color: #2f765f;
}

/* --------------------------------------------------------------------------
   内页：系列 / 商品 / 购物 / 结算 / 查询 / 内容
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 89% 9%, rgba(255, 209, 100, 0.72) 0 54px, rgba(255, 226, 157, 0.3) 55px 92px, transparent 93px),
    radial-gradient(circle at 7% 20%, rgba(255, 255, 255, 0.8), transparent 25%),
    linear-gradient(180deg, #d9effb 0%, #f3faf4 70%, #fff9ee 100%);
  border-bottom-color: #d8e6dc;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #1e3d36;
}

.page-hero p:not(.eyebrow) {
  color: #677e71;
}

.page-hero-aside span {
  border-color: #c9dbd1;
  color: #6c8277;
  background: rgba(255, 255, 255, 0.4);
}

.shop-section {
  background: #fffaf0;
}

.shop-toolbar {
  border-bottom-color: #e4d9c7;
}

.filter-chips a.active {
  background: #2f765f;
  color: #fffdf7;
}

.shop-search {
  border-color: #dfe7dd;
  background: #fffefa;
}

.shop-search button {
  background: #2f765f;
}

.sort-form select {
  background-color: #fffefa;
  border-color: #e1d9ca;
}

.size-cta-inner {
  border-color: #eadfcb;
  background:
    radial-gradient(circle at 90% 10%, rgba(250, 211, 115, 0.16), transparent 25%),
    #fffefa;
}

.size-cta-icon {
  background: #eaf7f2;
  color: #4f8b6d;
}

.breadcrumb-wrap {
  background: #fffaf0;
}

.breadcrumb .current {
  color: #34554a;
}

.product-detail-section {
  background: #fffaf0;
}

.product-main-image {
  border: 1px solid #e9ddca;
  background: #eaf6ff;
}

.product-thumb {
  background: #eaf6ff;
}

.product-kicker {
  color: #cd6a47;
}

.product-info-head h1 {
  color: #1e3c35;
}

.product-subtitle,
.product-social-proof {
  color: #71837a;
}

.product-price-block {
  border-color: #e6dac8;
}

.detail-price {
  color: #24443b;
}

.price-save {
  background: #fff0e7;
  color: #b85a36;
}

.commission-preview {
  background: #fff4dd;
  color: #7b653b;
  border: 1px solid #f1e1bd;
}

.commission-preview svg {
  color: #c88a3c;
}

.commission-preview strong {
  color: #a9692e;
}

.size-option span {
  border-color: #e2d8c5;
  background: #fffefa;
}

.size-option input:checked + span {
  border-color: #2f765f;
  background: #2f765f;
  color: #fffdf7;
}

.quantity-stepper {
  border-color: #e2d8c5;
  background: #fffefa;
}

.service-points {
  border-color: #e8ddca;
}

.service-points svg {
  color: #b7763d;
}

.product-accordions details {
  border-color: #eee4d2;
}

.detail-content {
  color: #60746a;
}

.related-section {
  background: #f2f9f3;
  border-top-color: #deebe2;
}

.modal-panel {
  background: #fffefa;
}

.modal-foot {
  background: #fff8e9;
}

/* 购物袋 */
.cart-section {
  background: #fffaf0;
}

.cart-head-row {
  border-bottom-color: #e7dcc9;
}

.cart-item {
  border-bottom-color: #e9dfce;
}

.cart-summary {
  border-color: #e8dcc8;
  background: #fffefa;
  box-shadow: 0 14px 36px rgba(66, 91, 65, 0.05);
}

.shipping-progress {
  background: #fff4d8;
}

.progress-track {
  background: #efe1c3;
}

.progress-track span {
  background: #e69053;
}

.free-shipping-note {
  background: #edf8ef;
}

.summary-list .summary-total {
  border-top-color: #e7ddca;
}

.cart-empty {
  color: #5e756b;
}

.empty-bag-icon {
  border-color: #dbe7dd;
  color: #7e988a;
  background: #fffefa;
}

/* 结算 */
.checkout-top {
  background:
    linear-gradient(180deg, #eaf7fc 0%, #f9fbf4 100%);
  border-bottom-color: #dde8dd;
}

.form-card {
  border-color: #e9ddc9;
  background: #fffefa;
  box-shadow: 0 8px 28px rgba(61, 87, 64, 0.03);
}

.step-badge {
  background: #2f765f;
}

.payment-inner {
  border-color: #e4dac8;
  background: #fffefa;
}

.payment-option input:checked + .payment-inner {
  border-color: #5a9a7d;
  background: #f2faf5;
  box-shadow: inset 0 0 0 1px #5a9a7d;
}

.payment-icon {
  background: #eef7f1;
  color: #457b62;
}

.payment-notice {
  background: #fff4dd;
  color: #77613b;
}

.order-summary-card {
  border-color: #e8dcc8;
  background: #fffefa;
  box-shadow: 0 14px 36px rgba(66, 91, 65, 0.05);
}

.checkout-help {
  border-color: #eadfc9;
  background: #fff6e2;
}

.btn-submit-order {
  background: #2f765f;
}

.btn-submit-order:hover {
  background: #245c49;
}

/* 完成 / 查询 / 订单 */
.success-section {
  background:
    radial-gradient(circle at 84% 5%, rgba(251, 211, 118, 0.16), transparent 23%),
    #fffaf0;
}

.success-mark {
  background: #2f765f;
  box-shadow: 0 14px 35px rgba(47, 118, 95, 0.2);
}

.payment-card {
  border-color: #e8dcc8;
  background: #fffefa;
}

.payment-card-head {
  background: #f3faf4;
  border-bottom-color: #e1ebdf;
}

.qr-panel,
.qr-placeholder {
  border-color: #eadfc9;
  background: #fff9eb;
}

.cod-icon {
  background: #edf8ef;
}

.success-actions-card {
  border-color: #e8dcc8;
  background: #fffefa;
}

.success-note-card {
  background: #eaf7f1;
}

.order-card {
  border-color: #e8dcc8;
  background: #fffefa;
}

.order-card-head {
  border-bottom-color: #eee3d1;
}

.order-progress {
  background: #fbfdf9;
}

.progress-step.done .step-dot {
  border-color: #2f765f;
  background: #2f765f;
}

.progress-step.active .step-dot {
  border-color: #2f765f;
  color: #2f765f;
}

.progress-line.done {
  background: #79a98b;
}

.tracking-box {
  background: #edf8ef;
}

.order-items,
.order-info-grid {
  border-color: #eee4d2;
}

.order-item {
  border-bottom-color: #f0e7d7;
}

.order-total-box .grand-total {
  border-top-color: #e8ddc9;
}

.order-info-block p {
  color: #415a4f;
}

.order-hero,
.static-hero {
  background:
    radial-gradient(circle at 86% 6%, rgba(249, 207, 108, 0.22), transparent 21%),
    linear-gradient(180deg, #eaf7fc 0%, #fff9ed 100%);
}

.lookup-card {
  border-color: #e8ddc9;
  background: #fffefa;
}

.lookup-help-card {
  background: #fff4dc;
}

.lookup-steps-card {
  border-color: #e6dbc7;
  background: rgba(255, 254, 248, 0.7);
}

.static-section {
  background: #fffaf0;
}

.static-nav > a {
  border-bottom-color: #eee5d5;
}

.prose {
  color: #576c61;
}

.prose .lead {
  color: #28473d;
}

.prose h2,
.prose h3 {
  color: #25443a;
}

.prose blockquote {
  background: #fff5e3;
  border-left-color: #d78258;
}

.static-end {
  border-top-color: #e7ddca;
}

/* 弹窗、提示、备用元素 */
.flash-stack .flash {
  background: #fffefa;
}

.no-results {
  border-color: #e3d8c5;
  background: rgba(255, 254, 249, 0.65);
}

.no-results-icon {
  background: #eef7f1;
  color: #5f8e73;
}

/* 打印时保持中性 */
@media print {
  .site-footer {
    background: #fff;
    color: #333;
  }
}

/* ==========================================================================
   登录 / 注册 · 阳光校园
   ========================================================================== */

.auth-shell {
  background: #fffaf0;
}

.auth-brand-panel {
  background:
    radial-gradient(circle at 77% 17%, rgba(255, 217, 122, 0.92) 0 82px, rgba(255, 230, 160, 0.5) 83px 118px, transparent 119px),
    radial-gradient(ellipse at 55% 112%, rgba(151, 196, 139, 0.8) 0 35%, rgba(181, 215, 168, 0.4) 36% 48%, transparent 49%),
    radial-gradient(circle at 15% 16%, rgba(255, 255, 255, 0.8), transparent 26%),
    linear-gradient(155deg, #dff1fb 0%, #f3faf3 56%, #fff3d3 100%);
  color: #36584c;
}

.auth-brand-panel::after {
  opacity: 0.18;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  top: 23%;
  right: -55px;
  width: 280px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 58%, rgba(255, 255, 255, 0.8) 0 27px, transparent 28px),
    radial-gradient(circle at 53% 43%, rgba(255, 255, 255, 0.85) 0 38px, transparent 39px),
    radial-gradient(circle at 74% 57%, rgba(255, 255, 255, 0.62) 0 24px, transparent 25px);
  opacity: 0.55;
  pointer-events: none;
}

.auth-brand-panel .brand-lockup.light {
  color: #294f42;
}

.auth-brand-panel .brand-lockup.light .brand-mark {
  border-color: #4e826b;
  color: #2f765f;
  background: rgba(255, 255, 255, 0.4);
}

.auth-brand-panel .brand-lockup.light .brand-type strong {
  color: #23463b;
}

.auth-brand-panel .brand-lockup.light .brand-type small {
  color: #779185;
}

.auth-back {
  color: #6c8779;
}

.auth-back:hover {
  color: #2f5d4c;
}

.auth-brand-copy {
  position: relative;
  z-index: 2;
}

.auth-brand-copy .eyebrow.light {
  color: #c36945;
}

.auth-brand-copy h1 {
  color: #1e4036;
}

.auth-brand-copy > p:not(.eyebrow) {
  color: #5d796b;
}

.auth-benefits span {
  color: #4c6f5e;
}

.auth-benefits svg {
  color: #c2883d;
}

.auth-brand-art {
  color: #3d7863;
  opacity: 0.5;
}

.auth-brand-foot {
  color: #81978b;
}

.auth-form-panel {
  background:
    radial-gradient(circle at 94% 2%, rgba(249, 211, 123, 0.2), transparent 24%),
    radial-gradient(circle at 3% 94%, rgba(168, 211, 185, 0.18), transparent 25%),
    #fffdf7;
}

.auth-form-head h2 {
  color: #244239;
}

.auth-form-head > p:not(.eyebrow) {
  color: #7d8f85;
}

.auth-form .field input,
.auth-form .field select {
  border-color: #e4dbc9;
  background: #fffefa;
}

.admin-auth-brand {
  background:
    radial-gradient(circle at 77% 15%, rgba(255, 216, 117, 0.94) 0 78px, rgba(255, 233, 171, 0.46) 79px 116px, transparent 117px),
    radial-gradient(ellipse at 64% 112%, rgba(147, 199, 157, 0.7) 0 35%, rgba(181, 218, 176, 0.34) 36% 48%, transparent 49%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8), transparent 25%),
    linear-gradient(155deg, #dceffb 0%, #eef9f3 55%, #fff3d7 100%);
}

.admin-auth-brand .auth-brand-copy h1 {
  color: #1d3e35;
  font-size: clamp(34px, 3.8vw, 51px);
  line-height: 1.32;
}

.admin-auth-brand .auth-brand-copy > p:not(.eyebrow) {
  max-width: 440px;
}

.auth-form-footer {
  border-top-color: #eee4d3;
  color: #98a49a;
}

.auth-switch {
  border-top-color: #eee4d3;
}

.auth-switch p {
  color: #798b80;
}

.auth-switch a {
  color: #c46843;
}

.register-level-note {
  background: #fff4dc;
  color: #7a633d;
}

.register-level-note > svg {
  color: #c48a3d;
}

/* ==========================================================================
   伙伴中心 / 管理后台 · 明亮奶油 + 天空
   ========================================================================== */

body.dashboard-body {
  background:
    radial-gradient(circle at 94% 0%, rgba(247, 204, 103, 0.13), transparent 20%),
    radial-gradient(circle at 10% 80%, rgba(162, 210, 184, 0.12), transparent 26%),
    linear-gradient(180deg, #f5fbf8 0%, #fbfaf3 46%, #f4faf6 100%);
  color: #33473e;
}

.dash-sidebar {
  background:
    radial-gradient(circle at 85% 2%, rgba(255, 199, 74, 0.4), transparent 26%),
    radial-gradient(circle at 10% 88%, rgba(139, 196, 162, 0.32), transparent 28%),
    linear-gradient(165deg, #d2edf8 0%, #c9e7db 55%, #dcefd4 100%);
  border-right: 1px solid #b6d6c7;
  box-shadow: 8px 0 35px rgba(47, 86, 67, 0.06);
  color: #3f5f4f;
}

.dash-sidebar::-webkit-scrollbar-thumb {
  background: rgba(63, 104, 82, 0.2);
}

.dash-brand .brand-lockup.light {
  color: #2d5445;
}

.dash-brand .brand-lockup.light .brand-mark {
  border-color: #437d66;
  color: #286a50;
  background: rgba(255, 255, 255, 0.5);
}

.dash-brand .brand-lockup.light .brand-type strong {
  color: #1e4737;
}

.dash-brand .brand-lockup.light .brand-type small {
  color: #6e8b7b;
}

.dash-close {
  color: #648070;
}

.admin-side-status {
  border-color: rgba(133, 171, 150, 0.36);
  background: rgba(255, 255, 255, 0.62);
}

.admin-side-status strong {
  color: #365c49;
}

.admin-side-status small {
  color: #739182;
}

.status-pulse {
  background: #63a87d;
  box-shadow: 0 0 0 4px rgba(99, 168, 125, 0.12);
}

.admin-side-status a {
  color: #8ba096;
}

.admin-side-status a:hover {
  color: #2f765f;
}

.partner-side-profile {
  border-color: rgba(133, 171, 150, 0.35);
  background: rgba(255, 255, 255, 0.62);
}

.side-avatar {
  background: #ffeab3;
  color: #94601e;
}

.partner-side-profile strong {
  color: #315446;
}

.partner-side-profile small {
  color: #769184;
}

.side-balance {
  border-color: #ecd291;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(135deg, #fff3cd, #ffe8a7);
}

.side-balance > span {
  color: #8f7747;
}

.side-balance > strong {
  color: #80551f;
}

.side-balance > a {
  color: #79623a;
}

.side-balance > a:hover {
  color: #45381d;
}

.dash-nav-label {
  color: #7d9486;
}

.dash-nav a {
  color: #456557;
}

.dash-nav a svg {
  opacity: 0.7;
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #245440;
}

.dash-nav a.active {
  background: #fffefa;
  color: #245f47;
  box-shadow: 0 5px 16px rgba(53, 91, 72, 0.1);
}

.dash-nav a.active svg {
  color: #367a5d;
  opacity: 1;
}

.nav-dot {
  background: #d4754e;
}

.nav-badge {
  background: #d97952;
}

.dash-sidebar-foot a {
  color: #6a8577;
}

.dash-sidebar-foot a:hover {
  color: #245440;
}

.dash-sidebar-foot p {
  color: #91a79a;
}

.dash-sidebar-backdrop {
  background: rgba(28, 55, 44, 0.35);
}

.dash-topbar {
  border-bottom-color: #e2eae3;
  background: rgba(255, 253, 246, 0.92);
}

.dash-crumb {
  color: #738a7d;
}

.dash-topbar-sub {
  color: #9dac9f;
}

.dash-icon-link {
  border-color: #dee8df;
  background: rgba(255, 255, 255, 0.42);
  color: #607b6b;
}

.dash-icon-link:hover {
  border-color: #acc8b6;
  background: #fffefa;
  color: #2e6852;
}

.topbar-alert {
  background: #fff0e7;
  color: #b35d3b;
}

.topbar-alert span {
  background: #de7852;
}

.dash-user {
  border-left-color: #e3eae3;
}

.dash-avatar {
  background: #e4f3e9;
  color: #39745b;
}

.dash-user strong {
  color: #354e42;
}

.dash-user small {
  color: #97a69c;
}

.dash-logout {
  color: #869b8e;
}

.dash-logout:hover {
  background: #fff2e8;
  color: #c26a47;
}

.dash-menu-btn {
  color: #386552;
}

.dash-menu-btn:hover {
  background: #eef7f1;
}

.dash-footer {
  border-top-color: #e5ece5;
  color: #9aa99f;
}

.dash-card {
  border-color: #e8e3d7;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 5px 20px rgba(68, 92, 68, 0.03);
}

.dash-card-head h2 {
  color: #2d493e;
}

.dash-page-head h1,
.admin-page-head h1 {
  color: #203c35;
}

.dash-page-head > div > p:not(.eyebrow),
.admin-page-head > div > p:not(.eyebrow) {
  color: #778b7f;
}

.dash-table th {
  color: #92a398;
}

.dash-table td {
  color: #4f6358;
}

.dash-table tbody tr:hover {
  background: #fbfdf8;
}

.dash-table small {
  color: #98a59c;
}

.order-link {
  color: #26553f;
}

.table-arrow:hover {
  background: #eef7f1;
  color: #2f765f;
}

.dash-empty {
  color: #9eaca3;
}

.dash-empty h3 {
  color: #5a7165;
}

.stat-card {
  border-color: #e9e3d7;
  border-radius: 13px;
  background: #fffefa;
  box-shadow: 0 5px 20px rgba(68, 92, 68, 0.025);
}

.stat-card.accent-dark {
  border-color: #d3e5e2;
  background:
    radial-gradient(circle at 91% 3%, rgba(255, 221, 133, 0.74), transparent 36%),
    linear-gradient(135deg, #dff3f8 0%, #eaf8ee 60%, #fff6dc 100%);
  color: #27483e;
}

.stat-card.accent-dark .stat-card-head {
  color: #607a70;
}

.stat-card.accent-dark .stat-icon {
  background: rgba(255, 255, 255, 0.64);
  color: #a6752f;
}

.stat-card.accent-dark .stat-number {
  color: #20433b;
}

.stat-card.accent-dark .stat-number small {
  color: #7b9287;
}

.stat-card.accent-dark > p {
  color: #6e8679;
}

.stat-card.accent-dark .stat-link {
  color: #3b755f;
}

.stat-spark {
  background: rgba(68, 109, 84, 0.11);
}

.stat-spark span {
  background: #d9a446;
}

.chart-total {
  background: #f0f7f0;
  color: #587364;
}

.chart-bar {
  background: linear-gradient(180deg, #6ba68b, #37755c);
}

.chart-col:nth-child(7) .chart-bar {
  background: linear-gradient(180deg, #f0c36c, #d6964a);
}

.revenue-chart .chart-bar-wrap {
  background: linear-gradient(180deg, rgba(66, 114, 90, 0.05), rgba(66, 114, 90, 0.015));
}

.process-card,
.quick-action-grid a {
  border-color: #eae3d6;
}

.quick-action-grid a:hover {
  border-color: #c8d9cc;
  background: #fbfdf8;
}

.quick-action-grid a > span {
  background: #edf7f1;
  color: #4b7d65;
}

.low-stock-row img,
.top-product-row img {
  background: #edf6f8;
}

.dash-note-strip {
  border-color: #ebe3d3;
  background: #fff9eb;
  color: #82745d;
}

.dash-info-card,
.dash-note-card {
  border-color: #e6e8df;
  background: #fbfdf9;
}

.dash-info-card > span,
.dash-note-card > span {
  color: #668770;
}

.dash-info-card h3 {
  color: #3c5849;
}

.share-card {
  background:
    radial-gradient(circle at 95% 5%, rgba(247, 203, 100, 0.15), transparent 25%),
    #fffefa;
}

.referral-box {
  border-color: #ecdab7;
  background: #fff9e9;
}

.referral-icon {
  background: #fff0c8;
  color: #aa7430;
}

.level-pill {
  background: #eaf6ef;
  color: #3d755c;
}

.share-tips {
  background: #f3faf5;
  color: #788e80;
}

.promo-media,
.product-main-image,
.top-product-row img,
.low-stock-row img {
  background: #eaf6ff;
}

.promo-card {
  border-color: #e7e1d4;
  background: #fffefa;
}

.promo-actions .promo-poster-btn {
  flex: 0 0 auto;
  border-color: #ecd69f;
  background: #fff6d9;
  color: #916326;
}

.promo-actions .promo-poster-btn:hover {
  border-color: #d9b969;
  background: #fff0c2;
  color: #7c5119;
}

.product-quick-actions a[href*="poster.php"] {
  color: #b76443;
}

.promo-body h3 {
  color: #324e43;
}

.promo-price-row > strong {
  color: #24463e;
}

.rate-chip {
  background: #eaf6ef;
  color: #3e775b;
}

.commission-estimate {
  background: #f2faf5;
  color: #668375;
}

.commission-estimate strong {
  color: #2c7151;
}

.team-hero {
  border: 1px solid #d7e9df;
  background:
    radial-gradient(circle at 91% 2%, rgba(255, 219, 126, 0.70), transparent 28%),
    radial-gradient(circle at 9% 9%, rgba(255, 255, 255, 0.8), transparent 22%),
    linear-gradient(135deg, #e1f4fb 0%, #eef9ef 58%, #fff5d9 100%);
  color: #2a4a3f;
  box-shadow: 0 16px 40px rgba(52, 98, 74, 0.08);
}

.team-hero .eyebrow.light {
  color: #bd6943;
}

.team-hero h2 {
  color: #24453b;
}

.team-hero h2 strong {
  color: #a56d2e;
}

.team-hero-copy > p:not(.eyebrow) {
  color: #60796b;
}

.team-hero .referral-box {
  border-color: #d8e4d9;
  background: rgba(255, 255, 255, 0.66);
}

.team-hero .referral-box .referral-text span {
  color: #879a8e;
}

.team-hero .referral-box .referral-text strong {
  color: #4e6b5c;
}

.team-hero .referral-box .btn-cream {
  background: #2f765f;
  color: #fffdf7;
}

.team-hero .referral-box .referral-icon {
  background: #fff1c7;
  color: #a26828;
}

.team-hero-stats {
  border-color: rgba(100, 141, 113, 0.18);
  background: rgba(99, 137, 106, 0.12);
}

.team-hero-stats > div {
  background: rgba(255, 255, 255, 0.62);
}

.team-hero-stats span {
  color: #7e9387;
}

.team-hero-stats strong {
  color: #30503f;
}

.team-hero-stats strong small {
  color: #84998c;
}

.commission-summary-card {
  border-color: #e9e3d7;
  background: #fffefa;
}

.commission-summary-card.highlight {
  border-color: #cee1d4;
  background: #f3faf4;
}

.withdraw-summary {
  border-color: #e7e2d6;
  background: #eae6dc;
}

.withdraw-summary > div {
  background: #fffefa;
}

.balance-pill {
  border-color: #efdca9;
  background: #fff8e1;
  color: #8d723b;
}

.balance-display {
  background: #fff5d8;
}

.balance-display strong {
  color: #976725;
}

.withdraw-warning {
  background: #fff8ea;
  color: #87734d;
}

.level-orb {
  background: #fff0ca;
  color: #9b6a2d;
}

.level-rate strong {
  color: #c16e44;
}

.editor-save-box {
  border-color: #e6dfd1;
  background: rgba(255, 254, 249, 0.95);
}

.settings-nav > a {
  border-bottom-color: #ece5d8;
  color: #7e9185;
}

.settings-nav > a.active {
  color: #2f6a53;
}

.settings-nav-help {
  background: #f1f8f3;
  color: #84988a;
}

.pending-card {
  border-color: #e7e1d4;
  background: #fffefa;
}

.pending-icon {
  background: #fff1cb;
  color: #a5742e;
}

.partner-order-item img,
.admin-order-item img,
.order-item-img,
.summary-thumb {
  background: #eaf6ff;
}

.attribution-box,
.mini-list-row {
  border-color: #ede6d9;
}

.notice,
.dash-note-strip code {
  background: #eef5ef;
}

.dash-info-card code {
  background: #edf5ef;
  color: #5b7264;
}

/* 登录页管理员 / 伙伴的移动端品牌块保持明亮 */
.auth-mobile-brand .brand-lockup {
  color: #294f42;
}

.auth-mobile-brand .brand-mark {
  color: #2f765f;
  border-color: #5c8c75;
}

.auth-mobile-brand .brand-type strong {
  color: #25483c;
}

.auth-mobile-brand .brand-type small {
  color: #81978b;
}

/* 小屏的时候，贴纸不要冲出画面 */
@media (max-width: 820px) {
  .page-hero {
    background:
      radial-gradient(circle at 7% 18%, rgba(255, 255, 255, 0.8), transparent 24%),
      linear-gradient(180deg, #d9effb 0%, #f3faf4 72%, #fff9ee 100%);
  }

  .hero-sticker {
    top: 22px;
    left: 7px;
    padding: 6px 10px;
    font-size: 8.5px;
  }

  .hero-frame {
    border-width: 6px;
  }

  .hero-image-caption {
    left: 14px;
    right: 14px;
    bottom: 13px;
    padding: 10px 11px;
  }

  .caption-num {
    font-size: 38px;
  }

  .hero-image-caption p {
    font-size: 10.5px;
  }

  .story-note {
    right: 4px;
    bottom: 4px;
    width: 180px;
    padding: 12px 13px;
  }

  .story-note span {
    font-size: 7px;
  }

  .product-card {
    padding: 7px 7px 10px;
    border-radius: 14px;
  }

  .product-card-media {
    border-radius: 9px;
  }
}

.promo-actions .btn {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .promo-actions {
    flex-wrap: wrap;
  }

  .promo-actions .btn-dark {
    flex: 1 1 100%;
  }

  .promo-actions .promo-poster-btn {
    flex: 1 1 auto;
  }

  .promo-actions .promo-view {
    flex: 0 0 29px;
  }
}

/* ==========================================================================
   学校专区 · 一个学校，多个款式
   ========================================================================== */

.school-section {
  position: relative;
  background:
    radial-gradient(circle at 92% 8%, rgba(247, 204, 99, 0.12), transparent 18%),
    radial-gradient(circle at 7% 92%, rgba(154, 204, 168, 0.12), transparent 22%),
    #fffaf0;
}

.school-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.school-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 268px;
  overflow: hidden;
  border: 1px solid #e9e1d2;
  border-radius: 19px;
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf7 58%, #f4fbf4 100%);
  box-shadow: 0 10px 30px rgba(61, 91, 69, 0.08);
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(61, 91, 69, 0.14);
}

.school-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  min-height: 370px;
}

.school-card-media {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 83% 14%, rgba(255, 208, 101, 0.42) 0 46px, rgba(255, 229, 162, 0.26) 47px 74px, transparent 75px),
    radial-gradient(circle at 12% 92%, rgba(159, 203, 161, 0.24), transparent 28%),
    linear-gradient(155deg, #dceff9 0%, #edf8f1 60%, #fff6df 100%);
}

.school-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 252, 242, 0.42), transparent 38%);
  pointer-events: none;
}

.school-card-photo {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  height: 84%;
  max-width: 33.333%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 12px 24px rgba(48, 85, 65, 0.11);
  backdrop-filter: blur(4px);
}

.school-card:not(.school-card-wide) .school-card-photo {
  max-width: 100%;
  height: 88%;
}

.school-card-wide .school-card-photo:only-child {
  max-width: 52%;
  height: 92%;
}

.school-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.school-card:hover .school-card-photo img {
  transform: scale(1.025);
}

.school-card-overlay {
  display: none;
}

.school-card-content {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  padding: 44px 26px 24px 30px;
  color: #29493d;
}

.school-card-wide .school-card-content {
  align-items: center;
  width: auto;
  padding: 34px 30px 30px 38px;
}

.school-card-index {
  position: absolute;
  top: 18px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(73, 115, 91, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.82);
  color: #6f8b7b;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  backdrop-filter: blur(7px);
}

.school-card-wide .school-card-index {
  top: 26px;
  left: 38px;
}

.school-card-copy {
  min-width: 0;
  width: 100%;
}

.school-card-kicker {
  display: block;
  margin-bottom: 6px;
  color: #c26845;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.school-card-content h3 {
  overflow: hidden;
  margin: 0;
  color: #23453a;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-card-wide .school-card-content h3 {
  font-size: clamp(30px, 3.2vw, 42px);
  white-space: normal;
}

.school-style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.school-style-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(63, 113, 84, 0.19);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.65);
  color: #466b58;
  font-size: 9px;
}

.school-style-chips span.more {
  border-color: transparent;
  background: transparent;
  color: #8fa196;
  padding-left: 2px;
}

.school-card-wide .school-style-chips {
  margin-top: 15px;
  gap: 7px;
}

.school-card-wide .school-style-chips span {
  min-height: 28px;
  padding: 0 12px;
  font-size: 10px;
}

.school-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #70867a;
  font-size: 9.5px;
}

.school-card-meta strong {
  color: #305943;
  font-weight: 600;
}

.school-card-wide .school-card-meta {
  justify-content: flex-start;
  gap: 18px;
  margin-top: 20px;
  font-size: 11px;
}

.school-card-meta .circle-arrow {
  flex: 0 0 auto;
  border-color: rgba(68, 108, 85, 0.3);
  background: rgba(255, 255, 255, 0.58);
  color: #376650;
}

.school-card:hover .circle-arrow {
  border-color: #2f765f;
  background: #2f765f;
  color: #fffdf7;
}

.school-card-wide .school-card-meta .circle-arrow {
  margin-left: 8px;
}

/* 学校详情 */
.school-hero-inner {
  align-items: center;
}

.school-hero-copy {
  flex: 1;
  min-width: 0;
}

.school-hero-copy h1 {
  max-width: 730px;
}

.school-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin-top: 20px;
  color: #708277;
  font-size: 10px;
}

.school-hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.school-hero-meta strong {
  color: #315c47;
  font-size: 17px;
  font-weight: 600;
}

.school-hero-visual {
  position: relative;
  flex: 0 0 292px;
  width: 292px;
  height: 270px;
  transform: rotate(1.2deg);
}

.school-hero-visual img {
  width: 100%;
  height: 100%;
  border: 7px solid #fffdf6;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(50, 91, 67, 0.16);
}

.school-hero-tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 251, 238, 0.92);
  color: #426a56;
  font-size: 9px;
  box-shadow: 0 5px 16px rgba(45, 80, 59, 0.12);
}

.school-style-chips a small {
  margin-left: 3px;
  color: #97a79c;
  font-size: 8px;
}

.school-shop-section {
  padding-top: clamp(28px, 4vw, 46px);
}

.school-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e8ddcb;
  color: #93a299;
  font-size: 9px;
}

.school-back-row .text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 商品上的学校标签 */
.product-school {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: #b26a46;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-school-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  color: #4d735d;
  font-size: 10px;
  line-height: 1.5;
}

.product-school-link span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 3px;
  color: #bd6f4e;
}

.product-school-link span svg {
  width: 12px;
  height: 12px;
}

.checkout-school-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 0;
  padding: 8px 11px;
  border: 1px solid #e8dab5;
  border-radius: 8px;
  background: #fff8e6;
  color: #7e6b44;
  font-size: 9.5px;
  line-height: 1.6;
}

.checkout-school-note svg {
  color: #b0823d;
}

.admin-category-label {
  display: block;
  color: #536b5d;
}

.admin-school-meta {
  display: block;
  overflow: hidden;
  max-width: 170px;
  margin-top: 2px;
  color: #b16d4b;
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-fields {
  padding: 13px;
  border: 1px solid #e9e1d2;
  border-radius: 8px;
  background: #fffaf0;
}

.promo-school {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: #b36b48;
  font-size: 7.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 学校专区页 */
.schools-hero .page-hero-inner {
  align-items: flex-end;
}

.school-help-section {
  border-top: 1px solid #f0e5d2;
}

@media (max-width: 960px) {
  .school-hero-visual {
    flex-basis: 250px;
    width: 250px;
    height: 230px;
  }
}

@media (max-width: 780px) {
  .school-mosaic {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .school-card,
  .school-card-wide {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    min-height: 0;
    border-radius: 15px;
  }

  .school-card-media,
  .school-card-wide .school-card-media {
    flex: 0 0 210px;
    width: 100%;
    height: 210px;
    padding: 12px;
  }

  .school-card-content,
  .school-card-wide .school-card-content {
    align-items: flex-start;
    width: 100%;
    padding: 40px 18px 18px;
  }

  .school-card-wide .school-card-index {
    top: 16px;
    left: 20px;
  }

  .school-card-index {
    top: 16px;
    left: 18px;
  }

  .school-card-wide .school-card-content h3 {
    font-size: 28px;
  }

  .school-hero-visual {
    display: none;
  }

  .school-hero-meta {
    margin-top: 15px;
  }

  .school-back-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .school-card,
  .school-card-wide {
    min-height: 235px;
  }

  .school-card-content h3 {
    font-size: 22px;
  }

  .school-card-wide .school-card-content h3 {
    font-size: 25px;
  }

  .school-card-kicker {
    font-size: 7px;
  }

  .school-style-chips span {
    min-height: 22px;
    padding: 0 7px;
    font-size: 8px;
  }

  .school-card-wide .school-style-chips span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 8.5px;
  }

  .school-card-meta {
    margin-top: 8px;
    font-size: 8.5px;
  }

  .school-card-wide .school-card-meta {
    margin-top: 12px;
    font-size: 9px;
  }
}

@media (max-width: 560px) {
  .hero-sticker {
    top: 16px;
    left: 5px;
  }

  .hero-frame {
    border-width: 5px;
    border-radius: 160px 160px 16px 16px;
  }

  .hero-image-caption {
    left: 11px;
    right: 11px;
    bottom: 11px;
    gap: 9px;
  }

  .caption-num {
    font-size: 30px;
  }

  .hero-image-caption p {
    font-size: 9.5px;
  }

  .story-note {
    width: 154px;
  }

  .story-image-wrap {
    border-width: 6px;
    border-radius: 16px;
  }

  .category-card {
    border-radius: 14px;
  }

  .product-card {
    border-radius: 12px;
  }

  .partner-banner {
    border-radius: 16px;
  }
}


/* --------------------------------------------------------------------------
   先选学校 · 首页 / 学校总览 / 商品列表
   -------------------------------------------------------------------------- */
.school-first-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 18px;
  padding: 12px 16px;
  border: 1px solid #e3d7c1;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.82);
}

.school-first-steps {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77867b;
  font-size: 10px;
  white-space: nowrap;
}

.school-first-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.school-first-steps b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #eaf3ef;
  color: #3c6e57;
  font-size: 8px;
  font-weight: 600;
}

.school-first-steps i {
  width: 18px;
  height: 1px;
  background: #d6c8b0;
}

.school-first-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(360px, 100%);
  padding: 6px 6px 6px 13px;
  border: 1px solid #dfd2bb;
  border-radius: 999px;
  background: #fffdf8;
  color: #8d9a91;
}

.school-first-search input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  background: transparent;
  color: #355646;
  font-family: inherit;
  font-size: 11px;
  outline: none;
}

.school-first-search button {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fffaf0;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.school-directory-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding: 15px 18px;
  border: 1px solid #e3d7c1;
  border-radius: 15px;
  background: #fffdf8;
}

.school-directory-bar > div:first-child {
  flex: 0 0 auto;
}

.school-directory-bar > div:first-child .eyebrow {
  margin-bottom: 3px;
}

.school-directory-bar > div:first-child strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 16px;
}

.school-directory-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 5px 5px 5px 12px;
  border: 1px solid #e1d4bd;
  border-radius: 999px;
  background: #fffaf0;
  color: #8c9a90;
}

.school-directory-search input {
  flex: 1;
  min-width: 0;
  height: 31px;
  border: 0;
  background: transparent;
  color: #355646;
  font-family: inherit;
  font-size: 11px;
  outline: none;
}

.school-directory-search button {
  height: 31px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fffaf0;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}

.school-directory-search > a {
  color: #a86440;
  font-size: 9px;
  white-space: nowrap;
}

.school-directory-meta {
  flex: 0 0 auto;
  color: #9aa198;
  font-size: 9px;
  white-space: nowrap;
}

.shop-school-first-section {
  padding-top: 22px;
}

.shop-school-first {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 19px 22px;
  border: 1px solid #e1d4bd;
  border-radius: 16px;
  background: linear-gradient(120deg, #fffdf8 0%, #f7fbf4 55%, #fdf4e3 100%);
}

.shop-school-first-head {
  flex: 0 0 auto;
  max-width: 280px;
}

.shop-school-first-head h2 {
  margin: 3px 0 5px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.shop-school-first-head > p:last-child {
  margin: 0;
  color: #87938a;
  font-size: 9px;
  line-height: 1.7;
}

.shop-school-first-links {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shop-school-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 236px;
  padding: 9px 11px;
  border: 1px solid #e5dac7;
  border-radius: 11px;
  background: rgba(255, 253, 247, 0.9);
  color: #52665a;
}

.shop-school-pill img {
  width: 38px;
  height: 46px;
  border-radius: 7px;
  background: #f4efe5;
  object-fit: cover;
  flex: 0 0 auto;
}

.shop-school-pill-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.shop-school-pill:hover {
  border-color: #b8cdbf;
  background: #fffdf8;
}

.shop-school-pill-name {
  overflow: hidden;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-school-pill small {
  color: #9aa198;
  font-size: 8px;
  white-space: nowrap;
}

.shop-school-pill-arrow {
  align-self: center;
  color: #a86440;
  flex: 0 0 auto;
}

.shop-school-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  flex: 0 0 auto;
  color: #a86440;
  font-size: 9px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .school-first-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .school-first-search {
    width: 100%;
  }

  .school-directory-bar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .school-directory-search {
    order: 3;
    flex-basis: 100%;
  }

  .school-directory-meta {
    margin-left: auto;
  }

  .shop-school-first {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .shop-school-first-head {
    max-width: none;
  }

  .shop-school-first-links {
    justify-content: flex-start;
    padding-bottom: 3px;
  }
}

@media (max-width: 560px) {
  .school-first-steps {
    justify-content: space-between;
    gap: 4px;
    font-size: 9px;
  }

  .school-first-steps i {
    width: 8px;
  }

  .school-directory-bar {
    padding: 13px;
  }

  .shop-school-pill {
    min-width: 158px;
  }
}

/* 首页 · 批量订制入口 */
.bulk-teaser-section {
  padding-top: 0;
}

.bulk-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(247, 204, 103, 0.3), transparent 22%),
    linear-gradient(135deg, #204b3b 0%, #2f765f 100%);
  color: #fffaf0;
  overflow: hidden;
}

.bulk-teaser-copy h2 {
  margin: 8px 0 12px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.22;
}

.bulk-teaser-copy > p:not(.eyebrow) {
  max-width: 480px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
  line-height: 1.9;
}

.bulk-teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 22px;
}

.bulk-teaser-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 9px;
}

.bulk-teaser-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bulk-teaser-steps > div {
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.08);
}

.bulk-teaser-steps span {
  display: block;
  margin-bottom: 12px;
  color: #f7d58e;
  font-family: var(--serif);
  font-size: 12px;
}

.bulk-teaser-steps strong {
  display: block;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.bulk-teaser-steps p {
  margin: 5px 0 0;
  color: rgba(255, 250, 240, 0.55);
  font-size: 8px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .bulk-teaser {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .bulk-teaser {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .bulk-teaser-steps {
    gap: 7px;
  }

  .bulk-teaser-steps > div {
    padding: 13px;
  }

  .bulk-teaser-steps strong {
    font-size: 14px;
  }
}
