:root {
  --bg: #faf9f7;
  --bg-dark: #1a1a1a;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --accent: #8b7355;
  --accent-light: #c4b5a0;
  --border: #e8e4df;
  --card: #ffffff;
  --radius: 12px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* 顶栏 */
.top-banner {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 36em;
  margin: 0 auto 2rem;
}

.hero-visual {
  border-radius: var(--radius);
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  line-height: 0;
}

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

/* 产品区 */
.product-section {
  padding: 3rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}

.product-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eeece8;
  line-height: 0;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* 产品图库 */
.gallery {
  padding: 3rem 0 4rem;
  background: var(--bg);
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.page-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.product-info h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.colors {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.color-dot.silver { background: #c0c0c0; }
.color-dot.black { background: #2c2c2c; }
.color-dot.pebble-white { background: #e8e4df; }
.color-dot.pebble-black { background: #4a4a4a; }

/* 功能卡片 */
.features {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-style: italic;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* 情绪色块 */
.moods {
  padding: 3rem 0;
  text-align: center;
}

.mood-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.mood-tag {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #fff;
}

.mood-calm { background: #7eb8da; }
.mood-excited { background: #f4a460; }
.mood-joyful { background: #ffd700; }
.mood-happy { background: #98d8aa; }
.mood-grateful { background: #dda0dd; }
.mood-lonely { background: #9b9b9b; }
.mood-upset { background: #cd5c5c; }

/* CTA */
.cta {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg-dark);
  color: #fff;
}

.cta h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* 页脚 */
.footer {
  background: #f5f3f0;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* 备案信息 — 首页下方居中（管局审核重点） */
.beian-bar {
  text-align: center;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #eeece8;
}

.beian-bar a {
  color: var(--text-muted);
  text-decoration: underline;
}

.beian-bar a:hover {
  color: var(--text);
}

.beian-bar .company-line {
  margin-bottom: 0.35rem;
}

/* 内页 */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 500;
}

.page-content {
  padding: 2rem 0 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.page-content p,
.page-content li {
  margin-bottom: 1rem;
  color: var(--text);
}

.page-content ul {
  padding-left: 1.25rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
}

.app-download {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.app-badge {
  padding: 1rem 1.5rem;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
