/* 00cctel 静态子站样式 — 与主站 site.css 独立，深色/浅色双主题 */
:root {
  --tel-bg: #020617;
  --tel-surface: #0f172a;
  --tel-border: #334155;
  --tel-text: #f1f5f9;
  --tel-muted: #94a3b8;
  --tel-accent: #3b82f6;
  --tel-brand: #0d7a6e;
  --tel-max: 1180px;
  --tel-radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
body.tel-page {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--tel-text);
  background: var(--tel-bg);
}
body.tel-page--light {
  --tel-bg: #f8fafc;
  --tel-surface: #fff;
  --tel-border: #e2e8f0;
  --tel-text: #0f172a;
  --tel-muted: #64748b;
}
a { color: var(--tel-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lang-switch {
  display: inline-flex; padding: 0.15rem; border: 1px solid var(--tel-border);
  border-radius: 8px; background: var(--tel-surface);
}
.lang-switch__btn {
  border: 0; background: transparent; padding: 0.3rem 0.55rem;
  font-size: 0.75rem; font-weight: 700; color: var(--tel-muted); border-radius: 6px; cursor: pointer;
}
.lang-switch__btn.is-active { background: var(--tel-accent); color: #fff; }

.tel-header {
  position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--tel-border); backdrop-filter: blur(8px);
}
body.tel-page--light .tel-header { background: rgba(255,255,255,0.95); }
.tel-header__inner {
  max-width: var(--tel-max); margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.tel-header__logo { display: flex; align-items: center; gap: 0.5rem; color: var(--tel-text); font-weight: 800; text-decoration: none; }
.tel-header__mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--tel-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.tel-header__nav { display: flex; align-items: center; gap: 0.75rem; }
.tel-header__link { color: var(--tel-muted); font-size: 0.9rem; }
.tel-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.tel-nav-dd { position: relative; }
.tel-nav-dd__btn {
  border: 0; background: transparent; color: var(--tel-text); font-weight: 800;
  font-size: 0.9rem; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 6px;
}
.tel-nav-dd__btn:hover { background: rgba(148,163,184,0.12); }
.tel-nav-dd__menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--tel-surface); border: 1px solid var(--tel-border); border-radius: 10px;
  padding: 0.35rem 0; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.tel-nav-dd.is-open .tel-nav-dd__menu { display: block; }
.tel-nav-dd__menu a { display: block; padding: 0.5rem 1rem; color: var(--tel-text); font-size: 0.9rem; }
.tel-nav-dd__menu a:hover { background: rgba(148,163,184,0.1); text-decoration: none; }

.tel-wrap { max-width: var(--tel-max); margin: 0 auto; padding: 0 1.25rem; }
.tel-main { min-height: 60vh; }
.tel-hero {
  border-bottom: 1px solid var(--tel-border);
  background: linear-gradient(180deg, #0f172a 0%, var(--tel-bg) 100%);
  padding: 3rem 0 2.5rem;
}
body.tel-page--light .tel-hero { background: linear-gradient(180deg, #fff, #f1f5f9); }
.tel-hero--compact { padding-top: 2rem; }
.tel-eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tel-accent); margin: 0 0 0.5rem; }
.tel-hero h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; }
.tel-lead { margin: 1rem 0 0; max-width: 48rem; color: var(--tel-muted); }
.tel-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--tel-muted); }
.tel-muted { color: var(--tel-muted); }
.tel-back { display: inline-block; margin-bottom: 0.75rem; font-size: 0.9rem; }

