/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #c8102e;       /* 牌红 */
  --primary-dark: #8b0a1f;
  --gold: #d4af37;          /* 金色 */
  --gold-light: #f5d97a;
  --green: #0a5c36;         /* 牌桌绿 */
  --green-dark: #063820;
  --ink: #1a1a2e;
  --bg: #0f0f1a;
  --bg-soft: #1a1a2e;
  --text: #f5f5f7;
  --text-muted: #b8b8c4;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(212, 175, 55, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== 顶部导航 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 60px;
  background: rgba(10, 10, 18, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
}

.logo-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ========== Hero 区域 ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200, 16, 46, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 175, 55, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--green-dark) 100%);
  overflow: hidden;
}

/* 漂浮的牌面装饰 */
.hero::before,
.hero::after {
  content: url("image/da_2.png");
  position: absolute;
  width: 90px; height: 90px;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}
.hero::before { top: 18%; left: 8%; }
.hero::after { bottom: 16%; right: 10%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-30px) rotate(8deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--gold-light) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ========== 通用区块 ========== */
.section {
  padding: 100px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head .tag {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
}

/* ========== 产品卡片 ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 14px;
  margin-bottom: 22px;
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.product-card .sub {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 14px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== 数据统计 ========== */
.stats {
  background: linear-gradient(135deg, var(--green-dark), var(--bg-soft));
  padding: 80px 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== 公司简介卡片 ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  border-radius: 20px;
  /* border: 1px solid var(--border); */
  overflow: hidden;
  position: relative;
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.about-list .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ========== 时间线 ========== */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.timeline-item .year {
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-muted);
}

/* ========== 联系区域 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info .icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-info .label {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-info .value {
  font-size: 16px;
  color: var(--text);
}

/* 表单 */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== 页脚 ========== */
.footer {
  background: #07070f;
  border-top: 1px solid var(--border);
  padding: 25px 60px 5px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== 单页锚点滚动偏移 ========== */
section[id], header[id] {
  scroll-margin-top: 80px;
}

/* ========== 产品详情大区块 ========== */
.product-detail {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-showcase .visual {
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.product-showcase .visual img {
  width: 100%;
  height: auto;
  display: block;
}

.product-showcase h2 {
  font-size: 38px;
  margin-bottom: 18px;
}

.product-showcase .sub {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 18px;
}

.product-showcase p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* ========== 特性列表 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 12px;
}

.feature-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== 新闻动态 ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.news-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}

.news-cover {
  height: 170px;
  background:
    linear-gradient(135deg, var(--green-dark), var(--bg-soft)),
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.25), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.news-body {
  padding: 22px;
}

.news-date {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 8px;
}

.news-card h4 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* ========== 招聘信息 ========== */
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.career-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: all 0.3s;
}

.career-card:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.career-card .tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.career-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.career-card .loc {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== CTA 区域 ========== */
.cta {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at center, rgba(200, 16, 46, 0.2), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .navbar { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .section { padding: 70px 20px; }
  .section-head h2 { font-size: 28px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-grid, .contact-grid, .product-showcase { grid-template-columns: 1fr; gap: 30px; }
  .about-visual { max-height: 320px; }
  .about-visual img { max-height: 320px; object-fit: contain; }
  .product-showcase .visual img { max-height: 360px; object-fit: contain; }
  .feature-grid, .news-grid, .career-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
}
