/* ===== 基础样式与变量定义 ===== */
:root {
  --primary-dark: #0a2342;     /* 深蓝 - 空军主题色 */
  --primary-medium: #1a3a5f;   /* 中蓝 */
  --primary-light: #2d4d76;    /* 浅蓝 */
  --accent-gold: #c9a227;      /* 金色点缀 */
  --accent-red: #a71e34;       /* 红色点缀 */
  --accent-green: #12b886;     /* QQ按钮绿色 */
  --text-light: #f0f4f8;       /* 浅色文字 */
  --text-dark: #1a1a1a;        /* 深色文字 */
  --gray-light: #e6e9ed;       /* 浅灰背景 */
  --gray-medium: #8c9ba5;      /* 中灰 */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

.zh {
  font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

/* ===== 导航栏样式 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 35, 66, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent-gold);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-left {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-right a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-right a:hover {
  color: var(--accent-gold);
}

.nav-right a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-right a:hover::after {
  width: 100%;
}

/* ===== QQ群按钮 - 导航栏版本 ===== */
.nav-qq-btn {
  background-color: var(--accent-green);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(18, 184, 134, 0.3);
  border: 2px solid transparent;
  margin-left: 0.5rem;
}

.nav-qq-btn:hover {
  background-color: #0fa87a;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-qq-btn::before {
  content: "";
  font-size: 1.2rem;
}

/* ===== 英雄区域样式 ===== */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}

.hero-image {
  width: auto;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-dark);
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
  background-color: var(--primary-dark);
  padding: 10px;
}

.hero-image:hover img {
  transform: scale(1.02);
}

.image-credit {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--gray-light);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: right;
  width: 100%;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.image-credit a {
  color: #6ab0ff;
  text-decoration: none;
  transition: var(--transition);
}

.image-credit a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.hero > div {
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 1.8rem;
  color: var(--primary-medium);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* ===== QQ群按钮 - 英雄区域版本 ===== */
.hero-qq-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-green) 0%, #0fa87a 100%);
  color: white;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  margin: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(18, 184, 134, 0.4);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.hero-qq-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(18, 184, 134, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.hero-qq-btn::before {
  content: "✈️";
  font-size: 1.4rem;
  margin-right: 0.8rem;
  vertical-align: middle;
}

.hero-qq-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.hero-qq-btn:hover::after {
  left: 100%;
}

.hero-qq-btn span {
  vertical-align: middle;
}

/* ===== 主要内容区域样式 ===== */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-gold);
}

/* ===== 特色介绍部分 ===== */
.features-section {
  margin-bottom: 4rem;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--accent-gold);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== 入门要求部分 ===== */
.requirements-section {
  margin-bottom: 4rem;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.requirement-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.requirement-check {
  background-color: var(--accent-green);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.requirement-item h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.requirement-item p {
  color: var(--text-dark);
  line-height: 1.6;
}

.requirements-note {
  text-align: center;
  background-color: rgba(201, 162, 39, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-gold);
}

.requirements-note p {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.requirements-qq-btn {
  display: inline-block;
  background-color: var(--accent-green);
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.requirements-qq-btn:hover {
  background-color: #0fa87a;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===== 免责声明部分 ===== */
.disclaimer-section {
  margin-bottom: 4rem;
}

.disclaimer {
  background-color: var(--gray-light);
  border-left: 4px solid var(--accent-red);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.disclaimer p {
  margin-bottom: 1rem;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

/* ===== QQ群按钮 - 页脚区域版本 ===== */
.footer-qq-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  margin: 1rem 0 1.5rem;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-qq-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
}

.footer-qq-btn::before {
  content: "";
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* ===== 页脚样式 ===== */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--accent-gold);
  line-height: 1.8;
}

footer br {
  margin-bottom: 0.5rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .hero-image img {
    max-height: 400px;
  }
  
  .nav, .hero, main {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }
  
  .hero-image {
    max-height: 400px;
  }
  
  .hero-image img {
    max-height: 350px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero-qq-btn {
    font-size: 1.2rem;
    padding: 0.7rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-right {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-qq-btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .hero {
    padding: 1.5rem;
    margin-top: 0.5rem;
  }
  
  .hero-image {
    max-height: 350px;
  }
  
  .hero-image img {
    max-height: 300px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-qq-btn {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
  }
  
  main {
    padding: 0 1.5rem;
    margin: 2rem auto;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .requirement-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .disclaimer {
    padding: 1.5rem;
  }
  
  .image-credit {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .nav-right {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  
  .nav-qq-btn {
    margin-top: 0.2rem;
  }
  
  .hero-image {
    max-height: 300px;
  }
  
  .hero-image img {
    max-height: 250px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-qq-btn {
    font-size: 1rem;
    padding: 0.6rem 1.3rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .feature-card, .requirement-item {
    padding: 1.2rem;
  }
  
  .disclaimer {
    padding: 1.2rem;
    font-size: 1rem;
  }
  
  footer {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .hero-image {
    max-height: 250px;
  }
  
  .hero-image img {
    max-height: 200px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero h2 {
    font-size: 1rem;
  }
  
  .hero-qq-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 15px rgba(18, 184, 134, 0.4);
  }
  50% {
    box-shadow: 0 5px 25px rgba(18, 184, 134, 0.7);
  }
  100% {
    box-shadow: 0 5px 15px rgba(18, 184, 134, 0.4);
  }
}

.hero > div, .disclaimer, .feature-card, .requirement-item {
  animation: fadeIn 0.8s ease-out;
}

.hero-qq-btn {
  animation: fadeIn 1.2s ease-out, pulse 2s infinite;
}

/* ===== 图片加载时的占位样式 ===== */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  z-index: -1;
  opacity: 0.3;
  border-radius: 8px;
}

/* ===== 打印样式 ===== */
@media print {
  header, footer {
    display: none;
  }
  
  .hero-image {
    max-height: 300px;
  }
  
  body {
    color: #000;
    background-color: #fff;
    font-size: 12pt;
  }
  
  .hero-qq-btn, .nav-qq-btn, .footer-qq-btn, .requirements-qq-btn {
    display: none;
  }
}