:root {
  --yellow: #FFD700;
  --magenta: #C5006A;
  --red: #FF3B30;
  --black: #1A1A1A;
  --bg: #FFF9E6;
  --text: #333;
  --white: #FFFFFF;
  --border: 2px solid var(--black);
  --shadow: 4px 4px 0 var(--black);
  --font-title: 'Arial Black', 'Impact', 'Microsoft YaHei', sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--yellow) 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 14.5px;
  overflow-x: hidden;
}
h1, h2, h3, h4, .title-font { font-family: var(--font-title); color: var(--black); font-weight: 900; }
a { text-decoration: none; color: var(--black); }
img { max-width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; font-family: inherit; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-gap { margin-bottom: 40px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Top Announcement */
.top-announce {
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 10px, var(--magenta) 10px, var(--magenta) 20px);
  padding: 8px 0;
  position: relative;
  z-index: 10;
  mask-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 1200 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1200v30c-50 10-100 10-150 0s-100-10-150 0-100 10-150 0-100-10-150 0-100 10-150 0-100-10-150 0-100 10-150 0-100-10-150 0V0z" fill="black"/></svg>');
  mask-size: 100% 100%;
}
.announce-inner {
  background: var(--white);
  border: var(--border);
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 20px;
  margin: 0 auto;
  display: flex;
  width: fit-content;
  box-shadow: var(--shadow);
}
.announce-icon { background: var(--red); color: var(--white); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; border: 2px solid var(--black); margin-right: 10px; }
.announce-text { font-weight: bold; font-size: 14px; margin-right: 12px; }
.announce-tag { background: var(--magenta); color: var(--white); padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; transform: rotate(-5deg); border: 2px solid var(--black); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}
.header-content { display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; text-decoration: none; }
.logo-area img { height: 32px; margin-right: 10px; border: 2px solid var(--black); border-radius: 4px; background: var(--yellow); padding: 2px; }
.logo-text { font-size: 20px; font-weight: 900; color: var(--black); text-shadow: 2px 2px 0 var(--yellow); border: 2px solid var(--black); padding: 2px 10px; border-radius: 8px; background: var(--white); }

.search-box { display: flex; flex: 1; max-width: 400px; margin: 0 20px; }
.search-box input { flex: 1; padding: 8px 12px; border: 2px solid var(--black); border-right: none; border-radius: 4px 0 0 4px; outline: none; font-family: inherit; }
.search-box input:focus { box-shadow: 0 0 0 3px var(--yellow); }
.search-btn { background: var(--magenta); border: 2px solid var(--black); color: var(--black); font-weight: bold; padding: 8px 20px; border-radius: 0 4px 4px 0; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.login-link { font-weight: bold; font-size: 14px; position: relative; }
.login-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background: var(--black); transition: width 0.3s; }
.login-link:hover::after { width: 100%; }
.btn-register { background: var(--black); color: var(--yellow); border: 2px solid var(--black); padding: 8px 16px; font-weight: bold; border-radius: 4px; box-shadow: var(--shadow); transition: transform 0.2s; }
.btn-register:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }

/* Hero */
.hero-section { padding: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-tag { display: inline-block; background: var(--white); border: var(--border); padding: 4px 12px; font-weight: bold; font-size: 13px; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--black); margin-bottom: 20px; border-radius: 20px; }
.hero-title { font-size: 42px; line-height: 1.2; margin-bottom: 20px; text-shadow: 2px 2px 0 var(--black), 4px 4px 0 var(--yellow); color: var(--white); -webkit-text-stroke: 1px var(--black); }
.hero-title span { display: block; color: var(--yellow); text-shadow: 2px 2px 0 var(--black); }
.hero-desc { font-size: 15px; margin-bottom: 24px; color: #444; max-width: 90%; }
.hero-btns { display: flex; gap: 16px; margin-bottom: 30px; }
.btn-primary { background: var(--yellow); color: var(--black); border: var(--border); padding: 12px 24px; font-weight: bold; border-radius: 6px; box-shadow: var(--shadow); transition: all 0.2s; display: inline-block; text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--black); border: var(--border); padding: 12px 24px; font-weight: bold; border-radius: 6px; box-shadow: var(--shadow); transition: all 0.2s; text-decoration: none; }
.btn-primary:hover, .btn-secondary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }

