/* ============================================
   钛金庭官网 · 样式表
   纯静态，无依赖。改色只改 :root 变量。
   ============================================ */

:root {
  --navy: #0d1b2a;
  --navy-light: #1b2d45;
  --steel: #5a6c7d;
  --titanium: #8a9ba8;
  --accent: #c8a45c;
  --accent-dark: #a8853f;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1a1a1a;
  --text-mute: #6b7280;
  --border: #e5e7eb;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 20px; font-weight: 700; letter-spacing: .5px;
  color: var(--navy);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 15px; color: var(--steel); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 10px 22px; border-radius: 4px; font-size: 14px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--navy-light); }

.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 110px 0 100px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,92,.16) 0%, transparent 70%);
}
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.hero .eyebrow {
  color: var(--accent); font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 600;
}
.hero h1 {
  font-size: 48px; line-height: 1.25; font-weight: 700; margin-bottom: 24px;
}
.hero p {
  font-size: 18px; color: rgba(255,255,255,.72); margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 4px;
  font-size: 15px; font-weight: 600; transition: all .2s; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- 通用区块 ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: 34px; font-weight: 700; color: var(--navy); margin-bottom: 16px;
}
.section-head p { color: var(--text-mute); font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 32px 28px; transition: all .25s;
}
.card:hover { border-color: var(--titanium); box-shadow: 0 8px 28px rgba(13,27,42,.08); transform: translateY(-2px); }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.card p { color: var(--text-mute); font-size: 15px; }
.card .num {
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; margin-bottom: 14px; display: block;
}

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-num small { font-size: 18px; color: var(--accent); }
.stat-label { color: var(--text-mute); font-size: 14px; margin-top: 6px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 14px 18px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
td { padding: 14px 18px; border-top: 1px solid var(--border); }
tbody tr:nth-child(even) { background: var(--bg-alt); }
tbody tr:hover { background: #eef1f5; }

/* ---------- 表单 ---------- */
.form-box { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: #d9534f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 15px; font-family: inherit;
  transition: border-color .2s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-mute); margin-top: 16px; }
.form-msg { display: none; padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 15px; }
.form-msg.ok { display: block; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-msg.err { display: block; background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ---------- 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-item { text-align: center; }
.contact-item .label { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 1.5px; margin-bottom: 10px; }
.contact-item .value { font-size: 16px; color: var(--navy); word-break: break-word; }

/* ---------- 页脚 ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { font-size: 14px; line-height: 2; display: block; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; text-align: center; font-size: 13px; }

/* ---------- 内页头 ---------- */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 76px 0; text-align: center;
}
.page-head h1 { font-size: 38px; margin-bottom: 14px; }
.page-head p { color: rgba(255,255,255,.7); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---------- 提示占位 ---------- */
.todo {
  background: #fff8e1; border-left: 4px solid var(--accent);
  padding: 14px 18px; font-size: 14px; color: #7a5c1e;
  border-radius: 4px; margin-bottom: 24px;
}
.todo strong { color: #5c440f; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .form-box { padding: 28px 22px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: #fff;
    padding: 24px; gap: 18px; border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
}
