:root{
  --porcelain:#fbf8f4;
  --paper:#f5f1eb;
  --rice:#f1e9df;
  --ink:#1f1f1f;
  --charcoal:#59514a;
  --muted:#8b7668;
  --faint:#a99f8f;
  --terra:#cb6e4d;
  --terra-dark:#b9674b;
  --amber:#d9a97a;
  --jade:#a8c1b5;
  --river:#7fa6b8;
  --line:#e8dcd0;
  --soft-line:rgba(194,174,151,.42);
  --shadow:0 18px 45px rgba(104,76,57,.13),0 4px 12px rgba(80,55,35,.08);
  --soft-shadow:0 9px 24px rgba(116,77,56,.14),0 2px 8px rgba(96,71,53,.08);
  --terra-textured-bg:
    radial-gradient(circle at 18% 24%,rgba(255,239,222,.22) 0 1px,transparent 1.7px),
    radial-gradient(circle at 74% 62%,rgba(112,49,30,.08) 0 1px,transparent 1.8px),
    repeating-linear-gradient(108deg,rgba(255,247,235,.045) 0 1px,transparent 1px 13px),
    linear-gradient(112deg,rgba(255,240,220,.12),transparent 34%,rgba(103,43,24,.07) 76%,rgba(255,244,230,.06)),
    linear-gradient(180deg,#d98a6b 0%,#cc7958 44%,#b96648 100%);
  --terra-textured-size:22px 22px,28px 28px,100% 100%,100% 100%,100% 100%;
  --primary-button-bg:url("assets/button_bg.webp?v=20260618-qiaopi-homeedit") center/100% 100% no-repeat,linear-gradient(105deg,#cb7454,#b75f42);
  --primary-button-radius:14px;
  --serif:"Songti SC","STSong","Noto Serif SC","Source Han Serif SC",serif;
  --sans:"Avenir Next","PingFang SC","Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{min-height:100%;margin:0}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:
    radial-gradient(circle at 50% -10%,#fff 0,#faf7f1 42%,#efe7dc 100%);
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:16px;
  overflow:auto;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.modal-open{overflow:hidden}
button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer}
img{max-width:100%;display:block}
svg{display:block}
.svg-sprite{position:absolute;overflow:hidden}

.app-frame{
  position:relative;
  width:430px;
  max-width:100vw;
  height:calc(100vh - 32px);
  height:calc(100svh - 32px);
  height:min(932px,calc(100dvh - 32px));
  max-height:932px;
  min-height:760px;
  margin:0 auto;
  overflow:hidden;
  border-radius:34px;
  border:1px solid rgba(94,72,57,.12);
  background:var(--porcelain);
  box-shadow:0 34px 90px rgba(58,42,30,.18);
}
.page{
  position:absolute;
  inset:0;
  display:none;
  overflow-y:auto;
  overflow-x:hidden;
  background:
    linear-gradient(180deg,rgba(255,253,250,.84),rgba(251,248,244,.88)),
    url("assets/paper_texture_background.png?v=20260617-qiaopi-homefix4") center/cover no-repeat,
    var(--porcelain);
}
.page.active{display:flex;flex-direction:column}
.page::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 18%,rgba(255,255,255,.76),transparent 25%),
    linear-gradient(115deg,rgba(255,255,255,.20),transparent 58%);
  mix-blend-mode:screen;
}
/* 首页背景：单张信封海岸竖图，避免拼接装饰抢占版面。 */
.hero-page{
  background-color:#f3eadf;
  background-image:
    linear-gradient(180deg,rgba(255,253,249,.08) 0%,rgba(255,252,248,.26) 35%,rgba(246,235,224,.10) 72%,rgba(241,230,218,.22) 100%),
    image-set(url("assets/hero_background.webp?v=20260617-qiaopi-homefix4") type("image/webp"),url("assets/hero_background.jpg?v=20260617-qiaopi-homefix4") type("image/jpeg")),
    url("assets/paper_texture_background.png?v=20260617-qiaopi-homefix4");
  background-repeat:no-repeat,no-repeat,no-repeat;
  background-position:center top,center center,center center;
  background-size:auto,cover,cover;
}

.ornament{position:absolute;pointer-events:none;z-index:1}
.ornament.window{
  right:-8px;
  top:58px;
  width:230px;
  height:148px;
  opacity:.32;
  background:url("assets/window_lattice.png?v=20260617-qiaopi-homefix4") center/contain no-repeat;
  mix-blend-mode:multiply;
  -webkit-mask-image:radial-gradient(ellipse at 60% 45%,#000 0 34%,rgba(0,0,0,.72) 50%,transparent 72%);
  mask-image:radial-gradient(ellipse at 60% 45%,#000 0 34%,rgba(0,0,0,.72) 50%,transparent 72%);
}
.ornament.leaves{
  right:8px;
  top:44px;
  width:150px;
  height:96px;
  opacity:.42;
  background:
    radial-gradient(ellipse at 20% 50%,#bca678 0 10px,transparent 11px),
    radial-gradient(ellipse at 45% 32%,#bca678 0 12px,transparent 13px),
    radial-gradient(ellipse at 67% 20%,#bca678 0 11px,transparent 12px),
    radial-gradient(ellipse at 82% 44%,#bca678 0 11px,transparent 12px);
  transform:rotate(-18deg);
}
.ornament.smoke{
  right:-4px;
  top:145px;
  width:96px;
  height:260px;
  opacity:.32;
  background:url("assets/tea_smoke.png?v=20260617-qiaopi-homefix4") center/contain no-repeat;
}
.ornament.bridge{
  left:-38px;
  right:-38px;
  bottom:34px;
  height:272px;
  opacity:.32;
  background:url("assets/bridge_water_ripple.png?v=20260617-qiaopi-homefix4") center bottom/122% auto no-repeat;
  mix-blend-mode:multiply;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.46) 18%,#000 38%,rgba(0,0,0,.56) 68%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.46) 18%,#000 38%,rgba(0,0,0,.56) 68%,transparent 100%);
}
.hero-page::after{
  z-index:1;
  background:
    linear-gradient(180deg,rgba(255,252,246,.05) 0,rgba(255,252,246,.02) 54%,rgba(246,235,224,.08) 100%);
  mix-blend-mode:normal;
}

.brand-logo{position:relative;z-index:2;object-fit:contain}
.hero-inner,.screen-content,.generating-content{position:relative;z-index:2}
.hero-inner{
  flex:1 1 auto;
  min-height:100%;
  padding:78px clamp(28px,12%,58px) 28px;
  display:flex;
  flex-direction:column;
}
.hero-logo{
  width:150px;
  margin:0 auto 70px;
  filter:drop-shadow(0 6px 18px rgba(126,86,58,.10));
}
.hero-title-wrap{position:relative}
.hero-deco-line{
  position:absolute;
  top:-34px;
  left:-6px;
  width:52px;
  height:auto;
  opacity:.92;
  pointer-events:none;
}
.hero-page h1{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(26px,8.4vw,36px);
  line-height:1.4;
  letter-spacing:0;
  text-align:left;
  text-wrap:balance;
}
.hero-sub{
  width:min(100%,300px);
  margin:15px 0 0;
  font-family:var(--serif);
  font-size:15px;
  line-height:1.68;
  letter-spacing:.02em;
  color:#8a6f61;
}
.primary-btn.hero-cta{
  width:min(296px,100%);
  min-height:58px;
  margin:50px auto 16px;
  border-radius:var(--primary-button-radius);
  flex-shrink:0;
  color:#fff8ef;
  background:var(--primary-button-bg);
  box-shadow:0 12px 22px rgba(150,82,58,.24),0 4px 10px rgba(95,54,38,.12),inset 0 1px 0 rgba(255,244,232,.30);
}
.primary-btn.hero-cta::before{display:none}
.hero-cta > *{position:relative;z-index:1}
.hero-cta .chev{opacity:.92;filter:drop-shadow(0 1px 1px rgba(94,40,28,.2))}
.primary-btn,.secondary-btn{
  min-height:52px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 22px;
  font-size:15px;
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.primary-btn{
  position:relative;
  isolation:isolate;
  color:#fff6ea;
  overflow:hidden;
  border-radius:var(--primary-button-radius);
  background:var(--primary-button-bg);
  box-shadow:0 14px 26px rgba(150,82,58,.24),0 4px 10px rgba(95,54,38,.12),inset 0 1px 0 rgba(255,244,232,.38);
  text-shadow:0 1px 1px rgba(95,41,27,.2);
}
.primary-btn::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  border-radius:inherit;
  background:
    radial-gradient(circle at 18% 24%,rgba(255,239,222,.18) 0 1px,transparent 1.8px),
    radial-gradient(circle at 74% 62%,rgba(112,49,30,.08) 0 1px,transparent 1.8px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 1px,transparent 1px 8px);
  background-size:22px 22px,28px 28px,100% 100%;
  display:none;
}
.secondary-btn{
  min-height:54px;
  border:1px solid #dcc5b3;
  border-radius:var(--primary-button-radius);
  background:rgba(255,253,249,.74);
  color:#2e2925;
}
.primary-btn:hover,.secondary-btn:hover{transform:translateY(-1px)}
.primary-btn svg,.secondary-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2}
.cta-record-mark{
  position:relative;
  width:32px;
  height:24px;
  flex:0 0 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:currentColor;
}
.cta-record-mark svg{
  position:absolute;
  inset:1px 4px;
  width:24px;
  height:22px;
  opacity:.22;
  stroke-width:1.8;
  animation:ctaSignalGlow 2.4s ease-in-out infinite;
}
.cta-record-mark i{
  position:relative;
  z-index:1;
  width:3px;
  height:9px;
  border-radius:3px;
  background:currentColor;
  opacity:.74;
  animation:ctaSignalBar 1.18s ease-in-out infinite;
}
.cta-record-mark i:nth-of-type(2){animation-delay:-.88s}
.cta-record-mark i:nth-of-type(3){animation-delay:-.58s}
.cta-record-mark i:nth-of-type(4){animation-delay:-.28s}
.hero-cta:hover .cta-record-mark i,.hero-cta:focus-visible .cta-record-mark i{animation-duration:.86s}
@keyframes ctaSignalBar{
  0%,100%{height:7px;opacity:.5}
  24%{height:16px;opacity:.95}
  48%{height:10px;opacity:.72}
  70%{height:20px;opacity:1}
}
@keyframes ctaSignalGlow{
  0%,100%{opacity:.16;filter:drop-shadow(0 0 0 rgba(255,239,226,0))}
  50%{opacity:.34;filter:drop-shadow(0 0 7px rgba(255,239,226,.42))}
}
.primary-btn.disabled,.primary-btn:disabled,.secondary-btn:disabled{opacity:.45;pointer-events:none;box-shadow:none}
.text-link{
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#9b6e57;
  font-family:var(--serif);
  font-size:15px;
}
.text-link svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.text-link-label{
  border-bottom:1px dashed currentColor;
  padding-bottom:3px;
  line-height:1;
}
.hero-credit{
  margin:18px auto 0;
  color:rgba(104,73,57,.72);
  font-family:var(--serif);
  font-size:13px;
  line-height:1.5;
  text-align:center;
}
.process-tabs{
  display:grid;
  grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr);
  align-items:start;
  color:#a59486;
  font-family:var(--serif);
  font-size:16px;
  font-weight:500;
  line-height:1.25;
  text-align:center;
}
.process-tabs span{
  position:relative;
  min-width:0;
  padding:0 2px 13px;
  white-space:nowrap;
}
.process-tabs span.active{
  color:var(--terra);
  font-weight:700;
}
.process-tabs span.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:32px;
  height:2px;
  border-radius:999px;
  transform:translateX(-50%);
  background:var(--terra);
  box-shadow:0 1px 4px rgba(203,110,77,.22);
}
.process-tabs i{
  width:3px;
  height:3px;
  margin-top:.52em;
  justify-self:center;
  border-radius:50%;
  background:currentColor;
  opacity:.68;
}
.flow-steps{
  width:min(100%,318px);
  margin:50px auto 30px auto;
  display:block;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.flow-steps-img{
  display:block;
  width:100%;
  height:auto;
}
.flow-step{
  position:relative;
  min-width:0;
  padding-top:11px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:11px;
  color:#aa8d7d;
}
/* dashed connector + chevron sitting in the gap between rings */
.flow-step:not(:first-child)::before{
  content:"";
  position:absolute;
  left:-33px;
  top:35px;
  width:42px;
  border-top:1.5px dashed rgba(193,103,72,.42);
}
.flow-step:not(:first-child)::after{
  content:"\203A";
  position:absolute;
  left:6px;
  top:26px;
  color:rgba(193,103,72,.62);
  font-family:var(--sans);
  font-size:16px;
  line-height:1;
  font-weight:600;
}
.step-icon{
  position:relative;
  width:50px;
  height:50px;
  margin-top:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1.5px solid rgba(193,103,72,.30);
  background:rgba(255,251,246,.55);
  color:var(--terra);
}
.step-icon svg{
  width:24px;
  height:24px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.6;
}
.step-index{
  position:absolute;
  left:50%;
  top:0;
  z-index:3;
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:var(--terra);
  font-family:var(--sans);
  font-size:11px;
  font-weight:700;
  transform:translateX(-50%);
  box-shadow:0 2px 5px rgba(180,90,60,.34);
}
.flow-step b{
  display:block;
  min-width:0;
  max-width:100%;
  color:#6e4f3f;
  font-family:var(--serif);
  font-size:13px;
  line-height:1.25;
  font-weight:600;
  text-align:center;
  letter-spacing:0;
  overflow-wrap:anywhere;
}

.topbar{
  position:sticky;
  top:0;
  z-index:8;
  height:60px;
  padding-top:env(safe-area-inset-top);
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid rgba(232,220,208,.85);
  background:rgba(255,253,250,.84);
  backdrop-filter:blur(18px);
  font-size:16px;
  font-weight:600;
}
.back-btn{
  position:absolute;
  left:16px;
  width:36px;
  height:36px;
  padding:7px;
  border-radius:50%;
}
.back-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.2}

.page-head{
  position:sticky;
  top:0;
  z-index:8;
  flex:0 0 auto;
  padding-top:env(safe-area-inset-top);
  background:rgba(255,253,250,.46);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(232,220,208,.42);
}
.head-bar{
  position:relative;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
}
.head-logo{
  height:30px;
  width:auto;
  flex:0 0 auto;
  cursor:pointer;
  transition:opacity .15s ease;
}
.head-logo:hover,.head-logo:active{opacity:.72}
.head-title{
  position:absolute;
  left:16px;
  color:#7a6557;
  font-family:var(--serif);
  font-size:15px;
  font-weight:600;
}
.share-close{
  position:absolute;
  top:0px;
  right:8px;
  z-index:15;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#775f51;
  background:rgba(255,251,245,.62);
  border:1px solid rgba(220,197,179,.7);
  box-shadow:0 5px 14px rgba(99,72,52,.08);
}
.share-close svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2.2}
.page-steps{
  padding:12px 31px 14px;
}
.result-stepper{
  padding-top:8px;
}

.screen-content{
  flex:1 1 auto;
  padding:18px 28px 32px;
  display:flex;
  flex-direction:column;
}
.page-logo{width:236px;margin:24px auto 28px}
.page-logo.compact{width:218px;margin-bottom:22px}
.page-logo.small{width:198px;margin:18px auto 24px}
.page-logo.left{margin-left:0}
.screen-content h2{
  margin:0 0 12px;
  text-align:center;
  font-family:var(--serif);
  font-size:27px;
  line-height:1.28;
  letter-spacing:0;
}
.lead{
  margin:0;
  text-align:center;
  color:#80695a;
  font-family:var(--serif);
  font-size:16px;
  line-height:1.65;
  letter-spacing:0;
}
.lead.compact{font-size:14px;line-height:1.6;color:#9a7d6c}

.about-content{padding-top:34px}
.about-content h2{font-size:28px}
.about-list{display:grid;gap:16px;margin-top:30px}
.info-card{
  position:relative;
  display:grid;
  grid-template-columns:62px 1fr;
  gap:14px;
  align-items:center;
  min-height:128px;
  padding:18px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,253,249,.72);
  box-shadow:var(--soft-shadow);
  overflow:hidden;
}
.info-card span{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#f5ede5;
  color:var(--terra);
}
.info-card svg{width:29px;height:29px;stroke:currentColor;fill:none;stroke-width:1.75}
.info-card em{font-style:normal;color:var(--amber);font-family:var(--serif);font-size:18px}
.info-card h3{margin:4px 0 7px;font-family:var(--serif);font-size:18px;line-height:1.25}
.info-card p{margin:0;color:#7b6657;font-size:14px;line-height:1.65}
.about-content blockquote{
  margin:28px 0 54px;
  text-align:center;
  color:#8e6e5e;
  font-family:var(--serif);
  font-size:18px;
  line-height:1.75;
}
.bottom-action{width:100%;margin-top:auto;flex-shrink:0}

.choice-list,.dialect-list{display:grid;gap:14px;margin-top:30px}
.choice-card,.dialect-card{
  position:relative;
  width:100%;
  text-align:left;
  color:var(--ink);
  border:1px solid var(--line);
  background:rgba(255,253,249,.78);
  box-shadow:0 6px 16px rgba(105,77,59,.06);
  overflow:hidden;
}
.choice-card{
  height:74px;
  border-radius:15px;
  display:grid;
  grid-template-columns:56px 1fr 32px;
  align-items:center;
  gap:12px;
  padding:0 17px;
}
.choice-card .choice-icon{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#c58667;
  background:#f3ebe3;
}
.choice-card svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:2}
.choice-card b{font-family:var(--serif);font-size:20px;font-weight:600}
.choice-card i{
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #c9bdb1;
  border-radius:50%;
  color:#fff;
}
.choice-card.selected,.dialect-card.selected{
  border-color:var(--terra);
  background:rgba(255,252,248,.92);
  box-shadow:0 10px 22px rgba(190,103,75,.13);
}
.choice-card.selected .choice-icon,.choice-card.selected i,.dialect-card.selected i{
  border-color:transparent;
  color:#fff;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
}

.record-content h2{font-size:30px;margin-top:2px}
.record-content h2 span{position:relative;color:var(--ink)}
.record-content h2 span::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width:42px;
  height:9px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse at center,var(--terra) 0 20%,transparent 23%) center/12px 7px repeat-x;
  opacity:.8;
}
.read-card{
  position:relative;
  margin:22px 0 18px;
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,253,249,.76);
  box-shadow:var(--soft-shadow);
  overflow:hidden;
}
.read-card::after{
  content:"";
  position:absolute;
  right:10px;
  bottom:10px;
  width:84px;
  height:80px;
  opacity:.18;
  background:url("assets/home_teacup_cutout.png?v=20260617-qiaopi-homefix4") center/contain no-repeat;
}
.small-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:20px;
  color:#9a6f5c;
  font-family:var(--serif);
  font-size:14px;
}
.small-label img{width:20px;height:20px}
.read-language-tabs{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:0 0 16px;
  padding:4px;
  border:1px solid rgba(218,198,177,.72);
  border-radius:14px;
  background:rgba(255,253,249,.66);
}
.read-language-tabs button{
  min-height:34px;
  border-radius:10px;
  color:#8a6c5d;
  font-size:14px;
}
.read-language-tabs button.selected{
  color:#fff;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
  box-shadow:0 6px 14px rgba(188,96,68,.15);
}
.read-card p{
  position:relative;
  z-index:1;
  margin:0;
  text-align:left;
  font-family:var(--serif);
  font-size:17px;
  line-height:1.75;
  white-space:pre-line;
  overflow-wrap:anywhere;
}
.record-wave{
  height:78px;
  width:100%;
  margin:16px auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:var(--terra);
}
.record-wave span{
  width:3px;
  height:calc(var(--h)*1px);
  border-radius:3px;
  background:currentColor;
  opacity:.42;
  transform-origin:center;
  transition:height .12s ease,opacity .12s ease;
}
.record-wave.recording span{
  opacity:.92;
  animation:wave 1s ease-in-out infinite;
  animation-delay:calc(var(--i)*-.045s);
}
@keyframes wave{0%,100%{transform:scaleY(.48)}50%{transform:scaleY(1.08)}}
.record-time{text-align:center;font-family:var(--serif);font-size:16px;color:#2f2a26;margin-bottom:20px}
.record-time span:first-child{color:var(--terra)}
.record-time b{font-weight:400;margin:0 12px}
.record-btn{
  position:relative;
  width:94px;
  height:94px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
  box-shadow:
    0 0 0 19px rgba(203,110,77,.1),
    0 16px 30px rgba(188,96,68,.24),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -10px 18px rgba(112,48,28,.14);
  transition:width .25s ease,height .25s ease,border-radius .25s ease,background-color .25s ease;
}
.record-btn .record-btn-ico{
  position:relative;
  z-index:1;
  width:42px;height:42px;
  stroke:currentColor;fill:none;stroke-width:2;
  transition:width .25s ease,height .25s ease;
}
/* recording: morph into a clear stop affordance */
.record-btn.active{
  width:84px;height:84px;
  border-radius:26px;
  background-color:#b9674b;
  box-shadow:
    0 14px 30px rgba(150,62,40,.34),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -10px 18px rgba(112,48,28,.18);
}
.record-btn.active .record-btn-ico{width:34px;height:34px;fill:#fff;stroke:none}
.record-btn .record-btn-ring{
  position:absolute;
  inset:-10px;
  border-radius:inherit;
  border:2px solid rgba(203,110,77,.55);
  opacity:0;
  pointer-events:none;
}
.record-btn.active .record-btn-ring{
  inset:-14px;
  border-radius:34px;
  animation:recPulse 1.5s ease-out infinite;
}
@keyframes recPulse{
  0%{opacity:.55;transform:scale(.9)}
  70%{opacity:0;transform:scale(1.18)}
  100%{opacity:0;transform:scale(1.18)}
}
.record-hint{margin:18px 0 14px;text-align:center;color:#7e6556;font-family:var(--serif);font-size:15px;transition:color .2s ease}
.record-content[data-rec="recording"] .record-hint{color:var(--terra);font-weight:600}

.player-tile i,.card-player i{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
}

/* ---- recorded panel ---- */
.record-preview{margin:0;width:100%}
.recorded-label{
  display:flex;align-items:center;justify-content:center;gap:7px;
  margin:0 0 14px;
  color:var(--muted);
  font-family:var(--serif);font-size:14px;
}
.recorded-label svg{width:17px;height:17px;stroke:var(--terra);fill:none;stroke-width:2}
.rec-player{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,253,249,.82);
  box-shadow:var(--soft-shadow);
}
.rec-player .rp-play{
  flex:none;
  width:48px;height:48px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  color:#fff;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
  box-shadow:0 8px 18px rgba(188,96,68,.22);
}
.rec-player .rp-play svg{width:20px;height:20px;fill:currentColor}
.rec-player .rp-wave{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:2px;
  height:42px;
  cursor:pointer;
}
.rec-player .rp-wave span{
  flex:1 1 0;
  min-width:2px;
  height:calc(var(--h,30) * 1%);
  border-radius:2px;
  background:rgba(170,150,132,.5);
  transition:background .12s ease;
}
.rec-player .rp-wave span.act{background:var(--terra)}
.rec-player .rp-time{
  flex:none;
  min-width:38px;
  text-align:right;
  font-family:var(--serif);
  font-size:13px;
  color:var(--muted);
}

.redo-link{
  display:block;
  margin:16px auto 0;
  padding:6px 4px;
  color:var(--muted);
  font-family:var(--serif);
  font-size:14px;
  text-decoration:underline;
  text-decoration-style:dashed;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  text-decoration-color:rgba(139,118,104,.55);
}
.redo-link:active{color:var(--terra)}

.record-stage{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
}
.record-live{width:100%;display:flex;flex-direction:column;align-items:center}
.record-stage .record-wave{margin:0 auto 6px}
.record-stage .record-time{margin:0 0 18px}
.record-stage .record-hint{margin:16px 0 0}
/* state visibility */
.record-content[data-rec="idle"] .record-wave,
.record-content[data-rec="recorded"] .record-wave{display:none}
.record-content[data-rec="idle"] .record-time,
.record-content[data-rec="recorded"] .record-time{display:none}
.record-content[data-rec="recorded"] .record-live{display:none}
.record-content[data-rec="idle"] .record-preview,
.record-content[data-rec="recording"] .record-preview{display:none}
#recordNext,#recordRedo{display:none}
#recordNext{margin-top:22px}
.record-content[data-rec="recorded"] #recordNext{display:inline-flex}
.record-content[data-rec="recorded"] #recordRedo{display:block}

.privacy{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  width:min(100%,330px);
  margin:18px auto 0;
  color:#8d7668;
  font-size:13px;
  line-height:1.55;
  text-align:left;
}
.privacy svg{width:17px;height:17px;margin-top:.2em;stroke:currentColor;fill:none;stroke-width:1.9;flex:0 0 auto}
.privacy span{min-width:0;flex:1}

.dialect-content{
  min-height:0;
  overflow:hidden;
  padding-bottom:24px;
}
.dialect-content h2{font-size:28px}
.group-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:22px;
  padding:5px;
  border:1px solid rgba(218,198,177,.7);
  border-radius:16px;
  background:rgba(255,253,249,.62);
}
.group-tabs button{
  min-height:40px;
  border-radius:12px;
  color:#8a6c5d;
  font-family:var(--serif);
  font-size:15px;
}
.group-tabs button.selected{
  color:#fff;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
  box-shadow:0 8px 16px rgba(188,96,68,.16);
}
.group-tabs[hidden]{display:none}
.dialect-scroll{
  flex:1 1 auto;
  min-height:0;
  margin-top:18px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:0 2px 44px;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.dialect-list{display:grid;gap:14px;margin-top:0}
.dialect-card{
  min-height:96px;
  border-radius:17px;
  display:grid;
  grid-template-columns:84px 1fr 32px;
  align-items:center;
  gap:12px;
  padding:11px 14px 11px 11px;
}
.dialect-visual{
  height:74px;
  border-radius:14px;
  opacity:1;
  background:#fffdf9;
  position:relative;
  overflow:hidden;
}
.dialect-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.16),transparent)}
.dialect-visual.role-musheng::before,
.dialect-visual.role-shurou::before,
.dialect-visual.role-nanzhi::before{
  content:"";
  position:absolute;
  inset:0px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}
