    /* ===== Base ===== */
    :root {
      --fg: #0f172a;
      --muted: #000000;
      --border: #f0e2ea;
      --accent: #ff3271;
      --bg: #ffffff;
      --container: 1100px;
    }

    html,
    body {
      margin: 0;
      background: var(--bg);
      color: var(--fg);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
    }

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

    a:hover {
      color: var(--accent);
    }

    .wrap {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 16px;
    }

    /* ===== god21 風格 Header ===== */
    .g21-header {
      position: sticky;
      top: 0;
      z-index: 40;
      background: #fff;
      border-bottom: 1px solid var(--border);
    }

    .g21-nav {
      display: flex;
      align-items: center;
      gap: 24px;
      height: 64px;
    }

    .g21-logo {
      font-weight: 800;
      letter-spacing: .5px;
      font-size: 20px;
      color: var(--fg);
    }

    .g21-logo img {
      height: 28px;
      vertical-align: middle;
    }

    .g21-burger {
      display: none;
      margin-left: auto;
      background: none;
      border: 0;
      width: 40px;
      height: 32px;
      cursor: pointer;
    }

    .g21-burger span {
      display: block;
      height: 2px;
      background: var(--fg);
      margin: 6px 0;
      transition: .2s;
    }

    .g21-menu {
      margin-left: auto;
    }

    .g21-menu>ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 18px;
      align-items: center;
    }

    .g21-menu>ul>li {
      position: relative;
    }

    .g21-menu>ul>li>a {
      display: inline-block;
      padding: 8px 4px;
      font-weight: 700;
      font-size: 14px;
    }

    .g21-sub {
      position: absolute;
      left: 0;
      top: 100%;
      display: none;
      min-width: 220px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    }

    .g21-sub li {
      list-style: none;
    }

    .g21-sub a {
      display: block;
      padding: 8px 10px;
      font-weight: 500;
      white-space: nowrap;
      color: var(--fg);
    }

    .g21-sub a:hover {
      background: #f8fafc;
      color: var(--accent);
    }

    .g21-menu>ul>li:hover>.g21-sub {
      display: block;
    }

    @media (max-width: 980px) {
      .g21-burger {
        display: block;
      }

      .g21-menu {
        position: fixed;
        inset: 64px 0 0 0;
        background: #fff;
        border-top: 1px solid var(--border);
        transform: translateY(-6px);
        opacity: 0;
        pointer-events: none;
        transition: .2s;
      }

      .g21-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }

      .g21-menu>ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 12px;
      }

      .g21-menu>ul>li {
        border-bottom: 1px solid var(--border);
      }

      .g21-menu>ul>li>a {
        padding: 14px 6px;
        font-size: 16px;
      }

      .g21-sub {
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        min-width: auto;
      }

      .g21-menu>ul>li.open>.g21-sub {
        display: block;
      }
    }

    /* ===== Body layout ===== */
    main .wrap {
      padding: 20px 16px;
    }

    .layout {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 28px;
      align-items: start;
    }

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

    .feed-meta {
      font-size: 14px;
      color: var(--muted);
      margin: 10px 0 18px;
    }

    .source-badge {
      display: inline-block;
      font-size: 11px;
      color: #0369a1;
      background: #e0f2fe;
      border: 1px solid #bae6fd;
      padding: 2px 6px;
      border-radius: 999px;
      margin-left: 6px;
      vertical-align: middle;
    }

    .posts {
      display: grid;
      gap: 14px;
    }

    .card {
      border-radius: 14px;
      padding: 16px;
      background: #fff;
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 14px;
    }

    .card:hover {
      background: #f2dce7ad;
    }

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

    .thumb {
      width: 100%;
      aspect-ratio: 3/2;
      object-fit: cover;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid var(--border);
    }

    .card h3 {
      margin: 0 0 6px;
      font-size: 18px;
      line-height: 1.3;
    }

    .card a {
      color:black;
      font-weight: bolder;
    }

    .meta {
      font-size: 12px;
      color: var(--muted);
    }

    .summary {
      margin-top: 6px;
      font-size: 14px;
      line-height: 1.6;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .status {
      text-align: center;
      color: var(--muted);
      padding: 18px 0;
      font-size: 14px;
    }

    /* Sidebar */
    .sidebar {
      position: static;
      top: auto;
    }

    .side-card {
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      background: #fff;
      margin-top: 70px;
      max-height: none;
      overflow: visible;
    }

    .side-title {
      margin: 0 0 10px;
      font-size: 16px;
      font-weight: 800;
    }

    .blog-group {
      margin: 0 0 14px;
    }

    .blog-group h4 {
      margin: 12px 0 8px;
      font-size: 13px;
      color: var(--muted);
      font-weight: 800;
      letter-spacing: .5px;
    }

    .blog-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 8px;
    }

    .blog-list a {
      display: block;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #f8fafc;
      color: var(--fg);
    }

    .blog-list a.active {
      border-color: var(--accent);
      background: #fff1f5;
    }

    .blog-sub {
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .hint {
      font-size: 12px;
      color: #0f766e;
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      padding: 8px 10px;
      border-radius: 10px;
      margin-top: 10px;
    }


    @media (max-width: 980px) {
      .sidebar {
        position: static;
        top: auto;
      }

      .side-card {
        max-height: none;
        overflow: visible;
      }
    }

    /* === 側邊彈窗 Drawer === */
    .drawer-overlay {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: stretch;
      justify-content: flex-end;
      background: rgba(15, 23, 42, .45);
      opacity: 0;
      /* 淡入淡出 */
      visibility: hidden;
      pointer-events: none;
      transition: opacity .24s ease, visibility .24s step-end;
      z-index: 100;
    }

    .drawer-overlay.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity .24s ease, visibility 0s linear;
    }

    .drawer-panel {
      width: 420px;
      max-width: 100%;
      height: 100%;
      background: #fff;
      border-left: 1px solid var(--border);
      box-shadow: -10px 0 30px rgba(15, 23, 42, .12);
      padding: 18px 16px 16px;
      overflow: auto;
      transform: translateX(100%);
      transition: transform .24s ease;
      /* 滑入滑出 */
      will-change: transform;
    }

    .drawer-overlay.open .drawer-panel {
      transform: translateX(0);
      /* 開啟→滑入 */
    }

    .drawer-close {
      margin: 0 0 8px 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      border: 1px solid var(--border);
      margin-bottom: 10px;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: #f8fafc;
      cursor: pointer;
    }

    .drawer-title {
      margin: 6px 0 8px;
      font-size: 20px;
      line-height: 1.35;
      font-weight: 800;
    }

    .drawer-meta {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .drawer-thumb {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #f8fafc;
    }

    .drawer-content {
      margin-top: 10px;
      font-size: 14px;
      line-height: 1.7;
      white-space: pre-wrap;
    }

    .visit-btn {
      display: inline-block;
      margin-top: 14px;
      width: 100%;
      text-align: center;
      border-radius: 5px;
      padding: 12px 0;
      font-weight: 700;
      opacity: .9;
      background: #ff3271;
      color: #fff;
      border: 1px solid #ff3271;
    }

    .visit-btn:hover {
      opacity: 1;
      color: #fff;
    }

    @media (max-width: 560px) {
      .drawer-panel {
        width: 100%;
        border-left: 0;
        border-top: 1px solid var(--border);
      }
    }

    @media (prefers-reduced-motion: reduce) {

      .drawer-overlay,
      .drawer-panel {
        transition: none !important;
      }
    }

    .drawer-panel {
      width: max(50vw, 560px);
      max-width: 100%;
    }



    /* 手機維持原全寬行為 */
    @media (max-width: 560px) {
      .drawer-panel {
        width: 100%;
      }
    }
