/* site.css — MTagent 官网独立设计系统（home / features / pricing / faq / login 改版共用）。
   全部类名 s- 前缀，与 app.css 零冲突（login.html 同时挂载两份样式）。
   品牌色取自 logo 三色：indigo / violet / emerald。零框架、零图片资源（装饰纯 CSS/SVG）。 */

:root {
	--s-brand: #6366f1;
	--s-brand-2: #8b5cf6;
	--s-mint: #34d399;
	--s-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
	--s-ink: #0f172a;
	--s-sub: #556079;
	--s-faint: #8a93ab;
	--s-bg: #f8faff;
	--s-card: #ffffff;
	--s-line: #e6e9f4;
	--s-deep: #0b1220;
	--s-radius: 16px;
	--s-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 28px rgba(15, 23, 42, 0.07);
	--s-shadow-hi: 0 4px 10px rgba(99, 102, 241, 0.08), 0 18px 48px rgba(99, 102, 241, 0.16);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--s-bg);
	color: var(--s-ink);
	font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* —— 导航 ———————————————————————————————————————————————— */

.s-nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	background: rgba(248, 250, 255, 0.82);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.s-nav.scrolled { border-bottom-color: var(--s-line); box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05); }
.s-nav-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.s-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--s-ink); font-weight: 800; font-size: 17px; letter-spacing: 0.2px; }
.s-logo svg { width: 26px; height: 26px; }
.s-links { display: flex; gap: 4px; margin: 0 auto; }
.s-links a {
	padding: 7px 14px; border-radius: 9px; text-decoration: none;
	color: var(--s-sub); font-size: 14.5px; font-weight: 500;
	transition: color 0.15s, background 0.15s;
}
.s-links a:hover { color: var(--s-ink); background: rgba(99, 102, 241, 0.07); }
.s-links a.active { color: var(--s-brand); font-weight: 700; }
.s-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.s-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	border-radius: 11px; padding: 9px 20px; font-size: 14.5px; font-weight: 600;
	text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
	font-family: inherit;
}
.s-btn-primary { background: var(--s-grad); color: #fff; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.32); }
.s-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.42); }
.s-btn-ghost { color: var(--s-ink); background: transparent; border-color: var(--s-line); }
.s-btn-ghost:hover { border-color: var(--s-brand); color: var(--s-brand); }
.s-btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 13px; }

