:root{
  --bg:#f4f8ff;
  --panel:#ffffff;
  --panel-2:#f8fbff;
  --text:#162033;
  --muted:#667085;
  --line:#d9e3f2;
  --primary:#2f6bff;
  --primary-2:#19c2ff;
  --accent:#0f172a;
  --shadow:0 14px 40px rgba(20,37,63,.08);
  --radius:20px;
  --radius-sm:14px;
  --max:1240px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(47,107,255,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(25,194,255,.08), transparent 24%),
    var(--bg);
  line-height:1.7;
  overflow-x:hidden;
}

img{
  display:block;
  max-width:100%;
  height:auto;
}

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

button,
input{
  font:inherit;
}

.site-shell{
  min-height:100vh;
}

.container{
  width:min(100% - 32px, var(--max));
  margin:0 auto;
}

.site-header{
  position:relative;
  z-index:20;
}

.topbar{
  position:sticky;
  top:0;
  backdrop-filter:saturate(180%) blur(16px);
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(217,227,242,.7);
  z-index:50;
}

.topbar-inner{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:74px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  position:relative;
  box-shadow:0 10px 24px rgba(47,107,255,.25);
}

.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:#fff;
  opacity:.95;
}

.brand-mark::before{
  width:18px;
  height:4px;
  left:12px;
  top:12px;
}

.brand-mark::after{
  width:10px;
  height:10px;
  right:10px;
  bottom:10px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.brand-text strong{
  font-size:1.15rem;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-text em{
  font-style:normal;
  color:var(--muted);
  font-size:.86rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 1 auto;
}

.search-form{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 6px 6px 14px;
  min-width:0;
  max-width:100%;
}

.search-form.large{
  width:100%;
  max-width:560px;
  margin:20px auto 0;
}

.search-input{
  border:0;
  background:transparent;
  outline:none;
  min-width:0;
  width:240px;
  max-width:100%;
  color:var(--text);
}

.search-input::placeholder{
  color:#94a3b8;
}

.search-btn,
.btn-primary{
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  padding:10px 18px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
  box-shadow:0 10px 24px rgba(47,107,255,.2);
}

.search-btn:hover,
.btn-primary:hover{
  transform:translateY(-1px);
}

.about-link{
  padding:10px 14px;
  border-radius:999px;
  color:var(--accent);
  background:rgba(47,107,255,.08);
  white-space:nowrap;
}

.menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:14px;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.menu-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--accent);
  border-radius:2px;
}

.nav-wrap{
  border-bottom:1px solid rgba(217,227,242,.8);
  background:rgba(255,255,255,.72);
}

.nav-inner{
  display:flex;
  align-items:center;
  min-height:58px;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.main-nav a{
  padding:9px 14px;
  border-radius:999px;
  color:#334155;
  transition:background .2s ease,color .2s ease;
}

.main-nav a:hover{
  background:rgba(47,107,255,.08);
  color:var(--primary);
}

.nav-home{
  font-weight:700;
}

.hero-strip{
  padding:28px 0 10px;
}

.hero-strip-inner{
  display:grid;
  grid-template-columns:1.5fr .8fr;
  gap:18px;
  align-items:stretch;
}

.hero-copy,
.hero-side-card{
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(248,251,255,.95));
  border:1px solid rgba(217,227,242,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-copy{
  padding:28px;
}

.hero-kicker{
  margin:0 0 10px;
  color:var(--primary);
  font-weight:700;
}

.hero-title{
  margin:0;
  font-size:clamp(1.8rem,4vw,2.7rem);
  line-height:1.15;
  letter-spacing:-.03em;
  word-break:break-word;
}

.hero-desc{
  margin:14px 0 0;
  color:var(--muted);
  max-width:58ch;
}

.hero-side-card{
  padding:24px;
  display:flex;
  align-items:center;
  gap:16px;
}

.pulse-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--primary-2);
  box-shadow:0 0 0 8px rgba(25,194,255,.12);
  flex:0 0 auto;
}

.pulse-dot::after{
  content:"";
}

.hero-side-card p{
  margin:6px 0 0;
  color:var(--muted);
}

.site-main{
  padding:16px 0 48px;
}

