/* ===== 浅色主题变量 ===== */
:root {
  --color-primary: #b8860b;
  --color-primary-dark: #9a7209;
  --color-primary-light: #d4a843;
  --color-accent: #c9956c;
  --color-bg: #faf8f5;
  --color-bg-white: #ffffff;
  --color-bg-section: #f3f0eb;
  --color-bg-card: #ffffff;
  --color-text: #2c2825;
  --color-text-muted: #7a736c;
  --color-border: rgba(44, 40, 37, 0.08);
  --gradient-main: linear-gradient(135deg, #c9956c 0%, #b8860b 100%);
  --gradient-soft: linear-gradient(135deg, #fdf8f3 0%, #f5ede3 100%);
  --shadow-sm: 0 2px 8px rgba(44, 40, 37, 0.06);
  --shadow-card: 0 8px 32px rgba(44, 40, 37, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35);
}

.btn-outline {
  background: var(--color-bg-white);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 149, 108, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.highlight {
  color: var(--color-primary);
}

.hero-desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--color-bg-white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.feature-icon {
  font-size: 1.2rem;
}

/* ===== 通用区块 ===== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ===== 关于我们 ===== */
.about {
  background: var(--color-bg-white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image-inner {
  aspect-ratio: 4/3;
  background: var(--gradient-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.about-deco {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-image-inner p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-list {
  margin-top: 24px;
}

.about-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ===== 服务项目 ===== */
.services {
  background: var(--color-bg-section);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card.featured {
  border-color: rgba(184, 134, 11, 0.25);
  background: linear-gradient(135deg, #fffdf9 0%, #faf5eb 100%);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== 产品展示 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.product-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.product-thumb-1 { background: linear-gradient(135deg, #d4a574, #b8860b); }
.product-thumb-2 { background: linear-gradient(135deg, #c9a0dc, #9b72cf); }
.product-thumb-3 { background: linear-gradient(135deg, #f0a8a8, #d47373); }
.product-thumb-4 { background: linear-gradient(135deg, #8ecae6, #5a9fb8); }

.product-body {
  padding: 24px;
}

.product-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.product-body p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.products-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--color-bg-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-card p {
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--color-primary);
}

.contact-info-box {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-info-box--center {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-box h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.contact-hours {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-tip {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.beian a {
  color: var(--color-text-muted);
}

.beian a:hover {
  color: var(--color-primary);
}

/* ===== 法律页面 ===== */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--color-bg);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-content .update-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--color-primary-dark);
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-content {
    padding: 28px;
  }
}
