/* ===== 玉石饰品展示独立站 - 主样式 ===== */

:root {
  --jade-green: #2d8b6e;
  --jade-dark: #1a5c45;
  --jade-light: #e8f5f0;
  --jade-gold: #c8a86b;
  --ink-black: #2b2b2b;
  --ink-soft: #5a5a5a;
  --paper-bg: #faf9f6;
  --paper-warm: #f5f1ea;
  --border-soft: #d8d3c8;
  --shadow-soft: 0 4px 20px rgba(45, 139, 110, 0.08);
  --shadow-hover: 0 8px 30px rgba(45, 139, 110, 0.15);
}

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", serif;
  background: var(--paper-bg);
  color: var(--ink-black);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
  background: var(--jade-dark);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===== 导航栏 ===== */
.navbar {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

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

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--jade-dark);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--jade-green);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  background: var(--jade-light);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

/* 语言切换按钮 */
.lang-toggle {
  padding: 6px 16px;
  border: 1px solid var(--jade-green);
  background: transparent;
  color: var(--jade-dark);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 1px;
  font-weight: 600;
}

.lang-toggle:hover {
  background: var(--jade-green);
  color: #fff;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--jade-dark);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--jade-green);
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, var(--jade-light) 0%, var(--paper-warm) 100%);
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45,139,110,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  color: var(--jade-dark);
  margin-bottom: 20px;
  letter-spacing: 3px;
  font-weight: 600;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: var(--jade-green);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--jade-green);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: 2px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  background: var(--jade-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===== 通用容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--jade-dark);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--jade-gold);
  margin: 0 auto;
}

.section-title p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 16px;
}

/* ===== 产品网格 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-soft);
}

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

.product-image {
  width: 100%;
  height: 280px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 17px;
  color: var(--ink-black);
  margin-bottom: 8px;
  font-weight: 500;
}

.product-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  line-height: 1.5;
  min-height: 38px;
}

.product-specs {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price {
  font-size: 22px;
  color: var(--jade-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.product-price .currency {
  font-size: 14px;
  margin-right: 2px;
}

.product-price .old-price {
  font-size: 14px;
  color: #bbb;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.buy-btn {
  width: 100%;
  padding: 12px;
  background: var(--jade-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.buy-btn:hover {
  background: var(--jade-dark);
}

/* ===== 特色区块 ===== */
.features {
  background: var(--paper-warm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.feature-item {
  padding: 30px 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--jade-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-item h3 {
  font-size: 18px;
  color: var(--jade-dark);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== 关于我们 ===== */
.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 22px;
  color: var(--jade-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-visual {
  flex: 0 0 350px;
  height: 350px;
  background: var(--jade-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual .jade-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jade-green), var(--jade-dark));
  box-shadow: 0 20px 40px rgba(45,139,110,0.3);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--jade-dark);
  color: #ccc;
  padding: 50px 24px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--jade-gold);
}

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

/* ===== 政策页面 ===== */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.policy-page h1 {
  font-size: 28px;
  color: var(--jade-dark);
  margin-bottom: 30px;
  text-align: center;
}

.policy-page h2 {
  font-size: 20px;
  color: var(--ink-black);
  margin: 24px 0 12px;
}

.policy-page p,
.policy-page li {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.policy-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ===== 联系页面 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--jade-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item .text h4 {
  font-size: 16px;
  color: var(--jade-dark);
  margin-bottom: 4px;
}

.contact-info-item .text p {
  font-size: 14px;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--jade-green);
}

.contact-form button {
  padding: 12px 32px;
  background: var(--jade-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

/* ===== PayPal 按钮 ===== */
.paypal-button-container {
  margin-top: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 28px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    flex-direction: column;
  }
  .about-visual {
    flex: 0 0 250px;
    height: 250px;
  }
}

/* 产品详情弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box, .modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box h3, .modal-content h3 {
  font-size: 22px;
  color: var(--jade-dark);
  margin-bottom: 12px;
}

.modal-box p, .modal-content p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  z-index: 10;
}

/* ===== 支付信任标识 ===== */
.payment-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.badge-paypal { background: #003087; }
.badge-visa { background: #1a1f71; }
.badge-mastercard { background: #eb001b; }
.badge-secure { background: #2d8b6e; font-size: 11px; }

.footer-payment {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
}

.footer-payment .pay-title {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-payment .payment-badges {
  margin-top: 0;
}

/* ===== 商家信息展示区 ===== */
.business-info {
  background: var(--paper-warm);
  padding: 50px 24px;
}

.business-info-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.biz-info-item {
  padding: 24px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.biz-info-item .biz-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  background: var(--jade-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--jade-dark);
  font-weight: bold;
}

.biz-info-item h4 {
  font-size: 15px;
  color: var(--jade-dark);
  margin-bottom: 8px;
}

.biz-info-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== 产品分类筛选 ===== */
.product-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 22px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--jade-green);
  color: var(--jade-dark);
}

.filter-btn.active {
  background: var(--jade-green);
  color: #fff;
  border-color: var(--jade-green);
}

/* ===== 信任徽章区（首页底部） ===== */
.trust-section {
  background: #fff;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.trust-badges {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-badge .tb-icon {
  width: 44px;
  height: 44px;
  background: var(--jade-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.trust-badge .tb-text {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 响应式补充 */
@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }
  .lang-toggle {
    font-size: 12px;
    padding: 4px 10px;
  }
  .payment-badge {
    height: 26px;
    font-size: 11px;
    padding: 0 10px;
  }
}