.page-section{
  margin-top:18px;
}

.card{
  background:var(--panel);
  border:1px solid rgba(217,227,242,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.feature-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) 320px;
  gap:20px;
}

.feature-primary{
  overflow:hidden;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  min-width:0;
}

.feature-cover{
  min-width:0;
}

.feature-cover img{
  width:100%;
  height:100%;
  min-height:280px;
  aspect-ratio:16/10;
  object-fit:cover;
}

.feature-content{
  padding:28px;
}

.section-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(47,107,255,.1);
  color:var(--primary);
  font-size:.86rem;
  font-weight:700;
}

.feature-content h2,
.heading-content h1,
.article-header h1{
  margin:14px 0 12px;
  line-height:1.2;
  letter-spacing:-.02em;
  word-break:break-word;
}

.feature-content p,
.heading-content p{
  color:var(--muted);
  margin:0;
}

.feature-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.feature-meta span{
  padding:8px 12px;
  background:var(--panel-2);
  border-radius:999px;
  color:#475569;
  border:1px solid var(--line);
}

.feature-panel{
  display:grid;
  gap:20px;
}

.mini-card{
  padding:22px;
}

.mini-card h3{
  margin:0 0 14px;
}

.quick-links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.quick-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  background:var(--panel-2);
}

.content-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:22px;
  align-items:start;
}

.panel,
.page-heading,
.search-keyword-box,
.article-card,
.sidebar-card,
.about-main{
  padding:22px;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.panel-head h2,
.panel-head h3{
  margin:0;
  line-height:1.2;
}

.panel-more,
.text-link,
.cat-link{
  color:var(--primary);
}

.news-list{
  display:grid;
  gap:16px;
}

.news-item{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:16px;
  min-width:0;
  padding:14px;
  border-radius:18px;
  background:var(--panel-2);
  border:1px solid var(--line);
}

.thumb-wrap{
  display:block;
  overflow:hidden;
  border-radius:14px;
}

.thumb-wrap img,
.story-thumb img,
.mini-media img{
  width:100%;
  aspect-ratio:16/10;
  height:auto;
  object-fit:cover;
}

.news-body,
.story-body,
.mini-media div{
  min-width:0;
}

.news-topline,
.news-meta,
.story-meta,
.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  color:var(--muted);
  font-size:.92rem;
}

.news-title,
.story-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  font-weight:800;
  line-height:1.4;
  margin-top:8px;
}

.news-intro,
.story-intro{
  margin:10px 0 0;
  color:var(--muted);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.large-list .news-item{
  grid-template-columns:180px minmax(0,1fr);
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.story-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:18px;
  background:var(--panel-2);
  border:1px solid var(--line);
}

.story-thumb{
  overflow:hidden;
}

.story-thumb img{
  aspect-ratio:16/9;
}

.story-body{
  padding:16px;
}

.story-cat{
  display:inline-block;
  margin-bottom:8px;
  color:var(--primary);
  font-size:.88rem;
}

.story-card.compact .story-body{
  padding:14px;
}

.sidebar{
  display:grid;
  gap:20px;
  min-width:0;
}

.rank-list{
  display:grid;
  gap:10px;
  counter-reset:rank;
}

.rank-item{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:14px;
  background:var(--panel-2);
  border:1px solid var(--line);
}

.rank-item::before{
  counter-increment:rank;
  content:counter(rank);
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  font-weight:800;
}

.rank-num{
  display:none;
}

.rank-text strong,
.simple-item strong,
.mini-media strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.rank-text em,
.simple-item span,
.mini-media span{
  display:block;
  margin-top:6px;
  font-style:normal;
  color:var(--muted);
  font-size:.9rem;
}

.topic-box{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.topic-chip{
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel-2);
  color:#334155;
}

.breadcrumb{
  padding:14px 18px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:.95rem;
}

.heading-content h1{
  font-size:clamp(1.6rem,3vw,2.2rem);
}

.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.pagination a{
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel-2);
}

.simple-list,
.mini-media-list{
  display:grid;
  gap:12px;
}

.simple-item,
.mini-media{
  display:block;
  padding:12px;
  border-radius:14px;
  background:var(--panel-2);
  border:1px solid var(--line);
}

