/* =====================================================
   TCC 静态站点 - 全局样式
   视觉参考：theclevercarrot.com
   ===================================================== */

/* ---------- Google Fonts 引入 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色调 */
  --color-bg: #ffffff;
  --color-bg-soft: #f9f7f4;
  --color-bg-dark: #2c2c2c;
  --color-text: #1a1a1a;
  --color-text-muted: #888888;
  --color-text-light: #b0a99a;
  --color-accent: #c9a96e;       /* 温暖金色，用于强调 */
  --color-accent-dark: #a07d45;
  --color-border: #e8e3dc;
  --color-nav-top: #dce4db;      /* 导航顶部浅绿灰色 */

  /* 字体 */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* 间距 */
  --max-width: 1200px;
  --section-padding: 60px 20px;
  --card-gap: 28px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  /* 过渡 */
  --transition: 0.3s ease;
}

/* ---------- 重置 & 基础 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ---------- 通用工具类 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- 顶部通知栏 ---------- */
/* 原网站有通知栏，我们不需要，直接省略 */

/* =====================================================
   HEADER / 导航
   ===================================================== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 顶部社交栏 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  border-bottom: 1px solid var(--color-border);
}

.header-top .social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-top .social-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color var(--transition);
}
.header-top .social-links a:hover {
  color: var(--color-text);
}

/* 搜索框 */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  background: transparent;
  width: 160px;
  outline: none;
  transition: border-color var(--transition);
}
.header-search input::placeholder {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.header-search input:focus {
  border-bottom-color: var(--color-text);
}
.header-search button {
  color: var(--color-text-muted);
  padding: 4px;
}

/* Logo 区域 */
.header-brand {
  text-align: center;
  padding: 22px 30px 18px;
}

.site-logo {
  display: inline-block;
}

.site-logo .logo-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.site-logo .logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* 主导航 */
.main-nav {
  border-top: 1px solid var(--color-border);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
}

.main-nav li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--color-accent);
}

/* 下拉菜单 */
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(8px);
  z-index: 100;
}

.main-nav li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.main-nav .dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition);
}
.main-nav .dropdown a:last-child {
  border-bottom: none;
}
.main-nav .dropdown a:hover {
  color: var(--color-text);
  background: var(--color-bg-soft);
}

/* 汉堡菜单（移动端） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* 移动端导航遮罩 */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.active { display: block; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: #ccc;
  padding: 50px 30px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo .logo-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  font-weight: 400;
}
.footer-logo .logo-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-top: 4px;
  display: block;
}
.footer-logo p {
  margin-top: 16px;
  font-size: 13px;
  color: #999;
  line-height: 1.7;
}

.footer-nav h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav li a {
  font-size: 13px;
  color: #999;
  transition: color var(--transition);
}
.footer-nav li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}
.footer-bottom a {
  color: #888;
}
.footer-bottom a:hover { color: #ccc; }

/* =====================================================
   文章卡片 - 通用
   ===================================================== */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3; /* 400x600 竖版封面 */
  background: var(--color-bg-soft);
}

.article-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.article-card .card-category {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 14px;
  display: block;
}

.article-card .card-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.4;
  margin-top: 6px;
  color: var(--color-text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.article-card .card-title:hover {
  color: var(--color-accent);
}

.article-card .card-meta {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* =====================================================
   首页 - Hero 大图区域
   ===================================================== */
.hero-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 30px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--card-gap);
}

/* 主 Hero 卡片 */
.hero-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-main:hover img {
  transform: scale(1.03);
}

.hero-main .hero-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.hero-main .hero-cat {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.hero-main .hero-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: #fff;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* 副 Hero 文章列表 */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.hero-side .article-card {
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.hero-side .article-card .card-img-wrap {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
}

.hero-side .article-card .card-title {
  font-size: 13px;
}

/* =====================================================
   首页 - 特色文章网格（三列）
   ===================================================== */
.featured-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.section-divider span {
  color: var(--color-accent);
  font-size: 16px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

/* 首页分类导航带 */
.category-band {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0 30px;
}

.category-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-band-inner::-webkit-scrollbar { display: none; }

.category-band-inner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-right: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition);
  font-weight: 500;
}
.category-band-inner a:first-child {
  border-left: 1px solid var(--color-border);
}
.category-band-inner a:hover,
.category-band-inner a.active {
  color: var(--color-text);
  background: var(--color-bg);
}

