
:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel-soft:rgba(255, 255, 255, .72);
  --primary:#1f6feb; 
  --primary-strong:#0b5ad9;
  --accent:#2aa8ff; 
  --text:#0b1b33;
  --muted:#4f6380;
  --shadow:0 12px 30px rgba(13, 50, 102, .12);
  --shadow-strong:0 18px 44px rgba(13, 50, 102, .18);
  --hover-shadow:0 10px 22px rgba(31,111,235,.22);
  --hover-border:rgba(31,111,235,.35);
  --radius:16px;
}


*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
img{ -webkit-user-drag:none; user-select:none; }
@media print{ body{ display:none !important; } }
html,body{height:100%;}
body{
  margin:0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(31,111,235,.16), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(42,168,255,.14), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #eef3fb 45%, #f7f9fc 100%);
  color:var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height:1.6;
  -webkit-tap-highlight-color: transparent;
}
a{text-decoration:none;color:inherit}


canvas#bg-particles{position:fixed;inset:0;z-index:-1;opacity:.75;filter: blur(.2px);}
body{ overflow:hidden; }
.fixed-area{
  position:fixed;
  top:0; left:0; right:0;
  z-index:10;
  background: transparent;
}
.cards-scroll{
  position:fixed;
  left:0; right:0; bottom:0;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.top-bg{
  position:fixed;
  top:60px;
  left:0;
  right:0;
  height:320px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.75) 70%);
  opacity:.85;
  z-index:-2;
  pointer-events:none;
  filter: saturate(1.05);
}


