/* 熊猫派对 Panda Party 官网。不引用任何外部资源（国内打不开的字体、CDN 一律不用） */
:root {
  --ink: #0B1220;
  --ink2: #1C2638;
  --text: #1F2937;
  --muted: #64748B;
  --line: #E5E8EE;
  --bg: #FFFFFF;
  --bg2: #F5F7FA;
  --accent: #16A34A;
  --accent2: #22C55E;
  --accent-soft: #E8F7EE;
  --gold: #FBBF24;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.7 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0; }
p { margin: 0; }
code { font: 13px/1.4 ui-monospace, Consolas, monospace; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, .28); }
.btn-accent:hover { background: #15803D; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 18, 32, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand .logo { width: 36px; height: 36px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 17px; letter-spacing: .5px; }
.brand small { font-size: 11px; color: #94A3B8; letter-spacing: 1.2px; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { color: #CBD5E1; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* 首屏 */
.hero { background: radial-gradient(900px 420px at 85% 10%, rgba(34, 197, 94, .18), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(59, 130, 246, .14), transparent 60%), var(--ink); color: #E2E8F0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 88px 20px 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #A7F3D0; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .25); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { color: #fff; font-size: 54px; letter-spacing: 1px; margin: 22px 0 18px; }
.hl { background: linear-gradient(90deg, #4ADE80, #A3E635); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #B6C2D3; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #CBD5E1; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--accent2); }

.hero-card { background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); max-width: 420px; justify-self: end; width: 100%; }
.hc-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hc-logo { width: 44px; height: 44px; background: #fff; border-radius: 12px; padding: 4px; }
.hc-top div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.hc-top b { color: #fff; }
.hc-top span { font-size: 13px; color: #86EFAC; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: var(--accent2); position: relative; }
.switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.hc-line { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.hc-line.on { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); }
.flag { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .1); color: #fff; }
.hc-line.on .flag { background: var(--accent2); color: var(--ink); }
.hc-line div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.hc-line b { color: #fff; font-size: 15px; }
.hc-line small { color: #94A3B8; font-size: 12.5px; }
.hc-line em { font-style: normal; font-size: 12.5px; color: #94A3B8; }
.hc-line.on em { color: #86EFAC; }
.hc-exit { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13.5px; color: #94A3B8; }
.hc-exit b { color: #E2E8F0; font-weight: 600; }
.hc-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 16px; overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22C55E, #A3E635); }
.hc-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: #94A3B8; margin-top: 8px; }

/* 通用区块 */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg2); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
.sec-head h2 { font-size: 36px; margin: 10px 0 14px; }
.sec-head p:not(.kicker) { color: var(--muted); font-size: 17px; }
.note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 28px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D5EBDD; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }

/* 套餐 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px 28px; }
.plan.hot { border: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(22, 163, 74, .14); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.plan-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 2px; margin: 22px 0 18px; color: var(--ink); min-height: 56px; }
.price .cur { font-size: 22px; font-weight: 700; }
.price b { font-size: 48px; line-height: 1; letter-spacing: -1px; }
.price .per { color: var(--muted); font-size: 15px; margin-left: 6px; }
.price.tbd b { font-size: 26px; color: var(--muted); letter-spacing: 0; align-self: center; }
.spec { list-style: none; padding: 18px 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.spec b { color: var(--ink); font-size: 17px; margin-right: 4px; }
.incl { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; font-size: 14.5px; flex: 1; }
.incl li { display: flex; align-items: center; gap: 8px; }
.incl svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.plan .btn { width: 100%; }

/* 线路 */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.line { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.line-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.city { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; }
.status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
.line h3 { font-size: 20px; margin-bottom: 14px; }
.line ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.line li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-top: 1px dashed var(--line); padding-top: 10px; }
.line li span { color: var(--muted); }
.line li b { color: var(--ink); font-weight: 600; text-align: right; }
.line-more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: linear-gradient(160deg, var(--accent-soft), #fff); border-style: dashed; }
.line-more svg { width: 52px; height: 52px; margin-bottom: 14px; }
.line-more h3 { margin-bottom: 8px; }
.line-more p { color: var(--muted); font-size: 15px; }

/* 教程 */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { font: 600 15px var(--font); padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { max-width: 860px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 78px; }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps b { color: var(--ink); font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* 问答 */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* 联系 */
.contact { background: var(--ink); color: #CBD5E1; text-align: center; padding: 88px 0; }
.contact-in { display: flex; flex-direction: column; align-items: center; }
.contact-logo { width: 64px; height: 64px; background: #fff; border-radius: 18px; padding: 6px; margin-bottom: 20px; }
.contact h2 { color: #fff; font-size: 34px; margin-bottom: 12px; }
.contact .cta { justify-content: center; }
.foot { background: #070C16; color: #64748B; font-size: 13.5px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 20px; }

/* 聊天框 */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 8px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 600 15.5px var(--font); cursor: pointer; box-shadow: 0 10px 28px rgba(22, 163, 74, .4); transition: transform .15s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 3px; }
.unread { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #EF4444; color: #fff; font: 700 12px/20px var(--font); font-style: normal; text-align: center; border: 2px solid #fff; }
.chat { position: fixed; right: 22px; bottom: 90px; z-index: 41; width: 370px; height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .28); overflow: hidden; border: 1px solid var(--line); }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.chat-av { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.chat-head span { font-size: 12.5px; color: #86EFAC; }
.chat-head span.off { color: #94A3B8; }
.chat-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-x svg { width: 20px; height: 20px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg2); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; display: flex; flex-direction: column; }
.msg .b { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg small { font-size: 11.5px; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.msg.kf { align-self: flex-start; }
.msg.kf .b { background: #fff; color: var(--text); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .b { background: var(--accent); color: #fff; border-top-right-radius: 6px; }
.msg.pending .b { opacity: .6; }
.msg.failed small { color: #DC2626; }
.msg.failed button { border: 0; background: none; color: #DC2626; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.chat-day { align-self: center; font-size: 12px; color: var(--muted); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 15px/1.5 var(--font); max-height: 120px; color: var(--text); background: var(--bg2); }
.chat-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.chat-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-form button:disabled { background: #A7D7B8; cursor: default; }
.chat-form button svg { width: 20px; height: 20px; }

/* 手机 */
@media (max-width: 960px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px 64px; }
  .hero-card { justify-self: stretch; max-width: none; }
  .hero h1 { font-size: 40px; }
  .grid3, .plans, .lines { grid-template-columns: 1fr; }
  .plan.hot { order: -1; }
  .sec { padding: 68px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero-in { padding: 44px 16px 52px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16.5px; }
  .cta .btn { flex: 1; }
  .steps li { padding: 18px 18px 18px 64px; }
  .steps li::before { left: 16px; top: 18px; width: 32px; height: 32px; }
  .chat { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 0 7px; }
  .foot-in { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
