/* ========================================
   海外华人旅行攻略 — Shared Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #7A7A7A;
  --text-light: #999999;
  --trip-blue: #003580;
  --trip-blue-light: #E8EFF8;
  --accent-red: #E23C3C;
  --accent-red-light: #FFF0F0;
  --accent-gold: #C8960C;
  --accent-gold-light: #FFF9E6;
  --green: #00875A;
  --green-light: #E6F5EF;
  --border: #EBEBEB;
  --shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--trip-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ========== SITE HEADER ========== */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-logo:hover { text-decoration: none; }

.site-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

/* ========== SITE FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 48px;
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-copy a { color: var(--text-light); }

/* ========== CONTAINER ========== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== ARTICLE STYLES ========== */
.article-header {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.article-header .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  background: var(--accent-red-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--trip-blue-light), #C8D8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--trip-blue);
}

.article-body {
  padding-bottom: 32px;
}

.article-body h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 21px;
  font-weight: 700;
  margin: 32px 0 14px;
  position: relative;
  padding-left: 14px;
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent-red);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.article-body p {
  font-size: 15px;
  color: #3A3A3A;
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 12px 0 16px 20px;
  font-size: 15px;
  color: #3A3A3A;
  line-height: 1.85;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { color: var(--text); }

.article-body blockquote {
  border-left: 3px solid var(--accent-gold);
  background: var(--accent-gold-light);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #5A5A3A;
}

.info-box {
  background: var(--trip-blue-light);
  border: 1px solid #C8D8F0;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.75;
}

.info-box strong { color: var(--trip-blue); }

/* ========== CARD GRID (Homepage) ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 28px 0;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}

.card-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-thumb .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.92);
  color: var(--accent-red);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-content {
  padding: 16px;
}

.card-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

.read-more {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .article-grid { grid-template-columns: 1fr; }
}
