/* ============================================================
   模板 C · 小店 / 工作室介绍页
   颜色、文字都在 index.html 顶部的「配置区」改，这个文件一般不用动。
   ============================================================ */

:root {
  /* 这里是默认值，会被 index.html 配置区里的 colors 覆盖 */
  --main: #FFD93D;   --main-rgb: 255, 217, 61;
  --brand: #0E9F5B;  --brand-rgb: 14, 159, 91;
  --ink: #0B4332;    --ink-rgb: 11, 67, 50;
  --accent: #FF6B1A; --accent-rgb: 255, 107, 26;
  --bg: #FFFDF3;     --bg-rgb: 255, 253, 243;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --num: "DIN Alternate", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3 { font-weight: 800; }

/* ============================================================
   首屏
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-bottom: 50px; background: var(--main); }
.hero-in { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 0 20px; }

.topbar {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  height: 64px;
}
.brand { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.brand-mark {
  display: block; width: 38px; height: 38px; margin-right: 10px; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 4px 10px rgba(var(--ink-rgb), .12);
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: cover; }
.brand-tx b { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: .05em; }
.brand-tx i { display: block; font-style: normal; font-size: 11px; line-height: 1.3; letter-spacing: .22em; opacity: .72; }
.demo-tag {
  padding: 0 12px; border-radius: 999px;
  background: rgba(var(--ink-rgb), .1);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 26px;
}

.status {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
  height: 32px; margin-top: 10px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), .1);
}
.status i, .bar-tx i {
  -webkit-flex: none; flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--brand);
  -webkit-animation: pulse 2s ease-out infinite; animation: pulse 2s ease-out infinite;
}
.is-closed .status i, .is-closed .bar-tx i { background: #A9B3AE; -webkit-animation: none; animation: none; }

.hero-title {
  margin-top: 14px;
  font-size: 50px; line-height: 1.2; letter-spacing: .03em;
  -webkit-text-stroke: 1px var(--ink);
}
.hero-title span { display: table; }
.hero-title span:last-child {
  padding: 0 6px; margin-left: -6px;
  background: linear-gradient(rgba(255, 255, 255, 0) 70%, #fff 70%, #fff 93%, rgba(255, 255, 255, 0) 93%);
}

/* 首屏插画（main.js 生成）；换成照片见「改法说明」 */
.hero-art { position: relative; height: 320px; margin: 2px -20px 0; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; object-fit: contain; overflow: visible; }
.art-float { -webkit-animation: bob 5s ease-in-out infinite alternate; animation: bob 5s ease-in-out infinite alternate; }
.art-float-2 { -webkit-animation: bob 6.5s ease-in-out -2s infinite alternate; animation: bob 6.5s ease-in-out -2s infinite alternate; }
.art-spin { -webkit-animation: sway 7s ease-in-out infinite alternate; animation: sway 7s ease-in-out infinite alternate; }

.hero-text { margin-top: 6px; font-size: 16.5px; line-height: 1.75; white-space: pre-line; color: rgba(var(--ink-rgb), .92); }
.hero-btns { display: -webkit-flex; display: flex; margin-top: 18px; }
.btn {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  -webkit-transition: -webkit-transform .15s ease, box-shadow .15s ease; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-main { background: var(--ink); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .16), 0 14px 22px rgba(var(--ink-rgb), .22); }
.btn-ghost { margin-left: 12px; background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(var(--ink-rgb), .12); }
.btn:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .16); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-wave { position: absolute; left: 0; bottom: -1px; z-index: 1; width: 100%; height: 28px; fill: var(--bg); }

