/* ============================================================
   SHARED CSS — 赤瑕科技官网
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700;900&display=swap');

:root {
  --bg:        #060914;
  --bg-2:      #0b1020;
  --bg-3:      #0f1628;
  --panel:     rgba(13, 18, 34, 0.96);
  --line:      rgba(213, 174, 96, 0.14);
  --line-2:    rgba(213, 174, 96, 0.28);
  --gold:      #d5ae60;
  --gold-soft: #f0d7a3;
  --text:      #f5f1e8;
  --text-2:    rgba(245, 241, 232, 0.78);
  --text-3:    rgba(245, 241, 232, 0.50);
  --ruby:      #8e1f31;
  --ruby-2:    #b4364d;
  --shadow:    0 24px 64px rgba(0, 0, 0, 0.55);
  --radius:    22px;
  --radius-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  background: rgba(6, 9, 20, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(6, 9, 20, 0.98); }

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--text); cursor: pointer;
}
.nav-logo-img { height: 42px; width: auto; border-radius: 6px; filter: drop-shadow(0 2px 8px rgba(142,31,49,0.3)); }
.nav-logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gold-soft); letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(142,31,49,0.35);
}
.nav-logo-text {
  font-size: 16px; font-weight: 600; letter-spacing: 4px;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 13px;
  font-weight: 500; letter-spacing: 2px; transition: all 0.3s ease;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); border-radius: 1px;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-soft); }
.nav-links a.active::after { transform: scaleX(1); }

/* ── NAV TOGGLE (MOBILE) ── */
.nav-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  cursor: pointer;
  padding: 10px 12px; z-index: 110;
  flex-direction: column; gap: 5px;
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}
.nav-toggle span {
  display: block; width: 22px; height: 2.5px;
  background: var(--gold-soft);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-toggle.open {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.6);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── NAV CTA LINK ── */
.nav-cta {
  color: var(--gold-soft) !important;
}

/* ── SECTION SHARED ── */
.section { padding: 40px 60px; }
.section-eyebrow {
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 700;
  line-height: 1.3; letter-spacing: 1px; margin-bottom: 14px;
}
.section-lead {
  font-size: 14px; line-height: 2; color: var(--text-2); max-width: 680px; margin: 0 auto;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; padding: 14px 36px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #b8923c);
  color: #06070f; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-decoration: none; transition: all 0.3s;
  box-shadow: 0 8px 28px rgba(213,174,96,0.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(213,174,96,0.38); }
.btn-ghost {
  display: inline-block; padding: 13px 36px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--gold);
  font-size: 13px; letter-spacing: 2px; text-decoration: none; transition: all 0.3s;
}
.btn-ghost:hover { background: rgba(213,174,96,0.08); border-color: var(--gold); }

/* ── IMAGE: NO CROP (contain) ── */
.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0b0f1c;
}

/* full-width photo with max-height, no crop */
.img-full {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #0b0f1c;
}

/* card with object-fit: cover */
.img-cover {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* photo card: fixed height, no crop via contain */
.photo-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3); box-shadow: var(--shadow);
  position: relative;
}
.photo-card .photo-img-wrap {
  width: 100%;
  position: relative;
  background: #0a0e1a;
}
/* aspect-ratio driven container, no crop */
.photo-card img {
  width: 100%;
  object-fit: contain;
  background: #0a0e1a;
  display: block;
}
.photo-card .caption {
  padding: 18px 22px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); line-height: 1.7;
}
.photo-card .caption h4 { font-size: 15px; font-weight: 600; color: var(--gold-soft); margin-bottom: 6px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line); padding: 28px 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 22px; width: auto; opacity: 0.75; }
.footer-text { font-size: 12px; letter-spacing: 2px; color: var(--gold); }
.footer-copy { font-size: 10px; color: var(--text-3); letter-spacing: 1px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 11px; color: var(--text-3); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.vis { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.40s; }
.reveal-d4 { transition-delay: 0.56s; }
.reveal-d5 { transition-delay: 0.72s; }
.reveal-d6 { transition-delay: 0.90s; }

/* ── STATS BAR ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: linear-gradient(90deg, rgba(14,19,35,0.98), rgba(9,13,26,0.98));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 60px; gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: "Noto Serif SC", serif; font-size: 36px; font-weight: 700;
  color: var(--gold-soft); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); }
.stat-desc  { font-size: 10px; color: var(--text-3); margin-top: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .section { padding: 35px 30px; }
  nav { padding: 0 30px; }
  footer { padding: 24px 30px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 22px 30px; }
}
@media (max-width: 768px) {
  nav { padding: 0 18px; height: 60px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(6, 9, 20, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 24px 0; gap: 0;
    border-bottom: 1px solid var(--line);
    animation: navSlide 0.3s ease;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 30px; font-size: 14px; width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links a::after { display: none; }
  @keyframes navSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .section { padding: 28px 18px; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 18px 18px; }
  footer { padding: 16px 18px; flex-direction: column; text-align: center; }
}

/* ICP Filing Icon */
.footer-beian { font-size: 10px; color: var(--text-3); letter-spacing: 1px; text-align: center; margin: 10px 0; display: flex; justify-content: center; align-items: center; gap: 4px; }
.footer-beian a { color: var(--text-3); text-decoration: none; display: inline-flex; align-items: center; }
.beian-icon { width: 10px; height: 10px; vertical-align: middle; margin-right: 3px; }