.s-nav-toggle {
	display: none; border: 1px solid var(--s-line); background: #fff; border-radius: 10px;
	width: 40px; height: 40px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.s-nav-toggle svg { width: 20px; height: 20px; stroke: var(--s-ink); }

/* —— hero ——————————————————————————————————————————————— */

.s-hero { position: relative; padding: 158px 0 84px; text-align: center; overflow: hidden; }
.s-hero::before, .s-hero::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.s-hero::before { width: 560px; height: 560px; left: -140px; top: -80px; background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 65%); }
.s-hero::after { width: 620px; height: 620px; right: -160px; top: 40px; background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 65%); }
.s-hero > .s-wrap { position: relative; }
.s-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; border: 1px solid var(--s-line); border-radius: 999px;
	padding: 6px 16px; font-size: 13px; color: var(--s-sub); box-shadow: var(--s-shadow);
}
.s-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-mint); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.s-hero h1 {
	margin: 26px 0 18px; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.22;
	font-weight: 800; letter-spacing: -0.5px;
}
.s-hero h1 .grad {
	background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s-hero .s-sub { max-width: 640px; margin: 0 auto; font-size: 16.5px; color: var(--s-sub); }
.s-hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* hero 产品预览（纯 CSS mock：看板 + 会话） */
.s-mock {
	max-width: 920px; margin: 60px auto 0; background: #fff;
	border: 1px solid var(--s-line); border-radius: 18px; box-shadow: var(--s-shadow-hi);
	overflow: hidden; text-align: left;
}
.s-mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--s-line); background: #fbfcff; }
.s-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e6f0; }
.s-mock-bar i:first-child { background: #fda4af; } .s-mock-bar i:nth-child(2) { background: #fcd34d; } .s-mock-bar i:nth-child(3) { background: #86efac; }
.s-mock-bar span { margin-left: 10px; font-size: 12px; color: var(--s-faint); }
.s-mock-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 18px; }
.s-mock-col { background: #f6f7fc; border-radius: 12px; padding: 12px; }
.s-mock-col b { display: block; font-size: 12px; color: var(--s-faint); font-weight: 600; margin-bottom: 10px; }
.s-mock-card { background: #fff; border: 1px solid var(--s-line); border-radius: 9px; padding: 10px 12px; margin-bottom: 9px; }
.s-mock-card p { margin: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--s-ink); }
.s-mock-card i { display: block; height: 6px; border-radius: 3px; background: #eceef6; }
.s-mock-card i + i { width: 62%; margin-top: 5px; }
.s-mock-card .run { display: inline-block; margin-top: 8px; font-size: 10.5px; color: var(--s-brand); background: rgba(99, 102, 241, 0.1); border-radius: 99px; padding: 2px 9px; }
.s-mock-card .ok { display: inline-block; margin-top: 8px; font-size: 10.5px; color: #059669; background: rgba(52, 211, 153, 0.14); border-radius: 99px; padding: 2px 9px; }

/* —— 通用板块 ———————————————————————————————————————————— */

.s-section { padding: 88px 0; }
.s-section.tint { background: linear-gradient(180deg, #fff, var(--s-bg)); }
.s-sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.s-sec-head .kicker { color: var(--s-brand); font-size: 13.5px; font-weight: 700; letter-spacing: 1.5px; }
.s-sec-head h2 { margin: 10px 0 12px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
.s-sec-head p { margin: 0; color: var(--s-sub); font-size: 15.5px; }

/* 卡片矩阵 */
.s-grid { display: grid; gap: 20px; }
.s-grid.c2 { grid-template-columns: 1fr 1fr; }
.s-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.s-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.s-card {
	background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius);
	padding: 26px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.s-card:hover { transform: translateY(-4px); box-shadow: var(--s-shadow-hi); border-color: rgba(99, 102, 241, 0.35); }
.s-card .ic {
	width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: rgba(99, 102, 241, 0.1); margin-bottom: 16px;
}
.s-card .ic svg { width: 22px; height: 22px; stroke: var(--s-brand); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.s-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.s-card p { margin: 0; color: var(--s-sub); font-size: 14px; }

/* Tab 区 */
.s-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 44px; }
.s-tabs button {
	border: 0; background: transparent; color: var(--s-sub); font-size: 15px; font-weight: 600;
	padding: 10px 20px; border-radius: 999px; cursor: pointer; font-family: inherit;
	transition: color 0.15s, background 0.15s;
}
.s-tabs button:hover { color: var(--s-ink); }
.s-tabs button.active { background: var(--s-ink); color: #fff; }
.s-tabpanel { display: none; }
.s-tabpanel.active { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; animation: s-fade 0.35s ease; }
@keyframes s-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.s-tabpanel h3 { margin: 0 0 14px; font-size: 24px; font-weight: 800; }
.s-tabpanel .desc { color: var(--s-sub); margin: 0 0 20px; font-size: 15px; }
.s-tabpanel ul { margin: 0; padding: 0; list-style: none; }
.s-tabpanel li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--s-sub); font-size: 14.5px; }
.s-tabpanel li::before {
	content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
	background: rgba(52, 211, 153, 0.18) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23059669" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center/10px no-repeat;
}
.s-tabpanel li b { color: var(--s-ink); }

/* Tab 配图 mock */
.s-shot {
	border-radius: 18px; border: 1px solid var(--s-line); background: #fff;
	box-shadow: var(--s-shadow); padding: 22px; min-height: 300px;
	display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.s-shot .row { display: flex; gap: 10px; align-items: center; }
.s-shot .bubble { border-radius: 12px; padding: 10px 14px; font-size: 12.5px; max-width: 82%; }
.s-shot .bubble.user { align-self: flex-end; background: #f1f2f7; color: var(--s-ink); border-bottom-right-radius: 4px; }
.s-shot .bubble.ai { align-self: flex-start; background: rgba(99, 102, 241, 0.09); color: var(--s-ink); border-bottom-left-radius: 4px; }
.s-shot .pill { display: inline-block; font-size: 11px; border-radius: 99px; padding: 3px 11px; background: rgba(139, 92, 246, 0.12); color: var(--s-brand-2); font-weight: 600; }
.s-shot .bar { height: 8px; border-radius: 4px; background: #eceef6; overflow: hidden; }
.s-shot .bar i { display: block; height: 100%; border-radius: 4px; background: var(--s-grad); }
.s-shot .avatars { display: flex; }
.s-shot .avatars i {
	width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px;
	background: var(--s-grad); color: #fff; font-style: normal; font-size: 12px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.s-shot .avatars i:first-child { margin-left: 0; }
.s-shot .avatars i:nth-child(2) { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.s-shot .avatars i:nth-child(3) { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.s-shot .avatars i:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.s-shot .shield { align-self: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(52, 211, 153, 0.14); display: flex; align-items: center; justify-content: center; }
.s-shot .shield svg { width: 32px; height: 32px; stroke: #059669; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* —— 功能页 —————————————————————————————————————————————— */

.s-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 44px 0; }
.s-feat + .s-feat { border-top: 1px solid var(--s-line); }
.s-feat.flip > .txt { order: 2; }
.s-feat .no { color: var(--s-brand); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; }
.s-feat h3 { margin: 8px 0 12px; font-size: 25px; font-weight: 800; letter-spacing: -0.3px; }
.s-feat .desc { color: var(--s-sub); margin: 0 0 16px; font-size: 15px; }
.s-feat ul { margin: 0; padding: 0; list-style: none; }
.s-feat li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--s-sub); font-size: 14.5px; }
.s-feat li::before {
	content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
	background: rgba(99, 102, 241, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236366f1" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center/8px no-repeat;
}
.s-feat .art {
	border-radius: 18px; border: 1px solid var(--s-line);
	background: linear-gradient(150deg, #fff, #f3f5fd);
	box-shadow: var(--s-shadow); min-height: 240px;
	display: flex; align-items: center; justify-content: center; padding: 28px;
}
.s-feat .art svg { width: 88px; height: 88px; stroke: var(--s-brand); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

/* —— 定价页 —————————————————————————————————————————————— */

.s-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.s-plan {
	background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius);
	padding: 28px 24px; display: flex; flex-direction: column; position: relative;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.s-plan:hover { transform: translateY(-4px); box-shadow: var(--s-shadow-hi); }
.s-plan.hot { border-color: var(--s-brand); box-shadow: var(--s-shadow-hi); }
.s-plan .hot-tag {
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	background: var(--s-grad); color: #fff; font-size: 11.5px; font-weight: 700;
	border-radius: 99px; padding: 3px 14px; white-space: nowrap;
}
.s-plan h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.s-plan .price { margin: 14px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.s-plan .price small { font-size: 13px; color: var(--s-faint); font-weight: 500; letter-spacing: 0; }
.s-plan .quota { margin: 18px 0 22px; padding: 0; list-style: none; flex: 1; }
.s-plan .quota li { padding: 7px 0; border-bottom: 1px dashed var(--s-line); font-size: 13.5px; color: var(--s-sub); display: flex; justify-content: space-between; gap: 10px; }
.s-plan .quota li b { color: var(--s-ink); font-weight: 600; white-space: nowrap; }
.s-plan .quota li:last-child { border-bottom: 0; }

.s-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-pack { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 22px 24px; }
.s-pack b.credits { display: block; font-size: 22px; font-weight: 800; background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-pack .name { font-weight: 600; margin-top: 4px; }
.s-pack .meta { color: var(--s-faint); font-size: 13px; margin-top: 6px; }

.s-note {
	background: rgba(99, 102, 241, 0.06); border: 1px solid rgba(99, 102, 241, 0.18);
	border-radius: 14px; padding: 18px 22px; color: var(--s-sub); font-size: 14px;
}
.s-note b { color: var(--s-ink); }

/* —— FAQ 手风琴 ——————————————————————————————————————————— */

.s-faq-group { margin-bottom: 40px; }
.s-faq-group > h3 { font-size: 15px; color: var(--s-brand); font-weight: 800; letter-spacing: 1px; margin: 0 0 14px; }
.s-faq details {
	background: #fff; border: 1px solid var(--s-line); border-radius: 13px;
	margin-bottom: 10px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.s-faq details[open] { border-color: rgba(99, 102, 241, 0.4); box-shadow: var(--s-shadow); }
.s-faq summary {
	list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 600; font-size: 15px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after {
	content: ""; flex: none; width: 9px; height: 9px;
	border-right: 2px solid var(--s-faint); border-bottom: 2px solid var(--s-faint);
	transform: rotate(45deg); transition: transform 0.2s; margin-top: -3px;
}
.s-faq details[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.s-faq .a { padding: 0 22px 18px; color: var(--s-sub); font-size: 14px; }
.s-faq .a a { color: var(--s-brand); text-decoration: none; font-weight: 600; }
.s-faq .a a:hover { text-decoration: underline; }

/* —— CTA banner ——————————————————————————————————————————— */

.s-cta { position: relative; border-radius: 22px; overflow: hidden; background: var(--s-deep); color: #fff; padding: 64px 40px; text-align: center; }
.s-cta::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; left: -140px; top: -220px; background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 65%); filter: blur(50px); }
.s-cta::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -240px; background: radial-gradient(circle, rgba(139, 92, 246, 0.36), transparent 65%); filter: blur(50px); }
.s-cta > * { position: relative; }
.s-cta h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.s-cta p { margin: 0 auto 30px; color: #aab3c8; max-width: 520px; }

/* —— 页脚 ———————————————————————————————————————————————— */

.s-footer { background: var(--s-deep); color: #97a1b8; margin-top: 96px; }
.s-footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 60px 0 44px; }
.s-footer .brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.s-footer .brand svg { width: 26px; height: 26px; }
.s-footer .desc { font-size: 13.5px; max-width: 300px; line-height: 1.8; }
.s-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 700; }
.s-footer ul { margin: 0; padding: 0; list-style: none; }
.s-footer li { margin-bottom: 9px; }
.s-footer a { color: #97a1b8; text-decoration: none; font-size: 13.5px; transition: color 0.15s; }
.s-footer a:hover { color: #fff; }
.s-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* —— 登录页改版补充（login.html 挂 app.css + site.css） ———————————————— */

.s-login-page { min-height: 100vh; display: flex; flex-direction: column; }
.s-login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 110px 20px 60px; position: relative; }
.s-login-main::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 40%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 65%); filter: blur(70px); pointer-events: none; }
.s-login-foot { text-align: center; padding: 22px; color: var(--s-faint); font-size: 12.5px; }
.s-login-foot a { color: var(--s-sub); text-decoration: none; }
.s-login-foot a:hover { color: var(--s-brand); }

/* —— 滚动渐入 ———————————————————————————————————————————— */

.s-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.s-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.s-reveal { opacity: 1; transform: none; transition: none; }
}

/* —— 响应式 ——————————————————————————————————————————————— */

@media (max-width: 900px) {
	.s-links, .s-actions .s-btn-ghost { display: none; }
	.s-nav-toggle { display: flex; }
	.s-links.open {
		display: flex; position: fixed; inset: 62px 0 auto 0; z-index: 49;
		flex-direction: column; gap: 4px; padding: 14px 20px 18px;
		background: rgba(248, 250, 255, 0.98); border-bottom: 1px solid var(--s-line);
		box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1); backdrop-filter: blur(14px);
	}
	.s-links.open a { padding: 12px 14px; font-size: 15.5px; }
	.s-grid.c3 { grid-template-columns: 1fr 1fr; }
	.s-grid.c4 { grid-template-columns: 1fr 1fr; }
	.s-plans { grid-template-columns: 1fr 1fr; }
	.s-packs { grid-template-columns: 1fr; }
	.s-tabpanel.active { grid-template-columns: 1fr; gap: 30px; }
	.s-feat, .s-feat.flip { grid-template-columns: 1fr; gap: 26px; }
	.s-feat.flip > .txt { order: 0; }
	.s-footer-in { grid-template-columns: 1fr 1fr; }
	.s-mock-body { grid-template-columns: 1fr; }
	.s-mock-col:nth-child(3) { display: none; }
}

@media (max-width: 640px) {
	.s-section { padding: 60px 0; }
	.s-hero { padding: 128px 0 60px; }
	.s-grid.c3, .s-grid.c2, .s-grid.c4, .s-plans { grid-template-columns: 1fr; }
	.s-cta { padding: 46px 24px; }
	.s-footer-in { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 32px; }
}
