/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  color: #e8e0d0;
  background: #0a0a1a;
  overflow-x: hidden;
}

/* ===== 背景 ===== */
.bg-overlay {
  position: fixed; inset: 0; z-index: 0;
  background-image: url('/assets/img/default-bg.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.bg-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,40,0.8) 0%, rgba(20,5,30,0.7) 100%);
}

/* ===== 页面层级 ===== */
header, nav, main, footer, .float-service { position: relative; z-index: 10; }

/* ===== 顶部Header ===== */
.site-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(180,130,40,0.15) 0%, rgba(220,170,60,0.1) 100%);
  border-bottom: 1px solid rgba(220,170,60,0.3);
  backdrop-filter: blur(10px);
}
.header-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.site-logo { height: 44px; object-fit: contain; }
.site-title-text {
  font-size: 22px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(90deg, #f5d060, #e8a020, #f5d060);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 轮播图 ===== */
.banner-wrap {
  position: relative; overflow: hidden;
  max-width: 720px; margin: 0 auto;
  border-bottom: 2px solid rgba(220,170,60,0.3);
}
.banner-slider { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.banner-slide { min-width: 100%; }
.banner-slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all 0.3s;
}
.dot.active { background: #f5d060; width: 20px; border-radius: 4px; }

@media (min-width: 600px) {
  .banner-slide img { height: 240px; }
}

/* ===== 导航Tab ===== */
.nav-tabs-wrap {
  max-width: 720px; margin: 0 auto;
  background: rgba(10,10,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,170,60,0.25);
  position: sticky; top: 0; z-index: 100;
}
.nav-tabs {
  display: flex; overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  flex: 1; min-width: 80px;
  padding: 14px 16px;
  text-align: center; cursor: pointer;
  font-size: 14px; font-weight: 500;
  color: rgba(220,200,160,0.65);
  transition: all 0.3s;
  position: relative; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.nav-tab::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: linear-gradient(90deg, #f5d060, #e8a020);
  transition: all 0.3s;
}
.nav-tab.active { color: #f5d060; }
.nav-tab.active::after { left: 10%; right: 10%; }
.nav-tab:hover { color: #f5d060; }
.tab-icon { width: 18px; height: 18px; object-fit: contain; }

/* ===== 内容区 ===== */
.main-content { padding: 16px 12px 80px; }
.container { max-width: 720px; margin: 0 auto; }
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 内容卡片 ===== */
.content-card {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.06) 0%,
    rgba(220,170,60,0.05) 100%);
  border: 1px solid rgba(220,170,60,0.2);
  border-radius: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(220,170,60,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(220,170,60,0.1);
}

/* 卡片头部 */
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(220,170,60,0.15) 0%, rgba(220,170,60,0.05) 100%);
  border-bottom: 1px solid rgba(220,170,60,0.15);
}
.card-title {
  font-size: 15px; font-weight: 600; color: #f5d060;
  display: flex; align-items: center; gap: 8px;
}
.title-bar {
  width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #f5d060, #e8a020);
  flex-shrink: 0;
}

/* 下载按钮 */
.btn-download {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #f5d060 0%, #c8840a 100%);
  color: #1a0a00; font-size: 13px; font-weight: 700;
  border-radius: 20px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(220,170,60,0.4);
  transition: all 0.3s; white-space: nowrap;
}
.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(220,170,60,0.6);
}
.btn-icon { font-size: 14px; }

/* 卡片内容 */
.card-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

.content-item {
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 14px; line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px solid rgba(220,170,60,0.06);
}
.content-item:last-child { border-bottom: none; }

.item-label {
  color: rgba(220,200,160,0.7);
  white-space: nowrap; flex-shrink: 0;
}
.item-value { color: #e8e0d0; word-break: break-all; }
.item-link {
  color: #f07070; text-decoration: none; word-break: break-all;
  transition: color 0.2s;
}
.item-link:hover { color: #f5a0a0; text-decoration: underline; }

.item-warning {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: rgba(220,60,60,0.1);
  border: 1px solid rgba(220,60,60,0.2);
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
}
.warning-icon { font-size: 16px; flex-shrink: 0; }

.empty-tip {
  text-align: center; padding: 40px;
  color: rgba(220,200,160,0.4); font-size: 14px;
}

/* ===== 底部 ===== */
.site-footer {
  background: rgba(5,5,20,0.9);
  border-top: 1px solid rgba(220,170,60,0.15);
  padding: 16px;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.site-footer p { font-size: 12px; color: rgba(220,200,160,0.4); line-height: 2; }
.site-footer .icp { font-size: 11px; color: rgba(220,200,160,0.25); }

/* ===== 悬浮客服 ===== */
.float-service {
  position: fixed; right: 16px; bottom: 80px; z-index: 999;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(135deg, #f5d060, #c8840a);
  color: #1a0a00; text-decoration: none;
  padding: 10px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(220,170,60,0.5);
  transition: all 0.3s; min-width: 50px;
}
.float-service:hover { transform: scale(1.1) translateY(-2px); }
.float-icon { font-size: 22px; }
.float-text { font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ===== 响应式 ===== */
@media (min-width: 600px) {
  .main-content { padding: 20px 20px 80px; }
  .card-header { padding: 16px 20px; }
  .card-body { padding: 14px 20px; gap: 12px; }
  .card-title { font-size: 16px; }
  .content-item { font-size: 15px; }
  .nav-tab { font-size: 15px; }
}

@media (min-width: 960px) {
  .banner-slide img { height: 300px; }
  body { font-size: 15px; }
}

/* ===== 加载动画 ===== */
.content-card { opacity: 0; transform: translateY(20px); }
.content-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