.tel-section { padding: 3rem 0; border-top: 1px solid var(--tel-border); }
.tel-section--alt { background: rgba(15, 23, 42, 0.5); }
.tel-section--light { background: #f1f5f9; color: #0f172a; }
.tel-section--light .tel-muted { color: #64748b; }
.tel-section--cta { background: rgba(30, 41, 59, 0.4); }
.tel-section-idx { font-size: 0.8rem; color: var(--tel-accent); font-weight: 700; letter-spacing: 0.1em; }
.tel-section h2 { margin: 0.25rem 0 0.75rem; font-size: 1.75rem; }

.tel-disclaimer {
  margin: 1rem auto; max-width: var(--tel-max); padding: 0.75rem 1rem;
  border: 1px solid var(--tel-border); border-radius: var(--tel-radius);
  background: var(--tel-surface); font-size: 0.85rem; color: var(--tel-muted);
}
.tel-disclaimer--light { background: #fff; border-color: #e2e8f0; }
.tel-term-compact {
  max-width: var(--tel-max); margin: 0 auto 1rem; padding: 0 1.25rem;
  font-size: 0.78rem; color: var(--tel-muted);
}

.tel-grid-3, .tel-grid-4 { display: grid; gap: 1rem; margin-top: 1.25rem; }
.tel-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tel-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tel-grid-3 article, .tel-grid-4 article, .tel-value-card {
  border: 1px solid var(--tel-border); border-radius: var(--tel-radius);
  padding: 1rem; background: var(--tel-surface);
}
.tel-grid-3 h3, .tel-value-card h3 { margin: 0 0 0.5rem; color: var(--tel-accent); font-size: 0.95rem; }
.tel-grid-3 p, .tel-value-card p { margin: 0; font-size: 0.9rem; color: var(--tel-muted); }
.tel-value-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.82rem; color: var(--tel-muted); }

.tel-highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.tel-highlights article {
  border: 1px solid var(--tel-border); border-radius: var(--tel-radius); padding: 1rem; background: var(--tel-surface);
}
.tel-highlights h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.tel-highlights p { margin: 0; font-size: 0.85rem; color: var(--tel-muted); }

.tel-brand-card {
  margin: 1.5rem 0; padding: 1.5rem; border-radius: var(--tel-radius);
  border: 1px solid rgba(59,130,246,0.35);
  background: linear-gradient(90deg, var(--tel-surface), rgba(37,99,235,0.08));
}
.tel-brand-domain { font-size: 1.75rem; font-weight: 800; margin: 0.35rem 0; }
.tel-mono { font-family: ui-monospace, monospace; }
.tel-accent { color: #60a5fa; }
.tel-domain-group { margin-top: 2rem; }
.tel-domain-group h3 { margin: 0 0 1rem; font-size: 1.15rem; }
.tel-domain-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem;
}
.tel-domain-card {
  border: 1px solid var(--tel-border); border-radius: 8px; padding: 0.85rem; background: var(--tel-surface);
  font-size: 0.85rem;
}
.tel-domain-card--light { background: #fff; }
.tel-domain-card p { margin: 0.2rem 0; color: var(--tel-muted); }
.tel-domain-card .tel-accent { font-weight: 700; font-size: 0.88rem; }

.tel-map-wrap { overflow-x: auto; border: 1px solid var(--tel-border); border-radius: var(--tel-radius); padding: 0.5rem; background: #0f172a; }
.tel-map { width: 100%; min-width: 640px; height: auto; display: block; }

.tel-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.tel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.tel-btn:hover { text-decoration: none; }
.tel-btn--primary { background: var(--tel-accent); color: #fff; }
.tel-btn--primary:hover { background: #2563eb; color: #fff; }
.tel-btn--ghost { border-color: var(--tel-border); color: var(--tel-text); background: transparent; }
.tel-btn--ghost:hover { border-color: var(--tel-accent); color: var(--tel-accent); }
.tel-btn--sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.tel-center { text-align: center; margin-top: 1.5rem; }

.tel-cta-box {
  max-width: 42rem; margin: 0 auto; text-align: center; padding: 2rem;
  border: 1px solid rgba(59,130,246,0.3); border-radius: var(--tel-radius);
  background: linear-gradient(90deg, var(--tel-surface), rgba(37,99,235,0.08));
}

.tel-brief { position: relative; }
.tel-brief .lang-switch { position: absolute; right: 1.25rem; top: 0; }
.tel-badge {
  display: inline-block; margin-top: 0.75rem; padding: 0.25rem 0.65rem;
  border: 1px solid var(--tel-border); border-radius: 999px; font-size: 0.8rem;
}

.tel-quick-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.tel-quick-card {
  padding: 1rem; border: 1px solid var(--tel-border); border-radius: var(--tel-radius);
  background: var(--tel-surface); color: var(--tel-text); font-weight: 600; text-align: center;
}
.tel-quick-card:hover { border-color: var(--tel-accent); text-decoration: none; }

.tel-plain-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tel-pre {
  margin-top: 1rem; padding: 1rem; border-radius: var(--tel-radius);
  border: 1px solid var(--tel-border); background: #020617; color: #e2e8f0;
  font-size: 0.78rem; line-height: 1.6; overflow: auto; max-height: 24rem;
}
.tel-status { font-size: 0.875rem; color: var(--tel-accent); min-height: 1.25rem; }

.tel-list { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--tel-muted); }
.tel-list--ol { list-style: decimal; }
.tel-prose { margin-top: 1rem; font-size: 0.95rem; color: var(--tel-muted); }
.tel-prose code { background: rgba(148,163,184,0.15); padding: 0.1rem 0.35rem; border-radius: 4px; }
.tel-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.tel-plans article { border: 1px solid var(--tel-border); border-radius: var(--tel-radius); padding: 1rem; background: var(--tel-surface); }
.tel-plan--highlight { border-color: rgba(59,130,246,0.5); box-shadow: 0 0 0 1px rgba(59,130,246,0.2); }
.tel-plans h4 { margin: 0 0 0.35rem; }
.tel-plans ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }

.tel-footer {
  border-top: 1px solid var(--tel-border); padding: 2rem 1.25rem; text-align: center;
  color: var(--tel-muted); font-size: 0.9rem;
}

/* Demo page (light) */
.tel-demo-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.tel-demo-wrap h1 { margin: 0.5rem 0; font-size: 1.75rem; }
.tel-demo-wrap h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.tel-demo-examples { margin-top: 1.75rem; }
.tel-demo-examples__lead { margin: 0 0 1rem; color: #64748b; font-size: 0.92rem; line-height: 1.55; }
.tel-demo-hint { margin: 0.75rem 0 0; color: #64748b; font-size: 0.82rem; }
.tel-demo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem;
}
.tel-demo-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  padding: 0.9rem 1rem; border: 1px solid #e2e8f0; border-radius: var(--tel-radius);
  background: #fff; text-align: left;
}
.tel-demo-card:hover { border-color: #cbd5e1; }
.tel-demo-card__cc {
  display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; font-size: 0.72rem; font-weight: 700;
}
.tel-demo-card__country { font-size: 0.98rem; }
.tel-demo-card__domain {
  font-family: ui-monospace, monospace; font-size: 0.82rem; color: #1d4ed8; word-break: break-all;
}
.tel-demo-card__intl {
  font-family: ui-monospace, monospace; font-size: 0.85rem; color: #0f172a;
}
.tel-demo-card__local { font-size: 0.85rem; color: #475569; }
.tel-demo-card__note { color: #94a3b8; font-size: 0.75rem; line-height: 1.4; }
.tel-demo-form label { display: block; margin-bottom: 1rem; }
.tel-demo-form label > span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.tel-demo-form input, .tel-demo-form select, .tel-demo-wrap textarea {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit;
}
.tel-demo-form small { display: block; margin-top: 0.25rem; color: #64748b; font-size: 0.8rem; }
.tel-demo-form {
  margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: var(--tel-radius); background: #f8fafc;
}
.tel-demo-box { margin-bottom: 1rem; }
.tel-demo-box output {
  display: block; margin-top: 0.35rem; padding: 0.65rem 0.75rem; border: 1px dashed #cbd5e1;
  border-radius: 8px; background: #fff; font-family: ui-monospace, monospace; font-size: 0.88rem;
  color: #1d4ed8; word-break: break-all;
}
.tel-demo-chain { margin-top: 2rem; }
.tel-demo-rules, .tel-demo-tech {
  margin-top: 2rem; padding: 1rem; border-radius: var(--tel-radius);
  border: 1px solid #fde68a; background: #fffbeb; color: #78350f;
}
.tel-demo-tech { border-color: #e2e8f0; background: #f8fafc; color: #334155; }
.tel-demo-rules ul { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }

@media (max-width: 768px) {
  .tel-header__nav { display: none; }
  .tel-header__actions .tel-btn--primary { display: none; }
  .tel-brief .lang-switch { position: static; margin-bottom: 0.75rem; }
}
