/*
Theme Name: 霸王主机测评
Theme URI: https://www.bawangyun.com
Author: bawangyun
Description: 霸王主机测评资讯站主题，白色金色简约风格
Version: 1.0
*/
:root {
  --gold: #c89b3c;
  --gold-dark: #a87f2a;
  --dark: #1a1f3a;
  --gray: #666;
  --light: #f8f9fc;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; color:#333; background:#fff; line-height:1.6; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; }
.bw-container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* 顶部导航 */
.bw-header {
  position:sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid #eee;
}
.bw-nav { display:flex; align-items:center; height:70px; gap:30px; }
.bw-logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800; color:var(--dark); }
.bw-logo img { height:36px; }
.bw-nav-menu { display:flex; gap:25px; flex:1; }
.bw-nav-menu a { font-size:15px; color:#555; font-weight:500; transition:color .2s; }
.bw-nav-menu a:hover, .bw-nav-menu a.active { color:var(--gold); }
.bw-nav-search {
  display:flex; align-items:center; background:var(--light);
  border-radius:20px; padding:6px 16px; gap:8px;
}
.bw-nav-search input { border:none; background:transparent; outline:none; font-size:14px; width:150px; }
.bw-burger { display:none; font-size:24px; background:none; border:none; cursor:pointer; }

/* Hero */
.bw-hero {
  text-align:center; padding:90px 20px;
  background:
    linear-gradient(180deg, rgba(248,249,252,.95) 0%, rgba(255,255,255,.98) 100%),
    url('https://www.bawangyun.com/wp-content/uploads/2026/10/hero-bg.jpg') center/cover no-repeat;
}
.bw-hero h1 { font-size:44px; color:var(--dark); margin-bottom:16px; font-weight:800; letter-spacing:2px; }
.bw-hero p { font-size:18px; color:var(--gray); margin-bottom:30px; }
.bw-btn {
  display:inline-block; background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  color:#fff; padding:14px 40px; border-radius:25px; font-size:16px; font-weight:600;
  transition:all .2s; border:none; cursor:pointer;
}
.bw-btn:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(200,155,60,0.3); }

/* 主内容区 */
.bw-main { padding:60px 0; }
.bw-layout { display:grid; grid-template-columns:1fr 320px; gap:40px; }
.bw-section-title { font-size:24px; font-weight:800; color:var(--dark); margin-bottom:25px; display:flex; justify-content:space-between; align-items:center; }
.bw-section-title a { font-size:14px; color:var(--gold); font-weight:500; }

/* 文章列表 */
.bw-post {
  display:flex; gap:20px; padding:20px; margin-bottom:16px;
  background:#fff; border-radius:12px; border:1px solid #f0f0f0;
  transition:box-shadow .2s;
}
.bw-post:hover { box-shadow:0 4px 20px rgba(0,0,0,0.06); }
.bw-post-thumb { width:220px; height:140px; border-radius:10px; overflow:hidden; flex-shrink:0; background:var(--light); }
.bw-post-thumb img { width:100%; height:100%; object-fit:cover; }
.bw-post-body { flex:1; }
.bw-post-body h3 { font-size:18px; margin-bottom:8px; color:var(--dark); }
.bw-post-body h3 a:hover { color:var(--gold); }
.bw-post-excerpt { font-size:14px; color:var(--gray); margin-bottom:10px; line-height:1.7; }
.bw-post-meta { font-size:13px; color:#999; display:flex; align-items:center; gap:12px; }
.bw-tag {
  display:inline-block; background:var(--gold); color:#fff;
  padding:3px 12px; border-radius:12px; font-size:12px; margin-left:auto;
}

/* 边栏 */
.bw-sidebar-box {
  background:#fff; border-radius:12px; padding:20px;
  margin-bottom:20px; border:1px solid #f0f0f0;
  box-shadow:0 2px 12px rgba(0,0,0,0.04);
}
.bw-sidebar-box h4 {
  font-size:16px; font-weight:700; color:var(--dark);
  margin-bottom:15px; padding-bottom:10px; border-bottom:2px solid var(--gold);
}
.bw-side-list a {
  display:flex; justify-content:space-between; padding:10px 0;
  font-size:14px; color:#555; border-bottom:1px solid #f5f5f5;
}
.bw-side-list a:hover { color:var(--gold); }
.bw-side-shop {
  display:flex; align-items:center; gap:10px; padding:12px;
  border-radius:10px; margin-bottom:10px; color:#fff; font-weight:600;
}
.bw-side-shop.huawei { background:linear-gradient(135deg,#c8102e,#e63946); }
.bw-side-shop.tencent { background:linear-gradient(135deg,#0052d9,#1890ff); }
.bw-side-shop.ucloud { background:linear-gradient(135deg,#0066ff,#3399ff); }

/* 页脚 */
.bw-footer { background:var(--dark); color:#aaa; padding:50px 0 20px; margin-top:40px; }
.bw-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; margin-bottom:30px; }
.bw-footer h5 { color:#fff; font-size:16px; margin-bottom:15px; }
.bw-footer a { color:#aaa; font-size:14px; display:block; padding:4px 0; }
.bw-footer a:hover { color:var(--gold); }
.bw-footer-bottom { text-align:center; padding-top:20px; border-top:1px solid rgba(255,255,255,0.1); font-size:13px; }

/* 单篇文章 */
.bw-single { max-width:800px; margin:0 auto; padding:40px 20px; }
.bw-single h1 { font-size:30px; margin-bottom:15px; color:var(--dark); }
.bw-single-content { font-size:16px; line-height:1.9; }
.bw-single-content p { margin-bottom:16px; }

/* 响应式 */
.bw-thumb-default { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:40px;background:#f5f7fa; }
.bw-hot-list a { display:flex;align-items:center;gap:10px;padding:10px 0;font-size:14px;color:#555;border-bottom:1px solid #f5f5f5; }
.bw-hot-list a:hover { color:var(--gold); }
.bw-hot-icon { font-size:16px; }
.bw-arrow { margin-left:auto;color:#ccc; }
.bw-shop-card { display:flex;align-items:center;gap:12px;padding:14px;border-radius:10px;margin-bottom:10px;color:#fff; }
.bw-shop-logo { font-size:24px; }
.bw-shop-info { display:flex;flex-direction:column; }
.bw-shop-info strong { font-size:15px; }
.bw-shop-info small { font-size:12px;opacity:.8; }
.bw-deals-grid { display:grid;grid-template-columns:1fr 1fr;gap:15px;text-align:center; }
.bw-deal-item { font-size:40px;line-height:1.3; }
.bw-rank-table { width:100%;border-collapse:collapse;font-size:13px;margin-bottom:15px; }
.bw-rank-table th { background:#f8f9fc;padding:8px;text-align:left;font-weight:600;color:#666; }
.bw-rank-table td { padding:8px;border-bottom:1px solid #f0f0f0;color:#555; }
.bw-btn-block { display:block;text-align:center; }

@media (max-width:900px) {
  .bw-layout { grid-template-columns:1fr; }
  .bw-nav-menu { display:none; }
  .bw-burger { display:block; }
  .bw-nav-menu.mobile-open { display:flex; flex-direction:column; position:absolute; top:70px; left:0; right:0; background:#fff; padding:20px; border-bottom:1px solid #eee; }
  .bw-post { flex-direction:column; }
  .bw-post-thumb { width:100%; height:200px; }
  .bw-hero h1 { font-size:30px; }
  .bw-footer-grid { grid-template-columns:1fr; }
}
