:root {
  --cream: #F7F2EA;
  --warm-white: #FDFAF5;
  --brown-dark: #3B2A1A;
  --brown-mid: #6B4C2A;
  --brown-light: #A0784A;
  --amber: #C8843A;
  --amber-light: #E8B87A;
  --sage: #7A9068;
  --sage-light: #B5C9A8;
  --divider: #DDD0BC;
  --text-body: #4A3728;
  --text-muted: #8C7B6A;
  --warning: #C0392B;
  --warning-bg: #FDF0EE;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', sans-serif; background: var(--cream); color: var(--text-body); font-size: 16px; line-height: 1.8; }

/* HEADER */
header { background: var(--brown-dark); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(59,42,26,0.18); }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Noto Serif TC', serif; font-size: 1.35rem; font-weight: 700; color: var(--amber-light); text-decoration: none; letter-spacing: 0.04em; }
.logo span { color: var(--sage-light); }
nav { display: flex; gap: 28px; }
nav a { color: #D4C5B0; text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--amber-light); }

/* HERO */
.hero { background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%); padding: 72px 24px 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: '🐾'; position: absolute; font-size: 18rem; opacity: 0.04; top: -40px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.hero-tag { display: inline-block; background: var(--sage); color: #fff; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-family: 'Noto Serif TC', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--warm-white); font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.hero h1 em { color: var(--amber-light); font-style: normal; }
.hero p { color: #C4B49E; font-size: 1rem; max-width: 520px; margin: 0 auto 32px; }
.hero-cats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #D4C5B0; padding: 8px 20px; border-radius: 24px; font-size: 0.88rem; text-decoration: none; transition: background 0.2s; }
.hero-cat:hover { background: rgba(200,132,58,0.25); color: var(--amber-light); }

/* LAYOUT */
.site-body { max-width: 1280px; margin: 0 auto; padding: 48px 32px; }
.layout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

/* SECTION */
.section-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-family: 'Noto Serif TC', serif; font-size: 1.5rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid var(--divider); }

/* FILTER TABS */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--divider); background: var(--warm-white); color: var(--text-muted); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'Noto Sans TC', sans-serif; }
.filter-btn.active, .filter-btn:hover { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ARTICLE CARDS */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }
.article-card { background: var(--warm-white); border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(59,42,26,0.12); }
.card-badge { display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 12px; margin-bottom: 10px; }
.badge-dog { background: #FEF3E2; color: #B5640A; }
.badge-cat { background: #EEF5EC; color: #4A7A3A; }
.card-body { padding: 20px; }
.card-body h2 { font-family: 'Noto Serif TC', serif; font-size: 0.98rem; font-weight: 600; color: var(--brown-dark); line-height: 1.5; margin-bottom: 8px; }
.card-body p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; }
.card-read { font-size: 0.78rem; color: var(--amber); font-weight: 500; }
.card-time { font-size: 0.75rem; color: var(--text-muted); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.sidebar-card { background: var(--warm-white); border: 1px solid var(--divider); border-radius: 12px; padding: 24px; }
.sidebar-card h3 { font-family: 'Noto Serif TC', serif; font-size: 1rem; font-weight: 600; color: var(--brown-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--divider); }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid #EDE5D8; font-size: 0.86rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text-body); text-decoration: none; line-height: 1.5; display: flex; align-items: flex-start; gap: 6px; }
.sidebar-list a:hover { color: var(--amber); }
.ad-placeholder { background: #F0EAE0; border: 1px dashed #C8B49A; border-radius: 8px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; text-align: center; gap: 6px; }

/* ARTICLE PAGE */
.article-page { background: var(--warm-white); border-radius: 16px; padding: 48px; border: 1px solid var(--divider); }
.back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-size: 0.88rem; font-weight: 500; text-decoration: none; margin-bottom: 32px; }
.back-btn:hover { text-decoration: underline; }
.article-header { margin-bottom: 36px; }
.article-header h1 { font-family: 'Noto Serif TC', serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--brown-dark); line-height: 1.4; margin: 12px 0 16px; }
.article-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.article-content { max-width: 680px; }
.article-content .intro { background: #F5EFE4; border-left: 4px solid var(--amber); padding: 18px 22px; border-radius: 0 8px 8px 0; font-size: 0.96rem; color: var(--brown-mid); margin-bottom: 36px; line-height: 1.8; }
.article-content h2 { font-family: 'Noto Serif TC', serif; font-size: 1.15rem; font-weight: 600; color: var(--brown-dark); margin: 32px 0 12px; padding-left: 14px; border-left: 3px solid var(--amber); }
.article-content p { margin-bottom: 16px; font-size: 0.96rem; line-height: 1.9; }
.article-content ul { margin: 12px 0 20px 20px; font-size: 0.96rem; }
.article-content ul li { margin-bottom: 8px; line-height: 1.8; }
.warning-box { background: var(--warning-bg); border: 1px solid #F5C6C0; border-radius: 10px; padding: 20px 24px; margin: 28px 0; }
.warning-box .warning-title { font-weight: 600; color: var(--warning); font-size: 0.95rem; margin-bottom: 12px; }
.warning-box ul { margin: 0 0 0 18px; color: #8B2020; font-size: 0.93rem; }
.warning-box ul li { margin-bottom: 6px; }
.article-ending { background: linear-gradient(135deg, #F5EFE4, #EEF5EC); border-radius: 12px; padding: 24px 28px; margin-top: 36px; font-size: 0.94rem; color: var(--brown-mid); line-height: 1.8; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--amber); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* STATIC PAGES */
.static-page { background: var(--warm-white); border-radius: 16px; padding: 48px; border: 1px solid var(--divider); max-width: 780px; }
.static-page h1 { font-family: 'Noto Serif TC', serif; font-size: 1.8rem; color: var(--brown-dark); margin-bottom: 8px; }
.static-page .updated { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 28px; }
.static-page h2 { font-family: 'Noto Serif TC', serif; font-size: 1.1rem; color: var(--brown-mid); margin: 28px 0 10px; }
.static-page p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 14px; }

/* FOOTER */
footer { background: var(--brown-dark); color: #A08878; text-align: center; padding: 36px 24px; font-size: 0.83rem; margin-top: 48px; }
footer a { color: #C4B49E; text-decoration: none; }
footer a:hover { color: var(--amber-light); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-page { padding: 24px 16px; }
  .site-body { padding: 32px 16px; }
  nav { gap: 12px; }
  nav a { font-size: 0.8rem; }
}
