/* 3377体育 (中国)官方网站-3377 Sports - 完整样式表 */
:root {
  --primary: #e94560;
  --primary-dark: #c23152;
  --secondary: #16213e;
  --accent: #0f3460;
  --bg: #f8f9fa;
  --text: #333;
  --light: #fff;
  --gray: #6c757d;
  --border: #dee2e6;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --gradient: linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);
  --font: 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-lg: 24px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* 暗色模式 */
.dark-mode {
  --bg: #121212;
  --text: #e0e0e0;
  --light: #1e1e1e;
  --border: #333;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --glass: rgba(30,30,30,0.8);
  --glass-border: rgba(255,255,255,0.05);
  --gray: #aaa;
  --secondary: #0d1b2a;
  --accent: #1b2838;
}

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

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233,69,96,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* 区块 */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 4px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* 卡片 */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* 网格 */
.grid {
  display: grid;
  gap: 30px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* 滚动动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

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

/* 头部 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: rgba(26,26,46,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.9;
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 5px;
}

nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(233,69,96,0.15);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: var(--transition);
}

/* 英雄区 */
.hero {
  min-height: 100vh;
  background: var(--gradient);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%,rgba(233,69,96,0.1) 0%,transparent 60%),
              radial-gradient(circle at 70% 80%,rgba(15,52,96,0.2) 0%,transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: translate(0,0);
  }
  100% {
    transform: translate(-5%,-5%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin-top: 40px;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.banner-slide {
  display: none;
  animation: fadeSlide 0.8s ease;
}

.banner-slide.active {
  display: block;
}

.banner-slide svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.banner-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dots button.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* 品牌介绍 */
.brand-section {
  background: var(--light);
}

.brand-grid {
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}

.brand-card {
  text-align: center;
  padding: 40px 20px;
}

.brand-card svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.brand-card:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.brand-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.brand-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 产品中心 */
.products-section {
  background: var(--bg);
}

.products-grid {
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.product-card {
  text-align: center;
}

.product-card svg {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--light);
  transition: transform 0.3s;
}

.product-card:hover svg {
  transform: scale(1.03);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.product-card .price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

/* 案例展示 */
.case-section {
  background: var(--light);
}

.case-grid {
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}

.case-card {
  padding: 0;
  overflow: hidden;
}

.case-card svg {
  width: 100%;
  height: 220px;
  display: block;
  transition: transform 0.3s;
}

.case-card:hover svg {
  transform: scale(1.05);
}

.case-card .case-info {
  padding: 20px;
}

.case-card .case-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.case-card .case-info p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* 新闻资讯 */
.news-section {
  background: var(--bg);
}

.news-grid {
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}

.news-card {
  padding: 20px;
}

.news-card .date {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.news-card .read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.news-card .read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 服务支持 */
.support-section {
  background: var(--light);
}

.support-grid {
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  transition: transform 0.3s;
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: var(--gray);
  padding-top: 0;
  line-height: 1.7;
}

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

.howto-steps {
  list-style: none;
  counter-reset: step;
}

.howto-steps li {
  counter-increment: step;
  padding: 16px 0 16px 50px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.howto-steps li:hover::before {
  transform: scale(1.1);
}

/* 企业优势 */
.trust-section {
  background: var(--gradient);
  color: #fff;
}

.trust-section .section-title {
  -webkit-text-fill-color: #fff;
  background: none;
}

.trust-section .section-title::after {
  background: #fff;
}

.trust-grid {
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
}

.trust-card {
  text-align: center;
  padding: 30px 15px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s, background 0.3s;
}

.trust-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}

.trust-card .number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* 推荐文章 */
.article-section {
  background: var(--bg);
}

.article-grid {
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}

.article-card {
  padding: 20px;
}

.article-card .date {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.article-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.article-card .read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.article-card .read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 联系我们 */
.contact-section {
  background: var(--light);
}

.contact-grid {
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
}

.contact-card {
  text-align: center;
}

.contact-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.contact-card:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* 页脚 */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

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

.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s;
}

.footer a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(233,69,96,0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(233,69,96,0.5);
}

/* 暗色模式切换 */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(233,69,96,0.3);
}

/* 搜索模态框 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-modal.open {
  display: flex;
}

.search-modal .search-box {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.search-modal input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
  background: var(--bg);
  color: var(--text);
}

.search-modal input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.search-modal .close-search {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 50px;
  margin-top: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-modal .close-search:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* 面包屑 */
.breadcrumb {
  background: var(--light);
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text);
}

/* 响应式布局 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26,26,46,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  nav a.active::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

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

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .dark-mode-toggle {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .hero-banner {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .container {
    padding: 0 15px;
  }

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

  .card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 暗色模式下的额外调整 */
.dark-mode .card {
  background: var(--glass);
}

.dark-mode .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.dark-mode .hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #121212 50%, #1a1a2e 100%);
}

.dark-mode .search-modal .search-box {
  background: var(--light);
}

.dark-mode .search-modal input {
  background: var(--bg);
  color: var(--text);
}

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

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }
}