/* 首屏入场 */
.hero-head, .hero-art, .hero-body { -webkit-animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art { -webkit-animation-name: pop; animation-name: pop; -webkit-animation-delay: .15s; animation-delay: .15s; }
.hero-body { -webkit-animation-delay: .3s; animation-delay: .3s; }

/* ============================================================
   下面的各个板块
   ============================================================ */
.main { max-width: 560px; margin: 0 auto; padding: 0 16px 96px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.sec { padding-top: 40px; scroll-margin-top: 8px; }
.sec-head {
  display: -webkit-flex; display: flex; -webkit-align-items: flex-end; align-items: flex-end;
  -webkit-justify-content: space-between; justify-content: space-between;
  margin-bottom: 16px; padding: 0 4px;
}
.sec-en { font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--brand); }
.sec-head h2, .feat h2 { margin-top: 1px; font-size: 28px; line-height: 1.3; letter-spacing: .03em; }
.sec-note {
  margin-bottom: 6px; padding: 0 10px; border-radius: 999px;
  background: rgba(var(--ink-rgb), .07); color: rgba(var(--ink-rgb), .62);
  font-size: 12px; line-height: 24px;
}

.panel {
  border-radius: 26px; background: #fff;
  box-shadow: 0 12px 30px rgba(var(--ink-rgb), .07), 0 0 0 1px rgba(var(--ink-rgb), .04);
}

/* 招牌推荐 */
.products { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -6px; }
.products li { width: 50%; padding: 6px; }
.prod {
  position: relative; height: 100%; overflow: hidden; border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(var(--ink-rgb), .07), 0 0 0 1px rgba(var(--ink-rgb), .04);
  -webkit-transition: -webkit-transform .25s ease; transition: transform .25s ease;
}
.prod-art {
  display: -webkit-flex; display: flex; -webkit-align-items: flex-end; align-items: flex-end; -webkit-justify-content: center; justify-content: center;
  height: 158px; overflow: hidden;
}
.prod-art svg { width: 132px; height: 146px; }
.prod-art img { width: 100%; height: 100%; object-fit: cover; }
.prod-tag {
  position: absolute; left: 12px; top: 12px; padding: 0 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 24px; letter-spacing: .06em;
}
.prod-tx { padding: 12px 14px 14px; }
.prod-tx b { display: block; font-size: 17.5px; font-weight: 700; line-height: 1.4; }
.prod-d { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.5; color: rgba(var(--ink-rgb), .62); }
.prod-price { display: block; margin-top: 6px; font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--accent); }
.prod-price small { margin-right: 1px; font-size: 15px; }

/* 特色（深色板块） */
.feat {
  position: relative; overflow: hidden;
  padding: 30px 22px 10px; border-radius: 30px;
  background: var(--ink); color: #fff;
}
.feat > * { position: relative; z-index: 2; }
.feat-deco { position: absolute; right: -44px; top: -44px; z-index: 1; width: 150px; height: 150px; }
.feat-deco svg { width: 100%; height: 100%; }
.feat .sec-en { color: var(--main); }
.feat-list { margin-top: 14px; }
.feat-list li { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: 18px 0; }
.feat-list li + li { border-top: 1px solid rgba(255, 255, 255, .13); }
.feat-ic {
  -webkit-flex: none; flex: none;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  width: 50px; height: 50px; margin-right: 16px; border-radius: 17px;
  background: var(--main); color: var(--ink);
}
.feat-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-list b { display: block; font-size: 18.5px; font-weight: 700; line-height: 1.4; }
.feat-d { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .8); }

/* 活动卡 */
.sec-promo { padding-top: 16px; }
.promo {
  position: relative; overflow: hidden;
  padding: 22px 120px 24px 22px; border-radius: 26px;
  color: #fff;
  background: var(--accent);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 220, 120, .5) 100%), var(--accent);
}
.promo > * { position: relative; z-index: 2; }
.promo-tag {
  display: inline-block; padding: 0 10px; border-radius: 999px;
  background: #fff; color: var(--accent);
  font-size: 12px; font-weight: 700; line-height: 24px; letter-spacing: .06em;
}
.promo h2 { margin-top: 10px; font-size: 23px; line-height: 1.4; letter-spacing: .02em; }
.promo p { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .95); }
.promo-art { position: absolute; right: -26px; bottom: -30px; z-index: 1; width: 150px; height: 150px; }
.promo-art svg { width: 100%; height: 100%; overflow: visible; }