.hero-stats { display: flex; gap: 30px; border-top: 2px dashed var(--black); padding-top: 20px; position: relative; }
.hero-stats::before { content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: repeating-linear-gradient(to right, var(--black), var(--black) 10px, transparent 10px, transparent 20px); }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-family: var(--font-title); font-weight: 900; color: var(--magenta); -webkit-text-stroke: 1px var(--black); }
.stat-label { font-size: 12px; font-weight: bold; color: #555; }

.hero-visual { position: relative; height: 400px; }
.mock-card { position: absolute; width: 200px; border: var(--border); box-shadow: var(--shadow); background: var(--white); border-radius: 8px; overflow: hidden; transition: transform 0.3s; }
.mock-card:hover { transform: rotate(2deg) scale(1.05); z-index: 10 !important; }
.mock-1 { top: 0; left: 10%; z-index: 3; background: linear-gradient(to bottom, #fff, #f0f0f0); }
.mock-2 { top: 40px; right: 10%; z-index: 2; transform: rotate(5deg); }
.mock-3 { bottom: -20px; left: 30%; z-index: 1; transform: rotate(-5deg); }
.mock-img { width: 100%; height: 250px; border-bottom: var(--border); }
.mock-badge { position: absolute; top: 10px; right: 10px; background: var(--magenta); color: var(--white); font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--black); }
.mock-info { padding: 10px; }
.mock-title { font-size: 14px; font-weight: bold; margin-bottom: 4px; }

/* Section Header */
.sec-header { display: flex; align-items: center; margin-bottom: 24px; }
.sec-title { font-size: 24px; margin-right: 12px; text-shadow: 1px 1px 0 var(--white); }
.tag-hot { background: var(--magenta); color: var(--white); font-size: 14px; font-family: var(--font-title); padding: 2px 8px; border: var(--border); transform: rotate(-5deg); border-radius: 4px; box-shadow: 2px 2px 0 var(--black); }

/* Cards Grid */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: var(--border); box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; transition: all 0.3s; position: relative; }
.card:hover { transform: translate(2px, -4px) rotate(1deg); box-shadow: 6px 8px 0 var(--black); }
.card-cover { position: relative; aspect-ratio: 3/4; border-bottom: var(--border); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; top: 8px; left: 8px; background: var(--yellow); color: var(--black); font-size: 11px; font-weight: bold; padding: 2px 6px; border: 1px solid var(--black); border-radius: 4px; transform: rotate(-5deg); }
.card-tag.magenta { background: var(--magenta); color: var(--white); }
.card-score { position: absolute; bottom: 8px; right: 8px; background: var(--white); border: 1px solid var(--black); border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: bold; }
.card-info { padding: 12px; }
.card-name { font-size: 16px; font-weight: bold; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-bottom: 8px; }
.card-status { background: var(--magenta); color: var(--white); font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--black); }

/* Tab Section */
.tab-container { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn { background: var(--white); border: var(--border); padding: 8px 16px; font-weight: bold; font-size: 14px; border-radius: 4px; box-shadow: 2px 2px 0 var(--black); transition: all 0.2s; }
.tab-btn.active { background: var(--yellow); transform: translateY(2px); box-shadow: 0 0 0 var(--black); }
.tab-content { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.small-card { position: relative; }
.small-card .card-cover { aspect-ratio: 3/4; }
.small-card .card-info { padding: 8px; }
.small-card .card-name { font-size: 13px; }
.pop-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); color: var(--white); font-family: var(--font-title); font-size: 24px; font-weight: 900; -webkit-text-stroke: 2px var(--black); transition: transform 0.2s; pointer-events: none; z-index: 10; }
.small-card:hover .pop-text { transform: translate(-50%, -50%) scale(1) rotate(-15deg); }

/* Ranking */
.ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rank-panel { background: var(--white); border: var(--border); box-shadow: var(--shadow); border-radius: 8px; padding: 16px; }
.rank-title { display: flex; align-items: center; background: var(--black); color: var(--yellow); padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 16px; margin-bottom: 16px; width: fit-content; }
.rank-title span { color: var(--white); margin-left: 4px; }
.rank-item { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #ccc; transition: all 0.2s; cursor: pointer; }
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: #FFF9E6; padding-left: 8px; }
.rank-num { font-family: var(--font-title); font-size: 20px; font-weight: 900; color: var(--red); -webkit-text-stroke: 1px var(--black); width: 30px; font-style: italic; }
.rank-item:hover .rank-num { transform: scale(1.2); }
.rank-name { font-weight: bold; flex: 1; font-size: 14px; }
.rank-author { font-size: 12px; color: #666; }

/* Feature Article */
.article-section { background: var(--white); border: var(--border); box-shadow: var(--shadow); border-radius: 8px; padding: 30px; }
.article-title { font-size: 22px; margin-bottom: 20px; text-align: center; }
.article-content { column-count: 2; column-gap: 30px; }
.article-content p { margin-bottom: 16px; text-indent: 2em; font-size: 14.5px; line-height: 1.8; text-align: justify; }
.article-content p:first-of-type::first-letter { font-size: 3em; color: var(--magenta); float: left; line-height: 1; margin-right: 8px; font-family: var(--font-title); font-weight: 900; }
.quote-box { background: var(--white); border: var(--border); padding: 16px; border-radius: 8px; box-shadow: var(--shadow); position: relative; margin: 20px 0; break-inside: avoid; font-weight: bold; font-size: 15px; }
.quote-box::before { content: ''; position: absolute; bottom: -10px; left: 30px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid var(--black); }
.quote-box::after { content: ''; position: absolute; bottom: -7px; left: 32px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid var(--white); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
details { background: var(--white); border: var(--border); box-shadow: var(--shadow); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
summary { padding: 16px; font-weight: bold; font-size: 16px; display: flex; align-items: center; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq-icon { width: 24px; height: 24px; background: var(--yellow); border: 2px solid var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; font-size: 14px; }
.faq-plus { margin-left: auto; font-size: 24px; font-weight: bold; transition: transform 0.3s; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-content { padding: 0 16px 16px 52px; color: #555; font-size: 14px; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 40px 0 20px; margin-top: 40px; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; 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; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--yellow); margin-bottom: 16px; font-size: 16px; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--magenta); }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; color: #888; font-size: 12px; }
.footer-bottom time { color: #666; }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .tab-content { grid-template-columns: repeat(4, 1fr); }
  .hero-section { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 300px; margin: 0 auto; max-width: 500px; }
  .mock-card { width: 150px; }
  .mock-img { height: 180px; }
  .ranking-grid { grid-template-columns: 1fr; }
  .article-content { column-count: 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { display: none; }
}
@media (max-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-content { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 32px; }
  .hero-visual { display: none; }
  .nav-actions .login-link { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-announce .container { padding: 0 10px; }
  .announce-inner { width: 100%; justify-content: center; }
  .search-box { display: none; }
  .tab-container { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
  .tab-btn { flex-shrink: 0; }
}