:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel-soft:#f8fbff;
  --text:#162033;
  --muted:#6c7a92;
  --line:#dce5f2;
  --primary:#2667ff;
  --primary-strong:#164ed8;
  --accent:#19c2ff;
  --dark:#0f1728;
  --success:#0ea5a4;
  --radius:18px;
  --shadow:0 12px 32px rgba(18,40,76,.08);
  --max:1240px;
}

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

html{
  font-size:16px;
  -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 right, rgba(25,194,255,.12), transparent 26%),
    linear-gradient(180deg, #f7faff 0%, #f4f7fb 100%);
  line-height:1.7;
  overflow-x:hidden;
}

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

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

ul{
  margin:0;
  padding:0;
  list-style:none;
}

input,
button,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

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

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

.site-main{
  padding:24px 0 56px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter:blur(12px);
  background:rgba(244,247,251,.9);
  border-bottom:1px solid rgba(220,229,242,.9);
}

.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:76px;
}

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

.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow:0 8px 18px rgba(38,103,255,.28);
  position:relative;
  flex:0 0 auto;
}

.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:rgba(255,255,255,.92);
}

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

.brand-mark::after{
  width:10px;
  height:10px;
  left:16px;
  top:21px;
}

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

.brand-text strong{
  font-size:1.15rem;
  line-height:1.2;
}

.brand-text em{
  font-style:normal;
  color:var(--muted);
  font-size:.85rem;
}

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

.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;
  box-shadow:var(--shadow);
}

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

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

.search-btn{
  border:none;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  white-space:nowrap;
}

.about-link{
  color:var(--primary-strong);
  font-weight:600;
  white-space:nowrap;
}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
}

.nav-wrap{
  padding-bottom:14px;
}

.site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.site-nav a{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  color:#334155;
  transition:.2s ease;
}

.site-nav a:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--primary), var(--accent));
}

.hero-panel{
  padding-top:4px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(280px,.9fr);
  gap:24px;
  align-items:stretch;
}

.hero-main,
.side-panel,
.module-card,
.side-card,
.article-card,
.error-card{
  background:var(--panel);
  border:1px solid rgba(220,229,242,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-main{
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr);
}

.hero-copy{
  padding:30px 30px 18px;
  background:
    linear-gradient(135deg, rgba(38,103,255,.08), rgba(25,194,255,.1));
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(38,103,255,.12);
  color:var(--primary-strong);
  font-size:.88rem;
  font-weight:700;
}

.hero-copy h1{
  margin:14px 0 10px;
  font-size:clamp(1.8rem, 3vw, 2.9rem);
  line-height:1.2;
  max-width:12ch;
}

.hero-copy p{
  margin:0;
  color:var(--muted);
  max-width:60ch;
}

.hero-feature{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:0;
  align-items:stretch;
}

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

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

.feature-content{
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.meta-tag,
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  background:#eef5ff;
  color:var(--primary-strong);
}

.feature-content h2{
  margin:14px 0 10px;
  font-size:1.45rem;
  line-height:1.35;
}

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

.side-panel,
.side-card{
  padding:22px;
}

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

.section-head h2{
  margin:0;
  font-size:1.25rem;
  line-height:1.2;
}

.section-head span{
  color:var(--muted);
  font-size:.92rem;
}

.section-head.compact{
  margin-bottom:14px;
}

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

.mini-item{
  padding-bottom:12px;
  border-bottom:1px dashed var(--line);
}

.mini-item:last-child{
  padding-bottom:0;
  border-bottom:none;
}

.mini-link{
  display:block;
  font-weight:600;
  color:#22314d;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.content-section{
  margin-top:24px;
}

.layout-grid,
.about-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) 320px;
  gap:24px;
  align-items:start;
}

.main-column{
  min-width:0;
}

.module-card{
  padding:24px;
  margin-bottom:24px;
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

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

.news-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg, #fff, #fbfdff);
  min-width:0;
}

.thumb{
  display:block;
  overflow:hidden;
  background:#e8eef8;
}

.ratio-16x10{
  aspect-ratio:16/10;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.news-card:hover .thumb img,
.feature-row:hover .thumb img{
  transform:scale(1.05);
}

.news-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  flex:1;
}

.news-body h3,
.feature-info h3,
.rank-content h3{
  margin:0;
  font-size:1.05rem;
  line-height:1.45;
  word-break:break-word;
}

