/* ============================================
   热点读书网 — 主题样式
   基于纸质米+森林绿+暖琥珀设计系统
   ============================================ */

/* ----- Reset & Variables ----- */
:root {
  --paper: #FAF6EE;
  --green: #14453A;
  --green-light: #1A5B4C;
  --amber: #BF7E36;
  --amber-light: #D4994A;
  --text: #1D2B25;
  --text-light: #5A6B63;
  --text-muted: #8A9A93;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --border: #E8E2D8;
  --border-light: #F0ECE4;
  --red: #C0392B;
  --star: #E6A817;
  --shadow: 0 1px 4px rgba(20,69,58,0.06);
  --shadow-md: 0 4px 16px rgba(20,69,58,0.08);
  --shadow-lg: 0 8px 32px rgba(20,69,58,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber); }

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

button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ----- Header ----- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,238,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 700;
  color: var(--green); white-space: nowrap;
}
.logo-icon {
  width: 34px; height: 34px; background: var(--green); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: 16px; font-weight: 700;
}
.nav-wrap { display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav a {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px;
  color: var(--text-light); font-weight: 500; transition: all .2s;
}
.nav a:hover, .nav .current-menu-item a, .nav .current_page_item a {
  background: var(--green); color: var(--paper);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-toggle { cursor: pointer; user-select: none; }
.nav-dropdown .arrow { font-size: 10px; margin-left: 4px; transition: transform .2s; display: inline-block; }
.nav-dropdown:hover .arrow { transform: rotate(180deg); }
.nav-dropdown .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 180px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; list-style: none; z-index: 200;
  border: 1px solid var(--border);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu li { display: block; }
.nav-dropdown .dropdown-menu a {
  display: block; padding: 10px 16px; border-radius: var(--radius-sm);
  white-space: nowrap; font-size: 14px;
}
.nav-dropdown .dropdown-menu a:hover {
  background: var(--border-light); color: var(--green);
}
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ----- Mobile Nav Toggle ----- */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  padding: 4px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: all .3s; border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  border: none; transition: all .2s;
}
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-light); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--paper); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-light); }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: var(--border-light); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ----- Download Button ([dl] shortcode) ----- */
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600;
  background: var(--green); color: var(--paper); border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.dl-btn:hover { background: var(--green-light); color: var(--paper); transform: translateY(-1px); }
.dl-btn::before {
  content: ''; display: inline-block; width: 18px; height: 18px;
  background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
}

/* ----- Search ----- */
.search-box {
  display: flex; align-items: center; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 24px;
  padding: 8px 16px; gap: 8px; transition: all .2s;
}
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,69,58,0.1); }
.search-box input {
  border: none; background: transparent; outline: none; font-size: 14px;
  width: 200px; color: var(--text); font-family: inherit;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box .search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.search-hero {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  padding: 60px 24px; text-align: center;
}
.search-hero h1 { color: var(--paper); font-size: 28px; font-family: "Noto Serif SC", serif; margin-bottom: 24px; }
.search-hero .search-box { max-width: 560px; margin: 0 auto; padding: 12px 20px; }
.search-hero .search-box input { width: 100%; font-size: 16px; }

/* ----- Page Header (non-home) ----- */
.page-header {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  padding: 48px 24px; text-align: center;
}
.page-header h1 { color: var(--paper); font-family: "Noto Serif SC", serif; font-size: 28px; margin-bottom: 8px; }
.page-header p { color: rgba(250,246,238,0.8); font-size: 15px; }

/* ----- Breadcrumb ----- */
.breadcrumb {
  display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted);
  padding: 16px 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text); }
.breadcrumb .sep { color: var(--border); }

