@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary: #f0b848;
  --primary-dark: #d4922e;
  --primary-light: #f8e4be;
  --accent: #e09058;
  --accent-light: #f4c490;
  --bg: #fdfbf6;
  --bg-dark: #1c1610;
  --text: #3a2c18;
  --text-light: #7d6238;
  --text-muted: #a88e68;
  --white: #ffffff;
  --card-bg: rgba(255,253,248,0.90);
  --shadow: 0 8px 40px rgba(180,130,50,0.08);
  --shadow-hover: 0 16px 60px rgba(180,130,50,0.15);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.45s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 动态背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(240,184,72,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(224,144,88,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #fdfbf6 0%, #f7f0e4 100%);
  pointer-events: none;
}

/* 确保页面内容在背景 canvas 之上 */
nav, section, footer, .slider-section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* 通用容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 通用区块间距 */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* 标题 */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  font-weight: 300;
}

/* 分割线装饰 */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}
.btn:hover::after { background: rgba(255,255,255,0.12); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(240,184,72,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,184,72,0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #c8803a 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224,144,88,0.25);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(224,144,88,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* 卡片 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(240,184,72,0.06);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* 图文交替布局 */
.feature-row {
  display: flex;
  align-items: center;
  gap: 72px;
  margin-bottom: 96px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .feature-img {
  flex: 0 0 56%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-row .feature-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.feature-row .feature-img:hover img { transform: scale(1.04); }
.feature-row .feature-text { flex: 1; }
.feature-row .feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.feature-row .feature-text p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
}
.feature-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

/* 页脚 */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.8; }
.footer-links h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    gap: 32px;
  }
  .feature-row .feature-img { flex: none; width: 100%; }
  .feature-row .feature-img img { height: 240px; }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }
  .section-title { font-size: 1.4rem; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
