/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #c9a961;
  --accent-light: #e8d5a3;
  --text: #2d2d2d;
  --text-light: #666;
  --text-white: #fff;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --border: #eee;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== 顶部导航 ===== */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-top {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  font-size: 13px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left span {
  margin-right: 20px;
  opacity: 0.9;
}

.header-top-left i {
  color: var(--accent);
  margin-right: 5px;
}

.header-main {
  padding: 20px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
  font-size: 20px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

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

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-actions a {
  font-size: 14px;
  opacity: 0.9;
  transition: var(--transition);
}

.header-actions a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ===== 容器 ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero Banner ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d1f4e 50%, var(--secondary) 100%);
  color: var(--text-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 169, 97, 0.2);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(201, 169, 97, 0.3);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 特性栏 ===== */
.features {
  padding: 40px 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}

.feature-text h4 {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 产品区域 ===== */
.section {
  padding: 60px 0;
}

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

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 15px;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== 分类标签 ===== */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

/* ===== 产品网格 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.price-current small {
  font-size: 13px;
  font-weight: 400;
}

.price-original {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

/* ===== 关于公司 ===== */
.about {
  background: linear-gradient(135deg, #f8f8fa 0%, #f0f0f5 100%);
  padding: 80px 0;
}

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

.about-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.about-image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 20px;
  padding: 60px 40px;
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
}

.about-image-inner {
  position: relative;
  z-index: 1;
}

.about-image h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--accent);
}

.about-image p {
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ===== 联系我们 ===== */
.contact {
  padding: 80px 0;
  background: var(--card-bg);
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.2) 0%, rgba(201, 169, 97, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  margin: 0 auto 20px;
}

.contact-card h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 14px;
}

.contact-card a {
  color: var(--accent);
  font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-white);
  padding: 60px 0 30px;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  opacity: 0.7;
  font-size: 14px;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--accent);
  opacity: 1;
}

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

/* ===== 产品详情页 ===== */
.product-detail {
  padding: 60px 0;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a {
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 10px;
  color: #ccc;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.detail-image {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.detail-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.detail-info h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
}

.detail-brand {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.detail-price-box {
  background: linear-gradient(135deg, #fff9ef 0%, #fff 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.detail-price .price-current {
  font-size: 36px;
}

.detail-price .price-original {
  font-size: 16px;
}

.detail-price-box small {
  display: block;
  color: var(--text-light);
  font-size: 13px;
  margin-top: 8px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detail-section p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.specs-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  margin-right: 10px;
}

/* ===== 下单表单 ===== */
.order-section {
  padding: 0 0 60px;
}

.order-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.order-card h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 4px;
}

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

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

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

.color-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  background: var(--bg);
}

.color-option:hover {
  border-color: var(--accent);
}

.color-option.selected {
  border-color: var(--accent);
  background: rgba(201, 169, 97, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 44px;
  border: none;
  background: var(--bg);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.quantity-selector button:hover {
  background: var(--accent);
  color: #fff;
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  background: #fff;
}

/* ===== 订单汇总 ===== */
.order-summary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-white);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 30px;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--accent);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid rgba(201, 169, 97, 0.3);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition);
  letter-spacing: 2px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

/* ===== 支付方式 ===== */
.payment-methods {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.payment-option {
  flex: 1;
  padding: 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  background: var(--bg);
}

.payment-option:hover {
  border-color: var(--accent);
}

.payment-option.selected {
  border-color: var(--accent);
  background: rgba(201, 169, 97, 0.1);
}

.payment-option .icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}

/* ===== 提示框 ===== */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--primary);
  color: var(--text-white);
  padding: 16px 32px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast .icon {
  font-size: 20px;
  color: var(--accent);
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

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

.back-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero {
    padding: 50px 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 40px 0;
  }
  .section-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .stat-number {
    font-size: 26px;
  }
}