/* =====================================================
   分类列表页
   ===================================================== */
.category-hero {
  background: var(--color-bg-soft);
  text-align: center;
  padding: 60px 30px 50px;
  border-bottom: 1px solid var(--color-border);
}

.category-hero .page-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.category-hero .cat-desc {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-family: var(--font-serif);
  font-style: italic;
}

/* 子分类标签栏 */
.sub-cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sub-cat-tabs a {
  padding: 8px 20px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-weight: 500;
  transition: all var(--transition);
}

.sub-cat-tabs a:hover,
.sub-cat-tabs a.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* 文章网格 - 分类页 */
.cat-articles-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 30px 60px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* =====================================================
   文章详情页
   ===================================================== */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 30px 30px;
  text-align: center;
}

.article-category-link {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.article-category-link:hover { color: var(--color-accent); }

.article-main-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 16px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}
.article-meta-bar .sep {
  color: var(--color-border);
}

/* 文章封面大图 */
.article-cover {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 30px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文章正文 */
.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 30px 80px;
  align-items: start;
}

.article-content {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 36px 0 14px;
  color: var(--color-text);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin: 28px 0 10px;
}
.article-content p { margin-bottom: 20px; }
.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content img {
  width: 100%;
  margin: 24px 0;
}
.article-content a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 16px 24px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
}

/* 食谱信息卡 */
.recipe-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 30px;
  margin: 30px 0;
}

.recipe-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.recipe-meta-item .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  display: block;
}
.recipe-meta-item .value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-text);
  margin-top: 4px;
  display: block;
}

.recipe-section h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.recipe-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.recipe-section ul li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  color: #444;
}
.recipe-section ul li:last-child { border-bottom: none; }
.recipe-section + .recipe-section { margin-top: 24px; }

.recipe-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.recipe-section ol li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: #444;
}
.recipe-section ol li:last-child { border-bottom: none; }
.recipe-section ol li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  border-radius: 50%;
  margin-top: 2px;
}

/* 侧边栏 */
.article-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-section {
  margin-bottom: 40px;
}

.sidebar-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* 侧边栏最新文章 */
.sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-article .s-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.sidebar-article .s-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.sidebar-article:hover .s-img img { transform: scale(1.06); }
.sidebar-article .s-title {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.sidebar-article:hover .s-title { color: var(--color-accent); }

/* =====================================================
   相关文章
   ===================================================== */
.related-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 30px;
  border-top: 1px solid var(--color-border);
}

/* =====================================================
   Privacy Policy 页
   ===================================================== */
.privacy-page {
  max-width: 760px;
  margin: 60px auto 80px;
  padding: 0 30px;
}

.privacy-page h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  margin-bottom: 12px;
}

.privacy-page .updated {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

.privacy-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 36px 0 14px;
}
.privacy-page p,
.privacy-page ul {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}
.privacy-page ul {
  padding-left: 24px;
  list-style: disc;
}
.privacy-page a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* =====================================================
   Loading 占位符
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 2 / 3;
}
.skeleton-text {
  height: 12px;
  margin: 10px 0;
}
.skeleton-text.wide { width: 90%; }
.skeleton-text.medium { width: 60%; }
.skeleton-text.narrow { width: 40%; }

/* =====================================================
   错误 / 空状态
   ===================================================== */
.empty-state {
  text-align: center;
  padding: 80px 30px;
  color: var(--color-text-muted);
}
.empty-state svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  opacity: 0.3;
}
.empty-state p {
  font-size: 15px;
  font-family: var(--font-serif);
  font-style: italic;
}

