:root {
    --bg-paper: #FBF7F0;
    --ink-black: #2E2B28;
    --vermillion: #C8553D;
    --light-gold: #D4A373;
    --banana-yellow: #F2C94C;
    --font-serif: "Songti SC", "STSong", "SimSun", serif;
    --font-rounded: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --shadow-soft: 0 4px 12px rgba(46, 43, 40, 0.05);
    --shadow-hover: 0 12px 24px rgba(46, 43, 40, 0.12);
  }

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

  body {
    background-color: var(--bg-paper);
    background-image: radial-gradient(var(--ink-black) 0.5px, transparent 0.5px);
    background-size: 12px 12px;
    background-opacity: 0.03;
    color: var(--ink-black);
    font-family: var(--font-rounded);
    line-height: 1.6;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
  }

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

  /* 顶部导航 */
  .top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(251, 247, 240, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: height 0.3s ease;
    border-bottom: 1px solid rgba(46, 43, 40, 0.05);
  }

  .nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: bold;
  }

  .nav-left img {
    height: 32px;
    border-radius: 2px;
  }

  .nav-center {
    display: flex;
    gap: 32px;
    font-size: 15px;
    letter-spacing: 2px;
  }

  .nav-center a {
    position: relative;
    padding-bottom: 4px;
  }

  .nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ink-black);
    transition: width 0.3s;
  }

  .nav-center a:hover::after {
    width: 100%;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
  }

  .banana-btn {
    background-color: var(--banana-yellow);
    color: var(--ink-black);
    border: 1px solid var(--ink-black);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink-black);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .banana-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink-black);
  }

  /* 首屏主视觉 */
  .hero-section {
    margin-top: 64px;
    height: 85vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(251, 247, 240, 0.9), rgba(251, 247, 240, 0.9)), url('images/b0381ad7gy1icvipj6g4qj22sx4qo7wh.webp') center/cover;
    padding: 20px;
  }

  .hero-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(46, 43, 40, 0.08);
    position: relative;
  }

  .hero-card h1 {
    font-family: var(--font-serif);
    font-size: 56px;
    margin-bottom: 12px;
    letter-spacing: 4px;
  }

  .hero-subtitle {
    font-size: 16px;
    color: var(--vermillion);
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-weight: bold;
  }

  .hero-slogan {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 32px;
    color: #555;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }

  .btn-primary {
    background-color: var(--ink-black);
    color: var(--bg-paper);
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    transition: background 0.3s;
  }

  .btn-primary:hover {
    background-color: var(--vermillion);
  }

  .btn-secondary {
    background-color: transparent;
    color: var(--ink-black);
    padding: 12px 32px;
    border-radius: 24px;
    border: 2px solid var(--ink-black);
    font-size: 16px;
    transition: all 0.3s;
  }

  .btn-secondary:hover {
    background-color: var(--ink-black);
    color: var(--bg-paper);
  }

  .btn-banana {
    background-color: var(--banana-yellow);
    color: var(--ink-black);
    padding: 12px 32px;
    border-radius: 24px;
    border: 2px solid var(--ink-black);
    font-size: 16px;
    font-weight: bold;
    box-shadow: 3px 3px 0 var(--ink-black);
  }

  .hero-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px dashed rgba(46, 43, 40, 0.2);
    padding-top: 24px;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
  }

  .stat-num {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: bold;
    color: var(--vermillion);
  }

  .stat-label {
    font-size: 12px;
    color: #777;
  }

  .hero-decoration-bubble {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: #fff;
    border: 2px solid var(--ink-black);
    padding: 8px 16px;
    border-radius: 20px 20px 20px 4px;
    font-size: 14px;
    font-family: var(--font-serif);
    font-weight: bold;
  }

  .hero-decoration-mini {
    position: absolute;
    bottom: -20px;
    left: 40px;
    background: #fff;
    border: 2px solid var(--ink-black);
    padding: 4px;
    border-radius: 4px;
  }

  .hero-decoration-mini img {
    width: 40px;
    height: 40px;
  }

  /* 数据档案条 */
  .archive-bar {
    max-width: 1200px;
    margin: -20px auto 60px;
    background: #fff;
    border: 2px solid var(--ink-black);
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    box-shadow: 4px 4px 0 var(--light-gold);
    position: relative;
    z-index: 10;
  }

  .archive-item {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
  }

  .archive-item:hover {
    transform: scale(1.05);
  }

  /* 通用区块标题 */
  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
  }

  .section-title::after {
    content: '✦';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--vermillion);
    font-size: 16px;
  }

  .section-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 12px;
    font-family: var(--font-rounded);
  }

  /* 热门推荐 */
  .hot-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
  }

  .comic-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
  }

  .comic-card {
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
  }

  .comic-card:nth-child(odd) { transform: rotate(-1.5deg); }
  .comic-card:nth-child(even) { transform: rotate(1.5deg); }

  .comic-card:hover {
    transform: translateY(-8px) rotate(0);
    box-shadow: var(--shadow-hover);
    z-index: 2;
  }

  .comic-cover-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    border-left: 4px solid rgba(0,0,0,0.1); /* 书脊阴影 */
    aspect-ratio: 3 / 4;
  }

  .comic-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .comic-card:hover .comic-cover-wrap img {
    transform: scale(1.05);
  }

  .tag-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(200, 85, 61, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fff;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
  }

  .comic-info {
    margin-top: 12px;
  }

  .comic-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .comic-progress {
    font-size: 12px;
    color: var(--vermillion);
    margin-top: 4px;
  }

  /* 星屑画廊 */
  .gallery-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .gallery-item {
    position: relative;
    background: #fff;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
    transition: transform 0.3s;
  }

  .gallery-item:hover {
    transform: translateY(-4px);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
  }

  .gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
  }

  .gallery-item.square {
    aspect-ratio: 1 / 1;
  }

  .gallery-caption {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    font-size: 11px;
    text-align: center;
    padding: 2px 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 2px;
  }

  .gallery-item:hover .gallery-caption {
    opacity: 1;
  }

  /* 排行榜 */
  .rank-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .rank-column {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
  }

  .rank-header {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rank-list {
    list-style: none;
  }

  .rank-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }

  .rank-item:hover {
    transform: translateX(4px);
  }

  .rank-num {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
  }

  .rank-num.top-1 { background: #FFD700; color: #fff; }
  .rank-num.top-2 { background: #C0C0C0; color: #fff; }
  .rank-num.top-3 { background: var(--vermillion); color: #fff; }
  .rank-num.normal { color: #999; }

  .rank-info {
    flex: 1;
  }

  .rank-name {
    font-size: 15px;
    font-weight: bold;
  }

  .rank-status {
    font-size: 12px;
    color: #888;
  }

  .rank-trend {
    font-size: 12px;
    font-weight: bold;
  }
  .trend-up { color: var(--vermillion); }
  .trend-down { color: #4CAF50; }

  /* 文章区 */
  .article-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
  }

  .article-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
  }

  .article-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: transparent var(--bg-paper) transparent transparent;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.1);
  }

  .article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .article-content {
    padding: 16px;
  }

  .article-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .article-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .article-actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid #eee;
    padding-top: 12px;
    font-size: 13px;
    color: #666;
  }

  .article-actions span {
    cursor: pointer;
    transition: color 0.2s;
  }

  .article-actions span:hover {
    color: var(--vermillion);
  }

  /* 页脚 */
  footer {
    border-top: 1px dashed rgba(0,0,0,0.2);
    padding: 40px 5% 20px;
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-left p {
    margin-bottom: 8px;
  }

  .footer-right p {
    text-align: right;
  }

  @media (max-width: 1024px) {
    .hero-card h1 { font-size: 42px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item.wide { grid-column: span 2; }
  }

  @media (max-width: 768px) {
    .nav-center { display: none; }
    .hero-section { padding: 10px; }
    .hero-card { padding: 24px; }
    .hero-card h1 { font-size: 32px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .archive-bar { flex-wrap: wrap; gap: 12px; border-radius: 20px; padding: 16px; margin: 20px 10px; }
    .archive-item { flex: 1 1 40%; justify-content: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide { grid-column: span 2; }
    .rank-section { grid-template-columns: 1fr; gap: 20px; }
    .footer-right p { text-align: left; }
  }