header{
  position:sticky; top:0; z-index:20;
  background:
    linear-gradient(180deg, rgba(220,232,250,.98), rgba(200,218,245,.9));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(15, 40, 90, .1);
  box-shadow: 0 10px 26px rgba(15, 40, 90, .08);
  position: relative;
  overflow: hidden;
}
header::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(120deg, rgba(31,111,235,.12), transparent 60%),
    repeating-linear-gradient(90deg, rgba(15,40,90,.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(15,40,90,.06) 0 1px, transparent 1px 18px);
  opacity:.95;
  pointer-events:none;
}
header::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:2px;
  background: linear-gradient(90deg, transparent, rgba(31,111,235,.6), transparent);
  opacity:.8;
  pointer-events:none;
}
.nav{
  max-width:1200px; margin:0 auto; padding:10px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  position: relative; z-index: 1;
}
.brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.6px;}
.brand .logo{
  width:38px; aspect-ratio:1/1; border-radius:50%;
  display:grid; place-items:center; color:#fff; font-weight:900;
  background: radial-gradient(circle at 30% 30%, rgba(42,168,255,.9), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(31,111,235,.9), transparent 55%),
              #0b4db8;
  box-shadow: var(--shadow);
}
.brand .title{font-size:18px; color:#0b1b33; text-shadow:0 2px 12px rgba(31,111,235,.18)}

.nav-links{display:flex; gap:12px; flex-wrap:wrap}
.nav-links a{
  color:#0b1b33; text-decoration:none; padding:9px 14px; border-radius:14px;
  border:1px solid rgba(15, 40, 90, .18);
  transition:.25s ease; font-weight:700; font-size:14px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 40, 90, .18);
  backdrop-filter: blur(6px);
}
.nav-links a:hover{ color:#0b1b33; border-color:var(--hover-border); box-shadow:var(--hover-shadow)}


.carousel{ max-width:1200px; margin:2px auto 6px; padding:0 20px; }
.carousel-wrap{ position:relative; border-radius:var(--radius); overflow:hidden; box-shadow: var(--shadow); border:1px solid rgba(15, 40, 90, .08); background:#fff; }
.slide img{ opacity:.92; }
.slides, .car-btn, .dots{ position:relative; z-index:1; }
.slides{ display:flex; transition: transform .6s ease; }
.slide{ min-width:100%; height:42vw; max-height:420px; background:#eaf1ff; position:relative; }
.slide img{ width:100%; height:100%; object-fit:cover; display:block; opacity:.92; }

.car-btn{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:1px solid rgba(15, 40, 90, .12); background:rgba(255,255,255,.8); color:#0b1b33; display:grid; place-items:center; cursor:pointer; box-shadow:var(--shadow); transition: transform .42s cubic-bezier(.22,1,.36,1), background .34s cubic-bezier(.22,1,.36,1), box-shadow .42s cubic-bezier(.22,1,.36,1), border-color .34s cubic-bezier(.22,1,.36,1); }
.car-btn:hover{ background:rgba(31,111,235,.12); box-shadow:var(--hover-shadow)}
.car-prev{ left:12px; }
.car-next{ right:12px; }

.dots{ position:absolute; bottom:10px; left:0; right:0; display:flex; gap:8px; justify-content:center; }
.dot{ width:10px; height:10px; border-radius:50%; background:rgba(15, 40, 90, .15); border:1px solid rgba(15, 40, 90, .2); cursor:pointer; transition: transform .46s cubic-bezier(.22,1,.36,1), background .34s cubic-bezier(.22,1,.36,1), box-shadow .34s cubic-bezier(.22,1,.36,1), border-color .34s cubic-bezier(.22,1,.36,1); }
.dot.active{ background:var(--primary); box-shadow:0 0 12px rgba(31,111,235,.35); transform: scale(1.18); }


.section{ max-width:1200px; margin:10px auto; padding:0 20px; }
.section h2{ font-size:18px; margin:6px 0 6px; color:#0b1b33; text-shadow:none}
.section h2:first-of-type{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:6px 0 8px;
  font-size:20px;
  font-weight:800;
  letter-spacing:1px;
  position:relative;
  text-align:center;
}
.section h2:first-of-type::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:50%;
  transform:translateX(-50%);
  width:96px;
  height:4px;
  border-radius:999px;
  background: linear-gradient(90deg, transparent, var(--primary-strong), var(--accent), transparent);
  box-shadow: 0 6px 16px rgba(31,111,235,.25);
}

#cardsScroll .section h2{
  margin-top:2px;
  margin-bottom:4px;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:6px;
}
@media (max-width:1200px){ .card-grid{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width:1024px){ .card-grid{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width:768px){ .card-grid{ grid-template-columns: repeat(4, 1fr); gap:8px; } }
@media (max-width:420px){ .card-grid{ grid-template-columns: repeat(4, 1fr); gap:6px; } }

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(245,250,255,.56));
  border-radius:22px;
  padding:12px;
  gap:9px;
  align-items:center;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,.66);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 14px 30px rgba(26,68,138,.13);
  opacity:0;
  transform: translateY(12px) scale(.985);
  animation: iosCardIn .62s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--stagger, 0ms);
  position: relative;
  overflow: hidden;
}
.card:hover{
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(84,151,255,.48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 16px 36px rgba(37,92,184,.2);
}

@keyframes iosCardIn{
  0%{ opacity:0; transform: translateY(12px) scale(.985); }
  68%{ opacity:1; transform: translateY(-1px) scale(1.003); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .card{ animation:none; opacity:1; transform:none; }
}

.avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  border:2px solid rgba(31,111,235,.18);
  box-shadow:0 8px 18px rgba(31,111,235,.18);
  background:#eef4ff;
  object-fit:cover;
}

.meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-width:0;
  width:100%;
}

.title{
  font-weight:700;
  color:#0b1b33;
  font-size:14px;
  line-height:1.3;
  white-space:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  width:100%;
}

.desc{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  width:100%;
}

.site-footer{
  max-width:1200px;
  margin:6px auto 18px;
  padding:0 20px;
}
.brand-footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  background: transparent;
  border:none;
  border-radius:0;
  padding:6px 0;
  box-shadow: none;
  color:#6b7a92;
  font-size:12px;
  text-align:center;
}
.brand-footer .logo{
  width:auto;
  max-width:120px;
  height:24px;
  border-radius:6px;
  overflow:hidden;
  border:1px solid rgba(15, 40, 90, .12);
  background:#fff;
  padding:2px 6px;
  display:flex;
  align-items:center;
}
.brand-footer .logo img{ width:auto; height:100%; object-fit:contain; display:block; }
.brand-footer .text{ display:flex; flex-direction:column; gap:2px; align-items:center; }
.brand-footer .name{ font-weight:700; font-size:18px; color:#4f6380; }
.brand-footer .desc{ font-size:14px; color:#7b8aa3; }
.brand-footer .copy{ font-size:11px; color:#7b8aa3; white-space:nowrap; }
@media (max-width:600px){
  .brand-footer{ flex-direction:column; align-items:center; }
}

.no-select{ user-select:none }
.no-select input, .no-select textarea{ user-select:text }


.nav-main-btn{
  color:#0b1b33 !important;
  font-weight:800;
  padding:10px 20px;
  border-radius:14px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 40, 90, .22);
  border:1px solid rgba(15, 40, 90, .22);
  position:relative;
  overflow:hidden;
  text-shadow: none;
  transition: transform .42s cubic-bezier(.22,1,.36,1), box-shadow .42s cubic-bezier(.22,1,.36,1), border-color .34s cubic-bezier(.22,1,.36,1), background .34s cubic-bezier(.22,1,.36,1);
}
.nav-main-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--hover-shadow);
}
.nav-main-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45), transparent 70%);
  transform: translateX(-120%);
  transition: .6s ease;
}
.nav-main-btn:hover::after{
  transform: translateX(120%);
}
.brand-logo {
  height: 40px;
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(31,111,235,.25));
}

