:root {
    --blue: #00a4fe;
    --sky-light: #CFEBFF;
    --deep-blue: #0069B8;
    --ink: #0B1B2B;
    --wall: #FAF8F2;
    --wood: #E8DCC8;
    --grey: #EFEFEF;
    --white: #FFFFFF;
    --font-title: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --font-mono: "Courier New", Courier, monospace;
    --shadow: 0 4px 12px rgba(11, 27, 43, 0.08);
  }

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

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-body);
    background-color: var(--wall);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

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

  ul {
    list-style: none;
  }

  button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
  }

  /* ---------- 通用组件 ---------- */
  .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
    position: relative;
  }

  .section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.2;
  }

  .section-desc {
    font-size: 1.1rem;
    color: var(--ink);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
  }

  /* 门牌按钮 */
  .door-sign-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--blue);
    color: var(--ink);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 4px;
    border: 2px solid var(--ink);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 0 rgba(11, 27, 43, 0.15);
    text-decoration: none;
  }

  .door-sign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(11, 27, 43, 0.15);
  }

  .door-sign-btn::before,
  .door-sign-btn::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--ink);
    border-radius: 50%;
    opacity: 0.5;
  }

  .door-sign-btn::before {
    top: 6px;
    left: 6px;
  }

  .door-sign-btn::after {
    bottom: 6px;
    right: 6px;
  }

  .door-sign-btn .icon-download {
    width: 20px;
    height: 20px;
    fill: var(--ink);
  }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--wall);
    border-bottom: 1px solid var(--ink);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
  }

  .brand img {
    height: 32px;
    width: auto;
    border-radius: 4px;
  }

  .brand svg {
    flex-shrink: 0;
  }

  .header-nav {
    display: none;
    gap: 8px;
  }

  .header-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    background-color: var(--white);
    white-space: nowrap;
    transition: background 0.2s;
  }

  .header-nav .nav-link.active {
    background-color: var(--blue);
    color: var(--ink);
  }

  .header-nav .nav-link .floor {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-right: 4px;
    opacity: 0.7;
  }

  .mobile-menu-btn {
    display: block;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 700;
    color: var(--ink);
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-cta .door-sign-btn {
    font-size: 0.95rem;
    padding: 10px 18px;
    min-height: 44px;
  }

  /* 弹出二维码 */
  .qr-popover {
    position: relative;
  }

  .qr-card {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--ink);
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    box-shadow: var(--shadow);
    z-index: 101;
    width: 140px;
  }

  .qr-card.show {
    display: block;
  }

  .qr-card .qr-placeholder {
    width: 100px;
    height: 100px;
    background: #ddd;
    border: 1px dashed var(--ink);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
  }

  .qr-card p {
    font-size: 0.75rem;
    color: var(--ink);
    font-weight: 600;
  }

  /* ---------- 首屏 Hero ---------- */
  .hero {
    padding: 40px 0 60px;
    background-color: var(--wall);
    border-bottom: 2px solid var(--ink);
    position: relative;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.7;
  }

  .hero-download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
  }

  .hero-download-group .door-sign-btn.primary {
    font-size: 1.2rem;
    padding: 14px 32px;
  }

  .hero-download-group .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--ink);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.2s;
  }

  .hero-download-group .secondary-btn:hover {
    background: var(--sky-light);
  }

  .hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--white);
    padding: 12px 16px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    max-width: 480px;
  }

  .hero-trust span {
    font-weight: 700;
    font-family: var(--font-mono);
  }

  /* 客厅书架 */
  .hero-right {
    position: relative;
    background-color: var(--sky-light);
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
  }

  .hero-right .window-view {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: var(--blue);
    border: 2px solid var(--ink);
    border-radius: 4px;
  }

  .hero-bookshelf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .hero-bookshelf .book-card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
  }

  .hero-bookshelf .book-card:hover {
    transform: translateY(-6px);
  }

  .hero-bookshelf .book-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: #ddd;
  }

  .hero-bookshelf .book-card .book-spine {
    height: 6px;
    background: var(--wood);
    border: 1px solid var(--ink);
    border-top: none;
    border-radius: 0 0 2px 2px;
  }

  .hero-bookshelf .book-card.featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .hero-bookshelf .book-card.featured img {
    aspect-ratio: 3 / 4;
  }

  .hero-bookshelf .book-card.small {
    opacity: 0.6;
    filter: grayscale(0.3);
  }

  .hero-rank {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 16px;
    margin-top: 20px;
  }

  .hero-rank h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
  }

  .hero-rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
  }

  .hero-rank-item .rank-num {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--deep-blue);
    width: 20px;
  }

  .hero-rank-item img {
    width: 30px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--ink);
    border-radius: 2px;
  }

  .hero-rank-item .rank-title {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-rank-item .rank-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--sky-light);
    color: var(--ink);
  }

  /* 分类标签 */
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }

  .hero-tags a {
    font-size: 0.8rem;
    padding: 4px 12px;
    border: 1px solid var(--ink);
    border-radius: 20px;
    background: var(--white);
    color: var(--ink);
    transition: background 0.2s;
  }

  .hero-tags a:hover {
    background: var(--blue);
    color: var(--ink);
  }

  /* 数据条 */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .stat-frame {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 12px;
    text-align: center;
  }

  .stat-frame .stat-num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
  }

  .stat-frame .stat-label {
    font-size: 0.75rem;
    color: var(--ink);
    opacity: 0.8;
  }

  /* ---------- 日漫房间 ---------- */
  .room-jp {
    background-color: var(--wall);
    border-bottom: 2px solid var(--ink);
  }

  .tatami-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .book-card-room {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
  }

  .book-card-room:hover {
    transform: translateY(-4px);
  }

  .book-card-room img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-bottom: 1px solid var(--ink);
  }

  .book-info {
    padding: 10px;
  }

  .book-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .book-info .book-meta {
    font-size: 0.7rem;
    color: var(--deep-blue);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .book-info .book-hook {
    font-size: 0.75rem;
    color: var(--ink);
    opacity: 0.8;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .shoji-door {
    background: var(--wood);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    transition: background 0.2s;
  }

  .shoji-door:hover {
    background: var(--sky-light);
  }

  .hidden-books {
    display: none;
    margin-top: 16px;
  }

  .hidden-books.show {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ---------- 韩漫房间 ---------- */
  .room-kr {
    background-color: var(--wall);
    border-bottom: 2px solid var(--ink);
  }

  .webtoon-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .webtoon-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .webtoon-strip {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
  }

  .webtoon-strip img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .phone-mockup {
    background: var(--ink);
    border-radius: 12px;
    padding: 10px 8px;
    margin: 24px auto;
    max-width: 260px;
    border: 2px solid var(--ink);
  }

  .phone-screen {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    position: relative;
  }

  .phone-screen .phone-scroll {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    overflow-y: auto;
  }

  .phone-screen .cell {
    background: var(--sky-light);
    border: 1px solid var(--ink);
    border-radius: 2px;
    height: 40px;
    flex-shrink: 0;
  }

  .window-kr {
    background: var(--sky-light);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
  }

  .window-kr:hover {
    background: var(--blue);
    color: var(--ink);
  }

  .kr-new-books {
    display: none;
    margin-top: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kr-new-books.show {
    display: grid;
  }

  /* ---------- 国漫房间 ---------- */
  .room-cn {
    background-color: var(--wall);
    border-bottom: 2px solid var(--ink);
  }

  .scroll-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 16px 0;
    scroll-snap-type: x mandatory;
  }

  .scroll-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .scroll-scroll::-webkit-scrollbar-thumb {
    background: var(--ink);
    border-radius: 4px;
  }

  .scroll-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
  }

  .scroll-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .scroll-item .scroll-info {
    padding: 8px;
    font-size: 0.75rem;
  }

  .scroll-item .scroll-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scroll-item .scroll-info .tag {
    font-size: 0.65rem;
    color: var(--deep-blue);
    margin-top: 4px;
  }

  /* ---------- 阁楼 ---------- */
  .attic {
    background: var(--ink);
    color: var(--white);
    border-bottom: 2px solid var(--ink);
    transition: background 0.8s ease;
  }

  .attic.lit {
    background: #FAF0E6;
    color: var(--ink);
  }

  .attic .section-title {
    color: var(--white);
  }

  .attic.lit .section-title {
    color: var(--ink);
  }

  .attic .section-desc {
    color: var(--white);
    opacity: 0.8;
  }

  .attic.lit .section-desc {
    color: var(--ink);
  }

  .attic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    opacity: 0.3;
    transition: opacity 0.8s ease;
  }

  .attic.lit .attic-grid {
    opacity: 1;
  }

  .attic .book-card-room {
    background: var(--ink);
    border-color: var(--white);
  }

  .attic.lit .book-card-room {
    background: var(--white);
    border-color: var(--ink);
  }

  .attic .book-card-room .book-info h4 {
    color: var(--white);
  }

  .attic.lit .book-card-room .book-info h4 {
    color: var(--ink);
  }

  .lamp-pull {
    display: inline-block;
    margin-top: 16px;
    background: var(--white);
    color: var(--ink);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: background 0.2s;
  }

  .lamp-pull:hover {
    background: var(--sky-light);
  }

  /* ---------- 更新区块 ---------- */
  .updates {
    background-color: var(--sky-light);
    border-bottom: 2px solid var(--ink);
  }

  .updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .update-card {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    display: flex;
    gap: 10px;
    padding: 8px;
    align-items: center;
  }

  .update-card img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--ink);
    border-radius: 2px;
    flex-shrink: 0;
  }

  .update-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .update-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .update-info .chapter {
    font-size: 0.75rem;
    color: var(--deep-blue);
    font-weight: 600;
  }

  .update-info .follow-btn {
    align-self: flex-start;
    background: var(--blue);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--ink);
    transition: transform 0.2s;
  }

  .update-info .follow-btn:hover {
    transform: scale(1.05);
  }

  .countdown-badge {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 16px;
    font-family: var(--font-mono);
  }

  /* ---------- 书房 ---------- */
  .study {
    background-color: var(--wall);
    border-bottom: 2px solid var(--ink);
  }

  .study-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .study-shelf {
    background: var(--wood);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    min-height: 200px;
  }

  .shelf-slot {
    background: var(--white);
    border: 1px dashed var(--ink);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: background 0.2s;
  }

  .shelf-slot.filled {
    border-style: solid;
    background: var(--sky-light);
  }

  .shelf-slot img {
    width: 40px;
    height: 53px;
    object-fit: cover;
    border: 1px solid var(--ink);
    border-radius: 2px;
    margin-bottom: 4px;
  }

  .pending-books {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
  }

  .pending-book {
    flex: 0 0 70px;
    text-align: center;
    cursor: pointer;
  }

  .pending-book img {
    width: 70px;
    height: 93px;
    object-fit: cover;
    border: 1px solid var(--ink);
    border-radius: 2px;
    transition: transform 0.2s;
  }

  .pending-book:hover img {
    transform: translateY(-4px);
  }

  .pending-book button {
    display: block;
    width: 100%;
    font-size: 0.65rem;
    background: var(--blue);
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 2px;
    padding: 2px 0;
    margin-top: 4px;
    font-weight: 700;
  }

  .desk-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .desk-item {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .desk-item svg {
    flex-shrink: 0;
  }

  .desk-item .desc {
    font-size: 0.8rem;
    color: var(--ink);
  }

  .desk-item .desc strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  /* ---------- 后院 ---------- */
  .backyard {
    background-color: #E2F0D9;
    border-bottom: 2px solid var(--ink);
  }

  .wall-comments {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    background: #D4C9B8;
    padding: 24px;
    border: 2px solid var(--ink);
    border-radius: 4px;
  }

  .comment-bubble {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 8px;
    padding: 12px;
    max-width: 280px;
    font-size: 0.85rem;
    color: var(--ink);
    position: relative;
  }

  .comment-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--ink);
  }

  .comment-bubble .author {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 8px;
    color: var(--deep-blue);
  }

  .topic-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .topic-card {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
  }

  .topic-card:hover {
    transform: translateY(-4px);
  }

  .topic-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .topic-card p {
    font-size: 0.8rem;
    color: var(--deep-blue);
  }

  /* ---------- 信箱 ---------- */
  .mailbox {
    background-color: var(--wall);
    border-bottom: 2px solid var(--ink);
  }

  .mailbox-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .mailbox-side {
    font-size: 1.5rem;
    font-weight: 800;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: var(--ink);
    letter-spacing: 4px;
    line-height: 1.4;
    align-self: start;
    margin-bottom: 16px;
  }

  .mailbox-side p {
    font-size: 0.9rem;
    font-weight: 400;
    writing-mode: horizontal-tb;
    margin-top: 16px;
    color: var(--ink);
    opacity: 0.7;
  }

  .mailbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-item {
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
  }

  .faq-item summary {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    color: var(--ink);
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--deep-blue);
    transition: transform 0.2s;
  }

  .faq-item[open] summary::after {
    content: '−';
  }

  .faq-item .faq-answer {
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0.85;
    border-top: 1px dashed var(--wood);
    padding-top: 12px;
  }

  /* ---------- 屋顶下载 ---------- */
  .roof {
    background-color: var(--blue);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: var(--ink);
  }

  .roof-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
  }

  .roof-tile {
    background: var(--sky-light);
    border-radius: 2px;
    filter: brightness(0.6);
  }

  .roof-content {
    position: relative;
    z-index: 2;
    text-align: center;
  }

  .roof-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .roof-desc {
    font-size: 1.1rem;
    color: var(--ink);
    max-width: 600px;
    margin: 0 auto 32px;
  }

  .roof-download-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: var(--wall);
    padding: 32px;
    border-radius: 8px;
    border: 2px solid var(--ink);
    box-shadow: 0 8px 0 rgba(11, 27, 43, 0.2);
  }

  .roof-download-box .door-sign-btn {
    font-size: 1.3rem;
    padding: 16px 40px;
  }

  .roof-qr {
    width: 120px;
    height: 120px;
    background: #ddd;
    border: 1px dashed var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
  }

  /* ---------- 页脚 ---------- */
  .site-footer {
    background: var(--ink);
    color: #B0C4DE;
    padding: 40px 0 20px;
    font-size: 0.8rem;
    line-height: 1.8;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .footer-links a {
    color: #B0C4DE;
    transition: color 0.2s;
  }

  .footer-links a:hover {
    color: var(--white);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .footer-note {
    font-size: 0.75rem;
    color: #8A9BAE;
  }

  .footer-about {
    margin-top: 12px;
  }

  .footer-about details {
    color: #8A9BAE;
  }

  .footer-about summary {
    cursor: pointer;
    font-size: 0.8rem;
    list-style: none;
  }

  .footer-about summary::-webkit-details-marker {
    display: none;
  }

  .footer-about .about-content {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-left: 4px;
    font-size: 0.75rem;
  }

  .footer-about .about-content a {
    color: #8A9BAE;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
  }

  .footer-about .about-content a:hover {
    color: var(--white);
  }

  .footer-about .about-content .beian-link {
    color: #8A9BAE;
    text-decoration: none;
  }

  .footer-about .about-content time {
    color: #8A9BAE;
    font-size: 0.7rem;
  }

  /* ---------- 移动端底部下载条 ---------- */
  .mobile-download-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--ink);
    padding: 10px 16px;
    z-index: 99;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-download-bar span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
  }

  .mobile-download-bar .door-sign-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-height: 36px;
  }

  /* ---------- 响应式 ---------- */
  @media (min-width: 768px) {
    .section-title {
      font-size: 2.8rem;
    }

    .hero-title {
      font-size: 3.2rem;
    }

    .hero-grid {
      grid-template-columns: 1fr 1.2fr;
    }

    .hero-stats {
      grid-template-columns: repeat(4, 1fr);
    }

    .tatami-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .hidden-books.show {
      grid-template-columns: repeat(4, 1fr);
    }

    .webtoon-layout {
      grid-template-columns: repeat(3, 1fr);
    }

    .updates-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .attic-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .topic-cards {
      grid-template-columns: repeat(3, 1fr);
    }

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

    .study-layout {
      grid-template-columns: 1fr 1fr;
    }

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

    .header-nav {
      display: flex;
    }

    .mobile-menu-btn {
      display: none;
    }

    .mobile-download-bar {
      display: none;
    }
  }

  @media (min-width: 1024px) {
    .container {
      padding: 0 40px;
    }

    .section {
      padding: 100px 0;
    }

    .header-nav .nav-link {
      font-size: 0.9rem;
      padding: 6px 14px;
    }

    .hero-title {
      font-size: 3.8rem;
    }

    .hero-bookshelf {
      grid-template-columns: repeat(4, 1fr);
    }

    .hero-bookshelf .book-card.featured {
      grid-column: span 2;
      grid-row: span 2;
    }

    .tatami-grid {
      grid-template-columns: repeat(5, 1fr);
    }

    .hidden-books.show {
      grid-template-columns: repeat(4, 1fr);
    }

    .webtoon-layout {
      grid-template-columns: 1fr 1.5fr 1fr;
    }

    .webtoon-col:nth-child(2) {
      padding-top: 40px;
    }

    .webtoon-col:nth-child(3) {
      padding-top: 20px;
    }

    .scroll-item {
      flex: 0 0 180px;
    }

    .attic-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .updates-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .topic-cards {
      grid-template-columns: repeat(4, 1fr);
    }

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

    .mailbox-layout {
      grid-template-columns: 200px 1fr;
      align-items: start;
    }

    .mailbox-side {
      margin-bottom: 0;
    }

    .roof-title {
      font-size: 3.5rem;
    }

    /* 移动端底部下载条在桌面端隐藏 */
    .mobile-download-bar {
      display: none !important;
    }
  }

  @media (max-width: 767px) {
    .mobile-download-bar {
      display: flex;
    }

    .header-cta .door-sign-btn {
      font-size: 0.85rem;
      padding: 8px 12px;
      min-height: 40px;
    }

    .header-cta .door-sign-btn .label {
      display: none;
    }

    .hero {
      padding-bottom: 80px;
    }

    .site-footer {
      padding-bottom: 80px;
    }
  }

  /* 减少动态效果 */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }