/* ========================================================================
   卉鑫硅业企业门户样式
   设计：红色系为主 + 深蓝灰 + 金色点缀；移动端优先防变形
   ======================================================================== */
:root {
  --primary: #C4271E;
  --primary-dark: #8E1B14;
  --primary-light: #FBEAE8;
  --gold: #C9A24B;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --ink: #1F2937;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
  font-size: clamp(15px, 1.1vw, 16px);
}

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

.container {
  width: min(92%, var(--maxw));
  margin: 0 auto;
}

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-large { padding: 14px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: auto; border-radius: 6px; }
.logo-text { font-size: 1.18rem; font-weight: 800; color: var(--dark); letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink); transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.nav-cta { color: #fff !important; padding: 9px 20px; }
.nav-cta:hover { color: #fff !important; background: var(--primary-dark); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); transition: 0.3s; }

/* ============ Hero ============ */
.hero {
  position: relative;
  /* 固定比例高度：既不会把首屏撑得过长，也不会因容器过高把背景图放大裁切到变形 */
  height: clamp(440px, 56vh, 580px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  /* 视觉重心上移，避免大图下半部只剩空背景；底色兜底防图片未加载时露白 */
  background-position: center 30%;
  background-color: #14233b;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,23,42,0.93) 0%, rgba(15,23,42,0.6) 45%, rgba(142,27,20,0.5) 100%);
}
/* 首屏底部向下渐隐，与下方白色区块自然衔接，消除去掉 ticker 后的生硬留白 */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 48px 0; width: 100%; }
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201,162,75,0.18);
  border: 1px solid rgba(201,162,75,0.5);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,0.88); max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ 区块通用 ============ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.bg-light { background: var(--bg-alt); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); margin-bottom: 12px; font-weight: 800; }
.section-title p { color: var(--muted); font-size: 1.02rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}
.eyebrow.light { color: var(--gold); }

/* ============ 今日行情 ============ */
.prices-section { background: linear-gradient(180deg, #fff 0%, #fbfafa 100%); }
.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.price-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 6px; }
.panel-head h3 { font-size: 1.2rem; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.panel-head h3::before { content: ""; width: 5px; height: 20px; background: var(--primary); border-radius: 3px; }
.update-date { font-size: 0.82rem; color: var(--muted); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 13px 8px; border-bottom: 1px solid var(--border); }
.price-table th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.price-table td { font-size: 0.98rem; }
.cell-model { font-weight: 700; color: var(--dark); }
.price-table .price { font-weight: 700; color: var(--dark); font-size: 1.05rem; }
.price-table .price small { font-size: 0.72rem; color: var(--muted); font-weight: 500; margin-left: 2px; }
.price-table .up { color: #DC2626; font-weight: 700; }
.price-table .down { color: #16A34A; font-weight: 700; }
.price-table .flat { color: var(--muted); }
.price-note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }

/* ============ 产品中心 ============ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media {
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  background-color: #e2e8f0;
}
.product-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-head { display: flex; align-items: center; justify-content: space-between; }
.product-head h3 { font-size: 1.5rem; color: var(--dark); font-weight: 800; }
.product-origin { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.product-body p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.link-arrow { color: var(--primary); font-weight: 600; font-size: 0.92rem; transition: gap 0.2s; }
.link-arrow:hover { text-decoration: underline; }

/* ============ 应用领域 ============ */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e2e8f0; }
.app-text { padding: 22px 22px 26px; }
.app-text h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; }
.app-text p { font-size: 0.94rem; color: var(--muted); }

/* ============ 企业实力数字带 ============ */
.strength-band { background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 60%, #2a1410 100%); color: #fff; padding: clamp(56px, 8vw, 90px) 0; }
.strength-intro { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 5vw, 48px); }
.strength-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; font-weight: 800; }
.strength-intro p { color: rgba(255,255,255,0.78); }
.strength-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.strength-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, background 0.25s;
}
.strength-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.09); }
.sc-ico { font-size: 2rem; margin-bottom: 14px; }
.strength-card h3 { font-size: 1.15rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.strength-card p { font-size: 0.92rem; color: rgba(255,255,255,0.78); }

.futures-empty { padding: 24px 4px; color: var(--muted); }
.futures-empty p { margin-bottom: 8px; }

/* ============ 图文分栏（生产/品质/物流） ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.split:last-child { margin-bottom: 0; }
.split.reverse .split-media { order: 2; }
.split-media { aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: var(--shadow-sm); background-color: #e2e8f0; }
.split-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--dark); margin: 8px 0 14px; font-weight: 800; }
.split-text p { color: var(--muted); margin-bottom: 18px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 0.96rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }

/* ============ 为什么选择我们 ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.why-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.why-item:hover { transform: translateY(-5px); }
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-item h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 8px; }
.why-item p { font-size: 0.9rem; color: var(--muted); }

/* ============ 行业简讯 ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.news-card:hover { transform: translateY(-4px); }
.news-date { font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.news-card h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 0.9rem; color: var(--muted); }

/* ============ 关于我们 ============ */
.about-section { background: var(--bg-alt); }
.about-text-block { max-width: 860px; margin: 0 auto; text-align: center; }
.about-text-block p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.about-text-block strong { color: var(--primary-dark); }

/* ============ 联系我们 ============ */
.contact-section { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: clamp(56px, 8vw, 90px) 0; }
.contact-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 56px); align-items: center; }
.contact-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 8px 0 14px; font-weight: 800; line-height: 1.25; }
.contact-copy p { color: rgba(255,255,255,0.88); margin-bottom: 26px; max-width: 460px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-ico { width: 42px; height: 42px; flex-shrink: 0; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-item h4 { font-size: 0.95rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.contact-item p { margin: 0; font-size: 1rem; color: #fff; }
.contact-item a { color: #fff; text-decoration: underline; }

.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 4px; }
.contact-card-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
  background: #fff; color: var(--ink); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-tip { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ============ 页脚 ============ */
.footer { background: var(--dark); color: #cbd5e1; padding: 48px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 44px; width: auto; border-radius: 8px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-brand p { font-size: 0.85rem; color: #94a3b8; margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.footer-links a { color: #cbd5e1; font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.82rem; color: #64748b; }
.footer-bottom .icp { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; align-items: center; }
.footer-bottom .icp a { display: inline-flex; align-items: center; gap: 4px; }
.footer-bottom .icp img { width: 16px; height: 16px; display: block; }
.footer-bottom a { color: #64748b; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .prices-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 6%;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { border-bottom: none !important; text-align: center; margin-top: 6px; }
  .mobile-toggle { display: flex; }

  .apps-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero { height: auto; min-height: 400px; }
  .hero-content { padding: 56px 0 52px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 20px 10px; }
  .footer-inner { flex-direction: column; }
  .btn-large { padding: 13px 26px; }
}
