/* ywx03 - 深海军蓝 | 站群资讯门户模板（基于 ywx620.com 风格） */
:root {
  --ywx-primary: #1e3a8a;
  --ywx-primary-dark: #172554;
  --ywx-hero-btn: #1d4ed8;
  --ywx-update: #1e40af;
  --ywx-dark: #0c1e47;
  --ywx-accent: #3b82f6;
  --ywx-bg: #ffffff;
  --ywx-text: #333333;
  --ywx-text-2: #666666;
  --ywx-text-3: #999999;
  --ywx-border: #e5e5e5;
  --ywx-link: #0066cc;
  --ywx-link-hover: #1e3a8a;
  --ywx-shadow: 0 2px 6px rgba(0,0,0,.08);
  --ywx-radius: 4px;
}
* { box-sizing: border-box; }
body { font-family: "Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; color: var(--ywx-text); margin: 0; background: var(--ywx-bg); line-height: 1.7; font-size: 14px; }
a { color: var(--ywx-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ywx-link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* 通用容器 */
.ywx-container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 15px; }

/* ===== 顶部导航栏 ===== */
.ywx-header { background: var(--ywx-primary); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 100; }
.ywx-header .ywx-top { background: var(--ywx-primary-dark); padding: 6px 0; font-size: 12px; }
.ywx-header .ywx-top .ywx-top-inner { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.85); }
.ywx-header .ywx-top a { color: rgba(255,255,255,.85); }
.ywx-header .ywx-top a:hover { color: #fff; }
.ywx-header .ywx-logo-bar { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); }
.ywx-header .ywx-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.5rem; font-weight: 700; }
.ywx-header .ywx-logo-icon { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ywx-header .ywx-logo-text { color: #fff; }
.ywx-header .ywx-nav { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.ywx-header .ywx-nav li { position: relative; }
.ywx-header .ywx-nav li a { display: block; padding: 14px 20px; color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500; transition: .2s; }
.ywx-header .ywx-nav li a:hover { background: rgba(0,0,0,.15); color: #fff; text-decoration: none; }
.ywx-header .ywx-nav li.active a { background: var(--ywx-update); color: #fff; }

/* ===== 轮播图 ===== */
.ywx-carousel { position: relative; width: 100%; height: 320px; overflow: hidden; background: linear-gradient(135deg, var(--ywx-primary), var(--ywx-update)); }
.ywx-carousel .ywx-carousel-inner { position: relative; height: 100%; }
.ywx-carousel .ywx-carousel-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; opacity: 0; transition: opacity .8s; }
.ywx-carousel .ywx-carousel-item.active { opacity: 1; }
.ywx-carousel .ywx-carousel-item::before { content: ''; position: absolute; inset: 0; background: var(--ywx-dark); opacity: 0.15; }
.ywx-carousel .ywx-carousel-item h2 { font-size: 2.2rem; margin: 0 0 12px; font-weight: 700; position: relative; z-index: 1; }
.ywx-carousel .ywx-carousel-item p { font-size: 1.05rem; margin: 0; color: rgba(255,255,255,.9); position: relative; z-index: 1; }
.ywx-carousel .ywx-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,.3); color: #fff; border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; transition: .2s; }
.ywx-carousel .ywx-carousel-nav:hover { background: rgba(0,0,0,.55); }
.ywx-carousel .ywx-carousel-prev { left: 20px; }
.ywx-carousel .ywx-carousel-next { right: 20px; }
.ywx-carousel .ywx-carousel-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.ywx-carousel .ywx-carousel-dots .ywx-dot { width: 10px; height: 10px; background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; transition: .2s; }
.ywx-carousel .ywx-carousel-dots .ywx-dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== 主内容区 ===== */
.ywx-main-wrap { padding: 25px 0; }
.ywx-main-grid { display: grid; grid-template-columns: 300px 1fr; gap: 25px; }

/* ===== 侧边栏 ===== */
.ywx-sidebar { width: 100%; }
.ywx-side-block { background: #fff; border: 1px solid var(--ywx-border); border-radius: var(--ywx-radius); margin-bottom: 20px; overflow: hidden; }
.ywx-side-title { padding: 12px 18px; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--ywx-primary); display: flex; align-items: center; gap: 8px; }
.ywx-side-title::before { content: ''; width: 4px; height: 16px; background: #fff; border-radius: 2px; }
.ywx-side-list { padding: 6px 0; }
.ywx-side-item { padding: 12px 18px; border-bottom: 1px dashed var(--ywx-border); transition: .2s; }
.ywx-side-item:last-child { border-bottom: 0; }
.ywx-side-item:hover { background: #f9f9f9; }
.ywx-side-item .ywx-side-item-title { display: block; font-size: 14px; color: var(--ywx-text); line-height: 1.5; margin-bottom: 4px; font-weight: 500; }
.ywx-side-item .ywx-side-item-title:hover { color: var(--ywx-primary); }
.ywx-side-item .ywx-side-item-desc { display: block; font-size: 12px; color: var(--ywx-text-3); line-height: 1.5; }

/* ===== 分类主内容 ===== */
.ywx-content { min-width: 0; }
.ywx-cat-block { background: #fff; border: 1px solid var(--ywx-border); border-radius: var(--ywx-radius); margin-bottom: 20px; overflow: hidden; }
.ywx-cat-head { padding: 12px 18px; background: linear-gradient(to right, var(--ywx-primary), var(--ywx-update)); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.ywx-cat-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ywx-cat-head .ywx-cat-update { font-size: 12px; color: rgba(255,255,255,.85); }
.ywx-cat-list { padding: 4px 0; }
.ywx-article-item { padding: 12px 18px; border-bottom: 1px dashed var(--ywx-border); display: flex; align-items: center; gap: 12px; transition: .2s; }
.ywx-article-item:last-child { border-bottom: 0; }
.ywx-article-item:hover { background: #fafafa; }
.ywx-article-item .ywx-article-date { color: var(--ywx-text-3); font-size: 13px; min-width: 80px; font-family: Consolas, Monaco, monospace; }
.ywx-article-item .ywx-article-title { color: var(--ywx-text); font-size: 14px; line-height: 1.5; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ywx-article-item .ywx-article-title:hover { color: var(--ywx-primary); }

/* 面包屑 */
.ywx-breadcrumb { padding: 12px 0; background: #f5f5f5; font-size: 13px; color: var(--ywx-text-2); }
.ywx-breadcrumb a { color: var(--ywx-text-2); }
.ywx-breadcrumb a:hover { color: var(--ywx-primary); }
.ywx-breadcrumb span { margin: 0 6px; color: var(--ywx-text-3); }

/* 文章详情 */
.ywx-article-page { background: #fff; border: 1px solid var(--ywx-border); border-radius: var(--ywx-radius); padding: 30px; margin: 20px 0; }
.ywx-article-page h1 { font-size: 1.7rem; color: var(--ywx-text); margin: 0 0 16px; line-height: 1.4; }
.ywx-article-meta { color: var(--ywx-text-3); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--ywx-border); margin-bottom: 24px; }
.ywx-article-content { font-size: 15px; line-height: 1.9; color: var(--ywx-text); }
.ywx-article-content p { margin: 0 0 16px; }

/* ===== 友情链接 ===== */
.ywx-friend-links { background: #f8f8f8; border: 1px solid var(--ywx-border); border-radius: var(--ywx-radius); padding: 18px 20px; margin: 25px 0; }
.ywx-friend-links-title { font-size: 1rem; font-weight: 700; color: var(--ywx-primary); margin-bottom: 12px; }
.ywx-friend-links-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.ywx-friend-links-list a { color: var(--ywx-text-2); font-size: 13px; }
.ywx-friend-links-list a:hover { color: var(--ywx-primary); }

/* ===== 页脚 ===== */
.ywx-footer { background: var(--ywx-dark); color: #cbd5e1; padding: 30px 0 20px; text-align: center; }
.ywx-footer p { margin: 0 0 8px; font-size: 13px; }
.ywx-footer a { color: #cbd5e1; }
.ywx-footer a:hover { color: #fff; }
.ywx-footer .ywx-footer-meta { color: #94a3b8; font-size: 12px; margin-top: 10px; }

/* 响应式 */
@media (max-width: 1024px) {
  .ywx-container { width: 100%; }
  .ywx-main-grid { grid-template-columns: 1fr; }
  .ywx-carousel { height: 240px; }
  .ywx-carousel .ywx-carousel-item h2 { font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .ywx-header .ywx-nav { overflow-x: auto; white-space: nowrap; }
  .ywx-header .ywx-nav li a { padding: 12px 14px; font-size: 13px; }
  .ywx-carousel { height: 180px; }
  .ywx-article-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
