/* AURA — 极简展示站设计系统 */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #e5e5ea;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --radius: 18px;
  --radius-lg: 28px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
}

/* 布局 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-soft {
  background: var(--bg-tint);
}

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
  margin: 5px 0;
}

/* 排版 */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(40px, 6.5vw, 72px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 21px;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.5;
}

.muted {
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 0 80px;
}

.hero p {
  max-width: 620px;
  margin: 24px auto 0;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--bg-tint);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-dark:hover {
  background: #000;
}

.btn-lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 16px;
}

/* 产品网格 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-head .link {
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  display: block;
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card .thumb {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-tint);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.thumb-placeholder {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.product-card .meta {
  padding: 16px 2px 0;
}

.product-card .name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.product-card .price {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

.product-card .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

/* 详情 */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 72px 0 100px;
  align-items: start;
}

.detail-gallery .main-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  position: sticky;
  top: 96px;
}

.detail-info h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.detail-info .price {
  font-size: 24px;
  margin: 20px 0 0;
  font-weight: 500;
}

.detail-info .desc {
  color: var(--text-secondary);
  margin: 28px 0;
  font-size: 16px;
}

.detail-info .features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.detail-info .features li {
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}

.buy-box {
  background: var(--bg-soft);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.buy-box .note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.buy-box .btn {
  width: 100%;
  margin-bottom: 10px;
}

/* 分类筛选 */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  border: 0.5px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--text-tertiary);
  color: var(--text);
}

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

/* 内容页 */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 26px;
  margin: 48px 0 16px;
}

.prose h3 {
  font-size: 19px;
  margin: 32px 0 12px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 16px;
}

.prose ul {
  padding-left: 22px;
}

.page-hero {
  text-align: center;
  padding: 96px 0 64px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

/* 页脚 */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg-soft);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand .brand {
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.8;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 800px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 82px 0 60px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 18px;
    border-bottom: 0.5px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0 72px;
  }

  .detail-info {
    position: static;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
