:root {
  --red: #e52b2f;
  --red-dark: #b81e24;
  --ink: #151515;
  --muted: #727272;
  --line: #deddd9;
  --paper: #f5f4f0;
  --white: #fff;
  --blue: #2466aa;
  --gold: #ba7b14;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.page-width { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(245,244,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 40px)); height: 72px; margin: 0 auto; display: flex; align-items: center; }
.brand { display: flex; align-items: center; min-width: 240px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--red); font: 800 22px/1 "SimHei", sans-serif; }
.brand-name { margin-left: 10px; font: 900 26px/1 "SimHei", sans-serif; }
.brand-domain { align-self: flex-end; margin: 0 0 5px 8px; color: #888; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.main-nav { align-self: stretch; display: flex; gap: 34px; }
.main-nav a { position: relative; display: flex; align-items: center; font-size: 15px; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 3px; background: var(--red); transition: .2s; }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; }
.icon-button svg, .search-box svg, .refresh-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { background: #e9e8e3; }
.publish-button { height: 40px; padding: 0 18px; border: 0; color: white; background: var(--red); font-weight: 700; }
.publish-button:hover { background: var(--red-dark); }
.publish-button span { margin-right: 5px; font-size: 19px; }
.avatar-button { border-radius: 50%; color: #fff; background: #222; font-weight: 700; }
.menu-trigger { display: none; }
.search-panel { display: none; position: absolute; inset: 72px 0 auto; padding: 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.search-panel.open { display: block; }
.search-box { width: min(720px, 100%); height: 48px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #aeadab; background: #fff; }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 16px; }
.search-box kbd { color: #777; border: 1px solid #ccc; padding: 2px 6px; font-size: 10px; }

.ticker { background: var(--ink); color: white; }
.ticker-inner { height: 45px; display: flex; align-items: center; gap: 22px; font-size: 13px; }
.ticker-label { height: 100%; display: flex; align-items: center; padding-right: 22px; border-right: 1px solid #3d3d3d; font-weight: 700; white-space: nowrap; }
.ticker-label i, .live-count i { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229,43,47,.15); animation: pulse 1.5s infinite; }
.ticker-track { flex: 1; display: flex; gap: 15px; overflow: hidden; white-space: nowrap; }
.ticker-track b { color: #999; font-size: 11px; }
.ticker time { color: #888; }

.hero { padding: 54px 0 66px; }
.section-heading { min-height: 65px; margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.section-heading h1, .section-heading h2 { margin: 4px 0 14px; font: 900 31px/1 "SimHei", sans-serif; }
.section-heading .eyebrow { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.section-heading > p { margin: 0 0 15px; color: #777; font-size: 12px; }
.section-heading > p span { color: var(--red); font-weight: 800; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .8fr); gap: 26px; }
.lead-story { position: relative; min-height: 492px; overflow: hidden; background: #222; color: #fff; }
.lead-story img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lead-story:hover img { transform: scale(1.025); }
.lead-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.86) 100%); }
.lead-content { position: absolute; inset: auto 38px 34px; max-width: 650px; }
.story-tag, .debate-question > span, .daily-prompt > span { display: inline-block; padding: 6px 9px; color: white; background: var(--red); font-size: 11px; font-weight: 800; }
.lead-content h2 { max-width: 650px; margin: 17px 0 12px; font: 900 34px/1.25 "SimHei", sans-serif; }
.lead-content p { max-width: 610px; margin: 0; color: #d6d6d6; font-size: 14px; line-height: 1.75; }
.story-meta { margin-top: 22px; display: flex; gap: 22px; color: #aaa; font-size: 11px; }
.story-meta span:first-child { color: #ff6f6f; }
.hot-ranking { padding: 25px 26px 18px; background: #fff; border-top: 4px solid var(--red); }
.ranking-title { height: 35px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.ranking-title h2 { margin: 0; font-size: 19px; }
.refresh-button { margin-top: -7px; border: 0; color: #777; background: transparent; }
.refresh-button.spinning svg { animation: spin .6s ease; }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-list li { min-height: 65px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #eee; }
.rank { width: 25px; color: #aaa; font: 700 15px/1 Arial, sans-serif; }
.rank.top { color: var(--red); }
.ranking-list li div { min-width: 0; flex: 1; }
.ranking-list a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.ranking-list a:hover { color: var(--red); }
.ranking-list small { margin-top: 6px; display: block; color: #aaa; font-size: 10px; }
.ranking-list small i { display: inline-block; width: 4px; height: 4px; margin: 0 4px 2px 0; border-radius: 50%; background: var(--red); }
.ranking-list em { padding: 2px 4px; color: var(--red); border: 1px solid var(--red); font: normal 9px/1.2 sans-serif; }
.ranking-list em.blue { color: var(--blue); border-color: var(--blue); }
.ranking-more { height: 42px; display: flex; align-items: end; justify-content: space-between; color: #777; font-size: 11px; }
.ranking-more span { color: var(--red); font-size: 17px; }

.debate { padding-bottom: 74px; }
.live-count { display: flex; align-items: center; }
.debate-shell { display: grid; grid-template-columns: 310px 1fr; min-height: 348px; background: #fff; border: 1px solid var(--line); }
.debate-question { padding: 47px 34px; color: #fff; background: var(--ink); }
.debate-question h3 { margin: 24px 0 45px; font: 800 24px/1.55 "SimHei", sans-serif; }
.debate-question p { margin: 0; color: #888; font-size: 11px; }
.debate-votes { position: relative; padding: 36px 35px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vote-card { min-height: 235px; padding: 26px; text-align: left; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.vote-card:hover { transform: translateY(-3px); box-shadow: 0 9px 20px rgba(0,0,0,.07); }
.vote-red { border-top: 4px solid var(--red); }
.vote-dark { border-top: 4px solid #242424; }
.vote-position { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.vote-dark .vote-position { color: #555; }
.vote-card > strong { display: block; margin: 14px 0 13px; font-size: 22px; }
.vote-card p { margin: 0; color: #777; font-size: 13px; line-height: 1.75; }
.vote-action { margin-top: 24px; display: flex; justify-content: space-between; color: #444; font-size: 12px; font-weight: 700; }
.vote-action b { color: var(--red); font-size: 17px; }
.vote-card.voted { outline: 2px solid var(--red); outline-offset: -2px; }
.vote-meter { grid-column: 1 / -1; align-self: end; }
.meter-numbers { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.meter-numbers strong { color: var(--red); font-size: 17px; }
.meter-numbers strong:last-child { color: #333; text-align: right; }
.meter-numbers span { color: #aaa; font-size: 10px; }
.meter-bar { height: 6px; margin-top: 8px; background: #222; }
.meter-bar i { display: block; width: 62%; height: 100%; background: var(--red); transition: width .45s ease; }

.feed-section { padding: 64px 0 72px; background: #fff; border-top: 1px solid var(--line); }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; }
.feed-header { display: flex; align-items: end; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.section-heading.compact { min-height: 64px; margin: 0; border: 0; }
.filter-tabs { display: flex; gap: 18px; }
.filter-tabs button { position: relative; padding: 0 0 15px; border: 0; color: #888; background: none; font-size: 13px; }
.filter-tabs button.active { color: var(--ink); font-weight: 700; }
.filter-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--red); }
.post-card { position: relative; padding: 28px 0 22px; border-bottom: 1px solid var(--line); }
.post-top { display: flex; align-items: center; gap: 10px; }
.post-top time { color: #aaa; font-size: 10px; }
.post-category { padding: 4px 7px; color: var(--red); background: #fff0ef; font-size: 10px; font-weight: 700; }
.post-category.business { color: #9a6613; background: #fff5df; }
.post-category.life { color: #2466aa; background: #eaf3fb; }
.post-card h3 { margin: 14px 0 10px; font-size: 20px; line-height: 1.45; }
.post-card > p, .post-copy > p { margin: 0 0 19px; color: #666; font-size: 13px; line-height: 1.75; }
.author-row { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.avatar-red { background: #b4433f; }.avatar-gold { background: #a67931; }.avatar-blue { background: #3b718b; }
.author-row strong, .author-row small { display: block; }
.author-row strong { font-size: 11px; }.author-row small { margin-top: 4px; color: #aaa; font-size: 9px; }
.post-actions { margin-top: 20px; display: flex; gap: 6px; }
.post-actions button { padding: 6px 11px; border: 1px solid #e2e2e2; color: #777; background: #fff; font-size: 11px; }
.post-actions button:hover, .post-actions button.liked { color: var(--red); border-color: #efb3b3; background: #fff7f7; }
.post-actions .share { margin-left: auto; border-color: transparent; }
.post-card.with-image { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 24px; }
.post-card.with-image > img { width: 205px; height: 146px; object-fit: cover; }
.post-card.with-image .post-actions { grid-column: 1 / -1; margin-top: -3px; }
.load-more { width: 100%; height: 48px; margin-top: 25px; border: 1px solid var(--line); color: #555; background: #fafafa; font-size: 12px; }
.load-more:hover { border-color: #aaa; }
.load-more span { margin-left: 6px; color: var(--red); }

.sidebar { padding-top: 14px; }
.side-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.side-title { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.side-title h3 { margin: 0; font-size: 16px; }
.side-title a { color: #999; font-size: 10px; }
.community-list > a, .author-stack > a { min-height: 58px; display: flex; align-items: center; gap: 12px; }
.community-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.c-ai { background: #242424; }.c-money { background: #aa7728; }.c-life { background: #3f6e85; }.c-film { background: #a64444; }
.community-list div, .author-stack div { min-width: 0; flex: 1; }
.community-list strong, .community-list small, .author-stack strong, .author-stack small { display: block; }
.community-list strong, .author-stack strong { font-size: 12px; }
.community-list small, .author-stack small { margin-top: 5px; color: #999; font-size: 9px; }
.community-list b, .author-stack b { padding: 5px 9px; color: #777; border: 1px solid #ddd; font-size: 9px; font-weight: 500; }
.community-list b.joined, .author-stack b.joined { color: #aaa; background: #eee; }
.daily-prompt { margin-top: 28px; padding: 25px; color: white; background: var(--ink); }
.daily-prompt h3 { margin: 18px 0 13px; font-size: 18px; line-height: 1.5; }
.daily-prompt p { color: #8d8d8d; font-size: 10px; }
.daily-prompt button { margin-top: 12px; padding: 0; border: 0; color: #ff686b; background: none; font-size: 11px; font-weight: 700; }

footer { padding: 38px 0; color: #aaa; background: #111; }
.footer-inner { display: flex; align-items: center; gap: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong, .footer-brand small { display: block; }.footer-brand strong { color: white; }.footer-brand small { margin-top: 4px; font-size: 9px; }
.footer-links { display: flex; gap: 25px; font-size: 11px; }.footer-links a:hover { color: white; }
.footer-inner > p { margin-left: auto; font-size: 9px; letter-spacing: 1px; }

.compose-modal { width: min(600px, calc(100% - 30px)); padding: 0; border: 0; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.compose-modal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.compose-modal form { padding: 32px; }
.modal-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.modal-head span { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.modal-head h2 { margin: 5px 0 18px; }
.modal-head button { align-self: start; border: 0; background: none; font-size: 28px; }
.compose-modal label { margin-top: 20px; display: block; font-size: 12px; font-weight: 700; }
.compose-modal input, .compose-modal select, .compose-modal textarea { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #ccc; outline: 0; background: #fafafa; resize: vertical; }
.compose-modal input:focus, .compose-modal select:focus, .compose-modal textarea:focus { border-color: var(--ink); }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions button { padding: 10px 20px; border: 0; }.modal-actions .cancel { background: #eee; }.modal-actions .submit { color: white; background: var(--red); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; padding: 11px 18px; color: white; background: #222; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .brand { min-width: auto; margin-right: auto; }.brand-domain { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; height: auto; padding: 12px 20px 20px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }.main-nav a { padding: 13px 0; }.main-nav a::after { display: none; }
  .menu-trigger { display: grid; }.avatar-button { display: none; }
  .hero-grid, .feed-layout { grid-template-columns: 1fr; }.lead-story { min-height: 440px; }.hot-ranking { padding-bottom: 10px; }
  .debate-shell { grid-template-columns: 1fr; }.debate-question { padding: 30px; }.debate-question h3 { margin-bottom: 24px; }
  .feed-layout { gap: 30px; }.sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }.daily-prompt { margin: 0; }
}

@media (max-width: 620px) {
  .page-width, .header-inner { width: min(100% - 24px, 1180px); }
  .header-inner { height: 62px; }.brand-mark { width: 34px; height: 34px; font-size: 19px; }.brand-name { font-size: 22px; }
  .search-panel, .main-nav { top: 62px; }.publish-button { width: 38px; padding: 0; font-size: 0; }.publish-button span { margin: 0; font-size: 22px; }
  .ticker-track b, .ticker time { display: none; }.ticker-inner { gap: 12px; }.ticker-label { padding-right: 12px; }
  .hero { padding: 34px 0 48px; }.section-heading h1, .section-heading h2 { font-size: 25px; }.hero-heading > p { display: none; }
  .lead-story { min-height: 455px; }.lead-content { inset: auto 22px 24px; }.lead-content h2 { font-size: 28px; }.lead-content p { font-size: 13px; }.story-meta { flex-wrap: wrap; gap: 8px 18px; }
  .hot-ranking { padding: 22px 18px 10px; }
  .debate { padding-bottom: 50px; }.section-heading > p { display: none; }.debate-question h3 { font-size: 21px; }
  .debate-votes { padding: 18px; grid-template-columns: 1fr; }.vote-card { min-height: auto; }.vote-meter { grid-column: 1; grid-row: 2; }.vote-dark { grid-row: 3; }
  .feed-section { padding: 42px 0 50px; }.feed-header { align-items: center; }.section-heading.compact .eyebrow { display: none; }.section-heading.compact h2 { margin-bottom: 14px; }
  .filter-tabs { gap: 12px; }.filter-tabs button { font-size: 12px; }.post-card.with-image { grid-template-columns: 1fr; }.post-card.with-image > img { grid-row: 2; width: 100%; height: 190px; }.post-card.with-image .post-actions { grid-column: 1; }
  .sidebar { grid-template-columns: 1fr; }.footer-inner { align-items: flex-start; flex-direction: column; gap: 22px; }.footer-links { flex-wrap: wrap; gap: 14px 20px; }.footer-inner > p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
