/* ============================================================
   武魂Ⅱ商业网站系统 - 主样式表
   主题：深色武侠风 + 金色点缀
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #0a0a0f;
    color: #d4c5a0;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at top, #1a1520 0%, #0a0a0f 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a { color: #c9a96e; text-decoration: none; transition: all 0.3s; }
a:hover { color: #f0d890; text-shadow: 0 0 10px rgba(201,169,110,0.5); }

/* ---- 顶部导航 ---- */
.header {
    background: linear-gradient(180deg, #1a1520 0%, #12101a 100%);
    border-bottom: 2px solid #c9a96e;
    box-shadow: 0 2px 20px rgba(201,169,110,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}
.logo {
    white-space: nowrap;
    font-size: 28px;
    font-weight: bold;
    color: #f0d890;
    text-shadow: 0 0 20px rgba(240,216,144,0.4);
    letter-spacing: 4px;
}
.logo span { color: #c9a96e; font-size: 14px; margin-left: 10px; letter-spacing: 2px; }
.nav { display: flex; gap: 5px; }
.nav a {
    white-space: nowrap;
    padding: 8px 18px;
    color: #a09070;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
}
.nav a:hover, .nav a.active {
    background: rgba(201,169,110,0.15);
    color: #f0d890;
}
.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.user-bar .btn {
    padding: 6px 16px;
    border: 1px solid #c9a96e;
    border-radius: 4px;
    color: #c9a96e;
    font-size: 13px;
}
.user-bar .btn:hover { background: #c9a96e; color: #1a1520; }

/* ---- 主横幅 ---- */
.banner {
    max-width: 1200px;
    margin: 15px auto;
    height: 440px;
    background: url('/images/hero.jpg') center 20% / cover no-repeat;
    border: 2px solid #c9a96e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 0 30px rgba(201,169,110,0.1);
}
.banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.5) 30%, rgba(10,10,15,0.1) 60%, transparent 100%);
    z-index: 0;
}
.banner::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,10,15,0.8) 100%);
    z-index: 0;
}
.banner-content {
    text-align: left;
    z-index: 1;
    padding-left: 50px;
}
.banner h1 {
    font-size: 60px;
    color: #f0d890;
    text-shadow: 0 0 30px rgba(240,216,144,0.7), 0 2px 10px rgba(0,0,0,0.9);
    margin-bottom: 12px;
    letter-spacing: 12px;
    font-weight: bold;
}
.banner p {
    font-size: 18px;
    color: #d4c5a0;
    letter-spacing: 5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    margin-bottom: 6px;
}
.banner .btns { margin-top: 28px; display: flex; gap: 14px; }
.banner .btn-main {
    padding: 12px 40px;
    background: linear-gradient(180deg, #d4a843 0%, #b8922e 100%);
    color: #1a1520;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(212,168,67,0.3);
    transition: all 0.3s;
}
.banner .btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212,168,67,0.5);
}
.banner .btn-sub {
    padding: 12px 40px;
    background: transparent;
    color: #c9a96e;
    font-size: 16px;
    border: 1px solid #c9a96e;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
}
.banner .btn-sub:hover { background: rgba(201,169,110,0.1); }

