/* idceasy 默认主题 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef4ff;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f7f9fc;
  --white: #fff;
  --ok: #079455;
  --warn: #b54708;
  --danger: #d92d20;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 12px; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 38px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
code { background: #f2f4f7; border-radius: 6px; padding: 2px 6px; font-size: 13px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 顶部 */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #475467; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--text); transition: .16s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.2); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c7d2e0; color: var(--ink); }
.btn-danger { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* 卡片与区块 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }

/* Hero */
.hero { background: radial-gradient(1100px 500px at 80% -10%, #dbeafe 0%, transparent 60%), linear-gradient(180deg, #fff 0%, #f7f9fc 100%); padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; letter-spacing: -.03em; margin-bottom: 16px; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; margin-top: 26px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.hero-points span::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 700; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px rgba(16,24,40,.08); }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.console { font: 12.5px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; color: #475467; background: #0f172a; border-radius: 10px; padding: 14px; color: #cbd5e1; overflow: auto; }
.console .c-blue { color: #7dd3fc; } .console .c-green { color: #86efac; } .console .c-dim { color: #64748b; }
.hero-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hero-stat { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.hero-stat strong { display: block; font-size: 18px; color: var(--ink); }
.hero-stat span { font-size: 12px; color: var(--muted); }

/* 产品卡片 */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: .18s ease; box-shadow: var(--shadow); }
.product-card:hover { transform: translateY(-3px); border-color: #c7d7f5; box-shadow: 0 18px 36px rgba(37,99,235,.10); }
.product-card h3 { font-size: 18px; margin-bottom: 8px; }
.product-card .desc { color: var(--muted); font-size: 13.5px; line-height: 1.7; flex: 1; margin-bottom: 18px; }
.price-line { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.price-line .amount { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-line .unit { color: var(--muted); font-size: 13px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 20px; }
.feature-list li { padding: 5px 0 5px 22px; position: relative; font-size: 13.5px; color: #475467; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* 徽章与提示 */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #f2f4f7; color: #475467; white-space: nowrap; }
.badge.ok { background: #ecfdf3; color: #027a48; }
.badge.warn { background: #fffaeb; color: #b54708; }
.badge.danger { background: #fef3f2; color: #b42318; }
.badge.muted { background: #f2f4f7; color: #667085; }
.badge.blue { background: #eff8ff; color: #175cd3; }
.alert { border-radius: 11px; padding: 12px 15px; font-size: 14px; margin-bottom: 18px; border: 1px solid var(--line); background: #fff; }
.alert.ok { background: #ecfdf3; border-color: #d1fadf; color: #027a48; }
.alert.error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert.info { background: #eff8ff; border-color: #d1e9ff; color: #175cd3; }
.alert.warn { background: #fffaeb; border-color: #fedf89; color: #b54708; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; padding: 12px 16px; background: #f9fafb; color: #475467; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f2f4f7; color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfcfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions a { margin-left: 10px; font-size: 13px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13.5px; font-weight: 550; color: #344054; margin-bottom: 6px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; padding: 10px 12px; outline: none; transition: .15s; min-height: 42px;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #475467; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }

/* 购物车 / 结算 */
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.qty { width: 70px; text-align: center; }

/* 域名搜索 */
.search-bar { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 8px; border-radius: 14px; box-shadow: var(--shadow); }
.search-bar input { border: 0; box-shadow: none !important; height: 46px; font-size: 15px; }
.domain-result { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
.domain-result:last-child { border-bottom: 0; }
.domain-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.tld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 4px 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 12.5px; color: #475467; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* 会员中心 */
.uc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: start; padding: 32px 0 56px; }
.uc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 88px; }
.uc-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.uc-nav a { display: block; padding: 9px 10px; border-radius: 8px; color: #475467; font-size: 14px; }
.uc-nav a:hover { background: #f8fafc; color: var(--ink); }
.uc-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.uc-nav .group { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #98a2b3; margin: 14px 10px 4px; }
.uc-main { min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat .value { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat .value small { font-size: 12px; color: var(--muted); font-weight: 500; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); word-break: break-all; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title h3 { margin: 0; font-size: 16px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* 分页 */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.pager__item { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: #475467; background: #fff; }
.pager__item:hover { border-color: var(--primary); color: var(--primary); }
.pager__item.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager__item.is-disabled { opacity: .45; pointer-events: none; }

/* 登录注册 */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(800px 400px at 50% 0%, #e8f0ff, transparent 70%); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 24px 48px rgba(16,24,40,.08); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* 底部 */
.site-footer { background: #0b1220; color: #98a2b3; padding: 48px 0 26px; margin-top: 40px; }
.site-footer a { color: #cbd5e1; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.footer-col h4 { color: #e2e8f0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; flex-wrap: wrap; }

/* 打印 */
.print-body { background: #fff; color: #111; }
@media print {
  .site-header, .site-footer, .no-print, .uc-side { display: none !important; }
  body { background: #fff; }
  .container { width: 100%; }
  .card, .panel { border: 0; box-shadow: none; padding: 0; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .uc-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .uc-nav .group { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; } h2 { font-size: 22px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; width: 100%; }
  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
  .table { min-width: 560px; }
}
