/* ========== 魔方DNF辅助 站点样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #333;
  background: #f4f4f6;
  line-height: 1.6;
}
a { color: #333; text-decoration: none; }
a:hover { color: #e0342c; }
ul, ol { list-style: none; }
img { border: 0; vertical-align: middle; }
.wrap { width: 1200px; max-width: 96%; margin: 0 auto; }

/* 图标（纯 CSS 符号，避免外链字体） */
.ico { display: inline-block; width: 1em; height: 1em; margin-right: 6px; vertical-align: -2px; position: relative; }
.ico::before { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .95em; }
.ico-refresh::before { content: "\21bb"; }
.ico-cog::before    { content: "\2699"; }
.ico-win::before    { content: "\25a4"; }
.ico-tag::before    { content: "\2606"; }
.ico-file::before   { content: "\2261"; }
.ico-dl::before     { content: "\2193"; font-weight: bold; }
.ico-bell::before   { content: "\266a"; }
.ico-news::before   { content: "\2691"; }
.ico-help::before   { content: "\2753"; }
.ico-cart::before   { content: "\25c9"; }

/* ========== 顶部 ========== */
.top { background: #1b1b1f; border-bottom: 3px solid #e0342c; }
.top-in { display: flex; align-items: center; gap: 30px; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo-mark {
  background: linear-gradient(135deg, #e0342c, #ff7a3d);
  color: #fff; font-size: 26px; font-weight: bold;
  padding: 6px 12px; border-radius: 8px; margin-right: 12px;
  box-shadow: 0 2px 8px rgba(224,52,44,.5);
}
.logo-text { color: #fff; font-size: 22px; font-weight: bold; line-height: 1.2; }
.logo-text em { display: block; font-style: normal; font-size: 12px; font-weight: normal; color: #bbb; letter-spacing: 2px; }
.nav { flex: 1; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 10px 16px; color: #ddd; font-size: 15px; border-radius: 4px; }
.nav a:hover, .nav a.cur { background: #e0342c; color: #fff; }
.top-tel { color: #ffd9d5; font-size: 13px; text-align: right; }
.top-tel b { color: #ffcf40; display: block; }

/* ========== 公告区 ========== */
.banner { background: linear-gradient(180deg, #2a2a30, #23232a); padding: 22px 0; }
.banner-in { display: flex; gap: 20px; }
.notice { flex: 1; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.notice-hd { background: #e0342c; color: #fff; padding: 10px 16px; font-size: 16px; font-weight: bold; }
.notice-bd { padding: 16px; }
.notice-bd p { color: #555; margin-bottom: 10px; }
.notice-bd b { color: #e0342c; }
.notice-list li { padding: 6px 0 6px 18px; border-bottom: 1px dashed #eee; position: relative; color: #444; }
.notice-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #e0342c; }
.notice-list li:last-child { border-bottom: 0; }
.banner-side { width: 300px; }
.kp { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.kp h3 { color: #e0342c; margin-bottom: 12px; font-size: 17px; }
.kp ol { list-style: decimal inside; color: #555; margin-bottom: 14px; }
.kp li { padding: 4px 0; }

/* ========== 按钮 ========== */
.btn { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 13px; color: #fff; transition: opacity .15s; }
.btn:hover { color: #fff; opacity: .85; }
.btn-lg { padding: 9px 22px; font-size: 15px; }
.btn-pay { background: #ff8a00; }
.btn-info { background: #3a7bd5; }
.btn-dl  { background: #21a675; }

/* ========== 滚动提示 ========== */
.marquee { background: #fff8e6; border-bottom: 1px solid #f0e2b8; padding: 8px 0; color: #a06a00; font-size: 13px; }
.marquee .wrap { display: flex; align-items: center; }
.marquee marquee { flex: 1; }

/* ========== 辅助列表 ========== */
.index { padding: 24px 0; }
.tabs { display: flex; gap: 4px; background: #fff; border-radius: 8px 8px 0 0; padding: 6px 6px 0; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tab { flex: 1; border: 0; background: #f2f2f5; padding: 12px 8px; font-size: 15px; cursor: pointer; border-radius: 6px 6px 0 0; color: #666; }
.tab:hover { color: #e0342c; }
.tab.cur { background: #e0342c; color: #fff; font-weight: bold; }
.tab-pane { display: none; background: #fff; border-radius: 0 0 8px 8px; padding: 8px 16px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tab-pane.cur { display: block; }

.item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 8px; border-bottom: 1px solid #f0f0f2; }
.item:last-child { border-bottom: 0; }
.item-thumb { width: 80px; flex: none; border-radius: 6px; overflow: hidden; border: 1px solid #eee; }
.item-thumb img { width: 80px; height: 90px; object-fit: cover; display: block; }
.item-hd { width: 260px; flex: none; position: relative; padding-top: 4px; }
.item-hd h3 { font-size: 16px; line-height: 1.4; }
.item-hd h3 a:hover { color: #e0342c; }
.tag { display: inline-block; background: #ffe9e7; color: #e0342c; font-size: 12px; padding: 1px 8px; border-radius: 3px; margin-bottom: 6px; }
.item-bd { flex: 1; }
.item-bd .row { color: #666; font-size: 13px; margin-bottom: 4px; }
.item-bd .row:first-child { color: #333; }
.item-btn { margin-top: 8px; display: flex; gap: 8px; }

/* ========== 三栏资讯/帮助 ========== */
.cols { display: flex; gap: 20px; padding-bottom: 30px; }
.col { flex: 1; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.col-hd { background: #2b2b31; color: #fff; font-size: 16px; padding: 12px 16px; }
.col ul.art { padding: 10px 16px; }
.col ul.art li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eee; }
.col ul.art li:last-child { border-bottom: 0; }
.col ul.art a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col ul.art time { color: #999; font-size: 12px; flex: none; }
.gouka { padding: 14px 16px; }
.gouka p { margin-bottom: 8px; color: #555; }
.gouka .warn { color: #e0342c; background: #fff3f2; padding: 8px 10px; border-radius: 4px; }
.gouka .btn { margin-top: 6px; }

/* ========== 页脚 ========== */
.foot { background: #1b1b1f; color: #999; padding: 22px 0 30px; font-size: 13px; }
.links { margin-bottom: 12px; }
.links span { color: #ccc; margin-right: 8px; }
.links a { color: #999; margin-right: 14px; }
.links a:hover { color: #e0342c; }
.cp { margin-bottom: 8px; color: #bbb; }
.disclaimer { color: #666; font-size: 12px; line-height: 1.8; }

/* ========== 详情页 ========== */
.detail { background: #fff; border-radius: 8px; padding: 26px; margin: 24px 0; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.detail h1 { font-size: 24px; margin-bottom: 14px; color: #222; }
.detail .meta { color: #888; font-size: 13px; margin-bottom: 18px; }
.detail .feat { background: #fafafa; border: 1px solid #eee; border-radius: 6px; padding: 14px 18px; margin-bottom: 18px; }
.detail .feat li { padding: 5px 0; border-bottom: 1px dashed #eee; color: #555; }
.detail .feat li:last-child { border-bottom: 0; }
.detail .price { font-size: 20px; color: #e0342c; font-weight: bold; margin-bottom: 16px; }
.detail .dlbox { border: 2px dashed #21a675; border-radius: 8px; padding: 18px; text-align: center; margin-top: 10px; }
.detail .dlbox p { color: #666; margin-bottom: 10px; }
.crumb { padding-top: 18px; color: #888; font-size: 13px; }
.crumb a { color: #555; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; gap: 12px; }
  .nav ul { flex-wrap: wrap; }
  .banner-in { flex-direction: column; }
  .banner-side { width: auto; }
  .tabs { flex-wrap: wrap; }
  .tab { flex: none; width: 33%; }
  .item { flex-wrap: wrap; }
  .item-hd { width: 100%; }
  .cols { flex-direction: column; }
}