/* 图标滚动 */
.icon-ticker{
  margin-top:4px;
  margin-bottom:2px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15, 40, 90, .08);
  border-radius:14px;
  box-shadow: 0 10px 24px rgba(31,111,235,.16);
  padding:10px 12px;
  overflow:hidden;
  position:relative;
  touch-action: pan-y;
}
.icon-ticker .ticker-status{
  position:absolute;
  right:10px; top:6px;
  background: rgba(0,0,0,.45);
  color:#fff;
  font-size:11px;
  padding:2px 6px;
  border-radius:8px;
  opacity:0;
  transition: opacity .2s ease;
  pointer-events:none;
}
.icon-ticker.paused .ticker-status{ opacity:1; }
.icon-ticker.compact{ margin-top:6px; margin-bottom:6px; }
.icon-track{
  display:flex;
  gap:14px;
  align-items:center;
  will-change: transform;
}
.icon-item{
  flex:0 0 auto;
  width:52px;
  height:52px;
  border-radius:50%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(243,248,255,.95));
  border:1px solid rgba(15, 40, 90, .1);
  box-shadow: 0 8px 18px rgba(31,111,235,.14);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.icon-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(31,111,235,.2);
}
.icon-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

/* 跑马灯 */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #2b6fe9, #4aa3ff);
  border-radius: 10px;
  padding: 6px 10px 6px 58px;
  box-shadow: 0 10px 22px rgba(31,111,235,.2);
  border:1px solid rgba(15, 40, 90, .08);
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  position:relative;
}
.marquee-wrap::before{
  content:"";
  position:absolute;
  left:-18px; top:0; bottom:0;
  width:70px;
  background: linear-gradient(135deg, #ff4d4d, #ff8a3d);
  border-radius:10px;
  z-index:1;
}
.marquee-wrap.no-badge{
  padding: 2px 10px;
  min-height:28px;
}
.marquee-wrap.no-badge::before{
  content:none;
}
.marquee-wrap.compact{ margin-top:6px; }

/* 分类按钮 */
.category-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 14px;
  box-shadow: none;
}
.category-button {
  padding: 8px 12px;
  border: 2px solid rgba(31,111,235,.3);
  border-radius: 10px;
  background-color: transparent;
  color: #0b1b33;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}
.category-button.active {
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  color: white;
  border-color: rgba(31,111,235,.5);
  box-shadow: 0 4px 12px rgba(31,111,235,.35);
}
.category-button:hover {
  transform: translateY(-2px);
  border-color: rgba(31,111,235,.5);
  background-color: rgba(31,111,235,.08);
}

/* 分类内容区 */
.category-content { display: none; animation: fadeIn 0.3s ease; }
.category-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Template V2: Neo Glass Board ===== */
body{
  background:
    radial-gradient(1000px 540px at -20% -10%, rgba(56,189,248,.25), transparent 60%),
    radial-gradient(860px 480px at 120% 6%, rgba(37,99,235,.24), transparent 62%),
    linear-gradient(160deg, #eef4ff 0%, #e8effd 48%, #edf3ff 100%);
}

.fixed-area{
  background: linear-gradient(180deg, rgba(236,244,255,.82), rgba(236,244,255,0));
}

header{
  max-width:1240px;
  margin: 0 auto 4px;
  border-radius: 0 0 18px 18px;
  border:1px solid rgba(255,255,255,.7);
  box-shadow: 0 16px 38px rgba(26,69,138,.16);
}
header::after{ height:1px; opacity:.5; }
.nav{ padding:12px 22px; }

.brand-logo {
  height: 30px;
  filter: drop-shadow(0 10px 20px rgba(31,111,235,.18));
  padding-top: 3px;
}

.nav-main-btn{
  min-width:126px;
  border-radius:16px;
  font-size:17px;
  font-weight:900;
  letter-spacing:.5px;
}

.carousel{ margin:4px auto 4px; }
.carousel-wrap{ border-radius:26px; box-shadow: 0 26px 46px rgba(30,78,158,.22); }
.slide{ height:38vw; min-height:250px; max-height:400px; }
.car-btn{ width:48px; height:48px; }

#apps.section{ margin-top:6px; margin-bottom:2px; }
.marquee-wrap{ min-height:34px; border-radius:12px; padding:4px 10px; }
.marquee-text{ font-size:13px; font-weight:700; }
.icon-ticker{ margin-top:6px; border-radius:16px; padding:8px 10px; }
.icon-track{ gap:10px; }
.icon-item{ width:46px; height:46px; }

.cards-scroll .section{ margin-top:0; padding-top:0; }

#cardsScroll .section h2{
  margin-top:0;
  margin-bottom:18px;
  font-size:34px;
  font-weight:900;
  letter-spacing:1.2px;
  color:#0f2250;
}
#cardsScroll .section h2::after{
  width:126px;
  height:5px;
  bottom:-8px;
}

