/* juerai.com — 单份全站样式，白底深绿极简风，移动端优先，系统字体，零外部资源 */
:root {
  --ink: #202624;
  --green: #174c41;
  --green-deep: #216152;
  --accent: #358c78;
  --muted: #5f6965;
  --pale: #f2f5f4;
  --line: #dfe4e1;
  --bg: #ffffff;
  --card: #ffffff;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(28px, 6vw, 44px); }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
small { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { display: block; }

/* 页头 */
.header, .site-head { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.brand small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--pale); color: var(--green); text-decoration: none; }

/* 按钮与文字链 */
.button, .btn { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 16px; border: 1px solid var(--green); cursor: pointer; }
.button:hover, .btn:hover { text-decoration: none; background: var(--green-deep); border-color: var(--green-deep); }
.button.ghost, .btn.ghost { background: #fff; color: var(--green); border: 1px solid var(--green); }
.button.ghost:hover, .btn.ghost:hover { background: var(--pale); }
.button:disabled, .btn:disabled { background: var(--pale); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* 首屏与区块 */
.hero { padding: 56px 0 40px; }
.hero .kicker { color: var(--accent); font-size: 14px; letter-spacing: .12em; margin-bottom: 12px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 720px; }
.section { padding: 32px 0; }
.section h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.note { background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }
.note strong { color: var(--green); }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.fact h3 { font-size: 17px; margin-bottom: .4em; }
.fact p { margin-bottom: .5em; }
.fact .src { font-size: 13px; color: var(--muted); }
.breadcrumb { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.breadcrumb a { color: var(--muted); }

/* 结论卡片 */
.conclusion-card { background: var(--pale); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.conclusion-card h2, .conclusion-card h3 { margin-bottom: .4em; }
.conclusion-card p:last-child { margin-bottom: 0; }

/* /app 引导卡 */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.tool-card h2, .tool-card h3 { margin-bottom: .4em; }
.tool-card p:last-child { margin-bottom: 0; }

/* 私域钩子卡 */
.hook-card { background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; text-align: center; }
.hook-card h2, .hook-card h3 { margin-bottom: .4em; }
.hook-card img { margin: 12px auto; }

/* 问答区 */
.faq { margin: 24px 0; }
.faq h2 { margin-bottom: .8em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.faq summary { font-family: var(--serif); font-size: 17px; color: var(--green); cursor: pointer; font-weight: 700; }
.faq details p { margin: .8em 0 0; }
.faq .qa { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.faq .qa h3 { font-size: 17px; margin-bottom: .3em; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--green); font-weight: 600; background: var(--pale); }
.kv th { width: 110px; color: var(--muted); font-weight: 400; background: none; }

/* 样张网格与角色卡 */
.showcase-grid, .grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.actor-card, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.actor-card .body, .card .body { padding: 16px 18px; }
.actor-card h3, .card h3 { font-size: 18px; margin-bottom: .3em; }
.actor-card h3 a, .card h3 a { color: var(--green); }
.actor-card .code, .card .code { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.actor-card .meta, .card .meta { font-size: 14px; color: var(--muted); }
.actor-card img, .card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--pale); }
.tag { display: inline-block; font-size: 13px; background: var(--pale); color: var(--green); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; }
.tag.plain { background: var(--pale); color: var(--muted); }

/* 表单 */
form { margin: 16px 0; }
label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
label small { font-weight: 400; }
input, select, textarea { width: 100%; padding: 10px 12px; font-size: 16px; font-family: var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[readonly], textarea[readonly] { background: var(--pale); }
textarea { min-height: 110px; resize: vertical; }
button { font-family: var(--sans); }
form button, .form-row button { margin-top: 12px; margin-right: 8px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.field-note { font-size: 14px; color: var(--muted); margin-top: 4px; }
.error { color: #8a1f1f; background: #fdf2f2; border: 1px solid #ead3d3; border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.status { font-size: 14px; color: var(--muted); }

/* 指南列表 */
.guide-list { list-style: none; padding-left: 0; }
.guide-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.guide-list h3 { font-size: 18px; margin-bottom: .3em; }
.guide-list .group { font-size: 13px; color: var(--accent); letter-spacing: .06em; margin-bottom: .4em; }
.guide-list .status { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* 页脚 */
.footer, .site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 36px; color: var(--muted); font-size: 14px; background: #fff; }
.footer p, .site-foot p { margin-bottom: .4em; }
.footer a, .site-foot a { color: var(--green); }

@media (min-width: 640px) {
  .showcase-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .showcase-grid, .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 72px 0 48px; }
}

/* 首页视觉开场：原站 5 张人物图 */
.hero-visual { padding: 8px 0; }
.portraits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.portraits figure { margin: 0; }
.portraits img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--pale); }
.portraits figcaption { text-align: center; font-family: var(--serif); color: var(--green); font-size: 15px; padding: 8px 0 4px; }
.provenance { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.hero-sheet { padding: 24px 0 32px; }
.hero-sheet h2 { text-align: center; }
.hero-sheet figure { margin: 0 0 24px; }
.hero-sheet img { width: 100%; border-radius: var(--radius); background: var(--pale); }
.hero-sheet figcaption { text-align: center; font-family: var(--serif); color: var(--green); font-size: 15px; padding: 8px 0 4px; }
.hero-sheet .cta-row { justify-content: center; }
.link-row { text-align: center; color: var(--muted); margin-top: 20px; }
.link-row span { margin: 0 10px; }
@media (min-width: 640px) {
  .portraits { grid-template-columns: repeat(4, 1fr); }
}

/* 申请免费商用入口 */
.apply-link { text-align: center; margin: 4px 0 0; font-size: 14px; }
.actor-card .apply-btn { margin-top: 12px; padding: 8px 18px; font-size: 15px; }
.wechat-id { font-size: 20px; letter-spacing: .04em; color: var(--green); }
.apply-result { border-color: var(--green); }

.hero-sheet figure a { display: block; }
.hero-sheet figure a:hover img { transform: scale(1.01); }
.hero-sheet img { transition: transform .4s ease; }

/* 市场页宽幅定妆图 */
.market-sheet { margin: 24px 0; }
.market-sheet img { width: 100%; border-radius: var(--radius); background: var(--pale); }
.market-sheet figcaption { text-align: center; font-family: var(--serif); color: var(--green); font-size: 15px; padding: 8px 0 4px; }

/* 首页角色卡片横向滑动：无边框、大留白，折叠式进出动效 */
.hero-carousel { position: relative; }
.hero-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 12px 4px 16px; touch-action: pan-x pan-y; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track.dragging { scroll-behavior: auto; scroll-snap-type: none; }
.hero-card { margin: 0; flex: 0 0 calc((100% - 56px) / 2.8); scroll-snap-align: start; transform: perspective(1000px) rotateY(var(--r, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); will-change: transform, opacity; }
.hero-card a { display: block; }
.hero-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.hero-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--pale); transition: transform .4s ease; }
.hero-card a:hover img, .hero-card a:focus-visible img { transform: scale(1.02); }
.hero-card figcaption { text-align: center; font-family: var(--serif); color: var(--green); font-size: 15px; padding: 12px 0 0; }
.hero-arrow { position: absolute; top: 36%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .72); color: var(--green); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; opacity: .85; }
.hero-arrow:hover { opacity: 1; background: rgba(255, 255, 255, .92); }
.hero-arrow:disabled { opacity: .3; cursor: default; }
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 2px 0 0; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--line); padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { width: 22px; background: var(--green); }
@media (max-width: 639px) {
  .hero-track { gap: 20px; }
  .hero-card { flex-basis: 78%; }
  .hero-arrow { width: 34px; height: 34px; font-size: 20px; top: 38%; }
}
@media (min-width: 640px) {
  /* 桌面端关掉强制吸附：可滚总距离只有约 1.2 张卡，强制吸附会把位置拉回两端，4 个圆点无法各就各位；圆点与箭头改按滚动比例走 4 个等距停靠点 */
  .hero-track { scroll-snap-type: none; }
}

/* 手机端：首屏先见图，页头收窄 */
@media (max-width: 639px) {
  .header-inner { flex-wrap: nowrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: 18px; white-space: nowrap; }
  .brand small { display: none; }
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 14px; padding: 6px 10px; }
  .home main { display: flex; flex-direction: column; }
  .home .hero-visual { order: -1; }
  .home .hero { padding: 28px 0 16px; }
}