.mini-media{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:12px;
  align-items:center;
}

.mini-media img{
  border-radius:12px;
  aspect-ratio:4/3;
}

.article-layout .content-main{
  min-width:0;
}

.article-header{
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px;
}

.article-content{
  min-width:0;
  word-wrap:break-word;
  overflow-wrap:anywhere;
}

.article-content img{
  max-width:100%;
  height:auto;
  object-fit:cover;
}

.article-content table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
}

.article-content iframe,
.article-content video{
  max-width:100%;
}

.related-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.search-keyword-box h2{
  margin:0 0 8px;
}

.search-keyword-box p,
.empty-state p{
  margin:0;
  color:var(--muted);
}

.empty-state{
  margin-top:22px;
  padding:18px;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff,#f4f8ff);
  border:1px dashed #bfd0ea;
}

.empty-state h3{
  margin:0 0 8px;
}

.about-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
}

.about-main{
  display:grid;
  gap:24px;
}

.about-section h2{
  margin:0 0 12px;
}

.about-section p{
  margin:0 0 12px;
  color:#475569;
}

.contact-list,
.footer-list{
  margin:0;
  padding:0;
  list-style:none;
}

.contact-list li,
.footer-list li{
  margin:0 0 10px;
  color:#475569;
}

.info-table{
  display:grid;
  gap:12px;
}

.info-table div{
  padding:14px;
  border-radius:14px;
  background:var(--panel-2);
  border:1px solid var(--line);
}

.info-table span{
  display:block;
  color:var(--muted);
  margin-bottom:6px;
  font-size:.92rem;
}

.site-footer{
  margin-top:34px;
  padding:36px 0 18px;
  background:#0e1728;
  color:#d6deee;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:22px;
}

.footer-brand h3,
.footer-col h4{
  margin:0 0 12px;
  color:#fff;
}

.footer-brand p,
.footer-list li{
  color:#b6c2d8;
}

.footer-list a{
  color:#d6deee;
}

.footer-bottom{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.error-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.error-page{
  width:min(100%,760px);
}

.error-card{
  padding:38px 28px;
  text-align:center;
}

.error-code{
  display:inline-block;
  font-size:4rem;
  line-height:1;
  font-weight:900;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.error-card h1{
  margin:12px 0;
}

.error-card p{
  max-width:42ch;
  margin:0 auto;
  color:var(--muted);
}

.error-actions{
  margin-top:20px;
}

@media (max-width:1080px){
  .feature-grid,
  .content-layout,
  .about-grid,
  .hero-strip-inner{
    grid-template-columns:1fr;
  }

  .card-grid,
  .related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:820px){
  .topbar-inner{
    flex-wrap:wrap;
    padding:12px 0;
  }

  .menu-toggle{
    display:flex;
    flex:0 0 auto;
  }

  .header-actions{
    width:100%;
    order:3;
    justify-content:space-between;
  }

  .search-form{
    flex:1 1 auto;
  }

  .search-input{
    width:100%;
  }

  .nav-wrap{
    display:none;
  }

  .nav-wrap.is-open{
    display:block;
  }

  .nav-inner{
    min-height:auto;
    padding:10px 0 14px;
  }

  .main-nav{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .main-nav a{
    border-radius:14px;
    background:var(--panel);
    border:1px solid var(--line);
  }

  .feature-primary,
  .news-item{
    grid-template-columns:1fr;
  }

  .feature-cover img,
  .thumb-wrap img{
    min-height:auto;
  }

  .sidebar{
    order:2;
  }
}

@media (max-width:640px){
  .container{
    width:min(100% - 24px, var(--max));
  }

  .hero-copy,
  .hero-side-card,
  .panel,
  .page-heading,
  .search-keyword-box,
  .article-card,
  .sidebar-card,
  .about-main,
  .mini-card{
    padding:18px;
  }

  .header-actions{
    gap:10px;
    flex-direction:column;
    align-items:stretch;
  }

  .about-link{
    text-align:center;
  }

  .card-grid,
  .related-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .large-list .news-item{
    grid-template-columns:1fr;
  }

  .news-item{
    padding:12px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}