:root {
    --yellow: #FFD700;
    --pink: #C5006A;
    --red: #FF3B30;
    --black: #1A1A1A;
    --bg: #FFF9E6;
    --gray: #333;
    --white: #fff;
    --radius: 8px;
    --border: 2px solid var(--black);
    --shadow: 4px 4px 0 var(--black);
    --shadow-hover: 8px 8px 0 var(--black);
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(var(--yellow) 1px, transparent 1px);
    background-size: 12px 12px;
    color: var(--black);
    line-height: 1.8;
    font-size: 14.5px;
    overflow-x: hidden;
  }

  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  button { cursor: pointer; font-family: inherit; }

  /* 顶部波浪公告条 */
  .announce-bar {
    background: repeating-linear-gradient(
      -45deg,
      var(--pink),
      var(--pink) 10px,
      var(--yellow) 10px,
      var(--yellow) 20px
    );
    padding: 8px 16px;
    text-align: center;
    position: relative;
    border-bottom: var(--border);
  }
  .announce-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: var(--border);
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 2px 2px 0 var(--black);
    transform: rotate(-1deg);
  }
  .announce-content .icon {
    color: var(--red);
    font-weight: 900;
    font-size: 18px;
  }
  .announce-content .text {
    font-weight: 900;
    font-size: 14px;
  }
  .announce-content .tag {
    background: var(--pink);
    color: var(--white);
    font-weight: 900;
    font-size: 12px;
    padding: 2px 8px;
    border: 2px solid var(--black);
    border-radius: 4px;
    transform: rotate(5deg);
  }

  /* 吸顶导航 */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--black);
    padding: 12px 16px;
  }
  .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .logo-group img {
    height: 36px;
    width: auto;
    border-radius: 4px;
    border: var(--border);
  }
  .logo-group .brand-name {
    font-size: 20px;
    font-weight: 900;
    text-shadow: 2px 2px 0 var(--yellow);
    letter-spacing: 1px;
  }
  .header-search {
    display: flex;
    align-items: center;
    border: var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 2px 2px 0 var(--black);
    flex: 1;
    max-width: 400px;
  }
  .header-search input {
    border: none;
    padding: 8px 12px;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
  }
  .header-search button {
    background: var(--pink);
    color: var(--white);
    border: none;
    border-left: var(--border);
    padding: 8px 16px;
    font-weight: 900;
    transition: background 0.2s;
  }
  .header-search button:hover {
    background: var(--red);
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .header-actions .login-link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .header-actions .register-btn {
    background: var(--black);
    color: var(--yellow);
    border: var(--border);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 900;
    box-shadow: 2px 2px 0 var(--pink);
    transition: transform 0.1s;
  }
  .header-actions .register-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--pink);
  }

  /* 容器 */
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* 首屏 Hero */
  .hero-section {
    padding: 32px 0;
    position: relative;
  }
  .hero-grid {
    display: flex;
    gap: 24px;
  }
  .hero-main {
    flex: 2;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--black);
    padding: 32px;
    position: relative;
    overflow: hidden;
  }
  .hero-main::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(197, 0, 106, 0.1);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-tag {
    display: inline-block;
    background: var(--yellow);
    border: var(--border);
    padding: 4px 12px;
    font-weight: 900;
    font-size: 14px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 var(--black);
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 16px;
  }
  .hero-title .line-1 {
    text-shadow: 3px 3px 0 var(--yellow);
    display: block;
  }
  .hero-title .line-2 {
    color: var(--yellow);
    -webkit-text-stroke: 2px var(--black);
    text-shadow: 3px 3px 0 var(--black);
    display: block;
    font-size: 40px;
    margin-top: 8px;
  }
  .hero-desc {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 90%;
  }
  .hero-search-box {
    display: flex;
    border: 3px solid var(--black);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 4px 4px 0 var(--black);
    max-width: 600px;
    transition: box-shadow 0.2s;
  }
  .hero-search-box:focus-within {
    box-shadow: 0 0 0 4px var(--yellow), 4px 4px 0 var(--black);
  }
  .hero-search-box input {
    border: none;
    padding: 12px 16px;
    outline: none;
    flex: 1;
    font-size: 16px;
  }
  .hero-search-box button {
    background: var(--pink);
    color: var(--white);
    border: none;
    border-left: 3px solid var(--black);
    padding: 0 24px;
    font-weight: 900;
    font-size: 16px;
    transition: background 0.2s;
  }
  .hero-search-box button:hover {
    background: var(--red);
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }
  .hero-tag-item {
    background: var(--white);
    border: var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
  }
  .hero-tag-item:hover {
    background: var(--yellow);
    transform: rotate(-2deg) scale(1.05);
  }

  /* 右侧侧边栏 */
  .hero-side {
    flex: 1;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  .side-header {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px dashed var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .side-header::before {
    content: '🔥';
    font-size: 20px;
  }
  .side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .side-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .side-item:hover {
    background: #FFF9E6;
  }
  .side-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: var(--border);
    border-radius: 4px;
  }
  .side-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .side-title {
    font-weight: 900;
    font-size: 15px;
    line-height: 1.3;
  }
  .side-meta {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .side-badge {
    background: var(--pink);
    color: var(--white);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid var(--black);
    transform: rotate(-2deg);
    display: inline-block;
  }

  /* 今日热门 */
  .section {
    padding: 40px 0;
  }
  .section-title-group {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--black);
    padding-bottom: 12px;
  }
  .section-title {
    font-size: 28px;
    font-weight: 900;
    text-shadow: 2px 2px 0 var(--yellow);
  }
  .hot-badge {
    background: var(--pink);
    color: var(--white);
    font-weight: 900;
    font-size: 14px;
    padding: 2px 8px;
    border: var(--border);
    transform: rotate(-4deg);
    margin-bottom: 6px;
  }
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  .manga-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .manga-card:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: var(--shadow-hover);
  }
  .card-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-bottom: var(--border);
  }
  .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
  }
  .manga-card:hover .card-cover img {
    transform: scale(1.05);
  }
  .card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pink);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    border: 2px solid var(--black);
    transform: rotate(3deg);
    z-index: 2;
  }
  .card-score {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--white);
    border: 2px solid var(--black);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    color: var(--red);
  }
  .card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .card-name {
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-meta {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .card-status {
    background: var(--pink);
    color: var(--white);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid var(--black);
  }

  /* 精品推荐 Tab */
  .tab-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .tab-btn {
    background: var(--white);
    border: var(--border);
    padding: 6px 16px;
    border-radius: 4px 4px 0 0;
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 var(--black);
    transform: translateY(2px);
  }
  .tab-btn.active {
    background: var(--yellow);
    transform: translateY(0);
    box-shadow: 4px 4px 0 var(--black);
  }
  .tab-btn:hover {
    background: var(--yellow);
  }
  .compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
  .compact-grid .card-cover {
    aspect-ratio: 3/4;
  }
  .compact-grid .card-name {
    font-size: 14px;
  }
  .compact-grid .manga-card:hover::after {
    content: '啪!';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    font-size: 32px;
    font-weight: 900;
    color: var(--black);
    -webkit-text-stroke: 1px var(--white);
    pointer-events: none;
    animation: pop 0.3s ease-out;
    z-index: 10;
  }
  @keyframes pop {
    0% { transform: translateX(-50%) rotate(-10deg) scale(0.5); }
    100% { transform: translateX(-50%) rotate(-10deg) scale(1); }
  }

  /* 排行榜 */
  .rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .rank-panel {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  .rank-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px dashed var(--black);
    padding-bottom: 12px;
  }
  .rank-badge {
    background: var(--black);
    color: var(--yellow);
    font-weight: 900;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
  }
  .rank-title {
    font-size: 18px;
    font-weight: 900;
  }
  .rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .rank-item:hover {
    background: #FFF9E6;
  }
  .rank-num {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    color: var(--red);
    width: 32px;
    text-align: center;
  }
  .rank-item:hover .rank-num {
    transform: scale(1.2);
    transition: transform 0.2s;
  }
  .rank-info {
    flex: 1;
  }
  .rank-name {
    font-weight: 900;
    font-size: 15px;
    line-height: 1.4;
  }
  .rank-meta {
    font-size: 12px;
    color: var(--gray);
  }

  /* 深度漫评 */
  .article-section {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 40px 0;
  }
  .article-header {
    text-align: center;
    margin-bottom: 32px;
  }
  .article-title {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 2px 2px 0 var(--yellow);
    display: inline-block;
  }
  .article-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-top: 8px;
  }
  .article-body {
    column-count: 2;
    column-gap: 40px;
    text-align: justify;
    line-height: 2;
  }
  .article-body p {
    margin-bottom: 20px;
    text-indent: 2em;
  }
  .article-body p:first-of-type::first-letter {
    font-size: 3em;
    font-weight: 900;
    color: var(--pink);
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
  }
  .quote-box {
    background: var(--bg);
    border: var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    position: relative;
    font-style: italic;
    font-weight: 700;
    text-align: center;
  }
  .quote-box::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--black) transparent transparent transparent;
  }
  .quote-box::before {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 13px 13px 0;
    border-style: solid;
    border-color: var(--bg) transparent transparent transparent;
    z-index: 1;
  }

  /* FAQ */
  .faq-section {
    margin-bottom: 60px;
  }
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
  }
  .faq-item {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .faq-item summary {
    padding: 16px 20px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    outline: none;
  }
  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  .faq-icon {
    width: 28px;
    height: 28px;
    background: var(--yellow);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
  }
  .faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s;
  }
  .faq-item[open] summary::after {
    transform: rotate(45deg);
  }
  .faq-content {
    padding: 0 20px 20px 60px;
    color: var(--gray);
    font-size: 14.5px;
  }

  /* 页脚 */
  .site-footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 16px 20px;
    margin-top: 40px;
    position: relative;
  }
  .site-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(135deg, var(--yellow) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, var(--yellow) 25%, transparent 25%) -10px 0;
    background-size: 20px 20px;
    background-repeat: repeat-x;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .footer-col h4 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--yellow);
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
  }
  .footer-col ul li {
    margin-bottom: 8px;
  }
  .footer-col ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s;
  }
  .footer-col ul li a:hover {
    color: var(--pink);
  }
  .footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12px;
    color: #888;
  }
  .footer-bottom p {
    margin-bottom: 8px;
  }
  .update-time {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
  }

  /* 移动端底部悬浮下载 */
  .mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--black);
    padding: 12px 16px;
    z-index: 200;
    box-shadow: 0 -4px 0 rgba(0,0,0,0.1);
  }
  .mobile-sticky-cta a {
    display: block;
    background: var(--yellow);
    color: var(--black);
    text-align: center;
    font-weight: 900;
    font-size: 16px;
    padding: 10px;
    border: var(--border);
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--black);
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-grid {
      flex-direction: column;
    }
    .hero-title {
      font-size: 36px;
    }
    .hero-title .line-2 {
      font-size: 30px;
    }
    .rank-grid {
      grid-template-columns: 1fr;
    }
    .article-body {
      column-count: 1;
    }
    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .header-search {
      display: none;
    }
    .header-inner {
      flex-wrap: wrap;
    }
    .header-actions {
      margin-left: auto;
    }
    .hero-title {
      font-size: 28px;
    }
    .hero-title .line-2 {
      font-size: 24px;
      -webkit-text-stroke: 1px var(--black);
    }
    .hero-main {
      padding: 20px;
    }
    .hero-search-box {
      flex-direction: column;
    }
    .hero-search-box button {
      border-left: none;
      border-top: 3px solid var(--black);
      padding: 10px;
    }
    .side-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .card-grid, .compact-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .mobile-sticky-cta {
      display: block;
    }
    body {
      padding-bottom: 70px;
    }
    .article-section {
      padding: 20px;
    }
    .article-title {
      font-size: 24px;
    }
  }

  @media (max-width: 480px) {
    .side-list {
      grid-template-columns: 1fr;
    }
    .card-grid, .compact-grid {
      grid-template-columns: 1fr;
    }
    .tab-bar {
      flex-wrap: wrap;
    }
    .tab-btn {
      font-size: 12px;
      padding: 4px 10px;
    }
  }