/* ============================================================
   珠海大显工业园 · 高端地产风设计系统
   ============================================================ */
:root {
  /* 大地色系 */
  --ink: #1a1712;
  --ink-2: #221d15;
  --ink-3: #12100b;
  /* 金 */
  --gold: #c8a25a;
  --gold-2: #dcc088;
  /* 米/纸 */
  --cream: #f5efe4;
  --cream-dim: #b6a88a;
  --paper: #faf7f1;
  --paper-2: #f2ece0;
  /* 浅底文字 */
  --text: #2b2620;
  --text-mute: #6f6656;
  --line: rgba(200, 162, 90, 0.35);

  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- 通用 ---------- */
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.rule {
  display: block;
  width: 54px;
  height: 2px;
  background: var(--gold);
  margin: 22px 0;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn-gold, .btn-ghost, .btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 239, 228, 0.45);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: var(--cream); }

/* ============================================================
   顶部导航
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(18, 16, 11, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}
/* 首页 Hero 上：初始透明 */
.site-nav[data-transparent="1"]:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.site-nav.scrolled { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); }

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cream);
}
.brand-en {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--gold); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 8px 22px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: all 0.3s var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 11, 0.55) 0%, rgba(18, 16, 11, 0.7) 55%, rgba(18, 16, 11, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 120px 24px 80px;
}
.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: 0.16em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.12em;
  color: var(--cream-dim);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 1.1rem;
  opacity: 0.7;
  z-index: 1;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   数据带
   ============================================================ */
.highlights {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.highlights-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 54px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px;
  background: var(--line);
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-unit { font-size: 0.9rem; margin-left: 4px; color: var(--gold-2); }
.stat-label { margin-top: 12px; font-size: 0.9rem; letter-spacing: 0.15em; color: var(--cream-dim); }

/* ============================================================
   图文交错板块
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--paper);
  color: var(--text);
}
.feature.reverse { background: var(--ink); color: var(--cream); }
.feature.reverse .feature-media { order: 2; }

.feature-media {
  position: relative;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
}
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-index {
  position: absolute;
  bottom: 20px; right: 28px;
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(245, 239, 228, 0.14);
  line-height: 1;
  pointer-events: none;
}

.feature-body { padding: clamp(40px, 6vw, 88px); }
.feature.reverse .eyebrow { color: var(--gold-2); }
.feature-body p {
  font-size: 1.02rem;
  line-height: 1.95;
  margin-top: 18px;
  text-align: justify;
}
.feature.reverse .feature-body p { color: var(--cream-dim); }

.feature-list { margin-top: 22px; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.8;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list i { color: var(--gold); margin-top: 6px; flex-shrink: 0; }

/* ============================================================
   厂房选择专区
   ============================================================ */
.factory-section {
  background: var(--ink-2);
  color: var(--cream);
  padding: clamp(60px, 8vw, 110px) 32px;
}
.section-head { max-width: var(--wrap); margin: 0 auto 54px; }
.section-head.center { text-align: center; }
.section-index {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.factory-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.factory-card {
  background: var(--ink);
  border: 1px solid rgba(200, 162, 90, 0.18);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.factory-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.fc-media { position: relative; height: 220px; overflow: hidden; background: var(--ink-3); }
.fc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.factory-card:hover .fc-media img { transform: scale(1.08); }
.fc-view {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: linear-gradient(transparent, rgba(18, 16, 11, 0.92));
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.factory-card:hover .fc-view { opacity: 1; transform: translateY(0); }
.fc-body { padding: 22px 24px 26px; }
.fc-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.fc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-tags span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 2px;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--ink-3); color: var(--cream); }
.footer-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
}
.footer-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-desc { color: var(--cream-dim); margin-bottom: 34px; }
.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.footer-contacts li:last-child { border-bottom: 1px solid var(--line); }
.footer-contacts i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-contacts a { color: var(--cream); transition: color 0.3s; }
.footer-contacts a:hover { color: var(--gold); }

/* 页脚表单 */
.footer-form-wrap {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 40px;
  align-self: start;
}
.form-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-2);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cream);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.field input::placeholder { color: rgba(182, 168, 138, 0.5); }
.field input:focus { outline: none; border-color: var(--gold); }
.submit-button { width: 100%; justify-content: center; border: none; }
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-family: var(--serif);
  letter-spacing: 0.12em;
  color: var(--gold);
  font-size: 0.95rem;
}
.footer-legal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-legal .copyright { font-size: 0.82rem; color: var(--cream-dim); }
.footer-legal .icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.footer-legal .icp:hover { color: var(--gold); }

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  background: var(--ink);
  color: var(--cream);
}
.nf-code { font-family: var(--serif); font-size: 6rem; color: var(--gold); line-height: 1; }
.nf-title { font-family: var(--serif); font-size: 2rem; margin: 10px 0 14px; letter-spacing: 0.08em; }
.nf-desc { color: var(--cream-dim); margin-bottom: 30px; }

/* ============================================================
   消息提示（表单反馈）
   ============================================================ */
.message-toast {
  position: fixed;
  top: 92px; right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(130%);
  transition: transform 0.4s var(--ease);
  z-index: 10000;
}
.message-toast.show { transform: translateX(0); }
.message-toast.message-success { background: var(--gold); }
.message-toast.message-error { background: #d9534f; color: #fff; }
.message-toast.message-info { background: var(--cream); }

/* ============================================================
   滚动淡入
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* ============================================================
   滚动条
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-3); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: var(--ink-3);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .site-nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .highlights-inner { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stat:nth-child(2)::after { display: none; }

  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { min-height: 300px; }

  .factory-grid { grid-template-columns: 1fr; max-width: 460px; }

  .footer-main { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 500px) {
  .highlights-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; justify-content: center; }
}
