/*
Theme Name: MNW News Theme
Theme URI: https://example.com/
Author: OpenCode
Description: A clean news portal WordPress theme inspired by Chinese news sites.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mnw-news-theme
*/

:root {
  --bg: #f4faff;
  --surface: #ffffff;
  --text: #23384a;
  --muted: #7890a3;
  --line: #dcebf5;
  --brand: #67add6;
  --brand-2: #9bd2ee;
  --shadow: 0 8px 24px rgba(103, 173, 214, 0.10);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar { background: #1f2329; color: #cfd6e4; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; padding: 8px 0; gap: 16px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.site-branding h1 { margin: 0; font-size: 28px; line-height: 1; color: var(--brand); }
.site-branding p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.site-search form { display: flex; gap: 0; }
.site-search input { width: 280px; max-width: 48vw; padding: 12px 14px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; outline: none; }
.site-search button { border: 0; padding: 0 18px; border-radius: 0 999px 999px 0; background: var(--brand); color: #fff; cursor: pointer; }
.main-nav { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.main-nav .container { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav li { margin: 0; padding: 0; }
.main-nav a { color: #fff; padding: 14px 16px; display: inline-flex; font-weight: 600; }
.main-nav a:hover { background: rgba(255,255,255,0.12); }
.top-ticker { background: #f7fcff; border-bottom: 1px solid var(--line); }
.top-ticker-inner { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 14px; padding: 10px 0; }
.top-ticker-label { color: var(--brand); font-weight: 700; font-size: 14px; }
.top-ticker-viewport { min-width: 0; overflow: hidden; }
.top-ticker-track { display: flex; width: max-content; animation: topTickerMarquee 45s linear infinite; will-change: transform; }
.top-ticker:hover .top-ticker-track { animation-play-state: paused; }
.top-ticker-group { display: flex; align-items: center; gap: 28px; flex-shrink: 0; padding-right: 28px; }
.top-ticker-track a { font-size: 14px; color: #374151; white-space: nowrap; position: relative; }
.top-ticker-track a::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #b7cfde; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); }
.top-ticker-group a:last-child::after { display: none; }
.top-ticker-track a:hover { color: var(--brand); }

@keyframes topTickerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.page-hero { padding: 22px 0 0; }
.home-slider { padding: 18px; margin-bottom: 18px; }
.slider-shell { position: relative; display: grid; grid-template-columns: 54px 1fr 54px; gap: 12px; align-items: center; }
.slider-viewport { overflow: hidden; border-radius: 14px; }
.slider-track { display: flex; transition: transform .45s ease; }
.slider-item { min-width: 100%; position: relative; overflow: hidden; }
.slider-item figure { margin: 0; aspect-ratio: 16 / 7; }
.slider-caption { position: absolute; inset: auto 0 0; padding: 22px; color: #fff; background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.82) 100%); }
.slider-caption h2 { margin: 8px 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
.slider-caption p { margin: 0; color: rgba(255,255,255,.88); }
.slider-arrow { width: 54px; height: 54px; border: 0; border-radius: 50%; background: #ffffff; box-shadow: var(--shadow); color: var(--brand); font-size: 22px; cursor: pointer; }
.slider-arrow:hover { background: #f3faff; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider-dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #d6dae1; cursor: pointer; }
.slider-dot.is-active { background: var(--brand); }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.card, .widget, .block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-main { overflow: hidden; }
.hero-main figure { position: relative; aspect-ratio: 16 / 9; margin: 0; }
.hero-main figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.68)); }
.hero-main .hero-caption { padding: 18px; margin-top: -86px; position: relative; z-index: 1; color: #fff; }
.hero-main h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 34px); line-height: 1.2; }
.hero-main p { margin: 0; color: rgba(255,255,255,.88); }
.hero-side { display: grid; gap: 14px; }
.mini-news { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.mini-news:last-child { border-bottom: 0; }
.mini-news h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.meta { color: var(--muted); font-size: 12px; }
.news-flash { display: grid; grid-template-columns: 120px 1fr; align-items: center; margin-top: 16px; overflow: hidden; }
.flash-label { background: var(--brand); color: #fff; font-weight: 700; text-align: center; padding: 14px 10px; }
.flash-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flash-items a { display: block; padding: 14px 16px; border-left: 1px solid var(--line); font-size: 14px; }
.flash-items a:hover { color: var(--brand); background: #f6fcff; }
.content-area { padding: 20px 0 48px; }
.news-layout { display: grid; grid-template-columns: 2.1fr .9fr; gap: 18px; align-items: start; }
.section { padding: 18px; }
.section + .section { margin-top: 18px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-header h2 { margin: 0; font-size: 20px; }
.badge { color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-more { color: var(--muted); font-size: 14px; }
.section-more:hover { color: var(--brand); }
.lead-grid-wrap { padding-bottom: 22px; }
.lead-grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: 18px; }
.lead-story { overflow: hidden; border-radius: 12px; background: #fbfbfc; border: 1px solid var(--line); }
.lead-story figure { margin: 0; aspect-ratio: 16 / 9; }
.lead-story .content { padding: 16px; }
.lead-story h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.3; }
.lead-story p { margin: 0; color: var(--muted); }
.lead-side { display: grid; gap: 12px; }
.headline-item { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: linear-gradient(180deg, #fff, #f7fcff); }
.headline-item h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { overflow: hidden; }
.post-card figure { margin: 0; aspect-ratio: 16 / 10; }
.post-card .content { padding: 14px; }
.post-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.topic-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card { position: relative; overflow: hidden; border-radius: 12px; }
.topic-card figure { margin: 0; aspect-ratio: 16 / 10; }
.topic-card .content { position: absolute; inset: auto 0 0; padding: 18px 14px 14px; color: #fff; background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.78) 100%); }
.topic-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.35; }
.visual-strip { display: grid; grid-template-columns: 1.5fr .7fr; gap: 18px; margin-top: 18px; }
.visual-news { min-width: 0; }
.visual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.visual-card { overflow: hidden; border-radius: 12px; background: #fafbfc; border: 1px solid var(--line); }
.visual-card figure { margin: 0; aspect-ratio: 16 / 10; }
.visual-card .content { padding: 12px 14px 16px; }
.visual-card h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.promo-box { background: linear-gradient(135deg, #f2faff 0, #ffffff 100%); }
.promo-content { padding: 12px 2px 6px; }
.promo-content h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; color: var(--brand); }
.promo-content p { margin: 0 0 18px; color: #5e6678; }
.promo-link { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; }
.promo-link:hover { background: #559bc4; }
.list-post { display: grid; gap: 14px; }
.list-post article { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.list-post article:last-child { border-bottom: 0; padding-bottom: 0; }
.list-post h3 { margin: 0 0 8px; font-size: 18px; }
.category-floor { position: relative; }
.category-floor::before { content: ""; position: absolute; top: 18px; left: 18px; width: 6px; height: 24px; border-radius: 999px; background: var(--brand); }
.category-floor .section-header { padding-left: 16px; }
.floor-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.floor-feature { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfd; }
.floor-feature figure { margin: 0; aspect-ratio: 16 / 9; }
.floor-feature .content { padding: 14px; }
.floor-feature h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; }
.floor-feature p { margin: 0; color: var(--muted); }
.floor-list { display: grid; gap: 12px; }
.floor-item { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.floor-item:last-child { padding-bottom: 0; border-bottom: 0; }
.floor-item h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.channel-wrap { padding: 18px; margin-bottom: 18px; }
.channel-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.channel-title { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.channel-desc { margin: 0; color: var(--muted); max-width: 760px; }
.subcat-links { display: flex; flex-wrap: wrap; gap: 10px; }
.subcat-links a { padding: 8px 12px; background: #f3faff; color: var(--brand); border: 1px solid #d3e7f3; border-radius: 999px; font-size: 14px; }
.subcat-links a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.channel-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 18px; }
.channel-lead { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfd; }
.channel-lead figure { margin: 0; aspect-ratio: 16 / 9; }
.channel-lead .content { padding: 16px; }
.channel-lead h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.3; }
.channel-lead p { margin: 0; color: var(--muted); }
.channel-side { display: grid; gap: 12px; }
.channel-digest { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.channel-digest-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; align-content: start; }
.channel-digest-main a { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.5; }
.channel-digest-main a:hover { color: var(--brand); border-color: #b5d9eb; }
.channel-rank { padding: 16px; }
.channel-layout { align-items: start; }
.sidebar .widget { padding: 16px; margin-bottom: 18px; }
.widget-title { margin: 0 0 12px; font-size: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.rank-list, .cat-list, .widget ul { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .num { width: 22px; height: 22px; border-radius: 50%; background: #f1f2f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--brand); }
.cat-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list .count { color: var(--muted); }
.footer { margin-top: 24px; background: #1b1f26; color: #adb5c5; font-size: 14px; line-height: 1.4; }
.footer .container { padding: 18px 0 12px; display: grid; gap: 8px; }
.footer-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { font-size: 14px; font-weight: 400; line-height: 1.4; color: #e2e8f0; margin-bottom: 4px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 0; line-height: 1.4; }
.footer-menu li { list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: #d9e0ec; }
.friend-links { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; line-height: 1.4; }
.friend-links span { color: #e2e8f0; font-weight: 600; font-size: 14px; }
.friend-links a { color: #c8d0de; }
.footer-tagline { color: #adb5c5; margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.footer-contact { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; line-height: 1.4; }
.footer-contact li { margin: 2px 0; }
.footer-label { display: inline-block; min-width: 3em; margin-right: 8px; color: #97a1b4; }
.footer-contact a { color: #d9e0ec; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; padding-top: 0; line-height: 1.4; }
.footer-copy { color: #97a1b4; font-size: 13px; margin: 0; }
.footer-icp { color: #97a1b4; font-size: 13px; }
.footer-icp a { color: #c8d0de; }
.footer-icp a:hover { color: #fff; }
.friend-links a:hover { color: #fff; }
.single-article, .archive-wrap { padding: 18px; }
.article-meta-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.meta-group { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.meta-source, .meta-dot { color: var(--muted); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.share-links a { padding: 8px 12px; border-radius: 999px; background: #f3faff; color: var(--brand); font-size: 13px; font-weight: 600; }
.share-links a:hover { background: var(--brand); color: #fff; }
.post-nav { margin-top: 28px; padding: 18px; }
.post-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post-nav-item { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfc; }
.post-nav-item span { font-size: 13px; color: var(--muted); }
.post-nav-item strong { font-size: 17px; line-height: 1.4; }
.related-posts { margin-top: 18px; }
.comments-wrap { margin-top: 18px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.comment-list .comment { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfd; }
.comment-body { display: grid; gap: 8px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 10px; font-style: normal; }
.comment-author .fn { font-weight: 700; color: var(--text); }
.comment-metadata a { color: var(--muted); }
.comment-content p { margin: 0; }
.reply a, .comment-reply-link { color: var(--brand); font-size: 13px; }
.comments-wrap .comment-form { display: grid; gap: 12px; }
.comments-wrap input[type="text"],
.comments-wrap input[type="email"],
.comments-wrap input[type="url"],
.comments-wrap textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.comments-wrap .submit { border: 0; padding: 12px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.comments-wrap .submit:hover { background: #559bc4; }
.search-wrap { padding: 18px; }
.search-summary { margin: 0 0 16px; color: var(--muted); }
.search-results-box { border: 0; box-shadow: none; padding: 0; background: transparent; }
.entry-title { margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; }
.entry-content { font-size: 17px; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 980px) {
  .hero-grid, .news-layout, .post-grid, .topic-cards, .lead-grid, .floor-grid, .channel-grid, .visual-strip, .visual-grid, .channel-digest, .channel-digest-main { grid-template-columns: 1fr; }
  .slider-shell { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .footer-top { flex-direction: column; }
  .top-ticker-inner { grid-template-columns: 1fr; gap: 8px; }
  .top-ticker-group { gap: 20px; padding-right: 20px; }
  .news-flash { grid-template-columns: 1fr; }
  .flash-items { grid-template-columns: 1fr; }
  .channel-head { flex-direction: column; align-items: start; }
  .site-search input { width: 200px; }
}

@media (max-width: 700px) {
  .masthead { flex-direction: column; align-items: stretch; }
  .site-search form { width: 100%; }
  .site-search input { width: 100%; max-width: none; }
  .topbar .container { flex-direction: column; }
  .list-post article { grid-template-columns: 1fr; }
  .mini-news { grid-template-columns: 1fr; }
  .post-nav-grid { grid-template-columns: 1fr; }
  .main-nav a { padding: 12px 14px; }
  .lead-story h3, .floor-feature h3 { font-size: 20px; }
}

.main-nav ul,
.main-nav ol,
.main-nav li,
.main-nav .menu,
.main-nav .menu-item,
.footer-menu,
.footer-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li::marker,
.footer-menu li::marker {
  content: "" !important;
}