/* ---- 内容容器 ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.row { display: flex; gap: 20px; margin-bottom: 20px; }
.col-3 { flex: 3; }
.col-2 { flex: 2; }
.col-1 { flex: 1; }

/* ---- 卡片 ---- */
.card {
    background: linear-gradient(180deg, #16121c 0%, #12101a 100%);
    border: 1px solid #2a2530;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 18px;
    color: #f0d890;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #2a2530;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: #c9a96e;
    border-radius: 2px;
}

/* ---- 新闻列表 ---- */
.news-list { list-style: none; }
.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #2a2530;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-list li:last-child { border-bottom: none; }
.news-list .title { color: #c9b892; font-size: 14px; }
.news-list .title:hover { color: #f0d890; }
.news-list .date { color: #8a7a62; font-size: 12px; }
.news-list .tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 2px;
    margin-right: 8px;
}
.tag-hot { background: #8b2020; color: #f0a0a0; }
.tag-new { background: #206040; color: #a0f0c0; }
.tag-notice { background: #605020; color: #f0e0a0; }

/* ---- 服务器状态栏 ---- */
.server-bar {
    max-width: 1200px;
    margin: 0 auto 12px;
    padding: 8px 20px;
    background: linear-gradient(90deg, #16121c 0%, #1a1520 50%, #16121c 100%);
    border-top: 1px solid #2a2530;
    border-bottom: 1px solid #2a2530;
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 13px;
    color: #8a7a60;
}
.server-bar span { display: flex; align-items: center; gap: 6px; }
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.status-online { background: #52c41a; box-shadow: 0 0 6px #52c41a; }
.status-dot.status-offline { background: #f5222d; }

/* ---- 服务器状态 ---- */
.server-status {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
/* ★ 1.043: 中等屏幕 3 列 */
@media (max-width: 1200px) {
    .server-status { grid-template-columns: repeat(3, 1fr); }
}
/* ★ 1.039: 小屏自动两列，别挤成一团 */
@media (max-width: 760px) {
    .server-status { grid-template-columns: repeat(2, 1fr); }
    .row { flex-direction: column; }
}
.server-item {
    background: #1a1520;
    border: 1px solid #2a2530;
    border-radius: 4px;
    padding: 6px 8px;
    text-align: center;
}
.server-item .name { font-size: 12px; color: #f0d890; margin-bottom: 2px; }
.server-item .status {
    display: inline-block;
    padding: 0px 6px;
    border-radius: 8px;
    font-size: 10px;
}
.status-online { background: #206040; color: #80e0a0; }
.status-offline { background: #602020; color: #e08080; }
.status-full { background: #605020; color: #e0d080; }
.server-item .num { font-size: 18px; color: #c9a96e; margin-top: 2px; }
.server-item div:last-child { font-size: 11px; color: #8a7a62; }

/* ---- 表单 ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: #a09070;
    margin-bottom: 6px;
}
.form-group label .req { color: #e06060; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #0f0d14;
    border: 1px solid #3a3040;
    border-radius: 4px;
    color: #d4c5a0;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}
.form-control:focus {
    border-color: #c9a96e;
    box-shadow: 0 0 8px rgba(201,169,110,0.2);
}
.form-control::placeholder { color: #5a5040; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(180deg, #d4a843 0%, #b8922e 100%);
    color: #1a1520;
    font-weight: bold;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,168,67,0.4); }
.btn-danger { background: #8b3030; color: #f0c0c0; }
.btn-danger:hover { background: #a04040; }
.btn-default { background: #2a2530; color: #a09070; border: 1px solid #3a3040; }
.btn-default:hover { background: #3a3040; color: #d4c5a0; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---- 提示消息 ---- */
.alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #1a3020; border: 1px solid #306040; color: #80e0a0; }
.alert-error { background: #301a1a; border: 1px solid #603030; color: #e08080; }
.alert-info { background: #1a2530; border: 1px solid #304560; color: #80b0e0; }
.alert-warning { background: #302a1a; border: 1px solid #605030; color: #e0c080; }

/* ---- 表格 ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th {
    background: #1a1520;
    color: #c9a96e;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #c9a96e;
    font-weight: normal;
}
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid #2a2530;
    color: #c9b892;
}
/* ★ 1.039: 斑马纹 + hover 更明显，长表格更好读 */
.table tr:nth-child(even) td { background: rgba(255,255,255,0.018); }
.table tr:hover td { background: rgba(201,169,110,0.10); }

/* ---- 用户信息面板 ---- */
.user-panel {
    background: linear-gradient(135deg, #1a1520 0%, #221a28 100%);
    border: 1px solid #3a3040;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}
.user-panel .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a96e, #8a7040);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1a1520;
    font-weight: bold;
    float: left;
    margin-right: 20px;
}
.user-panel .info { overflow: hidden; }
.user-panel .info h3 { color: #f0d890; font-size: 20px; margin-bottom: 5px; }
.user-panel .info p { color: #8a7a60; font-size: 13px; margin-bottom: 3px; }
.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
    clear: both;
}
.stat-item {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}
.stat-item .label { font-size: 12px; color: #6a6050; }
.stat-item .value { font-size: 22px; color: #c9a96e; font-weight: bold; }

/* ---- 属性点面板 ---- */
.attr-panel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.attr-item {
    background: #1a1520;
    border: 1px solid #2a2530;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}
.attr-item .attr-name { font-size: 13px; color: #8a7a60; margin-bottom: 5px; }
.attr-item .attr-value { font-size: 24px; color: #f0d890; font-weight: bold; }
.attr-item .attr-add {
    margin-top: 8px;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    background: #c9a96e;
    color: #1a1520;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}
.attr-item .attr-add:hover { background: #f0d890; transform: scale(1.1); }
.attr-item .attr-add:disabled { background: #3a3040; color: #5a5040; cursor: not-allowed; }

/* ---- 转生面板 ---- */
.zs-panel {
    text-align: center;
    padding: 30px;
}
.zs-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #c9a96e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: radial-gradient(circle, #2a1f2e 0%, #1a1520 100%);
    box-shadow: 0 0 30px rgba(201,169,110,0.2);
    position: relative;
}
.zs-circle::after {
    content: "";
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px dashed rgba(201,169,110,0.3);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}
.zs-circle .zs-num { font-size: 42px; color: #f0d890; font-weight: bold; }
.zs-circle .zs-label { font-size: 13px; color: #8a7a60; }
.zs-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
.zs-info-item { background: #1a1520; border-radius: 6px; padding: 15px; }
.zs-info-item .label { font-size: 12px; color: #6a6050; }
.zs-info-item .value { font-size: 20px; color: #c9a96e; }

/* ---- 页脚 ---- */
.footer {
    margin-top: 40px;
    padding: 30px 0;
    background: #0d0b10;
    border-top: 1px solid #2a2530;
    text-align: center;
    color: #8a7a62;
    font-size: 13px;
}
.footer a { color: #a0906e; margin: 0 10px; }

/* ---- 分页 ---- */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid #3a3040;
    border-radius: 4px;
    color: #a09070;
    font-size: 13px;
}
.pagination .current { background: #c9a96e; color: #1a1520; border-color: #c9a96e; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; height: auto; padding: 10px; }
    .nav { flex-wrap: wrap; justify-content: center; margin: 10px 0; }
    .row { flex-direction: column; }
    .banner h1 { font-size: 32px; }
    .user-stats { grid-template-columns: repeat(2, 1fr); }
    .attr-panel { grid-template-columns: repeat(2, 1fr); }
    .zs-info { grid-template-columns: 1fr; }
    .server-status { grid-template-columns: 1fr; }
}

/* ============================================================================
   ★ 1.00 新增：背景音乐控制条按钮（立体/黑金风格）
   —— 线性渐变 + 顶部内高光 + 外投影；hover 提亮；:active 凹陷
   ============================================================================ */
.wlbtn{
  display:inline-block;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  font-size:13px;
  padding:4px 12px;
  border-radius:14px;
  white-space:nowrap;
  color:#fdf0cc;
  background:linear-gradient(#5a4636,#2a2230);
  border:1px solid #c9a96e;
  box-shadow:0 2px 6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,235,180,.30), inset 0 -1px 0 rgba(0,0,0,.45);
  text-shadow:0 1px 1px rgba(0,0,0,.55);
  transition:background .12s, box-shadow .12s, transform .05s;
}
.wlbtn:hover{
  background:linear-gradient(#6b543f,#332838);
  box-shadow:0 3px 9px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,240,200,.42), inset 0 -1px 0 rgba(0,0,0,.45);
}
.wlbtn:active{
  transform:translateY(1px);
  background:linear-gradient(#2a2230,#4a3a2e);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.65), inset 0 -1px 0 rgba(255,235,180,.12);
}
/* 中间【播放/暂停】键：金色实心，更醒目 */
.wlbtn-main{
  color:#1a1520;
  font-weight:bold;
  background:linear-gradient(#f7dfa8,#c9a96e);
  border:1px solid #e6cf9a;
  box-shadow:0 2px 6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(120,90,40,.5);
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.wlbtn-main:hover{ background:linear-gradient(#ffeec2,#d8b87c); }
.wlbtn-main:active{
  transform:translateY(1px);
  background:linear-gradient(#c9a96e,#f0d9a8);
  box-shadow:inset 0 2px 5px rgba(90,60,20,.6);
}
/* 静音态：灰色（表示"没声音"，但仍在播放） */
.wlbtn-mute{
  color:#c0b8c8 !important;
  background:linear-gradient(#403848,#241f2c) !important;
  border-color:#6a6070 !important;
  box-shadow:0 2px 5px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12) !important;
  text-shadow:none !important;
}