/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* ===== CSS Variables ===== */
:root {
  --gold: #c8a96e;
  --gold-dark: #8b6914;
  --gold-light: #f0deb0;
  --stone-dark: #1a1a1a;
  --stone: #2d2d2d;
  --stone-mid: #4a4a4a;
  --stone-light: #f5f3f0;
  --text-dark: #1a1a1a;
  --text-mid: #555;
  --text-light: #888;
  --white: #fff;
  --section-pad: 96px 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 共用标签/标题 ===== */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-tag.light {
  background: rgba(200,169,110,0.2);
  border: 1px solid rgba(200,169,110,0.4);
  color: var(--gold-light);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title.light { color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-desc.light { color: rgba(255,255,255,0.7); }

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.25s;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--gold);
  background: rgba(200,169,110,0.12);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,169,110,0.4);
}

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.82) 0%,
    rgba(26,26,26,0.65) 50%,
    rgba(10,10,10,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-title span {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.45);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,169,110,0.1);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 1;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s infinite;
  margin-top: -4px;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ===== 关于我们 ===== */
.about {
  padding: var(--section-pad);
  background: var(--stone-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-images {
  position: relative;
}
.img-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.img-main img { width: 100%; height: 380px; object-fit: cover; display: block; }

.img-sub {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.img-sub img { width: 100%; height: 130px; object-fit: cover; display: block; }

.about-badge-float {
  position: absolute;
  top: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 8px 24px rgba(200,169,110,0.4);
  text-align: center;
}
.badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.badge-text {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 产品应用 ===== */
.products {
  padding: var(--section-pad);
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--stone-light);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.product-card.featured {
  grid-row: span 1;
}

.product-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.product-tag-label {
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.08em;
}

.product-info {
  padding: 24px;
}
.product-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(200,169,110,0.15), rgba(200,169,110,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(200,169,110,0.2);
}
.product-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.product-info p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}
.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.more-products {
  text-align: center;
  padding: 40px;
  background: var(--stone-light);
  border-radius: 16px;
}
.more-products-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mini-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 100px;
  transition: all 0.25s;
  border: 1px solid rgba(0,0,0,0.05);
}
.mini-product:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(200,169,110,0.08), rgba(200,169,110,0.02));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(200,169,110,0.15);
}
.mini-icon { font-size: 1.8rem; }

/* ===== 工程案例 ===== */
.projects {
  padding: var(--section-pad);
  background: var(--stone-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.project-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.project-card.large {
  grid-column: span 2;
}
.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.project-card.large img { height: 340px; }
.project-card:hover img { transform: scale(1.04); }
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 32px 20px 20px;
  color: #fff;
}
.project-type {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.project-card.large .project-info h3 { font-size: 1.2rem; }
.project-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ===== 优势亮点 ===== */
.advantages {
  padding: var(--section-pad);
  background: #fff;
}

.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.adv-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.adv-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--stone-light);
  border-radius: 14px;
  border-left: 4px solid var(--gold);
  transition: all 0.3s;
}
.adv-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateX(4px);
}
.adv-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  flex-shrink: 0;
}
.adv-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.adv-text p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.adv-image {
  position: relative;
}
.adv-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: block;
}
.adv-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 10px 30px rgba(200,169,110,0.4);
}
.adv-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.adv-badge-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.adv-badge-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== 联系我们 ===== */
.contact {
  position: relative;
  padding: var(--section-pad);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92), rgba(26,20,10,0.88));
}
.contact .container { position: relative; z-index: 1; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  transition: all 0.3s;
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.contact-card.highlight {
  background: linear-gradient(135deg, rgba(200,169,110,0.2), rgba(139,105,20,0.15));
  border-color: var(--gold);
}

.contact-card-icon {
  width: 64px; height: 64px;
  background: rgba(200,169,110,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(200,169,110,0.3);
}
.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.contact-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.contact-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.contact-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200,169,110,0.4);
}
.contact-btn.outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.wechat-tip {
  font-size: 0.8rem;
  color: var(--gold-light);
  background: rgba(200,169,110,0.15);
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 8px;
  display: inline-block;
}

/* ===== Footer ===== */
.footer {
  background: var(--stone-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-main { color: #fff; }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
}
.footer-contact-item span { color: rgba(255,255,255,0.45); }
.footer-contact-item strong { color: rgba(255,255,255,0.8); }
.footer-contact-item a { color: var(--gold); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== 悬浮按钮 ===== */
.float-contact {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(200,169,110,0.45);
  transition: all 0.3s;
  letter-spacing: 0.04em;
}
.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(200,169,110,0.55);
}

/* ===== 动画 ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .about-grid,
  .adv-grid { grid-template-columns: 1fr; gap: 48px; }
  .adv-image { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card.featured { grid-column: span 2; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.large { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }
  .nav-links { display: none; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; }
  .contact-cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .img-sub, .about-badge-float { display: none; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 1.6rem; }
}