.dialect-visual.role-musheng::before{background-image:url("assets/person1.webp?v=20260618-qiaopi-roles2")}
.dialect-visual.role-shurou::before{background-image:url("assets/person2.webp?v=20260618-qiaopi-roles2")}
.dialect-visual.role-nanzhi::before{background-image:url("assets/person3.webp?v=20260618-qiaopi-roles2")}
.dialect-visual.tea::before,.dialect-visual.chaoshan::before{
  content:"";
  position:absolute;
  left:20px;
  top:25px;
  width:46px;
  height:25px;
  border:2px solid #bfa07e;
  border-radius:0 0 27px 27px;
  background:#fff8ef;
  box-shadow:0 23px 0 -8px rgba(194,161,126,.4);
}
.dialect-visual.zuotan::before{
  content:"";
  position:absolute;
  left:15px;
  right:12px;
  bottom:16px;
  height:36px;
  border-bottom:2px solid #bfa07e;
  border-radius:50%;
  box-shadow:20px -15px 0 -12px #d8c2a6,44px -9px 0 -13px #d8c2a6;
}
.dialect-visual.city::before{
  content:"";
  position:absolute;
  left:18px;
  bottom:16px;
  width:54px;
  height:34px;
  border:2px solid #bfa07e;
  border-top:0;
  border-radius:0 0 8px 8px;
  background:linear-gradient(90deg,transparent 0 31%,rgba(191,160,126,.38) 32% 35%,transparent 36% 64%,rgba(191,160,126,.38) 65% 68%,transparent 69%);
}
.dialect-card b{font-family:var(--serif);font-size:20px;font-weight:700}
.dialect-card p{margin:7px 0 0;color:#8a6c5d;font-family:var(--serif);font-size:13.5px;line-height:1.45}
.dialect-card small{display:block;margin-top:4px;color:#9f8b7e;font-size:12px}
.dialect-card small.collecting{color:#b88970;font-weight:600}
.dialect-card i{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #cbbcae;
  border-radius:50%;
  color:#fff;
}
.dialect-card i svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.6}
.dialect-card.disabled{
  cursor:not-allowed;
  border-color:rgba(218,198,177,.58);
  color:#7f746c;
  background:rgba(246,241,235,.56);
  box-shadow:none;
}
.dialect-card.disabled .dialect-visual{opacity:.46;filter:grayscale(.45)}
.dialect-card.disabled b{color:#7c7068}
.dialect-card.disabled p{color:#a9988b}
.dialect-card.disabled i{border-color:#ddd1c5;background:transparent}
.activity-entry{
  width:100%;
  min-height:78px;
  margin:18px 0 28px;
  padding:14px 16px;
  display:grid;
  grid-template-columns:48px 1fr 18px;
  grid-template-rows:auto auto;
  column-gap:12px;
  align-items:center;
  border:1px dashed rgba(203,110,77,.48);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,251,246,.8),rgba(247,239,229,.68));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
  text-align:left;
}
.activity-entry b,.activity-entry small{grid-column:2;min-width:0}
.activity-entry span{
  grid-row:1/3;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--terra);
  background:rgba(255,255,255,.7);
  border:1px solid rgba(222,201,181,.82);
}
.activity-entry span svg,.activity-entry .chev{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2}
.activity-entry b{font-family:var(--serif);font-size:16px;color:#2b2623}
.activity-entry small{margin-top:3px;color:#9b7764;font-size:13px}
.activity-entry .chev{grid-column:3;grid-row:1/3;color:#bd684b}
.dialect-actions{
  flex:0 0 auto;
  padding:16px 0 calc(8px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(255,253,250,.02),rgba(255,253,250,.82) 28%,rgba(255,253,250,.94));
}
.dialect-actions .bottom-action{
  width:100%;
  margin-top:0;
}
.dialect-actions .redo-link{margin-top:14px}

.generating-content{
  flex:1 1 auto;
  padding:0 36px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.pulse-logo{
  position:relative;
  width:168px;
  height:168px;
  margin-bottom:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pulse-logo span{
  position:absolute;
  inset:28px;
  border:1.5px solid rgba(203,110,77,.52);
  border-radius:50%;
  animation:pulse 2.4s ease-out infinite;
}
.pulse-logo span:nth-child(2){animation-delay:.55s}
.pulse-logo span:nth-child(3){animation-delay:1.1s}
.pulse-logo img{position:relative;z-index:2;width:68px}
@keyframes pulse{0%{transform:scale(.7);opacity:.75}100%{transform:scale(1.6);opacity:0}}
.generating-content h2{margin:0 0 8px;font-family:var(--serif);font-size:22px}
.generating-content p{margin:0 0 30px;color:#9a7d6c}
.generate-steps{width:100%;margin:0;padding:0;list-style:none;display:grid;gap:14px;text-align:left}
.generate-steps li{
  display:flex;
  align-items:center;
  gap:12px;
  color:#8a6c5d;
  font-family:var(--serif);
  font-size:15px;
  transition:color .25s ease;
}
.gs-ico{
  position:relative;
  width:22px;
  height:22px;
  flex:0 0 auto;
  border:1.5px solid var(--line);
  border-radius:50%;
  box-sizing:border-box;
  transition:border-color .25s ease,background-color .25s ease;
}
/* active: terracotta ring with a slow spinner */
.generate-steps li.active{color:var(--ink);font-weight:600}
.generate-steps li.active .gs-ico{border-color:rgba(203,110,77,.28)}
.generate-steps li.active .gs-ico::after{
  content:"";
  position:absolute;
  inset:-1.5px;
  border-radius:50%;
  border:1.5px solid transparent;
  border-top-color:var(--terra);
  border-right-color:var(--terra);
  animation:gsSpin .8s linear infinite;
}
/* done: filled terracotta circle with a white check */
.generate-steps li.done{color:var(--charcoal)}
.generate-steps li.done .gs-ico{border-color:var(--terra);background:var(--terra)}
.generate-steps li.done .gs-ico::after{
  content:"";
  position:absolute;
  left:7px;top:3px;
  width:5px;height:10px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
  animation:gsCheck .28s ease both;
}
/* error: red ring on the failed step */
.generate-steps li.error{color:#b23b2e}
.generate-steps li.error .gs-ico{border-color:#cf4a39;background:rgba(207,74,57,.08)}
.generate-steps li.error .gs-ico::after{
  content:"!";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  color:#cf4a39;
}
@keyframes gsSpin{to{transform:rotate(360deg)}}
@keyframes gsCheck{from{opacity:0;transform:rotate(45deg) scale(.4)}to{opacity:1;transform:rotate(45deg) scale(1)}}
.generate-actions{margin-top:28px;width:100%;display:flex;gap:12px}
.generate-actions[hidden]{display:none}
.generate-actions .secondary-btn,.generate-actions .primary-btn{flex:1}
#generateStatus.error{color:#b23b2e}
/* slide the result page in after generation completes */
.page.slide-in{animation:pageSlideIn .5s cubic-bezier(.22,.61,.36,1) both}
@keyframes pageSlideIn{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}

.result-page{
  background:
    radial-gradient(circle at 50% 7%,rgba(255,255,255,.94) 0 28%,rgba(255,255,255,0) 56%),
    linear-gradient(180deg,#fffaf4 0%,#fbf5ee 45%,#f4ebdf 100%);
}
.result-page::before{
  content:"";
  position:absolute;
  top:52px;
  right:-12px;
  z-index:0;
  width:178px;
  height:112px;
  pointer-events:none;
  background:url("assets/sharecard_background_blank.png?v=20260617-qiaopi-homefix4") right top/220px auto no-repeat;
  opacity:.14;
  mix-blend-mode:multiply;
  filter:saturate(.72);
  -webkit-mask-image:linear-gradient(180deg,#000 0 58%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0 58%,transparent 100%);
}
.result-page::after{display:none}
.result-head{
  position:relative;
  top:auto;
  z-index:3;
  background:transparent;
  border-bottom-color:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.result-head .head-bar{height:76px;padding-top:28px}
.result-head .head-logo{height:30px}
.result-status{
  width:max-content;
  margin:0 auto 8px;
  min-height:29px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(203,110,77,.42);
  border-radius:999px;
  background:rgba(255,251,245,.58);
  color:#9b6e57;
  font-family:var(--serif);
  font-size:13px;
  box-shadow:0 5px 16px rgba(116,77,56,.06);
}
.result-status svg{
  width:18px;
  height:18px;
  padding:4px;
  border-radius:50%;
  color:#fff7ef;
  stroke:currentColor;
  fill:none;
  stroke-width:3;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
}
.result-head .result-stepper{padding-bottom:14px}
.result-content{
  position:relative;
  z-index:2;
  padding:16px 38px 30px;
  align-items:stretch;
}
.result-content h2{
  width:calc(100% + 36px);
  margin:0 -18px 9px;
  text-align:center;
  font-size:40px;
  line-height:1.26;
  color:#292929;
  letter-spacing:0;
}
#resultDialectName{color:var(--terra);white-space:nowrap}
.english-line{
  position:relative;
  text-align:center;
  margin:0 0 30px;
  color:#a98674;
  font-family:Georgia,serif;
  font-size:17px;
}
.english-line::before{
  content:"";
  position:absolute;
  left:50%;
  top:-12px;
  width:45px;
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,#e8d6c5,transparent);
}
.english-line::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-17px;
  width:112px;
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,#e5d1bf 20%,#caa68d 50%,#e5d1bf 80%,transparent);
}
.players-row{
  width:calc(100% + 16px);
  margin:0 -8px;
  display:flex;
  flex-direction:column;
  gap:17px;
}
.result-player{
  width:100%;
  position:relative;
  display:flex;
  color:#2c2723;
  text-align:left;
}
.result-player-main{
  min-height:300px;
  flex-direction:column;
  align-items:center;
  padding:26px 28px 17px;
  overflow:hidden;
  border:1px solid rgba(203,110,77,.58);
  border-radius:22px;
  background:
    linear-gradient(180deg,rgba(255,253,249,.92),rgba(250,245,239,.94)),
    repeating-linear-gradient(180deg,transparent 0 40px,rgba(195,160,133,.10) 41px,transparent 42px),
    #fffaf4;
  box-shadow:0 14px 31px rgba(105,77,59,.07),inset 0 1px 0 rgba(255,255,255,.86);
}
.result-player-main::before{
  display:none;
}
.result-player-main::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.34),transparent 42%,rgba(246,236,226,.22) 100%);
}
.result-player-title{
  width:100%;
  position:relative;
  z-index:1;
  align-self:flex-start;
  min-height:30px;
  padding-left:42px;
  font-family:var(--serif);
  font-size:21px;
  font-weight:700;
  line-height:1.25;
}
.result-player-title::before{
  content:"✿";
  position:absolute;
  left:0;
  top:0;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#cda287;
  font-family:var(--serif);
  font-size:24px;
  line-height:1;
}
.result-player-text{
  position:relative;
  z-index:1;
  width:100%;
  margin-top:10px;
  color:#7d5d50;
  font-family:var(--serif);
  font-size:16px;
  line-height:1.72;
  text-align:left;
  white-space:pre-line;
}
.result-play-button{
  position:relative;
  z-index:1;
  width:54px;
  height:54px;
  margin:auto auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff7ef;
  background-color:#c87555;
  background-image:var(--terra-textured-bg);
  background-size:var(--terra-textured-size);
  background-blend-mode:soft-light,multiply,overlay,soft-light,normal;
  box-shadow:0 0 0 11px rgba(203,110,77,.10),0 0 0 18px rgba(203,110,77,.055),0 9px 20px rgba(150,82,58,.15);
}
.result-play-button svg{width:22px;height:22px;fill:currentColor;stroke:none;margin-left:3px}
.result-player.playing .result-play-button svg{margin-left:0}
.result-wave,.source-wave{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.result-wave{
  width:100%;
  height:30px;
  gap:3.2px;
  color:var(--terra);
  overflow:hidden;
}
.result-wave span,.source-wave span{
  width:2.6px;
  height:calc(var(--h) * 1px);
  flex:0 0 auto;
  border-radius:999px;
  background:currentColor;
  opacity:.82;
}
.result-player.playing .result-wave span,.result-player.playing .source-wave span{
  animation:wave 1.02s ease-in-out infinite;
  animation-delay:calc(var(--i) * -.045s);
}
.result-duration{
  position:relative;
  z-index:1;
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:16px;
  color:#9b6e57;
  font-family:Georgia,serif;
  font-size:14px;
  font-variant-numeric:tabular-nums;
}
.result-duration::before,.result-duration::after{
  content:"";
  width:52px;
  height:1px;
  background:#ead8c7;
}
.result-player-source,.card-player{
  min-height:54px;
  align-items:center;
  gap:14px;
  padding:7px 16px;
  border:1px solid rgba(218,198,177,.48);
  border-radius:15px;
  background:rgba(255,253,249,.82);
  box-shadow:0 8px 20px rgba(105,77,59,.045);
  opacity:.88;
}
.source-play,.card-player i{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(218,198,177,.62);
  border-radius:50%;
  background:#fff8f0;
  color:#b86d50;
}
.source-play svg,.card-player i svg{width:16px;height:16px;fill:currentColor;stroke:none;margin-left:2px}
.result-player-source.playing .source-play svg,.card-player.playing i svg{margin-left:0}
.source-title{
  flex:0 0 auto;
  font-family:var(--serif);
  font-size:13.5px;
  font-weight:600;
  white-space:nowrap;
}
.source-wave{
  flex:1 1 auto;
  min-width:0;
  height:22px;
  gap:3.5px;
  color:#dfcec1;
  overflow:hidden;
}
.source-wave span{width:2px;opacity:.9}
.source-duration{
  color:#a98777;
  font-family:Georgia,serif;
  font-size:13.5px;
  font-variant-numeric:tabular-nums;
}
.result-share{
  width:calc(100% - 18px);
  min-height:56px;
  margin:20px auto 20px;
  border-radius:var(--primary-button-radius);
  font-size:17px;
  letter-spacing:.08em;
}
.inline-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  padding:0;
}
.inline-actions button{
  min-width:0;
  padding:0 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#9b6e57;
  font-family:var(--serif);
  font-size:13px;
  white-space:nowrap;
}
.inline-actions button + button{border-left:1px solid rgba(203,143,104,.38)}
.inline-actions svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.activity-inline{
  width:100%;
  max-width:310px;
  margin:20px auto 0;
  padding-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-top:1px solid rgba(218,198,177,.72);
  color:#9b6e57;
  font-family:var(--serif);
  font-size:13px;
}
.activity-inline svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}

.share-page{
  background:
    radial-gradient(circle at 50% 12%,rgba(255,255,255,.92) 0 30%,rgba(255,255,255,0) 58%),
    linear-gradient(180deg,#fffaf4 0%,#fbf5ee 48%,#f4ebdf 100%);
}
.share-page::after{
  display:none;
}
.share-page .page-head{
  background:transparent;
  border-bottom-color:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.share-content{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  padding:12px 0 24px;
}
.voice-card{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:590px;
  margin:0 auto;
  padding:46px 52px 36px;
  border:0;
  border-radius:0;
  background-color:#fffaf4;
  background-image:
    linear-gradient(180deg,rgba(255,254,250,.94),rgba(250,245,239,.96)),
    repeating-linear-gradient(180deg,transparent 0 37px,rgba(195,160,133,.10) 38px,transparent 39px),
    radial-gradient(circle at 86% 11%,rgba(203,110,77,.08) 0 42px,transparent 43px);
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),inset 0 -1px 0 rgba(217,197,178,.34);
  overflow:hidden;
}
.voice-card::after{
  content:"";
  position:absolute;
  inset:18px 22px 20px;
  z-index:2;
  pointer-events:none;
  border:1px solid rgba(218,198,177,.74);
  border-radius:24px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.card-logo{position:relative;z-index:1;width:132px}
.card-title{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:7px;
  margin:25px 0 2px;
}
.card-title svg{width:19px;height:19px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2;color:var(--terra)}
.card-title h2{
  margin:0;
  font-family:var(--serif);
  font-size:18px;
  font-weight:600;
  line-height:1.28;
  color:#2c2723;
}
.card-title h2 b{font-weight:700;color:var(--terra)}
.field{position:relative;z-index:1;margin:0}
.field span{display:block;margin-bottom:8px;color:var(--terra);font-family:var(--serif);font-size:14px;letter-spacing:.04em}
.field p{margin:0;font-family:var(--serif);font-size:15px;line-height:1.65;color:#6f6056}
.home-line{margin:20px 0 18px}
.home-line h3{
  margin:0;
  font-family:var(--serif);
  font-size:16px;
  font-weight:500;
  line-height:1.62;
  color:#473e36;
  white-space:pre-line;
}
.card-player{
  width:100%;
  margin-top:24px;
  position:relative;
  z-index:1;
  display:flex;
}
.card-player em{
  flex:1;
  height:22px;
  color:#dfcec1;
  opacity:.9;
  overflow:hidden;
}
.card-player em::before{
  content:"";
  display:block;
  margin-top:10px;
  width:2px;
  height:10px;
  border-radius:2px;
  background:currentColor;
  box-shadow:
    7px -4px currentColor,14px 4px currentColor,21px -8px currentColor,28px 1px currentColor,
    35px -6px currentColor,42px 5px currentColor,49px -2px currentColor,56px 4px currentColor,
    63px -8px currentColor,70px 2px currentColor,77px -4px currentColor,84px 6px currentColor,
    91px -6px currentColor,98px 1px currentColor,105px -9px currentColor,112px 5px currentColor,
    119px -3px currentColor,126px 7px currentColor,133px -5px currentColor,140px 3px currentColor,
    147px -8px currentColor,154px 2px currentColor,161px -4px currentColor,168px 5px currentColor,
    175px -2px currentColor,182px 4px currentColor,189px -7px currentColor,196px 2px currentColor,
    203px -4px currentColor,210px 6px currentColor,217px -6px currentColor,224px 2px currentColor;
}
.card-qr{
  position:absolute;
  left:42px;
  bottom:62px;
  z-index:2;
  width:80px;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:5px solid rgba(255,255,255,.92);
  background:#fff;
  box-shadow:0 0 0 1px rgba(210,189,170,.68),0 7px 16px rgba(92,61,38,.08);
}
.card-qr[hidden]{display:none}
.card-qr img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.card-qr span{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  text-align:center;
  color:#8a6d5c;
  font-family:var(--serif);
  font-size:10px;
  line-height:1.25;
  background:#fff;
}
.card-qr.loaded span{display:none}
.share-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  width:calc(100% - 48px);
  max-width:342px;
  margin:0 auto;
}
.share-actions .primary-btn,.share-actions .secondary-btn{width:100%;font-size:15px}

.toast{
  position:fixed;
  left:50%;
  bottom:34px;
  z-index:1000;
  max-width:min(340px,calc(100vw - 48px));
  padding:10px 18px;
  border-radius:22px;
  background:rgba(31,31,31,.86);
  color:#fff;
  font-size:14px;
  opacity:0;
  transform:translateX(-50%) translateY(30px);
  pointer-events:none;
  transition:.25s;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.activity-modal[hidden]{display:none}
.activity-modal{
  position:fixed;
  inset:0;
  z-index:900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.activity-backdrop{
  position:absolute;
  inset:0;
  background:rgba(42,32,25,.38);
  backdrop-filter:blur(12px);
}
.activity-dialog{
  position:relative;
  z-index:1;
  width:min(392px,calc(100vw - 28px));
  max-height:min(820px,calc(100dvh - 28px));
  overflow:auto;
  padding:26px 22px 22px;
  border:1px solid rgba(218,198,177,.9);
  border-radius:24px;
  background:
    linear-gradient(180deg,rgba(255,253,249,.94),rgba(247,240,230,.95)),
    url("assets/paper_texture_background.png?v=20260617-qiaopi-homefix4") center/cover no-repeat;
  box-shadow:0 28px 80px rgba(57,40,27,.28);
}
.activity-close{
  position:absolute;
  top:16px;
  right:16px;
  width:36px;
  height:36px;
  padding:8px;
  border-radius:50%;
  color:#7f6b5d;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(222,201,181,.74);
}
.activity-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.2}
.activity-kicker{
  display:inline-flex;
  margin-bottom:10px;
  color:#bd684b;
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
}
.activity-dialog h2{
  margin:0 42px 10px 0;
  font-family:var(--serif);
  font-size:24px;
  line-height:1.25;
}
.activity-dialog p{
  margin:0;
  color:#80695a;
  font-family:var(--serif);
  font-size:14px;
  line-height:1.65;
}
.activity-modes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:20px 0 18px;
}
.activity-modes button{
  min-height:108px;
  padding:13px 10px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  border:1px solid rgba(220,197,179,.82);
  border-radius:17px;
  background:rgba(255,252,247,.72);
  text-align:left;
}
.activity-modes button.selected{
  border-color:var(--terra);
  background:rgba(203,110,77,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}
.activity-modes svg{width:23px;height:23px;stroke:var(--terra);fill:none;stroke-width:2}
.activity-modes b{font-family:var(--serif);font-size:16px}
.activity-modes small{color:#9b7a69;font-size:12px;line-height:1.45}
.activity-form{display:grid;gap:14px}
.activity-form label{display:grid;gap:7px}
.activity-form label span{
  color:#6f5b4f;
  font-size:13px;
  font-weight:700;
}
.activity-form input,.activity-form textarea{
  width:100%;
  border:1px solid rgba(222,201,181,.88);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:#2b2623;
  font:15px/1.5 var(--sans);
  outline:none;
}
.activity-form input{height:46px;padding:0 14px}
.activity-form textarea{resize:none;padding:12px 14px}
.activity-form input:focus,.activity-form textarea:focus{
  border-color:rgba(203,110,77,.74);
  box-shadow:0 0 0 3px rgba(203,110,77,.1);
}
.activity-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:-6px;
}
.activity-chips button{
  min-height:32px;
  padding:0 12px;
  border:1px solid rgba(222,201,181,.78);
  border-radius:16px;
  color:#9b6e57;
  background:rgba(255,255,255,.55);
  font-size:13px;
}
.activity-result{
  padding:11px 13px;
  border:1px solid rgba(168,193,181,.58);
  border-radius:14px;
  color:#5f756b;
  background:rgba(232,242,236,.56);
  font-size:13px;
  line-height:1.55;
}
.activity-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:2px;
}
.activity-actions .primary-btn,.activity-actions .secondary-btn{
  width:100%;
  min-height:50px;
  font-size:15px;
}

@media (max-width:720px){
  body{display:block;padding:0;overflow:hidden}
  .app-frame{
    width:100vw;
    max-width:none;
    height:100vh;
    min-height:100vh;
    height:100svh;
    min-height:100svh;
    height:100dvh;
    min-height:100dvh;
    max-height:none;
    margin:0;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .hero-inner{padding-top:54px}
  .activity-modal{align-items:flex-end;padding:12px}
  .activity-dialog{width:100%;max-height:calc(100dvh - 24px);border-radius:24px 24px 18px 18px}
}
@media (max-height:820px){
  .app-frame{min-height:720px}
  .hero-inner{padding-top:48px;padding-bottom:22px}
  .hero-logo{width:146px;margin-bottom:75px}
  .hero-page h1{font-size:clamp(26px,8vw,34px);line-height:1.4}
  .hero-sub{margin-top:16px;font-size:14px;line-height:1.62}
  .primary-btn.hero-cta{margin-top:38px}
  .ornament.bridge{bottom:28px;height:238px}
  .flow-steps{margin-top:50px;gap:14px}
  .flow-step{padding-top:10px;gap:9px}
  .step-icon{width:44px;height:44px;margin-top:0}
  .step-icon svg{width:22px;height:22px}
  .step-index{width:19px;height:19px;font-size:10px}
  .flow-step:not(:first-child)::before{top:31px;left:-30px;width:38px}
  .flow-step:not(:first-child)::after{top:23px;left:5px}
  .flow-step b{font-size:12.5px}
  .screen-content h2{font-size:25px}
  .choice-card{height:66px}
  .record-content h2{font-size:28px}
  .read-card{margin-top:20px;padding-top:20px;padding-bottom:20px}
  .read-card p{font-size:16px}
  .record-wave{height:60px}
  .record-btn{width:82px;height:82px}
  .dialect-card{min-height:92px}
  .result-content{padding-top:18px}
  .result-content h2{font-size:33px;margin-top:0}
  .result-player-main{padding-top:22px;padding-bottom:17px}
  .voice-card{min-height:590px;padding-top:34px}
  .share-content{justify-content:flex-start;padding-top:14px}
}
