/* ===== AI Toolkit — Modern Light Theme ===== */

:root {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-header: rgba(255,255,255,0.85);
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #f59e0b;
  --border: #e2e8f0;
  --border-card: #f1f5f9;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --max-w: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", "Consolas", monospace;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); border-bottom-color: var(--primary); }

/* ===== Main ===== */
main { flex: 1; padding: 32px 0 48px; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 48px 0 36px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}
.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ===== Category ===== */
.category-section {
  margin-bottom: 36px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.category-header .cat-icon {
  font-size: 1.2rem;
}
.category-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.category-header .cat-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  background: var(--bg-card);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ===== Tool Grid ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.tool-card .tool-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
.tool-card .tool-info { flex: 1; min-width: 0; }
.tool-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.tool-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card .tool-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== Tool Page ===== */
.tool-page {
  max-width: 780px;
  margin: 0 auto;
}
.tool-page-header {
  margin-bottom: 24px;
}
.tool-page-header .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.tool-page-header .breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.tool-page-header .breadcrumb a:hover { text-decoration: underline; }
.tool-page-header .breadcrumb span { color: var(--text-tertiary); margin: 0 4px; }

.tool-page-header .tool-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.tool-page-header .tool-icon-title .icon-badge {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.tool-page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.tool-page-header .tool-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* ===== Tool Widget ===== */
.tool-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.tool-widget textarea,
.tool-widget input[type="text"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  line-height: 1.6;
}
.tool-widget textarea:focus,
.tool-widget input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.tool-widget textarea { min-height: 120px; }

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all .2s;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-tertiary);
  box-shadow: var(--shadow-sm);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-success { background: #10b981; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }

.output-area {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  min-height: 50px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 500px;
  overflow-y: auto;
  color: var(--text);
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stats-bar span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===== Tool Meta ===== */
.tool-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}
.tool-meta p { margin-bottom: 4px; }
.tool-meta p:last-child { margin-bottom: 0; }
.tool-meta strong { color: var(--text); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}
.footer-content { text-align: center; }
.footer-content p { font-size: 0.82rem; color: var(--text-tertiary); }
.footer-nav { margin-top: 12px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

/* ===== Content Pages (About, Privacy, etc.) ===== */
.content-page h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.page-content { line-height: 1.8; font-size: 0.95rem; color: var(--text); }
.page-content h2 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.page-content h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.page-content p { margin-bottom: 12px; }
.page-content ul, .page-content ol { margin-bottom: 12px; padding-left: 22px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { font-weight: 600; }
.page-content a { color: var(--primary); text-decoration: underline; }
.page-content code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }

/* ===== Sticky Bottom Ad ===== */
.ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  z-index: 9999;
  min-height: 100px;
}
.ad-sticky-bottom .ad-close-btn {
  position: absolute;
  right: 8px;
  top: 4px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.ad-sticky-bottom .ad-close-btn:hover { color: #fff; }
body { padding-bottom: 100px; } /* prevent content being hidden behind sticky ad */

/* ===== Ad Slot ===== */
.ad-slot { margin: 20px 0; min-height: 90px; }
.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  box-shadow: var(--shadow-sm);
}
.ad-placeholder-inner {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.7;
}

/* ===== Mode Toggle ===== */
.mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.mode-toggle .btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Blog Card on Homepage (matches tool-card style) ===== */
.blog-card-home {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.blog-card-home:hover {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 2px 12px rgba(99,102,241,.08);
}
.blog-card-home .tool-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.blog-card-home .tool-info h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-home .tool-info p {
  font-size: 0.82rem;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-home-date {
  font-size: 0.78rem;
  color: var(--text-tertiary, #9ca3af);
}
@media (max-width: 640px) {
  .blog-card-home { padding: 14px 16px; }
  .blog-card-home .tool-info h3 { font-size: 0.88rem; }
}

/* ===== Blog Pages ===== */
.blog-header {
  padding: 32px 0 24px;
}
.blog-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.blog-desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.blog-card:hover {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 2px 12px rgba(99,102,241,.08);
}
.blog-card-link {
  display: block;
  padding: 22px 24px;
  text-decoration: none;
}
.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 0 0 6px;
}
.blog-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 10px;
  line-height: 1.6;
}
.blog-card-meta {
  font-size: 0.82rem;
  color: var(--text-tertiary, #9ca3af);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary, #9ca3af);
}
.blog-empty p { font-size: 1rem; }

/* Blog Post Single */
.blog-post { padding: 24px 0 48px; }
.blog-post-header { margin-bottom: 28px; }
.blog-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary, #9ca3af);
  margin-bottom: 16px;
}
.blog-breadcrumb a { color: var(--primary, #6366f1); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb span { margin: 0 6px; }
.blog-post-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.blog-post-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary, #9ca3af);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.blog-post-desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.6;
  margin: 0;
  padding: 14px 18px;
  background: #f8f9fb;
  border-radius: 8px;
  border-left: 3px solid var(--primary, #6366f1);
}
.blog-post-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary, #374151);
}
.blog-post-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.blog-post-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 24px 0 10px;
}
.blog-post-content p { margin: 10px 0; }
.blog-post-content ul, .blog-post-content ol { margin: 10px 0; padding-left: 22px; }
.blog-post-content li { margin: 4px 0; }
.blog-post-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.blog-post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}
.blog-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.blog-post-content a { color: var(--primary, #6366f1); }
.blog-post-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  background: #f8f9fb;
  border-left: 3px solid var(--primary, #6366f1);
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary, #6b7280);
}
.blog-post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.blog-nav a {
  color: var(--primary, #6366f1);
  text-decoration: none;
  font-size: 0.92rem;
  max-width: 45%;
}
.blog-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .blog-card-link { padding: 16px 18px; }
  .blog-post-header h1 { font-size: 1.25rem; }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.92rem; }
  .hero-stats { flex-wrap: wrap; gap: 10px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 16px 18px; }
  .tool-widget { padding: 16px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .tool-page-header h1 { font-size: 1.2rem; }
  .site-header .container { height: 56px; }
}

/* ===== Tool Content (Markdown body) ===== */
.tool-content {
  margin-top: 32px;
  padding: 24px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text-secondary, #374151);
}
.tool-content h2 {
  font-size: 1.15rem;
  color: var(--primary, #6366f1);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.tool-content h2:first-child {
  margin-top: 0;
}
.tool-content p {
  margin: 8px 0;
}
.tool-content strong {
  color: var(--text-primary, #111827);
}
.tool-content a {
  color: var(--primary, #6366f1);
  text-decoration: none;
}
.tool-content a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .tool-content {
    padding: 16px;
    margin-top: 24px;
  }
}

/* ===== Section Block (Homepage) ===== */
.section-block {
  margin-bottom: 36px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-icon {
  font-size: 1.3rem;
}
.section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.section-more {
  font-size: 0.82rem;
  color: var(--primary, #6366f1);
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.section-more:hover {
  background: #dde3fc;
}

/* ===== Post List ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card {
  display: block;
  padding: 18px 22px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.post-card:hover {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 2px 12px rgba(99,102,241,.08);
}
.post-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 0 0 4px;
}
.post-card-info p {
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-date {
  font-size: 0.8rem;
  color: var(--text-tertiary, #9ca3af);
}
@media (max-width: 640px) {
  .post-card { padding: 14px 16px; }
}

/* ===== Blog Listing Grid (blog/list.html) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.blog-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-grid-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-grid-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #a78bfa, #c084fc);
  flex-shrink: 0;
}
.blog-grid-body {
  padding: 20px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-grid-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-grid-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-card);
}
.blog-grid-date {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.blog-grid-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-grid-tag {
  font-size: 0.72rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid-body { padding: 14px 16px 14px; }
  .blog-grid-body h2 { font-size: 0.98rem; }
}

/* ===== Tool Page Related Blog Posts ===== */
.tool-related-posts {
  margin: 36px 0 20px;
}
.tool-related-posts h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.related-post-card {
  display: block;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.related-post-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-post-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-date {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}
@media (max-width: 640px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}

/* ===== AI 评测详情页 — duckdblab 风格（左侧栏 + 右侧正文） ===== */
.main-container.flex {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* 左侧栏 */
.sidebar.left-sidebar.sticky {
  width: 260px;
  flex-shrink: 0;
  padding: 40px 0;
}
.sidebar.left-sidebar.sticky .sidebar-widget {
  position: sticky;
  top: 24px;
}

/* 目录 widget */
.widget-toc {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.widget-content {
  padding: 8px 0;
}
.toc-nav {
  font-size: 13px;
  line-height: 1.7;
}
.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-nav li {
  margin: 0;
}
.toc-nav a {
  display: block;
  padding: 4px 16px;
  color: #475569;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.12s;
  font-size: 13px;
}
.toc-nav a:hover {
  color: #4338ca;
  border-left-color: #6366f1;
  background: #f8fafc;
}
.toc-nav ul ul a {
  padding-left: 28px;
  font-size: 12px;
  color: #94a3b8;
}

/* 正文区域 */
.main.full-width {
  flex: 1;
  min-width: 0;
  padding: 40px 0 40px 40px;
}
.main-article {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.has-image .article-image {
  width: 100%;
  background: #f8fafc;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.has-image .article-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.article-details {
  padding: 28px 32px 20px;
}
.article-category {
  margin-bottom: 12px;
}
.article-category a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.article-title-wrapper {
  margin-bottom: 12px;
}
.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  margin: 0 0 8px;
}
.article-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #94a3b8;
  font-size: 13px;
}
.inline-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 正文内容 */
.article-content {
  padding: 8px 32px 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2ff;
  color: #1e293b;
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #334155;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content .table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-content thead {
  background: #1e293b;
  color: #fff;
}
.article-content th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.article-content td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.article-content tbody tr:last-child td {
  border-bottom: none;
}
.article-content tbody tr:nth-child(even) {
  background: #fafafa;
}
.article-content ol, .article-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.article-content li {
  margin-bottom: 6px;
}
.article-content strong {
  font-weight: 600;
  color: #1e293b;
}
.article-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #be123c;
}
.article-content .highlight {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
}
.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 10px;
}
.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.article-content blockquote {
  border-left: 4px solid #6366f1;
  padding: 14px 20px;
  margin: 20px 0;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #475569;
}
.article-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* 文章导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-top: 1px solid #e2e8f0;
}
.article-nav-link {
  font-size: 14px;
  color: #6366f1;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}
.article-nav-link:hover {
  background: #eef2ff;
}

/* 移动端适配 */
@media (max-width: 900px) {
  .main-container.flex {
    flex-direction: column;
  }
  .sidebar.left-sidebar.sticky {
    width: 100%;
    padding: 20px 0 0;
  }
  .sidebar.left-sidebar.sticky .sidebar-widget {
    position: static;
  }
  .main.full-width {
    padding: 0 0 20px;
  }
  .article-details { padding: 20px; }
  .article-content { padding: 0 20px 20px; }
  .article-title { font-size: 1.25rem; }
  .article-nav { padding: 16px 20px; }
}
@media (max-width: 640px) {
  .article-content { font-size: 15px; }
  .article-content th, .article-content td { padding: 8px 10px; font-size: 0.8rem; }
}

/* ===== Tool Interaction Bar (收藏/分享/使用次数) ===== */
.tool-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tool-usage {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tool-fav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tool-fav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tool-fav-btn.is-fav {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.tool-fav-btn .fav-icon { font-size: 18px; line-height: 1; }

.tool-share-group {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.tool-share-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tool-share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* 相关工具 */
.tool-related-tools {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.tool-related-tools h2 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .tool-actions-bar { flex-direction: column; align-items: stretch; }
  .tool-share-group { margin-left: 0; justify-content: center; }
  .tool-share-btn { flex: 1; text-align: center; }
}

/* ===== Category Filter Bar ===== */
.cat-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cat-filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font);
  transition: all 0.2s;
}
.cat-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cat-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== Hot Tools Section (List Page) ===== */
.hot-tools-section {
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius);
  border: 1px solid #f59e0b;
}
.hot-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.hot-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  border: 1px solid #fde68a;
  transition: all 0.2s;
}
.hot-tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.hot-tool-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hot-tool-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hot-tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-tool-usage {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ===== Hot Tools Inline (Tool Page) ===== */
.hot-tools-inline {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hot-tools-inline h2 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hot-tools-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* ===== Header Nav Highlight ===== */
.nav-highlight {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}
.nav-highlight:hover {
  opacity: 0.9;
  color: white !important;
}

/* ============================================================
   🎯 Header Layout v3 — search + theme toggle + hamburger
   ============================================================ */
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Search Box ── */
.search-box {
  position: relative;
  flex: 1;
  max-width: 260px;
  margin: 0 12px;
}
.search-box input {
  width: 100%;
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--bg-card);
}
.search-box .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0.5;
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 2px 4px;
  line-height: 1;
  z-index: 1;
}

/* ── Dark Mode Toggle ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   🌗 Dark Mode
   ============================================================ */
html.dark-mode {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-header: rgba(15,23,42,0.88);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-light: #1e1b4b;
  --accent: #fbbf24;
  --border: #334155;
  --border-card: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
}
html.dark-mode .nav-highlight {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}
html.dark-mode .hot-tools-section {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%) !important;
  border-color: #78350f !important;
}
html.dark-mode .hot-tool-card {
  background: #1e293b !important;
  border-color: #374151 !important;
}
html.dark-mode .hot-tool-card:hover {
  border-color: #6366f1 !important;
}
html.dark-mode img {
  opacity: 0.85;
  transition: opacity 0.3s;
}
html.dark-mode img:hover { opacity: 1; }

/* ============================================================
   📱 Responsive Navigation
   ============================================================ */
@media (max-width: 900px) {
  .search-box { max-width: 200px; margin: 0 8px; }
}
@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    z-index: 99;
  }
  .main-nav.open {
    max-height: 400px;
    padding: 12px 24px 16px;
  }
  .main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .main-nav a:last-child { border-bottom: none; }
  .search-box { max-width: 160px; }
  .search-box input { font-size: 0.78rem; padding: 6px 28px 6px 10px; }
  .header-left .logo { font-size: 1rem; }
}
@media (max-width: 480px) {
  .search-box { max-width: 120px; }
  .header-right { gap: 4px; }
  .theme-toggle { width: 30px; height: 30px; font-size: 0.85rem; }
}


/* ── Search Dropdown ── */
.search-box{ position:relative }
.search-dropdown{ display:none; position:absolute; top:100%; left:0; right:0;
  background:#1e1e3a; border:1px solid #2a2a4a; border-radius:12px;
  margin-top:4px; max-height:360px; overflow-y:auto; z-index:1000;
  box-shadow:0 8px 24px rgba(0,0,0,0.4) }
.search-dropdown.active{ display:block }
.search-empty{ padding:16px; text-align:center; color:#666; font-size:13px }
.search-result-item{ display:flex; align-items:center; padding:10px 14px;
  text-decoration:none; color:#ccc; transition:background .15s; border-bottom:1px solid #2a2a4a }
.search-result-item:last-child{ border-bottom:none }
.search-result-item:hover{ background:#2a2a4a }
.sr-icon{ font-size:18px; min-width:28px; text-align:center; margin-right:8px }
.sr-title{ flex:1; font-size:13px; color:#e0e0e0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.sr-cat{ font-size:10px; color:#4fc3f7; background:rgba(79,195,247,0.12); padding:2px 8px; border-radius:8px; margin-left:8px; white-space:nowrap }

/* ============================================================
   📰 Daily Page (AI 行业日报) — matching 198007.xyz/daily/
   ============================================================ */
.daily-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.daily-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
}
.daily-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(129,140,248,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.daily-hero-content {
  position: relative;
  z-index: 1;
}
.daily-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #c7d2fe;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.daily-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.daily-hero-desc {
  font-size: 1.1rem;
  color: #a5b4fc;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 36px;
}
.daily-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.daily-stat {
  text-align: center;
}
.daily-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.daily-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #a5b4fc;
  margin-top: 4px;
}

/* ── How It Works ── */
.daily-how {
  padding: 70px 0;
  background: var(--bg);
}
.daily-how h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 44px;
  color: var(--text);
}
.daily-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.daily-how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.daily-how-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.daily-how-card .how-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.daily-how-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.daily-how-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Issues List ── */
.daily-issues {
  padding: 60px 0 80px;
  background: var(--bg-card);
}
.daily-issues h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text);
}
.daily-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.daily-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.daily-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.daily-card-date {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 16px 8px;
  min-height: 100px;
}
.daily-card-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.daily-card-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}
.daily-card-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}
.daily-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily-card-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.daily-card-arrow {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.2s;
}
.daily-card:hover .daily-card-arrow {
  transform: translateX(4px);
}
.daily-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 1rem;
}

/* ── CTA ── */
.daily-cta {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 50%, #24243e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.daily-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.daily-cta .daily-container {
  position: relative;
  z-index: 1;
}
.daily-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: 800;
  color: #fff;
}
.daily-cta > .daily-container > p {
  color: rgba(255,255,255,0.65);
  margin: 0 0 32px;
  font-size: 1rem;
}
.daily-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.daily-qr {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  object-fit: cover;
}
.daily-cta-right {
  text-align: left;
}
.daily-cta-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.daily-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}
.daily-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99,102,241,0.3);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.daily-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.daily-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.daily-btn:hover {
  transform: translateY(-2px);
}
.daily-btn-outline {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.daily-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

/* ── Dark Mode Overrides ── */
html.dark-mode .daily-hero {
  background: linear-gradient(135deg, #0f0a2e 0%, #1a1454 40%, #2a1f8a 100%);
}
html.dark-mode .daily-hero-badge {
  background: rgba(255,255,255,0.08);
}
html.dark-mode .daily-card-date {
  background: var(--primary);
}

@media (max-width: 768px) {
  .daily-cta { padding: 40px 16px; }
  .daily-cta-content { flex-direction: column; gap: 24px; }
  .daily-qr { width: 140px; height: 140px; }
  .daily-cta-right { text-align: center; }
  .daily-cta-steps { align-items: center; }
  .daily-cta-buttons { justify-content: center; }
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .daily-how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .daily-hero { padding: 60px 16px 44px; }
  .daily-hero h1 { font-size: 2rem; }
  .daily-hero-desc { font-size: 0.95rem; }
  .daily-hero-stats { gap: 24px; }
  .daily-stat-num { font-size: 1.4rem; }
  .daily-issues { padding: 40px 0 60px; }

  .daily-card { flex-direction: column; }
  .daily-card-date {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px;
    min-height: auto;
    justify-content: flex-start;
  }
  .daily-card-day { font-size: 1.2rem; }
  .daily-card-month { margin-top: 0; font-size: 0.7rem; }
  .daily-card-body { min-height: auto; padding: 12px 16px; }
  .daily-card-body h3 { font-size: 0.9rem; }
  .daily-card-body p { font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .daily-how-grid { grid-template-columns: 1fr; }
  .daily-how { padding: 44px 0; }
  .daily-hero h1 { font-size: 1.6rem; }
}
