/* 飞象AI助手 · 官网与用户中心样式
   版式参考识流（浅灰底、白色大圆角卡片、深藏青文字），主色用飞象宝品牌蓝 */

:root {
  --fx-blue: #0088F8;
  --fx-blue-dark: #0068C4;
  --fx-blue-soft: #E6F1FD;
  --fx-green: #18C010;
  --fx-green-soft: #E8F9E6;
  --fx-ink: #1F2A44;
  --fx-text: #3B4763;
  --fx-muted: #7A869E;
  --fx-line: #E3E8F0;
  --fx-bg: #F3F5F9;
  --fx-card: #FFFFFF;
  --fx-red: #E5484D;
  --fx-purple: #7B5CF0;
  --fx-radius: 18px;
  --fx-shadow: 0 10px 30px rgba(31, 42, 68, 0.07);
  --fx-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fx-font);
  color: var(--fx-text);
  background: var(--fx-bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fx-blue); text-decoration: none; }
h1, h2, h3 { color: var(--fx-ink); line-height: 1.3; margin: 0 0 12px; font-weight: 600; }
h1 { font-size: 40px; letter-spacing: 0.5px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
img { max-width: 100%; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--fx-muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--fx-blue); color: #fff; }
.btn-primary:hover { background: var(--fx-blue-dark); }
.btn-ghost { background: #fff; color: var(--fx-ink); border-color: var(--fx-line); }
.btn-ghost:hover { border-color: var(--fx-blue); color: var(--fx-blue); }
.btn-danger { background: #fff; color: var(--fx-red); border-color: #F3C2C4; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fx-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--fx-ink); font-weight: 600; font-size: 17px; }
.nav .brand img { height: 34px; }
.nav .brand .tag { font-size: 12px; font-weight: 400; color: var(--fx-muted); margin-left: 2px; }
.nav .links { display: flex; align-items: center; gap: 26px; }
.nav .links a { color: var(--fx-text); font-size: 14px; }
.nav .links a:hover { color: var(--fx-blue); }
.nav .links a.hide-mobile { display: inline; }
@media (max-width: 720px) { .nav .links a.hide-mobile { display: none; } h1 { font-size: 30px; } }

/* 首屏 */
.hero { padding: 80px 0 50px; text-align: center; }
.hero .pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--fx-blue-soft);
  color: var(--fx-blue-dark); font-size: 13px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; margin-bottom: 14px; }
.hero .lead { font-size: 18px; color: var(--fx-muted); max-width: 620px; margin: 0 auto 28px; }
.hero .cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* 模块 */
.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .lead { color: var(--fx-muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--fx-card); border-radius: var(--fx-radius); padding: 26px; box-shadow: var(--fx-shadow);
  border: 1px solid rgba(227,232,240,.6);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; margin-bottom: 14px; color: #fff; background: var(--fx-blue);
}
.card .icon.green { background: var(--fx-green); }
.card .icon.purple { background: var(--fx-purple); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--fx-muted); font-size: 14px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; right: 22px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--fx-blue-soft); color: var(--fx-blue-dark); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* 演示卡：模拟"看想做" */
.demo {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch;
}
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.chatwin, .agentwin { border-radius: 16px; padding: 22px; min-height: 300px; }
.chatwin { background: #F6F8FB; border: 1px solid var(--fx-line); }
.agentwin { background: #F2F7FF; border: 1px solid #D6E7FB; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.bubble.them { background: #fff; border: 1px solid var(--fx-line); color: var(--fx-ink); }
.bubble.me { background: #95EC69; color: #0F2B12; margin-left: auto; }
.bubble.ai { background: #fff; border: 1px solid #D6E7FB; color: var(--fx-ink); }
.trace { font-size: 12px; color: var(--fx-muted); margin-bottom: 14px; }
.trace b { color: var(--fx-blue-dark); font-weight: 500; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill-list span { background: #fff; border: 1px solid var(--fx-line); border-radius: 999px; padding: 7px 16px; font-size: 14px; color: var(--fx-ink); }

/* 定价 */
.price { text-align: center; }
.price .amount { font-size: 38px; color: var(--fx-ink); font-weight: 600; margin: 6px 0; }
.price ul { list-style: none; padding: 0; margin: 14px 0 20px; text-align: left; }
.price li { padding: 6px 0; border-bottom: 1px dashed var(--fx-line); font-size: 14px; }
.price li:last-child { border-bottom: 0; }

.footer { border-top: 1px solid var(--fx-line); padding: 30px 0 40px; margin-top: 40px; color: var(--fx-muted); font-size: 13px; background: #fff; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============ 用户中心 ============ */
.console-body { background: var(--fx-bg); min-height: 100vh; }
.auth { max-width: 420px; margin: 10vh auto 0; }
.auth .card { padding: 34px; }
.auth h2 { text-align: center; }
.auth .logo { display: block; height: 56px; margin: 0 auto 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--fx-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--fx-line); font-size: 14px;
  font-family: inherit; background: #fff; color: var(--fx-ink); outline: none; transition: border .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fx-blue); }
.field textarea { min-height: 140px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert.ok { background: var(--fx-green-soft); color: #14650F; }
.alert.err { background: #FDECEC; color: var(--fx-red); }
.alert.info { background: var(--fx-blue-soft); color: var(--fx-blue-dark); }

.topbar { background: #fff; border-bottom: 1px solid var(--fx-line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar .brand { display: flex; align-items: center; gap: 8px; color: var(--fx-ink); font-weight: 600; }
.topbar .brand img { height: 30px; }
.topbar .right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topbar .credits { background: var(--fx-blue-soft); color: var(--fx-blue-dark); padding: 4px 12px; border-radius: 999px; font-weight: 500; }

.tabs { display: flex; gap: 4px; margin: 22px 0; flex-wrap: wrap; }
.tabs button {
  background: transparent; border: 0; padding: 10px 16px; border-radius: 10px; font-size: 14px; color: var(--fx-muted);
  cursor: pointer; font-family: inherit;
}
.tabs button.active { background: #fff; color: var(--fx-ink); box-shadow: var(--fx-shadow); font-weight: 500; }
.tabs button:hover { color: var(--fx-ink); }
.panel { display: none; }
.panel.active { display: block; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.panel-head h2 { margin: 0; font-size: 20px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--fx-line); vertical-align: middle; }
.tbl th { color: var(--fx-muted); font-weight: 500; font-size: 13px; }
.tbl tr:hover td { background: #FAFBFD; }
.tbl .ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--fx-blue-soft); color: var(--fx-blue-dark); }
.badge.green { background: var(--fx-green-soft); color: #14650F; }
.badge.gray { background: #EEF1F5; color: var(--fx-muted); }
.badge.red { background: #FDECEC; color: var(--fx-red); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--fx-shadow); }
.stat .k { font-size: 13px; color: var(--fx-muted); }
.stat .v { font-size: 26px; color: var(--fx-ink); font-weight: 600; margin-top: 2px; }

.dropzone {
  border: 2px dashed var(--fx-line); border-radius: 14px; padding: 26px; text-align: center; color: var(--fx-muted);
  cursor: pointer; transition: all .15s; background: #FAFBFD;
}
.dropzone:hover, .dropzone.over { border-color: var(--fx-blue); color: var(--fx-blue); background: var(--fx-blue-soft); }
.empty { text-align: center; color: var(--fx-muted); padding: 30px 0; }

.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); background: var(--fx-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 99; }
.toast.show { opacity: 1; }
.hide { display: none !important; }