/* 营业时间与地址 */
.hours { padding: 20px 20px 18px; }
.hours h3, .place h3 { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 15px; font-weight: 700; color: var(--brand); }
.hours h3 svg { width: 20px; height: 20px; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h3-gap { margin-top: 16px; }
.hours ul { margin-top: 6px; }
.hours li {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 11px 0; font-size: 16.5px;
}
.hours li + li { border-top: 1px dashed rgba(var(--ink-rgb), .16); }
.hours li b { font-family: var(--num); font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.hours li em {
  margin-left: 8px; padding: 0 8px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-style: normal; font-size: 12px; font-weight: 600; line-height: 20px; vertical-align: 2px;
}
.phone { margin-top: 6px; font-size: 17px; font-weight: 700; }
.phone a[href] { text-decoration: underline; text-underline-offset: 4px; }

.place { margin-top: 12px; overflow: hidden; }
.map { position: relative; height: 176px; overflow: hidden; background: #E4F5DC; }
.map svg, .map img { width: 100%; height: 100%; object-fit: cover; }
.map-note {
  position: absolute; right: 10px; bottom: 10px; padding: 0 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: rgba(var(--ink-rgb), .66);
  font-size: 11.5px; line-height: 22px;
}
.place-tx { padding: 18px 20px 20px; }
.addr { font-size: 17px; font-weight: 700; line-height: 1.5; }
.addr-tip { margin-top: 3px; font-size: 14px; line-height: 1.6; color: rgba(var(--ink-rgb), .66); }
.btn-copy { width: 100%; height: 50px; margin-top: 16px; }

/* 页脚 */
.foot { padding-top: 40px; text-align: center; }
.foot-brand b { font-size: 18px; font-weight: 800; letter-spacing: .08em; }
.foot-brand span { margin-left: 8px; font-size: 13px; letter-spacing: .12em; opacity: .7; }
.foot-note { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: rgba(var(--ink-rgb), .5); }

/* 手机底部固定条：滚过首屏以后出现 */
.bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  height: 62px; padding: 0 9px 0 18px; border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), .22), 0 0 0 1px rgba(var(--ink-rgb), .06);
  opacity: 0; pointer-events: none;
  -webkit-transform: translateY(90px); transform: translateY(90px);
  -webkit-transition: opacity .3s ease, -webkit-transform .35s cubic-bezier(.2, .8, .2, 1); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.bar.show { opacity: 1; pointer-events: auto; -webkit-transform: none; transform: none; }
.bar-tx { -webkit-flex: 1; flex: 1; min-width: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 14px; font-weight: 600; }
.bar-tx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-btn { -webkit-flex: none; flex: none; height: 44px; margin-left: 10px; padding: 0 20px; font-size: 15px; box-shadow: none; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 16%; z-index: 50;
  max-width: 300px; width: -webkit-max-content; width: max-content; padding: 11px 18px; border-radius: 14px;
  background: rgba(var(--ink-rgb), .95); color: #fff;
  font-size: 14px; line-height: 1.5; text-align: center;
  opacity: 0; pointer-events: none;
  -webkit-transform: translate(-50%, 10px); transform: translate(-50%, 10px);
  -webkit-transition: opacity .25s ease, -webkit-transform .25s ease; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }

/* ============================================================
   动效
   ============================================================ */
.js .reveal {
  opacity: 0;
  -webkit-transform: translateY(22px); transform: translateY(22px);
  -webkit-transition: opacity .7s ease, -webkit-transform .7s cubic-bezier(.2, .8, .2, 1);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.js .reveal.in { opacity: 1; -webkit-transform: none; transform: none; }

@-webkit-keyframes rise { from { opacity: 0; -webkit-transform: translateY(22px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes pop { 0% { opacity: 0; -webkit-transform: scale(.86); } 70% { opacity: 1; -webkit-transform: scale(1.03); } 100% { opacity: 1; -webkit-transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.86); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@-webkit-keyframes bob { from { -webkit-transform: translateY(-5px); } to { -webkit-transform: translateY(6px); } }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@-webkit-keyframes sway { from { -webkit-transform: rotate(-7deg); } to { -webkit-transform: rotate(7deg); } }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@-webkit-keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 100% { box-shadow: 0 0 0 9px rgba(var(--brand-rgb), 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 100% { box-shadow: 0 0 0 9px rgba(var(--brand-rgb), 0); } }

@media (hover: hover) {
  .prod:hover { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
  .btn:hover { -webkit-transform: translateY(-2px); transform: translateY(-2px); }
}

/* 系统开了「减弱动态效果」，或者截图模式：不做动画，直接显示 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { -webkit-animation: none !important; animation: none !important; -webkit-transition: none !important; transition: none !important; }
  .js .reveal { opacity: 1; -webkit-transform: none; transform: none; }
}
.shot *, .shot *::before, .shot *::after { -webkit-animation: none !important; animation: none !important; -webkit-transition: none !important; transition: none !important; }
.shot .reveal { opacity: 1 !important; -webkit-transform: none !important; transform: none !important; }

/* ============================================================
   屏幕尺寸适配
   ============================================================ */
@media (max-width: 360px) {
  .hero-in { padding: 0 16px; }
  .hero-art { margin-left: -16px; margin-right: -16px; height: 290px; }
  .hero-title { font-size: 44px; }
  .btn { padding: 0 22px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .prod-art { height: 144px; }
  .promo { padding-right: 96px; }
}

/* 平板 */
@media (min-width: 600px) {
  .visit { display: -webkit-flex; display: flex; }
  .visit .panel { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; }
  .place { margin: 0 0 0 14px; }
}

/* 电脑：首屏左文右图，板块排成多列 */
@media (min-width: 900px) {
  .hero { padding-bottom: 70px; }
  .hero-in { max-width: 1120px; padding: 0 40px; }
  .topbar { height: 84px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-tx b { font-size: 21px; }
  .brand-tx i { font-size: 12px; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "head art" "body art";
    -webkit-column-gap: 32px; column-gap: 32px;
    min-height: 520px;
  }
  .hero-head { grid-area: head; -webkit-align-self: end; align-self: end; padding-top: 40px; }
  .hero-body { grid-area: body; }
  .hero-art { grid-area: art; height: 520px; margin: 0; }
  .status { height: 38px; font-size: 15px; padding: 0 18px 0 14px; }
  .hero-title { margin-top: 20px; font-size: 80px; -webkit-text-stroke-width: 1.5px; }
  .hero-text { margin-top: 20px; font-size: 20px; }
  .hero-btns { margin-top: 30px; }
  .btn { height: 60px; padding: 0 34px; font-size: 18px; }
  .hero-wave { height: 44px; }

  .main { max-width: 1120px; padding: 0 40px 80px; }
  .sec { padding-top: 72px; }
  .sec-head { margin-bottom: 24px; }
  .sec-head h2, .feat h2 { font-size: 38px; }
  .sec-en { font-size: 13px; }
  .products { margin: -10px; }
  .products li { width: 25%; padding: 10px; }
  .prod-art { height: 210px; }
  .prod-art svg { width: 172px; height: 190px; }
  .prod-tx { padding: 16px 20px 20px; }
  .prod-tx b { font-size: 20px; }
  .prod-d { font-size: 14px; }
  .prod-price { font-size: 28px; }
  .feat { padding: 48px 48px 34px; border-radius: 40px; }
  .feat-deco { right: -50px; top: -50px; width: 220px; height: 220px; }
  .feat-list { display: -webkit-flex; display: flex; margin: 26px -18px 0; }
  .feat-list li { -webkit-flex: 1 1 0; flex: 1 1 0; display: block; padding: 0 18px 14px; }
  .feat-list li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .13); }
  .feat-ic { width: 60px; height: 60px; margin: 0 0 16px; border-radius: 20px; }
  .feat-ic svg { width: 30px; height: 30px; }
  .feat-list b { font-size: 22px; }
  .feat-d { font-size: 16px; }
  .sec-promo { padding-top: 24px; }
  .promo { padding: 34px 240px 36px 48px; border-radius: 32px; }
  .promo h2 { font-size: 32px; }
  .promo p { font-size: 17px; }
  .promo-art { right: 10px; bottom: -40px; width: 210px; height: 210px; }
  .hours { padding: 32px 36px; }
  .hours li { padding: 16px 0; font-size: 18px; }
  .hours li b { font-size: 24px; }
  .place { margin-left: 24px; }
  .map { height: 220px; }
  .place-tx { padding: 24px 28px 28px; }
  .btn-copy { width: auto; height: 52px; font-size: 16.5px; }
  .foot { padding-top: 64px; }
  .bar { display: none; }
}
