  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=JetBrains+Mono:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&display=swap');

  :root {
    --bg-primary: #faf8f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --text-muted: #71717a;
    --accent: #2563eb;
    --accent-soft: #3b82f6;
    --gold: #eab308;
    --border: rgba(0,0,0,0.06);
    --float-bg: #fff;
    --float-border: rgba(0,0,0,0.06);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: auto; background: var(--bg-primary); }
  body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ── Responsive Container ── */
  .wide-container {
    width: min(96%, 2200px);
    margin-left: auto; margin-right: auto;
    padding-left: max(12px, 1.5vw); padding-right: max(12px, 1.5vw);
  }

  /* ── Custom Scrollbar ── */
  .custom-scrollbar { position: fixed; right: 6px; top: 10%; bottom: 10%; width: 4px; z-index: 9999; transition: width 0.35s cubic-bezier(0.25,0.1,0.25,1); }
  .custom-scrollbar-track { width: 100%; height: 100%; border-radius: 2px; background: rgba(0,0,0,0.06); transition: background 0.35s; }
  .custom-scrollbar-thumb { position: absolute; top: 0; width: 100%; min-height: 20px; border-radius: 2px; background: rgba(0,0,0,0.15); transition: background 0.35s, width 0.35s cubic-bezier(0.25,0.1,0.25,1); cursor: pointer; }
  .custom-scrollbar:hover { width: 8px; }
  .custom-scrollbar:hover .custom-scrollbar-thumb { background: rgba(0,0,0,0.3); }
  .custom-scrollbar.dragging { width: 8px; }
  .custom-scrollbar.dragging .custom-scrollbar-thumb { background: rgba(0,0,0,0.4); }

  /* ── Smooth Scroll ── */
  .smooth-scroll-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
  .smooth-scroll-container::-webkit-scrollbar { display: none; }
  .smooth-scroll-content { /* will-change removed: breaks fixed nav */ }

  /* ── Floating Glass Panel ── */
  .float-panel {
    background: #fff;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(0,0,0,0.02);
  }

  /* ── Glass Morphism ── */
  .glass-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 4px 16px rgba(0,0,0,0.04), 0 8px 40px rgba(0,0,0,0.03);
    transition: all 0.55s cubic-bezier(0.25,0.1,0.25,1);
    position: relative; overflow: hidden;
  }
  .glass-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08), 0 20px 64px rgba(0,0,0,0.06);
    border-color: rgba(201,164,75,0.25);
  }

  /* ── Capsule Button ── */
  .btn-capsule { display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:9999px;font-size:14px;font-weight:500;border:1px solid rgba(0,0,0,0.08);background:rgba(0,0,0,0.02);color:var(--text-secondary);transition:all .35s;white-space:nowrap;text-decoration:none; }
  .btn-capsule:hover { border-color:rgba(37,99,235,0.3);color:#1a1a1a;background:rgba(37,99,235,0.04); }
  .btn-capsule.accent { background:var(--accent);border-color:var(--accent);font-weight:600;color:#fff; }
  .btn-capsule.accent:hover { background:#3b82f6; }
  .btn-capsule.nav-active { background:rgba(37,99,235,0.1);border-color:rgba(37,99,235,0.3);color:#2563eb;font-weight:600; }

  .btn-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.06);
    color: #555;
    transition: all 0.3s; 
  }
  .btn-icon:hover { background: rgba(255,255,255,0.12); transform: scale(1.1); }
  .btn-icon.active { background: var(--accent); border-color: var(--accent); }

  /* ── Toggle Button ── */
  .sub-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 9999px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03); color: #888;
     transition: all 0.35s cubic-bezier(0.25,0.1,0.25,1); user-select: none;
  }
  .sub-toggle .toggle-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #bbb;
    transition: all 0.35s cubic-bezier(0.25,0.1,0.25,1);
  }
  .sub-toggle.active { background: rgba(226,61,85,0.1); border-color: rgba(226,61,85,0.35); color: var(--accent); }
  .sub-toggle.active .toggle-dot { background: var(--accent); box-shadow: 0 0 8px rgba(226,61,85,0.3); }
  .sub-toggle:hover { border-color: rgba(0,0,0,0.2); }

  /* ── Paper Panel (premium newsprint surface) ── */
  .paper-panel {
    background: #faf7f2;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  }

  /* ── Article Content — Editorial Grade ── */
  .article-panel {
    padding: 48px 52px;
    font-family: 'Source Serif 4', 'Noto Serif SC', 'Times New Roman', serif;
    line-height: 1.95;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 405;
    -webkit-font-smoothing: antialiased;
    cursor: default; user-select: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  .article-panel h2 {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-size: 38px; font-weight: 800; line-height: 1.25;
    color: #0a0a0a; margin-bottom: 8px;
    letter-spacing: -0.02em;
  }
  .article-panel .article-meta {
    font-family: 'Inter', sans-serif; font-size: 13px;
    color: #8c8c8c; margin-bottom: 36px;
    display: flex; align-items: center; gap: 14px;
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
  }
  .article-panel p {
    margin-bottom: 28px;
    text-indent: 2em;
  }
  .article-panel p:first-of-type {
    text-indent: 0;
  }
  .article-panel p:first-of-type {
    font-size: 24px; line-height: 1.85;
    color: #111;
    font-weight: 430;
  }
  .article-panel p:first-of-type::first-letter {
    font-size: 4.2em; font-weight: 700; float: left;
    line-height: 0.82; margin-right: 12px; margin-top: 2px;
    color: #1a1a1a;
    font-family: 'Playfair Display', 'Source Serif 4', serif;
  }
  .key-word {
    background: rgba(251,191,36,0.2);
    padding: 1px 5px; border-radius: 3px;
    font-weight: 600; cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1.5px solid rgba(234,179,8,0.35);
  }
  .key-word:hover { background: rgba(251,191,36,0.38); }
    padding: 0;
    border-radius: 0;
     position: relative;
    transition: all 0.35s cubic-bezier(0.25,0.1,0.25,1);
  }
    display: inline-block; min-width: 60px;
    border-bottom: 2px solid rgba(0,0,0,0.35);
    margin: 0 4px; padding: 0 8px;
    transition: all 0.35s cubic-bezier(0.25,0.1,0.25,1);
    vertical-align: -1px;
  }
    border-bottom-color: transparent; text-indent: 0;
    font-weight: 600; min-width: auto; padding: 1px 5px; margin: 0;
    background: rgba(251,191,36,0.28);
    border-radius: 4px;
  }

  /* ── Notes Panel ── */
  .notes-panel {
    padding: 24px 20px 20px 20px;
    display: flex; flex-direction: column; gap: 0;
    height: 100%;
    overflow: hidden;
  }
  .notes-section-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex-shrink: 0; margin-bottom: 14px;
  }
  .notes-section-title::after { display: none; }
  .notes-scroll {
    flex: 1 1 0%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
  }
  .notes-scroll::-webkit-scrollbar { width: 3px; }
  .notes-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
  .note-card {
    padding: 12px 10px 12px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s, padding 0.3s;
    flex-shrink: 0; cursor: pointer;
    position: relative;
  }
  .note-card:last-child { border-bottom: none; padding-bottom: 16px; }
  .note-card:hover { background: rgba(0,0,0,0.018); padding-left: 16px; }
  .note-card.flash { background: rgba(234,179,8,0.1); }
  .note-card .note-word {
    font-family: 'Source Serif 4', 'Noto Sans SC', serif;
    font-size: 17px; font-weight: 500;
    letter-spacing: 0.01em;
    display: flex; align-items: baseline; gap: 6px;
    line-height: 1.4;
  }
  .note-card .note-word .note-dot {
    display: inline-block; width: 5px; height: 5px;
    border-radius: 50%; flex-shrink: 0;
    align-self: center; margin-right: 2px;
  }
  .note-card .note-word .note-ipa {
    font-family: 'Source Serif 4', 'JetBrains Mono', serif;
    font-size: 12px; font-weight: 400; font-style: italic;
    color: var(--text-muted); letter-spacing: 0.02em;
  }
  .note-card .note-def {
    font-size: 13px; color: var(--text-secondary);
    margin-top: 1px; margin-left: 13px; line-height: 1.6;
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-weight: 350;
  }
  .note-card .note-def.empty { color: var(--text-muted); font-style: italic; }

  /* ── Subscribe Modal ── */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
  .modal-overlay.open { opacity: 1; pointer-events: auto; }
  .modal-box { background: rgba(20,20,25,0.95); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 36px; max-width: 520px; width: 90%; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
  .modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
  .modal-box .modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
  .modal-logos { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
  .modal-logo-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.3s; }
  .modal-logo-item:hover { transform: translateY(-4px); }
  .modal-logo-item .logo-circle { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; border: 1px solid rgba(255,255,255,0.08); }
  .modal-logo-item .logo-label { font-size: 12px; color: var(--text-muted); }
  .modal-qr { width: 120px; height: 120px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-muted); }
  .modal-close { margin-top: 24px; padding: 8px 28px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: all 0.3s; }
  .modal-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

  /* ── Toast ── */
  .toast {
    position: fixed; bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255,255,255,0.9); backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08); border-radius: 9999px;
    padding: 10px 24px; font-size: 13px; color: #333;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1);
    display: flex; align-items: center; gap: 8px; pointer-events: none;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* ── Animations ── */
  .stagger-up { opacity: 0; transform: translateY(40px); }
  .stagger-up.visible { animation: staggerUp 0.8s cubic-bezier(0.25,0.1,0.25,1) forwards; }
  @keyframes staggerUp { to { opacity: 1; transform: translateY(0); } }
  .fade-in { opacity: 0; }
  .fade-in.visible { animation: fadeIn 0.8s cubic-bezier(0.25,0.1,0.25,1) forwards; }
  @keyframes fadeIn { to { opacity: 1; } }

  /* ── Shimmer ── */
  @keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
  .shimmer-text { user-select:none;cursor:default;
    background: linear-gradient(90deg, #f1f1f3 0%, #2563eb 50%, #f1f1f3 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: shimmer 4s linear infinite;
  }

  /* ── Word Click-to-Define ── */
  .read-word {
    cursor: pointer;
    position: relative;
    display: inline;
    transition: all 0.25s cubic-bezier(0.25,0.1,0.25,1);
    border-radius: 4px;
    padding: 1px 0;
    border: 2px solid transparent;
  }
  .read-word:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.4);
    background: rgba(37,99,235,0.06);
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
    z-index: 1;
  }
  .read-word.known:hover {
    border-color: #2563eb;
    background: rgba(37,99,235,0.1);
    box-shadow: 0 4px 16px rgba(37,99,235,0.2);
  }
  .read-word.word-popup-active {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(37,99,235,0.35);
    z-index: 2;
  }
  /* Word definition popup */
  .word-popup {
    display: none;
    position: fixed;
    z-index: 10001;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 320px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    font-size: 13px;
    line-height: 1.6;
    pointer-events: auto;
  }
  .word-popup .wp-word {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
  }
  .word-popup .wp-phonetic {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
  }
  .word-popup .wp-def {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
  }
  .word-popup .wp-trans {
    font-size: 13px;
    color: #2563eb;
  }
  .word-popup .wp-close {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 16px; height: 16px; padding: 0; margin: 0;
    border: none; border-radius: 50%;
    background: #ff5f57; color: rgba(0,0,0,0.5);
    font-size: 12px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12);
  }

  /* ── Particles ── */
  .particle {
    position: absolute; border-radius: 50%; pointer-events: none;
    animation: floatUp 8s linear infinite; opacity: 0;
  }
  @keyframes floatUp {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
  }

  /* ── Volume Slider ── */
  .volume-slider {
    -webkit-appearance: none; width: 60px; height: 3px;
    background: rgba(255,255,255,0.2); border-radius: 2px; outline: none;
  }
  .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    border-radius: 50%; background: #fff; 
  }

  /* ── Bilingual Translation Section ── */
  .translation-section {
    padding: 0 0 64px 0;
  }
  .translation-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 28px;
  }
  .translation-header h3 {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: #999;
    white-space: nowrap;
  }
  .translation-header::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(0,0,0,0.08);
  }
  .translation-card {
    padding: 28px 32px;
    border-radius: 0;
    transition: background 0.35s ease;
    position: relative;
  }
  .translation-card + .translation-card {
    border-top: 1px solid rgba(0,0,0,0.04);
  }
  .translation-card:nth-child(even) {
    background: rgba(0,0,0,0.012);
  }
  .translation-card:hover {
    background: rgba(37,99,235,0.015);
  }
  .translation-card .t-en {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 21px; line-height: 1.8;
    color: #1a1a1a;
    font-weight: 450;
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 3px solid rgba(37,99,235,0.4);
  }
  /* ── Three-color highlights ── */
  .translation-card .hl-red {
    background: #f4cccc !important; border-radius: 3px; padding: 2px 5px;
    border-bottom: 2px solid rgba(180,60,60,0.3);
  }
  .translation-card .hl-blue {
    background: #c9daf8 !important; border-radius: 3px; padding: 2px 5px;
    border-bottom: 2px solid rgba(37,99,235,0.25);
  }
  .translation-card .hl-green {
    background: #d9ead3 !important; border-radius: 3px; padding: 2px 5px;
    border-bottom: 2px solid rgba(34,140,70,0.25);
  }
  .translation-card .t-zh {
    font-family: 'Source Serif 4', 'Noto Serif SC', serif;
    font-size: 17px; line-height: 1.85;
    color: #444;
    font-weight: 400;
    padding-left: 16px;
    border-left: 2px solid rgba(0,0,0,0.06);
  }
  .t-actions { display: flex; gap: 6px; margin-top: 10px; opacity: 0; transition: opacity 0.3s; }
  .translation-card:hover .t-actions { opacity: 1; }
  .t-act-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 500; border: 1px solid rgba(0,0,0,0.1); background: rgba(0,0,0,0.03); color: #666; cursor: pointer; transition: all 0.2s; }
  .t-act-btn:hover { background: rgba(0,0,0,0.07); color: #333; }
  .t-act-btn.copied { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #16a34a; }
  .t-act-btn.playing { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #2563eb; }

  .translation-card .t-zh .grammar-hl,
  .translation-card .t-en .grammar-hl {
    font-weight: 600;
    background: rgba(251,191,36,0.25);
    border-bottom: 2px solid rgba(234,179,8,0.4);
    padding: 1px 5px;
    border-radius: 4px;
  }

  /* ── Tag Filter Buttons ── */
  .tag-filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 9999px;
    font-size: 12px; font-weight: 500;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.02); color: var(--text-secondary);
     transition: all 0.3s; white-space: nowrap;
  }
  .tag-filter-btn:hover {
    border-color: rgba(0,0,0,0.15); color: var(--text-primary);
  }
  .tag-filter-btn.active {
    background: var(--tag-bg, rgba(234,179,8,0.12));
    border-color: var(--tag-border, rgba(234,179,8,0.35));
    color: var(--tag-text, #b45309);
  }

  /* ── Phonics / Standard Toggle (Premium segmented control) ── */
  .phonics-capsule {
    display: inline-flex; align-items: center; position: relative;
    background: linear-gradient(180deg, #faf8f5 0%, #f0ece4 100%);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 9999px; padding: 4px; cursor: pointer;
    font-family: inherit; overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.05);
  }
  .phonics-capsule:hover { border-color: rgba(0,0,0,0.15); box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.08); }
  .phonics-capsule .pc-slider {
    position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    z-index: 0;
  }
  .phonics-capsule.standard-mode .pc-slider { left: calc(50%); }
  .phonics-capsule .pc-left,
  .phonics-capsule .pc-right {
    padding: 10px 20px; font-size: 15px; font-weight: 500;
    transition: all 0.3s ease; position: relative; z-index: 1;
    letter-spacing: -0.01em;
  }
  .phonics-capsule .pc-arrow {
    font-size: 10px; color: #ccc; padding: 0; position: relative; z-index: 1;
  }
  .phonics-capsule .pc-left { color: #8b6914; }
  .phonics-capsule .pc-right { color: #999; }
  .phonics-capsule.standard-mode .pc-left { color: #999; }
  .phonics-capsule.standard-mode .pc-right { color: #1a3a5c; font-weight: 600; }

  /* ── Touch devices ── */
  /* ══════════════════════════════════════════════
     RESPONSIVE — designed for readability, not just scaling
     ══════════════════════════════════════════════ */

  @media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    body * { cursor: auto !important; }
    .smooth-scroll-container { position: relative; overflow: visible; }
    .smooth-scroll-content { transform: none !important; will-change: auto; }
  }

  /* ── Tablet (≤1024px): stack columns, notes become bottom card ── */
  @media (max-width: 1024px) {
    .journal-grid { grid-template-columns: 1fr !important; }
    .notes-panel {
      position: relative !important; top: auto !important; right: auto !important; bottom: auto !important;
      width: 100% !important; max-height: none !important; height: auto !important;
      border-radius: 16px; margin-top: 24px; padding: 24px 20px 20px 20px;
    }
    .notes-scroll { max-height: 360px; flex: none; }
    .article-header-row { flex-direction: column; align-items: flex-start !important; gap: 12px; }
    .article-header-row .btn-row { flex-wrap: wrap; }
    .notes-section-title { font-size: 13px; margin-bottom: 16px; }
    .phonics-syllable { font-size: 20px !important; }
    .phonics-ipa { font-size: 13px !important; }
    #phonicsArticle { padding: 20px 18px !important; line-height: 2.4 !important; }
  }

  /* ── Tablet portrait (≤768px): tighter spacing ── */
  @media (max-width: 768px) {
    .article-panel { padding: 32px 24px; font-size: 19px; line-height: 1.85; }
    .article-panel h2 { font-size: 28px; }
    .article-panel p:first-of-type { font-size: 20px; }
    .article-panel p:first-of-type::first-letter { font-size: 3.2em; }
    .paper-panel { border-radius: 14px; }
    .translation-card { padding: 18px 16px; margin-bottom: 12px; }
    .translation-card .t-en { font-size: 16px; }
    .translation-card .t-zh { font-size: 14px; }
    .translation-section .paper-panel { padding: 24px 18px !important; }
    .btn-icon { width: 40px; height: 40px; font-size: 17px; }
    .tag-filter-btn { padding: 8px 14px; font-size: 12px; min-height: 38px; }
    section.relative.pt-24 { padding-top: 72px; }
    #articleMetaLine { flex-wrap: wrap; gap: 6px; }
    .notes-panel { padding: 20px 16px; margin-top: 20px; }
    .notes-scroll { max-height: 320px; }
    .note-card .note-word { font-size: 16px; }
    .note-card .note-def { font-size: 13px; }
  }

  /* ── Phone (≤640px): mobile-first redesign ── */
  @media (max-width: 640px) {
    .smooth-scroll-container { position: relative; overflow: visible; height: auto; }
    .smooth-scroll-content { transform: none !important; }
    .custom-scrollbar { display: none; }
    section.relative.pt-24 { padding-top: 126px; }
    /* Article: generous but compact */
    .article-panel { padding: 20px 16px; font-size: 15px; line-height: 1.8; }
    .article-panel h2 { font-size: 23px; margin-bottom: 6px; }
    .article-panel p { margin-bottom: 20px; }
    .article-panel p:first-of-type { font-size: 18px; }
    .article-panel p:first-of-type::first-letter { font-size: 2.8em; margin-right: 8px; }
    .article-header-row { flex-direction: column; align-items: flex-start !important; gap: 8px; }
    .article-header-row .btn-row { gap: 6px; flex-wrap: wrap; }
    /* Phonics */
    .phonics-syllable { font-size: 18px !important; }
    .phonics-ipa { font-size: 12px !important; }
    .phonics-word-unit { margin-right: 0.2em !important; }
    #phonicsArticle { padding: 14px 10px !important; line-height: 2.2 !important; }
    .phonics-capsule { padding: 9px 14px; font-size: 12px; min-height: 42px; }
    /* Translations */
    .translation-card { padding: 14px 12px; }
    .translation-card .t-en { font-size: 15px; }
    .translation-card .t-zh { font-size: 14px; }
    .translation-section .paper-panel { padding: 18px 12px !important; }
    .translation-header { margin-bottom: 16px; }
    .translation-header h3 { font-size: 12px; white-space: normal; letter-spacing: 0.04em; }
    /* Notes: collapsible section below article */
    .notes-panel {
      position: relative !important; top: auto !important; right: auto !important; bottom: auto !important;
      width: 100% !important; height: auto !important;
      border-radius: 16px; margin-top: 28px; padding: 0;
      border: 1px solid rgba(0,0,0,0.08);
      overflow: hidden;
    }
    /* Collapsed: shows only the pull-tab header */
    .notes-panel.drawer-collapsed { padding: 0; }
    .notes-panel.drawer-collapsed .notes-scroll,
    .notes-panel.drawer-collapsed .notes-section-title {
      margin: 0; padding: 14px 18px; cursor: pointer; font-size: 13px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(0,0,0,0.02);
    }
    /* Pull-tab handle bar */
    .notes-panel .notes-section-title::before {
      content: ''; display: block; width: 32px; height: 4px;
      background: rgba(0,0,0,0.15); border-radius: 2px;
      margin: 0 auto 10px auto;
    }
    .notes-panel.drawer-collapsed .notes-section-title::before {
      margin-bottom: 8px;
    }
    .notes-panel:not(.drawer-collapsed) .notes-section-title::before {
      margin-bottom: 12px;
    }
    /* Chevron indicator */
    .notes-panel .notes-section-title::after {
      content: '▸'; font-size: 12px; transition: transform 0.3s;
      opacity: 0.5; margin-left: 8px;
    }
    .notes-panel:not(.drawer-collapsed) .notes-section-title::after {
      content: '▾';
    }
    /* Content area when expanded */
    .notes-panel:not(.drawer-collapsed) .notes-section-title {
      margin: 0; padding: 14px 18px; background: rgba(0,0,0,0.02);
    }
    .notes-panel:not(.drawer-collapsed) { padding-bottom: 14px; }
    .notes-scroll { max-height: 720px; flex: none; margin: 0 14px; }
    .notes-section-title { font-size: 12px; letter-spacing: 0.06em; }
    .note-card { padding: 10px 8px; }
    .note-card .note-def { margin-left: 8px; }
    /* Buttons: touch-friendly */
    #shuffleBtn { font-size: 14px; padding: 10px 18px; min-height: 46px; }
    .tag-filter-btn { padding: 7px 14px; font-size: 12px; min-height: 40px; }
    .sub-toggle { font-size: 12px; padding: 9px 16px; min-height: 40px; }
    /* More 卡片一行一张(对齐 vlog) */
    #moreReadGrid{grid-template-columns:1fr!important;gap:16px!important}
    /* 日历按钮+弹窗缩小 0.8(对齐 vlog) */
    .rcal-btn{transform:scale(0.8)!important;transform-origin:center center!important}
    /* 缩小 More 与上方翻译区的距离(py-24=96px 太大) */
    .read-more-section{padding-top:16px!important}
    /* 标题下方 band-tag 铺满整行 */
    #colorLegend .band-tag{flex:1 1 auto!important;text-align:center!important}
    /* 三按钮自适应居中, 禁止水平溢出 */
    .read-legend-actions{justify-content:center!important;gap:6px!important;flex-wrap:nowrap!important;overflow:hidden!important}
    /* 手机端隐藏笔记按钮 */
    #toggleNotes{display:none!important}
    /* 绘本/普通阅读切换 + 朗读按钮 缩小 0.8 */
    .phonics-capsule{transform:scale(0.8)!important;transform-origin:left center!important}
    /* notes 折叠时隐藏单词(修复: 折叠后仍显示) */
    .notes-panel.drawer-collapsed .notes-scroll{display:none!important}
    /* --- 第二批细调 --- */
    #colorLegend{margin-top:4px!important}
    #articleContent{margin-top:8px!important}
    .notes-panel:not(.drawer-collapsed) .notes-section-title{padding-top:6px!important;padding-bottom:8px!important}
    .notes-panel:not(.drawer-collapsed) .notes-section-title::before{margin-bottom:6px!important}
    .translation-section{padding-bottom:8px!important}
    .read-more-section{padding-top:28px!important}
  }

  /* ── Small phone (≤400px): maximum compactness ── */
  @media (max-width: 400px) {
    section.relative.pt-24 { padding-top: 118px; }
    .article-panel { padding: 16px 12px; font-size: 14px; line-height: 1.75; }
    .article-panel h2 { font-size: 20px; }
    .article-panel p:first-of-type { font-size: 17px; }
    .article-panel p:first-of-type::first-letter { font-size: 2.5em; margin-right: 6px; }
    .phonics-syllable { font-size: 16px !important; }
    .phonics-ipa { font-size: 11px !important; }
    #phonicsArticle { padding: 10px 8px !important; line-height: 2.0 !important; }
    .translation-card { padding: 10px 8px; }
    .translation-card .t-en { font-size: 15px; }
    .translation-card .t-zh { font-size: 14px; }
    .notes-panel { max-height: 360px; padding: 16px 10px; margin-top: 16px; }
    .notes-scroll { max-height: 440px; }
    .note-card { padding: 10px 8px; }
    .note-card .note-word { font-size: 15px; }
    .note-card .note-def { font-size: 12px; margin-left: 8px; }
    .note-card .note-word .note-ipa { font-size: 11px; }
  }

.phonics-word-unit{display:inline-flex;flex-direction:column;align-items:center;vertical-align:baseline;margin:0 0.5em 0.8em 0;font-family:'Source Serif 4','Noto Serif SC',serif;}.phonics-ipa{font-size:15px;color:#9b9bae;line-height:1.4;white-space:nowrap;font-family:'Source Serif 4','Noto Serif SC',serif;}.phonics-syllable{font-size:24px;font-weight:500;color:#1a1a1a;line-height:1.3;white-space:nowrap;font-family:'Source Serif 4','Georgia',serif;}.syl-sep{color:#d8d8d8;font-weight:100;font-size:65%;}

/* Floating logo drift */
@keyframes drift{0%,100%{transform:translate(0,0) scale(1)}25%{transform:translate(12px,-8px) scale(1.04)}50%{transform:translate(-6px,-16px) scale(0.96)}75%{transform:translate(-14px,6px) scale(1.02)}}
.float-logo{position:fixed;pointer-events:none;z-index:9999;border-radius:50%;filter:blur(1px)}
.float-logo--tl{opacity:.07;width:140px;height:140px;top:12%;left:3%;transform:rotate(-18deg);animation:drift 18s ease-in-out infinite}
.float-logo--br{opacity:.065;width:120px;height:120px;bottom:12%;right:3%;transform:rotate(-8deg);animation:drift 17s ease-in-out infinite;animation-delay:-5s}
@media(max-width:640px){.float-logo{display:none}}

/* ── Hero ── */
.read-hero{padding-top:80px}
.read-hero-bg{background:radial-gradient(ellipse at 30% 30%,rgba(234,179,8,0.05) 0%,transparent 50%),radial-gradient(ellipse at 70% 60%,rgba(37,99,235,0.03) 0%,transparent 50%)}
.read-journal-grid{grid-template-columns:1fr min(400px,22%);position:relative}

/* ── Legend Bar ── */
.read-legend-bar{animation-delay:0.1s;padding:14px 20px;background:var(--bg-input);border-radius:12px;border:1px solid var(--border-default)}
.read-legend-actions{margin-left:auto}
.read-article-delay{animation-delay:0.15s}
.notes-count{font-weight:400;font-size:10px;color:var(--text-muted)}

/* ── Band Tags ── */
.band-tag{padding:5px 10px;border-radius:5px;font-size:12px;font-weight:700;cursor:default;user-select:none}
.band-tag--gaokao{background:rgba(22,163,74,0.1);color:#16a34a;border:1px solid rgba(22,163,74,0.2)}
.band-tag--cet4{background:rgba(13,148,136,0.1);color:#0d9488;border:1px solid rgba(13,148,136,0.2)}
.band-tag--cet6{background:rgba(37,99,235,0.1);color:#2563eb;border:1px solid rgba(37,99,235,0.2)}
.band-tag--kaoyan{background:rgba(124,58,237,0.1);color:#7c3aed;border:1px solid rgba(124,58,237,0.2)}
.band-tag--toefl,.band-tag--ielts{background:rgba(234,88,12,0.1);color:#ea580c;border:1px solid rgba(234,88,12,0.2)}
.band-tag--gre{background:rgba(220,38,38,0.1);color:#dc2626;border:1px solid rgba(220,38,38,0.2)}
.band-tag--collins{background:rgba(185,28,28,0.1);color:#b91c1c;border:1px solid rgba(185,28,28,0.2)}

/* ── Audio Button ── */
.read-audio-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:15px 24px;border-radius:9999px;font-size:14px;font-weight:500;cursor:pointer;border:1px solid rgba(0,0,0,0.08);background:linear-gradient(180deg,#faf8f5 0%,#f0ece4 100%);color:#1d1d1f;box-shadow:inset 0 1px 2px rgba(0,0,0,0.04),0 2px 8px rgba(0,0,0,0.05);transition:all 0.3s cubic-bezier(0.25,0.1,0.25,1);font-family:-apple-system,'SF Pro Text','Inter','Noto Sans SC',sans-serif;letter-spacing:0.01em;width:130px;height:62px;box-sizing:border-box}
.read-audio-btn:hover{background:linear-gradient(180deg,#faf8f5 0%,#f0ece4 100%);border-color:rgba(0,0,0,0.15);transform:translateY(-1px);box-shadow:inset 0 1px 2px rgba(0,0,0,0.04),0 4px 16px rgba(0,0,0,0.08)}

/* ── Panels ── */
.read-phonics-panel{display:none;padding:20px 32px;margin-top:8px;line-height:2.8;overflow-x:auto;font-family:'Source Serif 4','Noto Serif SC',serif}
.read-notes-panel{position:absolute;top:0;right:0;bottom:0;width:min(406px,22%);overflow:hidden;padding-top:24px}
.read-translation-panel{padding:32px 36px}
.read-trans-icon{font-size:14px}

/* ── More to Read ── */
.read-more-section{background:#faf8f5}
.read-more-title{font-family:'Source Serif 4','Georgia',serif;font-size:clamp(28px,3.5vw,42px);font-weight:700;color:#1a1a1a;letter-spacing:-0.02em}

/* ── Read Calendar Button ── */
.rcal-btn{display:inline-flex;align-items:center;gap:12px;padding:14px 32px;border-radius:12px;border:1.5px solid rgba(201,164,75,0.3);background:linear-gradient(135deg,rgba(26,26,42,0.95),rgba(15,23,42,0.95));color:#e2c170;font-size:15px;font-weight:600;cursor:pointer;font-family:'Source Serif 4','Georgia',serif;letter-spacing:0.04em;box-shadow:0 0 20px rgba(180,130,40,0.12),inset 0 1px 0 rgba(255,255,255,0.06);transition:all 0.35s cubic-bezier(0.25,0.1,0.25,1)}
.rcal-btn:hover{box-shadow:0 0 32px rgba(180,130,40,0.25),inset 0 1px 0 rgba(255,255,255,0.1);border-color:rgba(226,193,112,0.6);transform:translateY(-1px)}
.rcal-btn__label{font-family:'Source Serif 4','Georgia',serif}

/* ── Read Calendar Modal ── */
.rcal-overlay{display:none;position:fixed;inset:0;z-index:100000;background:rgba(10,10,20,0.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);align-items:center;justify-content:center;font-family:'Inter','Noto Sans SC',sans-serif}
.rcal-box{position:relative;background:#fff;width:440px;max-width:95%;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,0.18),0 0 0 1px rgba(0,0,0,0.04);overflow:hidden}
.rcal-header{background:linear-gradient(135deg,rgba(26,26,42,0.96),rgba(15,23,42,0.96));padding:24px 32px 20px;color:#fff;position:relative;overflow:hidden}
.rcal-header__decor--tr{position:absolute;top:-40px;right:-40px;width:120px;height:120px;border-radius:50%;background:rgba(201,164,75,0.06);pointer-events:none}
.rcal-header__decor--bl{position:absolute;bottom:-30px;left:-20px;width:80px;height:80px;border-radius:50%;background:rgba(201,164,75,0.04);pointer-events:none}
.rcal-header__row{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}
.rcal-header__title{font-family:'Source Serif 4','Georgia',serif;font-size:28px;font-weight:700;letter-spacing:0.03em;color:#e2c170;margin-bottom:2px}
.rcal-header__sub{font-size:11px;color:rgba(255,255,255,0.45);letter-spacing:0.06em;font-weight:400}
.rcal-header__date{font-family:'Source Serif 4','Georgia',serif;font-size:28px;font-weight:700;letter-spacing:0.03em;color:#f59e0b;white-space:nowrap}
.rcal-year-nav{display:flex;align-items:center;justify-content:space-between;padding:20px 28px 8px}
.rcal-year-nav__btn{cursor:pointer;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#94a3b8;font-size:18px;user-select:none;transition:all 0.2s}
.rcal-year-nav__btn:hover{background:#f5f5f4;color:#1a1a1a}
.rcal-year-nav__label{font-family:'Source Serif 4','Georgia',serif;font-size:26px;font-weight:700;color:#1a1a1a;letter-spacing:0.02em}
.rcal-month-nav{display:flex;align-items:center;justify-content:center;gap:24px;padding:0 28px 12px}
.rcal-month-nav__btn{cursor:pointer;padding:6px 14px;border-radius:9999px;border:1px solid rgba(0,0,0,0.08);font-size:12px;color:#78716c;user-select:none;letter-spacing:0.03em;font-weight:500;transition:all 0.2s;font-family:'Inter','Noto Sans SC',sans-serif}
.rcal-month-nav__btn:hover{background:#faf8f5;border-color:rgba(201,164,75,0.4);color:#1a1a1a}
.rcal-month-nav__label{cursor:pointer;font-size:30px;color:#c9a44b;font-weight:700;padding:4px 0;user-select:none;letter-spacing:0.04em;font-family:'Source Serif 4','Georgia',serif;transition:opacity 0.2s}
.rcal-month-nav__label:hover{opacity:0.7}
.rcal-divider{margin:4px 28px 0;border-top:1px solid rgba(0,0,0,0.05)}
.rcal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;padding:12px 24px 6px}
.rcal-weekdays__day{font-size:10px;font-weight:500;letter-spacing:0.06em;font-family:'Inter','Noto Sans SC',sans-serif;color:#a8a29e}
.rcal-weekdays__day--sun,.rcal-weekdays__day--sat{color:#c9a44b;font-weight:600;letter-spacing:0.08em}
.rcal-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;padding:4px 24px 16px;row-gap:4px}
/* mac 风格关闭: 右上角红点带 × */
.rcal-close__btn{position:absolute;top:12px;right:12px;z-index:10;width:16px;height:16px;padding:0;margin:0;border:none;border-radius:50%;background:#ff5f57;color:rgba(0,0,0,0.5);font-size:12px;font-weight:700;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 0.2s,transform 0.15s;box-shadow:inset 0 0 0 0.5px rgba(0,0,0,0.12)}
.rcal-close__btn:hover{background:#ff453a;color:rgba(0,0,0,0.72);transform:scale(1.12)}

/* ═══ Landscape phone — short screen fixes ═══ */

/* ═══ Landscape phone — short screen fixes ═══ */
@media(max-height:500px) and (orientation:landscape){
  section.relative.pt-24{padding-top:56px!important}
  .article-panel{padding:10px 14px!important;font-size:18px!important;line-height:1.7!important}
  .article-panel h2{font-size:16px!important}
  .phonics-syllable{font-size:15px!important;font-family:'Source Serif 4','Georgia',serif!important}
  .phonics-ipa{font-size:10px!important}
  #phonicsArticle{line-height:0.8!important;padding:4px 10px!important}
  .notes-panel{position:relative!important;max-height:400px!important;padding:0!important;margin-top:8px!important;height:auto!important;display:block!important}
  .notes-panel.drawer-collapsed{overflow:visible!important}
  .notes-panel .notes-scroll{display:flex!important}
  .notes-scroll{max-height:240px!important}
  .notes-backdrop.show{display:none!important}
  .note-card{padding:6px 8px!important}
  .note-card .note-word{font-size:13px!important}
  .note-card .note-def{font-size:10px!important}
}

/* === read 手机端第三批(置于末尾，覆盖前面 ≤640 规则) === */
@media(max-width:640px){
  /* 3. 拼读面板贴近切换按钮(上移到 0) */
  #phonicsArticle{margin-top:0!important}
  .phonics-word-unit{margin-bottom:0!important}
  .article-panel{padding-top:8px!important}
  #articleContent > :first-child{margin-top:0!important}
  /* 1. 朗读按钮与绘本切换按钮同大小(scale 0.8 + min-height 42px), 右侧笔记按钮恢复显示 */
  .read-audio-btn{transform:scale(0.8)!important;transform-origin:left center!important;min-height:42px!important;padding:9px 20px!important;font-size:14px!important;white-space:nowrap!important;flex-shrink:0!important;flex-direction:row!important}
  /* 2. 正文所有段落字号/行距一致(首段保留大字号+首字下沉+加黑, 只把其余段调成和首段一样) */
  /* 3. notes 内容框内垂直居中 */
  .notes-panel:not(.drawer-collapsed) #notesScroll{display:flex!important;flex-direction:column!important;justify-content:center!important;margin:0!important;padding:0 12px 12px!important}
  /* 2. band-tag 标签行继续上移贴近标题 */
  #colorLegend{margin-top:0!important}
  .read-hero h1{margin-bottom:2px!important}
  /* 4. notes 盒顶内边距0 + 折叠/展开标题统一 + 拉条居中 */
  .notes-panel{padding-top:0!important}
  /* id 选择器强制面板零内边距(压过任何 class 规则), 让 notes 标题与单词区都满宽到边 */
  #notesPanel{padding:0!important;box-sizing:border-box!important}
  #notesPanel .notes-section-title{position:relative!important;padding:16px 18px!important;font-size:12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;margin:0!important;box-sizing:border-box!important;flex-shrink:0!important;order:-1!important;align-self:stretch!important;max-width:none!important}
  #notesPanel .notes-section-title::before{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
  /* More 标题与日期按钮距离 */
  .read-more-section .wide-container > div:first-child{margin-bottom:8px!important}
}

/* 正文基础字号严格对齐首段: ≤640=18px(见上), ≤400=17px */
@media (max-width: 400px){ .article-panel{font-size:17px!important} }
/* 手机端正文首行缩进 */
@media (max-width: 640px){ .article-panel p,#phonicsArticle p{text-indent:1em!important} }
/* 桌面端朗读按钮缩小高度(手机端不受影响) */
@media (min-width: 641px){ .read-audio-btn{height:52px!important;padding:12px 24px!important} }
/* 手机端容器边距 + footer 统一(vlog基准) */
@media (max-width: 640px){ .wide-container{padding-left:8px!important;padding-right:8px!important} .footer__inner{flex-direction:column!important;align-items:center!important;text-align:center!important;gap:6px!important} .footer__brand,.footer__icp,.footer__copyright{flex:none!important;order:1} .footer__icp{order:2;white-space:nowrap!important;flex-wrap:nowrap!important} .footer__copyright{order:3;justify-content:center!important} .footer{padding:14px 0!important;font-size:10px!important;overflow-x:hidden!important} .footer .wide-container{padding-left:8px!important;padding-right:8px!important} }