/* ----- Section Title ----- */
.section-title {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.section-title h2 {
  font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 700;
  color: var(--text); white-space: nowrap;
}
.section-title .line { flex: 1; height: 1px; background: var(--border); }
.section-title .more { font-size: 14px; color: var(--amber); white-space: nowrap; }

/* ----- Book Cards ----- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s ease; cursor: pointer; display: block;
  min-width: 0; max-width: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-cover {
  aspect-ratio: 3/4; background: linear-gradient(135deg, #2A5C4F, #3A7566);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover .cover-text {
  color: rgba(255,255,255,0.85); text-align: center;
  font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 700;
  line-height: 1.4; word-break: break-all; padding: 24px;
}
.card-body { padding: 16px; }
.card-title {
  font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 600;
  line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Book Detail ----- */
.article-hero {
  display: flex; gap: 32px; margin-bottom: 32px; align-items: flex-start;
}
.article-cover {
  width: 200px; flex-shrink: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.article-cover img { width: 100%; height: auto; display: block; }
.article-cover .cover-placeholder {
  aspect-ratio: 3/4; width: 100%;
  background: linear-gradient(135deg, #2A5C4F, #3A7566);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-family: "Noto Serif SC", serif;
  font-size: 28px; font-weight: 700; padding: 24px; text-align: center;
}
.article-info { flex: 1; }
.article-info h1 { font-family: "Noto Serif SC", serif; font-size: 26px; margin-bottom: 8px; }
.article-info .card-tags { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.article-info .card-tags .tag {
  display: inline-block; font-size: 13px; padding: 4px 12px;
  border-radius: var(--radius-xs); background: var(--border-light); color: var(--text-light);
}

.content-section {
  background: var(--card-bg); border-radius: var(--radius); padding: 28px 32px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.content-section h2 {
  font-family: "Noto Serif SC", serif; font-size: 20px; margin-bottom: 16px;
}
.content-section h3 { font-size: 16px; margin: 16px 0 8px; }
.content-section p { margin-bottom: 12px; line-height: 1.85; }
.content-section ul, .content-section ol { margin: 12px 0 12px 24px; line-height: 1.85; }
.content-section blockquote {
  background: rgba(20,69,58,0.04); border-left: 3px solid var(--green);
  padding: 12px 16px; margin: 12px 0; border-radius: 0 8px 8px 0;
  color: var(--text-light); font-size: 14px;
}

/* ----- Related Books ----- */
.related-books { margin-top: 32px; }
.related-books .card-grid { grid-template-columns: repeat(3, 1fr); }

/* ----- Sidebar & Rankings ----- */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 100%; }
.sidebar-widget {
  background: var(--card-bg); border-radius: var(--radius-sm); padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar-widget h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li a { color: var(--text); }
.sidebar-widget li a:hover { color: var(--amber); }
.sidebar-widget .count {
  float: right; color: var(--text-muted); font-size: 12px;
  background: var(--paper); padding: 1px 8px; border-radius: 12px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  display: inline-block; padding: 4px 12px; background: var(--paper);
  border-radius: 16px; font-size: 13px; color: var(--text-light);
}
.tag-cloud a:hover { background: var(--green); color: var(--paper); }

.rank-list { list-style: none; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  width: 24px; height: 24px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  flex-shrink: 0; color: var(--white);
}
.rank-num.top1 { background: #E6A817; }
.rank-num.top2 { background: #A0A0A0; }
.rank-num.top3 { background: #CD7F32; }
.rank-num.normal { background: var(--border); color: var(--text-muted); }
.rank-info { flex: 1; min-width: 0; }
.rank-info .rank-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info .rank-meta { font-size: 12px; color: var(--text-muted); }

/* Hot row layout */
.hot-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; }
.hot-cards { grid-template-columns: repeat(2, 1fr); }

/* ----- Category Cards ----- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); text-align: center; transition: all .3s ease; display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-icon { font-size: 32px; margin-bottom: 12px; }
.cat-name { font-family: "Noto Serif SC", serif; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.cat-count { font-size: 13px; color: var(--text-muted); }

/* ----- Pagination ----- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: 14px;
  padding: 0 10px;
}
.pagination a.page-numbers { color: var(--text); border: 1px solid var(--border); }
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); color: var(--paper); border-color: var(--green); }
.pagination .dots { color: var(--text-muted); border: none; }

/* ----- Footer ----- */
.footer {
  background: var(--green); color: rgba(250,246,238,0.7);
  padding: 48px 24px 32px; margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1200px; margin: 0 auto 32px;
}
.footer-col h4 { color: var(--paper); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(250,246,238,0.6); font-size: 13px; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; text-align: center;
  padding-top: 24px; border-top: 1px solid rgba(250,246,238,0.1);
  font-size: 12px;
}

/* ----- Hero Area ----- */
.hero {
  background: linear-gradient(135deg, var(--green), #0D352D);
  padding: 80px 24px; text-align: center; color: var(--paper);
}
.hero h1 { font-family: "Noto Serif SC", serif; font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.hero p { color: rgba(250,246,238,0.8); font-size: 16px; max-width: 560px; margin: 0 auto 24px; }
.hero .search-box { max-width: 480px; margin: 0 auto 32px; }
.hero .search-box input { width: 100%; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 700; font-family: "Noto Serif SC", serif; }
.hero-stat .label { font-size: 13px; color: rgba(250,246,238,0.6); margin-top: 4px; }

/* ----- Features ----- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 48px 0; }
.feature-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 24px;
  text-align: center; box-shadow: var(--shadow);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-light); }

/* ----- Static Page ----- */
.static-page { max-width: 800px; margin: 0 auto; padding: 48px 0; }
.static-page h1 { font-family: "Noto Serif SC", serif; font-size: 28px; margin-bottom: 24px; }
.static-page h2 { font-family: "Noto Serif SC", serif; font-size: 22px; margin: 32px 0 12px; }
.static-page h3 { font-size: 17px; margin: 24px 0 8px; }
.static-page p { margin-bottom: 12px; line-height: 1.85; }
.static-page ul, .static-page ol { margin: 12px 0 12px 24px; line-height: 1.85; }
.static-page li { margin-bottom: 6px; }
.static-page .page-content { line-height: 1.85; }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 600; font-size: 16px;
}
.faq-q:hover { color: var(--green); }
.faq-q .arrow { transition: transform .3s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px 18px; display: none; color: var(--text-light); font-size: 14px; line-height: 1.85; }
.faq-item.open .faq-a { display: block; }

/* ----- 404 ----- */
.not-found { text-align: center; padding: 80px 24px; }
.not-found .code { font-size: 120px; font-weight: 700; color: var(--border); line-height: 1; font-family: "Noto Serif SC", serif; }
.not-found h2 { font-size: 24px; margin: 16px 0 8px; }
.not-found p { color: var(--text-light); margin-bottom: 24px; }
.not-found .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ----- Filter Bar ----- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filter-bar .form-select {
  width: auto; min-width: 140px; padding: 8px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: var(--white); color: var(--text);
}
.filter-bar .form-select:focus { outline: none; border-color: var(--green); }
.result-count { font-size: 14px; color: var(--text-muted); }

/* ----- Search Footer Note ----- */
.search-footer-note { text-align: center; padding: 16px 0; color: var(--text-muted); font-size: 14px; }

/* ----- Comments ----- */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); }
.comment-meta .avatar { border-radius: 50%; width: 40px; height: 40px; }
.comment-author { font-weight: 600; color: var(--text); }
.comment-content { font-size: 14px; line-height: 1.75; }
.comment-content p { margin-bottom: 8px; }
.comment-reply-link { font-size: 13px; color: var(--amber); }
#respond { margin-top: 24px; }
.comment-respond h3 { font-size: 18px; margin-bottom: 16px; }
.comment-form-comment { margin-bottom: 12px; }
.comment-form-comment textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: var(--white); color: var(--text); resize: vertical; min-height: 120px;
}
.comment-form-comment textarea:focus { outline: none; border-color: var(--green); }
.form-submit { margin-top: 12px; }

/* ----- Search Form (WP) ----- */
.search-form { display: flex; gap: 0; }
.header-actions .search-form label { flex: 1; }
.header-actions .search-form .search-field {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 24px 0 0 24px;
  font-size: 14px; font-family: inherit; outline: none; width: 160px;
}
.header-actions .search-form .search-submit {
  padding: 7px 14px; background: var(--green); color: var(--paper); border: none;
  border-radius: 0 24px 24px 0; cursor: pointer; font-size: 14px;
}

/* ----- Screen Reader ----- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ----- Utility ----- */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero { flex-direction: column; }
  .article-cover { width: 160px; margin: 0 auto; }
  .nav-toggle { display: flex; }
  .nav-wrap { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(250,246,238,0.98); backdrop-filter: blur(12px); padding: 16px 24px;
    border-bottom: 1px solid var(--border); flex-direction: column; }
  .nav-wrap.open { display: flex; }
  .nav { flex-direction: column; width: 100%; gap: 4px; }
  .nav a { display: block; padding: 12px 16px; }
  .nav-dropdown .dropdown-menu { position: static; display: none; box-shadow: none; border: none; padding: 0 0 0 12px; background: transparent; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown .dropdown-menu a { padding: 10px 16px; }
  .hot-row { grid-template-columns: 1fr; }
  .header-inner { gap: 4px; }
  .header-actions .search-box { display: none; }
  .header-actions .search-form .search-field { width: 100px; }
  .card img { max-width: 100%; height: auto; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .search-box input { width: 120px; }
  .container { padding: 0 16px; }
  .static-page { padding: 24px 0; }
  .related-books .card-grid { grid-template-columns: 1fr; }
  .hot-cards { grid-template-columns: 1fr; }
  .header-inner { gap: 4px; }
  .header-actions .search-box { display: none; }
  .card-cover img { max-width: 100%; height: auto; }
  .article-cover img { max-width: 100%; height: auto; }
}
