/* ===== 球友会官网 style.css ===== */
/* 全局重置 & 基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f8faff;
  color: #1a2332;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.5;
  overflow-x: hidden;
}

.dark-mode {
  background: #0b1422;
  color: #e3eaf5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.dark-mode .site-header {
  background: rgba(11, 20, 34, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo svg {
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease;
}

.logo svg:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 28px;
  font-weight: 500;
}

.nav-menu a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5c542;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #0b1a2e;
}

.dark-mode .nav-menu a:hover,
.dark-mode .nav-menu a.active {
  color: #f5d866;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dark-toggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 40px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dark-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 移动端菜单 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    gap: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .dark-mode .nav-menu {
    background: rgba(11, 20, 34, 0.98);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ===== Hero 区域 ===== */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(145deg, #dce6f5 0%, #f0f6ff 100%);
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(245, 197, 66, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.dark-mode .hero {
  background: linear-gradient(145deg, #0f1b30, #16233b);
}

.dark-mode .hero::before {
  background: radial-gradient(circle at 30% 50%, rgba(245, 197, 66, 0.05) 0%, transparent 60%);
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0b1a2e 0%, #1a3b5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .hero-text h1 {
  background: linear-gradient(135deg, #e3eaf5 0%, #f5c542 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #0b1a2e;
  color: white;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #1f3450;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(11, 26, 46, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid #0b1a2e;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(11, 26, 46, 0.05);
  transform: scale(1.02);
}

.dark-mode .btn-outline {
  border-color: #e3eaf5;
  color: #e3eaf5;
}

.dark-mode .btn-outline:hover {
  background: rgba(227, 234, 245, 0.1);
}

.hero-visual {
  flex: 1 1 360px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 48px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

.dark-mode .hero-visual {
  background: rgba(10, 20, 35, 0.5);
}

/* 搜索模拟 */
.search-mock {
  display: flex;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 60px;
  padding: 6px 6px 6px 20px;
  max-width: 400px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-mock:focus-within {
  border-color: #f5c542;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.2);
}

.search-mock input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 0;
  outline: none;
  font-size: 0.95rem;
}

.search-mock button {
  background: #0b1a2e;
  border: none;
  border-radius: 40px;
  padding: 8px 24px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-mock button:hover {
  background: #1f3450;
  transform: scale(1.02);
}

.dark-mode .search-mock {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .search-mock input {
  color: white;
}

.dark-mode .search-mock input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dark-mode .search-mock button {
  background: #f5c542;
  color: #0b1422;
}

.dark-mode .search-mock button:hover {
  background: #f5d866;
}

/* ===== 通用 Section ===== */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #f5c542;
  border-radius: 4px;
  margin-top: 8px;
}

.section-sub {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 48px;
  max-width: 680px;
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* ===== 卡片 ===== */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .card {
  background: rgba(20, 32, 50, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.dark-mode .card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card p {
  opacity: 0.8;
}

/* ===== 品牌故事 ===== */
.brand-story {
  background: rgba(235, 245, 255, 0.3);
}

.dark-mode .brand-story {
  background: rgba(20, 30, 50, 0.3);
}

.story-content {
  max-width: 840px;
}

.story-content p {
  margin-bottom: 20px;
  font-size: 1.08rem;
}

/* 统计数字 */
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #f5c542;
  display: inline-block;
}

/* ===== 团队 ===== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.team-member {
  text-align: center;
  width: 160px;
  transition: transform 0.25s ease;
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #d9e3f0;
  transition: transform 0.3s ease;
}

.team-member:hover svg {
  transform: scale(1.05);
}

.dark-mode .team-member svg {
  background: #1a2a40;
}

/* ===== 产品优势 ===== */
.advantage-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 12px 16px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.advantage-item:hover {
  background: rgba(245, 197, 66, 0.05);
}

.advantage-item span {
  background: #f5c542;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== 案例轮播 ===== */
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #f5c542 transparent;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #f5c542;
  border-radius: 10px;
}

.carousel::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-item {
  scroll-snap-align: start;
  min-width: 280px;
  flex-shrink: 0;
}

/* ===== 文章列表 ===== */
.article-list {
  display: grid;
  gap: 24px;
}

.article-card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: padding-left 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  padding-left: 8px;
}

.dark-mode .article-card {
  border-color: rgba(255, 255, 255, 0.05);
}

.article-card h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.article-card:hover h4 {
  color: #f5c542;
}

.article-card small {
  opacity: 0.6;
}

.article-card p {
  margin-top: 8px;
  opacity: 0.8;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: rgba(245, 197, 66, 0.03);
}

.dark-mode .faq-item {
  border-color: rgba(255, 255, 255, 0.06);
}

.faq-question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question span {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin 0.35s ease;
  opacity: 0.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  margin-top: 12px;
}

/* ===== Footer ===== */
.site-footer {
  background: #0b1422;
  color: #b0c4de;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-grid a,
.footer-grid span {
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #f5c542;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0b1a2e;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  border: none;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 0.8;
}

.back-to-top.show:hover {
  opacity: 1;
  transform: scale(1.1);
}

.dark-mode .back-to-top {
  background: #f5c542;
  color: #0b1422;
}

.dark-mode .back-to-top:hover {
  background: #f5d866;
}

/* ===== 动画辅助 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 暗黑模式按钮 ===== */
.dark-mode .btn-primary {
  background: #f5c542;
  color: #0b1422;
}

.dark-mode .btn-primary:hover {
  background: #f5d866;
  box-shadow: 0 8px 24px rgba(245, 197, 66, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    padding: 40px 0 60px;
  }

  section {
    padding: 40px 0;
  }

  .card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .search-mock {
    max-width: 100%;
  }
}

/* 打印样式 */
@media print {
  .site-header,
  .back-to-top,
  .dark-toggle,
  .mobile-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}