/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #333;
  background: #f4f5f7;
  line-height: 1.7;
}
a { color: #c0392b; text-decoration: none; }
a:hover { color: #e74c3c; text-decoration: underline; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

/* ===== 头部 ===== */
.site-header {
  background: linear-gradient(135deg, #8b0000, #c0392b);
  color: #fff;
  padding: 18px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.logo h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo h1 a { color: #fff; }
.logo h1 a:hover { text-decoration: none; }
.slogan { font-size: 13px; opacity: .9; margin-top: 4px; }

.main-nav { margin-top: 16px; }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav li { margin-right: 2px; }
.main-nav a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 15px;
  border-radius: 4px 4px 0 0;
  transition: background .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.main-nav li.active a { background: #fff; color: #c0392b; font-weight: 700; }

/* ===== 搜索框 ===== */
.search-box { margin: 20px 0; }
.search-box form { display: flex; max-width: 500px; }
.search-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: #c0392b; }
.search-box button {
  padding: 10px 20px;
  border: none;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.search-box button:hover { background: #a93226; }

/* ===== 布局 ===== */
.container { display: block; }
.main-content { float: left; width: 72%; }
.sidebar { float: right; width: 26%; margin-top: 20px; }
.main-content.full-width { float: none; width: 100%; }
.container::after { content: ""; display: block; clear: both; }

/* ===== 区块 ===== */
.section-block {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px;
  color: #8b0000;
  border-left: 4px solid #c0392b;
  padding-left: 10px;
  margin-bottom: 16px;
}
.section-title a { color: #8b0000; }
.section-title a:hover { color: #c0392b; }
.lead { color: #666; margin-bottom: 14px; font-size: 15px; }
.more-link { text-align: right; margin-top: 10px; font-size: 14px; }

/* ===== 开服表 ===== */
.server-table-wrap { overflow-x: auto; }
.server-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.server-table th, .server-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #eee; }
.server-table th { background: #8b0000; color: #fff; font-weight: 600; }
.server-table tr:nth-child(even) { background: #fafafa; }
.server-table tr:hover { background: #fdf2f2; }
.badge { padding: 3px 9px; border-radius: 12px; font-size: 12px; color: #fff; }
.badge.online { background: #27ae60; }
.badge.wait { background: #f39c12; }

/* ===== 文章列表 ===== */
.article-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: flex-start;
}
.article-list li:last-child { border-bottom: none; }
.article-list .date {
  color: #999;
  font-size: 13px;
  min-width: 52px;
  margin-right: 10px;
}
.article-list .item-body { flex: 1; }
.article-list .item-title { font-size: 16px; font-weight: 600; }
.article-list .item-desc { color: #777; font-size: 13px; margin-top: 4px; }
.two-col { display: flex; gap: 20px; }
.two-col .section-block { flex: 1; }

/* ===== 服务网格 ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.service-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 18px;
  transition: box-shadow .2s;
}
.service-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.service-item h3 { color: #8b0000; font-size: 16px; margin-bottom: 8px; }
.service-item p { font-size: 13px; color: #666; }
.contact-box { background: #fdf2f2; border: 1px solid #f5c6cb; border-radius: 6px; padding: 18px; margin-top: 16px; }
.contact-box h3 { color: #8b0000; margin-bottom: 8px; }
.contact-info span { color: #c0392b; font-weight: 700; }

/* ===== 侧边栏 ===== */
.widget { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 16px; margin-bottom: 20px; }
.widget h3 { font-size: 16px; color: #8b0000; border-left: 3px solid #c0392b; padding-left: 8px; margin-bottom: 12px; }
.rank-list li { padding: 8px 0; border-bottom: 1px dashed #eee; counter-increment: rank; }
.rank-list li::before { content: counter(rank) ". "; color: #c0392b; font-weight: 700; }
.text-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.rank-list { counter-reset: rank; }

/* ===== 面包屑 ===== */
.breadcrumb { margin: 18px 0 10px; font-size: 13px; color: #888; }
.breadcrumb a { color: #c0392b; }
.breadcrumb span { color: #555; }

/* ===== 文章详情 ===== */
.article-detail { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 28px; }
.article-header { border-bottom: 2px solid #f0f0f0; padding-bottom: 16px; margin-bottom: 20px; }
.article-header h1 { font-size: 26px; color: #222; line-height: 1.4; }
.article-meta { margin-top: 12px; font-size: 13px; color: #999; }
.article-meta span { margin-right: 18px; }
.article-body h2 { font-size: 19px; color: #8b0000; margin: 22px 0 12px; }
.article-body h3 { font-size: 16px; color: #333; margin: 18px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul { margin: 0 0 16px 22px; }
.article-body li { list-style: disc; margin-bottom: 6px; }
.article-body .note { background: #fff8e1; border-left: 4px solid #f39c12; padding: 12px 14px; font-size: 14px; }
.article-footer { margin-top: 28px; padding-top: 16px; border-top: 1px dashed #eee; font-size: 14px; }
.article-footer p { margin-bottom: 6px; }

/* ===== 分页 ===== */
.pagination { margin-top: 18px; }
.pagination a, .pagination .current {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
}
.pagination .current { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ===== 关于我们 ===== */
.about-content h3 { font-size: 18px; color: #8b0000; margin: 20px 0 10px; }
.about-content p { margin-bottom: 12px; }
.about-content ul { margin-left: 22px; margin-bottom: 14px; }
.about-content li { list-style: disc; margin-bottom: 6px; }

/* ===== 页脚 ===== */
.site-footer {
  background: #2c3e50;
  color: #bdc3c7;
  padding: 28px 0;
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
}
.site-footer .container > p { margin-bottom: 8px; }
.site-footer .links a { color: #ecf0f1; margin: 0 8px; }
.site-footer .disclaimer { color: #95a5a6; font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .main-content, .sidebar { float: none; width: 100%; }
  .two-col { flex-direction: column; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .logo h1 { font-size: 22px; }
  .main-nav a { padding: 10px 12px; font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .server-table { font-size: 13px; }
}
