/* Claude-inspired platform product center */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Serif+SC:wght@500;600;700&display=swap");

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

:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --text: #1a1814;
  --text-muted: #6b6560;
  --text-subtle: #9c9690;
  --accent: #c96442;
  --accent-hover: #b8563a;
  --accent-soft: rgba(201, 100, 66, 0.08);
  --border: rgba(26, 24, 20, 0.08);
  --border-hover: rgba(201, 100, 66, 0.35);
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.04);
  --shadow-md: 0 4px 24px rgba(26, 24, 20, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 24, 20, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: "Noto Serif SC", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --max-w: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-subtitle,
.subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 28rem;
  line-height: 1.7;
}

/* Products grid */
.products {
  flex: 1;
  padding-bottom: 4rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card:hover::before { opacity: 1; }

.card-inner { position: relative; z-index: 1; }

.card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.card h2 {
  font-family: var(--font-serif);
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}

.card:hover .card-action { gap: 0.625rem; }

.card-action svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.card:hover .card-action svg { transform: translateX(2px); }

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 0.9375rem;
}

/* Legacy product detail page helpers */
.page-header {
  padding: 1rem 1.5rem;
  background: var(--text);
}
.page-header a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
}
.page-header a:hover { color: #fff; }

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-beian a {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-beian a:hover { color: var(--accent); }

.footer-beian .beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-beian .beian-gongan img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* 404 */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.error-page a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.error-page a:hover { text-decoration: underline; }