.news-body h3 a,
.feature-info h3 a,
.rank-content h3 a{
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.news-body p,
.feature-info p{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.news-meta{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:#7b8799;
  font-size:.88rem;
}

.feature-list{
  display:grid;
  gap:18px;
}

.feature-row{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:18px;
  align-items:stretch;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg, #fff, #fbfdff);
  min-width:0;
}

.small-thumb{
  width:100%;
}

.medium-thumb{
  width:100%;
}

.feature-info{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.sidebar{
  min-width:0;
}

.rank-list{
  display:grid;
  gap:14px;
}

.rank-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.rank-num{
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  flex:0 0 auto;
}

.rank-content{
  min-width:0;
}

.rank-content p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.88rem;
}

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

.info-list li{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 14px;
  background:var(--panel-soft);
  border:1px solid var(--line);
  border-radius:14px;
}

.info-list span{
  color:var(--muted);
  font-size:.9rem;
}

.info-list strong{
  word-break:break-word;
}

.inner-banner{
  margin-top:4px;
}

.inner-banner .container{
  background:linear-gradient(135deg, rgba(38,103,255,.08), rgba(25,194,255,.08));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}

.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:.92rem;
}

.breadcrumb a{
  color:var(--primary-strong);
}

.inner-banner-content h1,
.article-heading h1{
  margin:10px 0 8px;
  font-size:clamp(1.6rem, 2.2vw, 2.4rem);
  line-height:1.25;
  word-break:break-word;
}

.inner-banner-content p{
  margin:0;
  color:var(--muted);
}

.article-banner .container{
  padding-top:22px;
  padding-bottom:22px;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  color:var(--muted);
  font-size:.95rem;
}

.article-card{
  padding:26px;
  margin-bottom:24px;
  min-width:0;
}

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

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

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

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

.article-content pre,
.article-content code{
  white-space:pre-wrap;
  word-break:break-word;
}

.search-keyword-box{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#f6faff;
  border:1px solid var(--line);
  color:#334155;
}

.empty-state{
  margin-top:22px;
  padding:18px;
  border:1px dashed var(--line);
  border-radius:16px;
  background:#fbfdff;
}

.empty-state h3{
  margin:0 0 8px;
  font-size:1rem;
}

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

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

.pagination a{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  color:#334155;
  font-weight:700;
}

.pagination a:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--primary), var(--accent));
}

.about-content p{
  margin:0 0 14px;
  color:#344256;
}

.about-content p:last-child{
  margin-bottom:0;
}

.site-footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  padding:36px 0 24px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:18px;
}

.footer-card{
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
}

.footer-card h3,
.footer-card h4{
  margin:0 0 12px;
}

.footer-card p{
  margin:0;
  color:var(--muted);
}

.footer-list,
.footer-links{
  display:grid;
  gap:10px;
}

.footer-list li{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.footer-list span{
  color:var(--muted);
  font-size:.9rem;
}

.footer-links a{
  color:var(--primary-strong);
}

.footer-bottom{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px 16px;
  color:var(--muted);
  font-size:.92rem;
}

.error-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at top left, rgba(38,103,255,.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(25,194,255,.14), transparent 24%),
    #f4f7fb;
}

.error-card{
  width:min(720px, 100%);
  padding:34px;
  text-align:center;
}

.error-code{
  display:inline-block;
  font-size:4rem;
  line-height:1;
  font-weight:900;
  color:var(--primary);
  margin-bottom:10px;
}

.error-card h1{
  margin:0 0 10px;
  font-size:2rem;
}

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

.error-actions{
  margin-bottom:18px;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  font-weight:800;
}

.search-center{
  margin:0 auto;
  max-width:520px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 1100px){
  .hero-grid,
  .layout-grid,
  .about-grid,
  .footer-grid,
  .hero-feature,
  .compact-grid{
    grid-template-columns:1fr;
  }

  .sidebar{
    order:2;
  }

  .main-column,
  .about-main{
    order:1;
  }

  .feature-row{
    grid-template-columns:180px minmax(0,1fr);
  }
}

@media (max-width: 820px){
  .header-top{
    flex-wrap:wrap;
    align-items:flex-start;
    padding:14px 0;
  }

  .header-actions{
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap;
  }

  .search-form{
    flex:1 1 100%;
    width:100%;
    max-width:100%;
  }

  .search-input{
    width:100%;
  }

  .menu-toggle{
    display:inline-flex;
  }

  .nav-wrap{
    padding:0 0 14px;
  }

  .site-nav{
    display:none;
    width:100%;
    flex-direction:column;
    gap:8px;
  }

  .site-nav.is-open{
    display:flex;
  }

  .site-nav a{
    width:100%;
    text-align:left;
    border-radius:14px;
  }

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

  .feature-row{
    grid-template-columns:1fr;
  }

  .module-card,
  .side-card,
  .article-card,
  .hero-copy,
  .feature-content{
    padding:18px;
  }

  .inner-banner .container{
    padding:18px;
  }
}

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

  .site-main{
    padding-bottom:44px;
  }

  .brand-text em,
  .about-link{
    display:none;
  }

  .hero-copy h1{
    max-width:none;
  }

  .feature-media img{
    min-height:220px;
  }

  .footer-bottom{
    flex-direction:column;
  }

  .error-card{
    padding:24px 18px;
  }

  .error-card h1{
    font-size:1.6rem;
  }
}