﻿/* ===== 基础布局 ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  max-width: 768px; /* PC 端居中显示 */
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 60px; /* 给底部导航留空间 */
}

/* 链接通用样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* ===== 顶部导航栏 ===== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #d4af37, #ff0000);
  padding: 10px 15px;
}

.top-nav .logo img {
  height: 35px;
}

.top-nav .auth-buttons a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
  padding: 6px 12px;
  background-color: rgba(0,0,0,0.3);
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.top-nav .auth-buttons a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* ===== 页面标题 ===== */
.page-title {
  text-align: center;
  font-size: 20px;
  color: #ffd700;
  padding: 12px 0;
  border-bottom: 2px solid #ff0000;
}

/* ===== 内容区 ===== */
.content {
  padding: 15px;
}

.section {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.section img {
  width: 100%;
  height: auto;
  display: block;
}

.section-text {
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== 按钮通用样式 ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #ff0000, #d4af37);
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

/* ===== 底部导航栏 ===== */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(90deg, #d4af37, #ff0000);
  padding: 6px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 768px; /* PC 端与顶部宽度一致 */
  margin-left: auto;
  margin-right: auto;
  border-top: 2px solid #d4af37;
  z-index: 999;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 12px;
}

.bottom-nav a.active {
  color: #ffff66;
}

.bottom-nav .icon {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

/* ===== 弹窗 ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
}

.popup-content img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.popup .btn {
  margin-top: 10px;
}

/* ===== 手机端优化 ===== */
@media (max-width: 768px) {
  .bottom-nav a {
    font-size: 13px;
  }
  .bottom-nav .icon {
    font-size: 20px;
  }
}

/* ===== PC 端细节优化 ===== */
@media (min-width: 769px) {
  .top-nav, .bottom-nav {
    border-radius: 0;
  }
}
