:root {
  --bg: #0f0f10;
  --bg-alt: #161618;
  --surface: #1d1d20;
  --line: #2a2a2e;
  --text: #ececec;
  --text-dim: #9a9a9f;
  --gold: #c9a24b;
  --gold-soft: #e3c478;
  --radius: 14px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

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

/* 导航 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(15, 15, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo span { color: var(--gold); margin-left: 4px; font-weight: 600; }
.menu { display: flex; gap: 30px; }
.menu a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.menu a:hover { color: var(--gold); }
.menu-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 24px; cursor: pointer;
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(201,162,75,0.18), transparent 60%),
    linear-gradient(160deg, #141416 0%, #0c0c0d 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-tag {
  display: inline-block; color: var(--gold-soft); font-size: 14px;
  letter-spacing: 3px; border: 1px solid var(--gold);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 900; letter-spacing: 2px; }
.hero-sub { color: var(--text-dim); font-size: clamp(16px, 2.4vw, 22px); margin: 18px 0 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #1a1408; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* 通用 section */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(28px, 5vw, 42px); font-weight: 800; text-align: center;
  margin-bottom: 14px;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}
.section-lead { text-align: center; color: var(--text-dim); max-width: 640px; margin: 0 auto 56px; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.about-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px; transition: border-color .2s, transform .2s;
}
.about-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.about-num { color: var(--gold); font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.about-card h3 { font-size: 20px; margin: 12px 0 10px; }
.about-card p { color: var(--text-dim); font-size: 15px; }

/* 案例 */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  position: relative; aspect-ratio: 4 / 3;
}
.case-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(15,15,16,0.78); color: var(--text); font-size: 13px;
  padding: 10px 14px; backdrop-filter: blur(4px);
}
.case-note { text-align: center; color: var(--gold); margin-top: 28px; font-size: 14px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-k { width: 56px; color: var(--gold); font-weight: 600; flex-shrink: 0; }
.info-v { color: var(--text); }
.info-v.todo { color: var(--text-dim); font-style: italic; }
.qrcode-img { max-width: 140px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font-size: 15px; font-family: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.form-note { color: var(--text-dim); font-size: 12px; }

/* 页脚 */
.footer { background: #0a0a0b; border-top: 1px solid var(--line); padding: 40px 0; text-align: center; }
.footer p { color: var(--text-dim); font-size: 14px; }
.footer-sub { margin-top: 8px; font-size: 12px; opacity: 0.7; }

#year { color: var(--gold-soft); }

/* 响应式 */
@media (max-width: 860px) {
  .menu {
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .menu.open { max-height: 280px; }
  .menu a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .about-grid, .product-grid, .case-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
