/* ==========================================
   游戏服务器管理工具官网 - 主样式文件
   ========================================== */

/* CSS 变量定义 */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --success-hover: #059669;
  --warning-color: #f59e0b;
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   导航栏
   ========================================== */
.navbar {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background-color: var(--bg-secondary);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   Hero 区域
   ========================================== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   按钮样式
   ========================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

/* ==========================================
   章节通用样式
   ========================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   特性卡片网格
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   产品截图展示
   ========================================== */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.screenshot-item {
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 20px;
  text-align: center;
}

.screenshot-caption h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.screenshot-caption p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================
   下载卡片
   ========================================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.download-card {
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.download-icon {
  margin-bottom: 20px;
}

.download-icon img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: block;
}

.download-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.download-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.download-card .description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   页脚
   ========================================== */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 16px;
}

/* ==========================================
   工具页面专用样式
   ========================================== */
.tools-section {
  margin-bottom: 60px;
}

.tools-section:last-child {
  margin-bottom: 0;
}

.tools-section h3 {
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--text-primary);
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tool-card {
  background-color: var(--bg-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.tool-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 15px;
}

.tool-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ==========================================
   关于我们页面专用样式
   ========================================== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 48px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h3 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background-color: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
}

.team-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.team-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.contact-info {
  background-color: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.contact-info ul {
  margin-top: 16px;
}

.contact-info li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.contact-info li:last-child {
  border-bottom: none;
}

.contact-info strong {
  color: var(--text-primary);
  margin-right: 8px;
}