.site-footer{ margin-top:8px; }

.marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeMove 30s linear infinite;
  padding-left: 6px;
  z-index:2;
}
.marquee-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  text-shadow:
    0 1px 0 rgba(0,0,0,.2),
    0 6px 16px rgba(0,0,0,.18);
}
@keyframes marqueeMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 响应式 */
@media (max-width:1200px){
  #cardsScroll .section h2{ font-size:30px; }
}
@media (max-width:1024px){
  .card-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  #cardsScroll .section h2{ font-size:26px; }
  .title{ font-size:13px; }
  .desc{ font-size:11px; }
  .card{ padding:10px; }
  .avatar{ width:56px; height:56px; }
}
@media (max-width:768px){
  .card-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap:8px; }
  .card{ padding:8px; gap:6px; border-radius:14px; }
  .avatar{ width:48px; height:48px; }
  .title{ font-size:12px; line-height:1.2; -webkit-line-clamp:2; }
  .desc{ font-size:11px; line-height:1.2; margin-top:2px; -webkit-line-clamp:1; }
  .icon-ticker{ margin-top:4px; padding:6px 8px; }
  .icon-item{ width:42px; height:42px; }
  .carousel{ padding:0 10px; margin:2px auto 2px; }
  .slide{ min-height:168px; max-height:235px; height:46vw; }
  .car-btn{ width:40px; height:40px; }
}
@media (max-width:420px){
  .card-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); gap:6px; }
  .card{ padding:6px; }
  .avatar{ width:40px; height:40px; }
  .title{ font-size:11px; }
  .desc{ font-size:10px; }
}
