/* ============================================
   亚洲丽人 style.css - 方案 A 极简杂志风
   2026-06-10 重写
   配色: bg #f7f5f0 / surface #ffffff / line #e9e3d6 / ink #14171e / ink-soft #3a4256 / muted #7c7a72 / accent #2f6f5e
   字体: DM Serif Display (headline) + Outfit (body) + Songti SC (中文兜底)
   ============================================ */

:root {
  --bg: #fdf6f3;
  --surface: #ffffff;
  --line: #f0d9d0;
  --line-soft: #f7e8e3;
  --ink: #2a1c20;
  --ink-soft: #5a4548;
  --muted: #99888a;
  --accent: #b06367;
  --accent-soft: rgba(176, 99, 103, 0.08);
  --font-serif: 'DM Serif Display', 'Songti SC', 'STSong', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =================== NAV =================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-gem {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
}

.logo-name { color: var(--ink); }
.logo-name span { color: var(--accent); }

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

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: color .2s;
}

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

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  font-weight: 500 !important;
  background: none !important;
  box-shadow: none !important;
  transition: all .2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--surface) !important;
  transform: none !important;
}

.hamburger { display: none; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  color: var(--ink-soft);
  padding: 12px 16px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu a:hover { color: var(--accent); background: none; }
.mobile-menu.open { display: flex; }

/* =================== HERO =================== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero-content { display: contents; }

.hero-badge {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-title span,
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 0;
  margin-top: 8px;
}

.hero-tag {
  display: none;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-view-all {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: all .2s;
  display: inline-block;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: none;
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.btn-view-all {
  background: none;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 10px 24px;
  margin-top: 32px;
}

.btn-view-all:hover {
  border-color: var(--accent);
  background: none;
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

/* =================== STATS =================== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin: 0;
}

.stats .container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =================== SECTIONS =================== */
.articles-section,
.categories-section,
.list-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-tag {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* =================== ARTICLES GRID =================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s;
  animation: none;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: none;
}

.article-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--accent);
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.article-meta .cat-tag { color: var(--accent); }
.article-meta .read-time { color: var(--muted); }

.article-card .article-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.article-excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-arrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
}

/* =================== CATEGORIES GRID =================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: none;
}

.category-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.category-name {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}

.category-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.category-link {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: none;
}

.category-card .category-count::after { content: ''; }

/* =================== CATEGORY PAGE (list) =================== */
.category-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
}

.category-page .page-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.category-page .page-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.article-item {
  padding: 24px 8px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
  background: none;
  box-shadow: none;
  margin-bottom: 0;
}

.article-item:hover { background: var(--accent-soft); }

.article-item .tag {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.article-item .article-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}

.article-item .meta {
  font-size: 12px;
  color: var(--muted);
}

.article-item .right {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

/* =================== ARTICLE PAGE =================== */
.article-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
}

.article-page .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.article-page .breadcrumb a { color: var(--ink-soft); }
.article-page .breadcrumb a:hover { color: var(--accent); }
.article-page .breadcrumb span { color: var(--ink); }

.article-header h1.article-title {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-meta-large {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
}

.article-container { max-width: 100%; }

.article-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.article-content p { margin-bottom: 20px; }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content ul, .article-content ol { margin-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =================== SIDEBAR =================== */
.article-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
}

.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  transition: color .2s;
}
.related-list a:hover { color: var(--accent); }

/* =================== ABOUT PAGE =================== */
.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
}

.about-page h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.about-page h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-page p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* =================== FOOTER =================== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 48px 32px 32px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .nav-logo { margin-bottom: 12px; display: inline-flex; }

.footer-tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  max-width: 280px;
  margin-top: 8px;
}

.footer-links h6 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 600;
  font-family: var(--font-body);
}

.footer-links ul { list-style: none; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  display: block;
  padding: 4px 0;
  background: none;
  border-radius: 0;
}

.footer-links a:hover { color: var(--accent); background: none; }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span { color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* =================== EMPTY STATE =================== */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--muted);
}

.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

/* =================== PAGE HEADER (about + 4 分类共用) =================== */
.page-header .container {
  text-align: center;
  padding: 64px 32px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-header .page-title,
.category-page .page-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  text-align: center;
}

.page-header .page-sub,
.category-page .page-sub {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  margin-bottom: 0;
}

/* =================== ABOUT CONTENT 居中 =================== */
.about-content .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  text-align: left;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.about-content p,
.about-content ul {
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.about-content ul {
  list-style: disc;
  padding-left: 24px;
}

.about-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* =================== CATEGORY ARTICLES LIST (4 分类共用) =================== */
.category-articles .container,
.category-page .article-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
}

.category-desc .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 16px;
}

.category-desc p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 0;
}

/* =================== ARTICLE LIST ITEM (health/beauty/science) =================== */
.article-item {
  display: block;  /* 不用 flex/grid, 避免 cat-tag 挤右边 */
  padding: 24px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
  background: none;
  box-shadow: none;
  margin-bottom: 0;
}

.article-item:first-child {
  border-top: 1px solid var(--line);
}

.article-item:hover { background: var(--accent-soft); }

.article-item .article-cat-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 500;
}

.article-item h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  margin-bottom: 6px;
}

.article-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item .read-more {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 32px;
    gap: 24px;
  }
  .hero-title { font-size: 36px; }
  .articles-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 16px 24px; }
  .articles-section, .categories-section,
  .category-page, .article-page, .about-page { padding: 40px 24px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .article-page h1.article-title, .about-page h1 { font-size: 32px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat:nth-child(3) { grid-column: 1 / -1; }
  .stat-num { font-size: 26px; }
  .page-header .container,
  .about-content .container,
  .category-articles .container,
  .category-page .article-list { padding: 32px 24px; }
  .page-header .page-title,
  .category-page .page-title { font-size: 32px; }
  .about-content h2 { font-size: 22px; }
  .article-item { padding: 20px 8px; }
  .article-item h3 { font-size: 18px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}