/* =====================================================
   搜索结果覆盖层
   ===================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 80px 30px 40px;
  overflow-y: auto;
}
.search-overlay.active { display: flex; }

.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 12px;
  width: 100%;
  max-width: 600px;
}
.search-overlay-form input {
  flex: 1;
  font-family: var(--font-display);
  font-size: 28px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text);
}
.search-overlay-form input::placeholder {
  color: var(--color-border);
}
.search-close {
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.search-results {
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  display: grid;
  gap: 20px;
}

.search-result-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.search-result-item .r-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-item .r-cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 5px;
}
.search-result-item .r-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}
.search-result-item .r-title:hover { color: var(--color-accent); }

/* =====================================================
   面包屑
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 30px 0;
}
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb .sep { color: var(--color-border); }

/* =====================================================
   Back to Top 按钮
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

/* =====================================================
   响应式布局
   ===================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-side {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-side .article-card {
    flex: 1 1 200px;
    flex-direction: column;
  }
  .hero-side .article-card .card-img-wrap {
    width: 100%;
  }

  .article-body-wrap {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* 导航折叠 */
  .main-nav > ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-bg);
    z-index: 999;
    padding: 80px 0 40px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: left 0.35s ease;
    overflow-y: auto;
  }
  .main-nav > ul.open {
    left: 0;
  }
  .main-nav > ul > li > a {
    padding: 14px 30px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
  }
  .main-nav .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--color-border);
    opacity: 1;
    pointer-events: auto;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav li.open .dropdown {
    display: block;
    max-height: 500px;
  }
  .main-nav .dropdown a {
    padding-left: 46px;
  }

  .nav-toggle { display: flex; }

  .header-top {
    padding: 8px 16px;
  }
  .header-brand {
    padding: 16px 16px 12px;
  }

  .hero-section,
  .featured-section,
  .cat-articles-section,
  .related-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .recipe-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .article-header { padding: 30px 16px 20px; }
  .article-cover { padding: 0 16px; }
  .article-body-wrap { padding: 20px 16px 60px; gap: 40px; }

  .search-overlay-form input { font-size: 20px; }

  .sub-cat-tabs { gap: 6px; }
  .sub-cat-tabs a { padding: 6px 14px; font-size: 10px; }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .category-band-inner a {
    padding: 16px 18px;
    font-size: 9px;
  }

  .hero-side {
    flex-direction: column;
  }
}

/* 正文区域 SVG 全局安全限制（防止任何第三方插件图标超大） */
.article-content svg {
  max-width: 24px;
  max-height: 24px;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  overflow: visible;
}

/* Tasty Recipes 内所有 SVG 强制限制为 16px */
.tasty-recipes svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 星级评分 SVG 保持原始比例 (18×17) */
.tasty-recipes svg.tasty-recipes-svg {
  width: 18px !important;
  height: 17px !important;
  max-width: 18px !important;
  max-height: 17px !important;
}

/* 隐藏打印/Instagram 分享按钮（前端站不需要） */
.tasty-recipes-buttons,
.tasty-recipes-print-button,
.tasty-recipes-instagram-button {
  display: none !important;
}

/* Tasty Recipes 卡片整体样式微调（保持与站点风格一致） */
.tasty-recipes {
  margin: 32px 0;
  border: 1px solid var(--color-border);
  padding: 24px 28px;
  background: var(--color-bg-soft);
  font-family: var(--font-body);
  font-size: 15px;
}

.tasty-recipes h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}


/* ─────────────────────────────────────────────────────
   修复2：移动端导航子分类下拉展开问题
   图1 所示：子分类展开后 position:absolute 浮在内容上方，
   且宽度超出屏幕。
   方案：移动端改为 position:static + max-height 动画。
   ───────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* 子分类下拉：改为流式布局，不再浮层 */
  .main-nav .dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--color-border) !important;
    background: var(--color-bg-soft) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease !important;
    display: block !important;
  }

  /* 父 li 加 .open 类后展开 */
  .main-nav li.has-dropdown.open .dropdown {
    max-height: 600px;
  }

  /* 子分类链接缩进样式 */
  .main-nav .dropdown li a {
    padding: 11px 24px 11px 44px !important;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    display: block;
    transition: color var(--transition), background var(--transition);
  }
  .main-nav .dropdown li a:hover {
    color: var(--color-text);
    background: var(--color-bg);
  }
  .main-nav .dropdown li:last-child a {
    border-bottom: none;
  }

  /* 父级菜单项：右侧加展开箭头 */
  .main-nav > ul > li.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav > ul > li.has-dropdown > a::after {
    content: '›';
    font-size: 20px;
    color: var(--color-text-muted);
    transition: transform 0.22s ease;
    margin-left: 6px;
    line-height: 1;
  }
  .main-nav > ul > li.has-dropdown.open > a::after {
    transform: rotate(90deg);
  }

  /* 侧滑菜单宽度保护，防止溢出屏幕 */
  #main-nav-list {
    width: 280px !important;
    max-width: 85vw !important;
    overflow-x: hidden !important;
    overflow-y: auto;
  }
}

.art-body img,
.art-body figure img,
.art-body div[style*="width"],
.art-body [width] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}