/* ===== 基础样式 ===== */
:root {
  --primary: #c9a96e;        /* 金属金色 */
  --primary-dark: #a88a4f;
  --primary-light: #e5c88a;
  --dark: #1a1a1a;
  --dark-2: #242424;
  --dark-3: #333333;
  --gray: #666666;
  --light-gray: #999999;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --border: #e5e5e5;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: var(--radius);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.logo-sub {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-3);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark-3);
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ===== Hero 轮播 ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.6) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Hero 统计 */
.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  z-index: 2;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.stat-plus {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

/* ===== 通用区块 ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.light .section-title {
  color: var(--white);
}

.section-header.light .section-desc {
  color: rgba(255,255,255,0.7);
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title.left {
  text-align: left;
}

.section-title.left::after {
  left: 0;
  transform: none;
}

.section-desc {
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 产品中心 ===== */
.products-section {
  background: var(--white);
}

.products-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.category-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
  padding: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-tab {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.category-tab:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.category-tab.active {
  background: var(--primary);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.product-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img::before {
  content: '▢';
  font-size: 64px;
  color: var(--light-gray);
  opacity: 0.3;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img:has(img)::before {
  display: none;
}

.product-card.featured .product-img::after {
  content: '★ 特色';
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  border-radius: 20px;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===== 加工服务 ===== */
.services-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #24243e 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v22H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ===== 特色现货 ===== */
.featured-section {
  background: var(--bg-light);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border-top: 4px solid var(--primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(201,169,110,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.featured-num {
  font-size: 48px;
  font-weight: 700;
  color: rgba(201,169,110,0.15);
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.featured-subtitle {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.featured-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== 关于我们 ===== */
.about-section {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

.about-images {
  position: relative;
  height: 500px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 70%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 45%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--white);
}

.about-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 联系我们 ===== */
.contact-section {
  background: var(--bg-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-subtitle {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 40px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.info-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.info-detail h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.info-detail p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.info-note {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.copy-btn {
  padding: 2px 10px;
  border: 1px solid var(--primary);
  background: transparent;
  border-radius: 20px;
  color: var(--primary-dark);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.info-link {
  color: var(--primary-dark);
  font-weight: 500;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
}

.info-link:hover {
  color: var(--primary);
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-3);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .logo-name {
  color: var(--white);
  font-size: 14px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 28px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 2000;
  box-shadow: var(--shadow-hover);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    display: block;
    padding: 14px 16px;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 30px;
  }
  
  .stat-num {
    font-size: 28px;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* 左侧分类栏在小屏折叠为横向滚动标签 */
  .products-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-side {
    position: static;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-side::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 30px;
    text-align: center;
  }
  
  .about-images {
    height: 400px;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }
  
  .hero {
    height: auto;
    min-height: 500px;
    padding-bottom: 100px;
  }
  
  .hero-stats {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

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

  .contact-form-wrap {
    padding: 24px;
  }
}

/* 加载动画 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--gray);
}

/* 空数据提示 */
.empty {
  text-align: center;
  padding: 40px;
  color: var(--light-gray);
  grid-column: 1 / -1;
}
