/* style.css - 黑桃视频 */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --bg: #0f0f1a;
  --bg-card: rgba(255,255,255,0.06);
  --bg-glass: rgba(255,255,255,0.08);
  --text: #e0e0e0;
  --text-light: #b0b0b0;
  --text-heading: #ffffff;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* 渐变背景与暗色模式 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(108,92,231,0.15), transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(0,206,201,0.1), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* 滚动动画 */
section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1s; }

/* 头部导航 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,26,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  border-radius: 2px;
}

nav ul li a:hover {
  color: var(--text-heading);
}

nav ul li a:hover::after {
  width: 100%;
}

/* 主内容区 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero 渐变Banner */
#hero {
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,206,201,0.1), rgba(253,121,168,0.05));
  border-radius: var(--radius);
  padding: 4rem 3rem;
  margin-bottom: 4rem;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(108,92,231,0.15), transparent);
  pointer-events: none;
}

#hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
  line-height: 1.8;
}

/* 通用section卡片样式 */
section:not(#hero) {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

section:not(#hero):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* 卡片内微毛玻璃 */
article, blockquote, details {
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  transition: var(--transition);
}

article:hover, blockquote:hover, details:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.01);
}

/* 客户评价 */
blockquote {
  font-style: italic;
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  color: var(--text);
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--secondary);
  position: absolute;
  top: -0.5rem;
  left: 0.8rem;
  opacity: 0.3;
}

/* 新闻时间 */
time {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* 链接 */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* FAQ details */
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

details summary::before {
  content: '▶';
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: var(--primary);
}

details[open] summary::before {
  transform: rotate(90deg);
}

details p {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--primary);
}

/* 列表 */
ol, ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* 联系我们 */
#contact p {
  font-size: 1.05rem;
  padding: 0.3rem 0;
}

/* 网站地图 */
#sitemap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
}

#sitemap ul li a {
  color: var(--text-light);
  font-weight: 500;
}

#sitemap ul li a:hover {
  color: var(--secondary);
}

/* 底部 */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--secondary);
}

footer a:hover {
  color: var(--accent);
}

/* 友情链接 */
footer p:first-child a {
  margin: 0 0.3rem;
}

/* 响应式 */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 0.8rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
  }

  #hero {
    padding: 2.5rem 1.5rem;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

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

  section:not(#hero) {
    padding: 1.5rem 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  #sitemap ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1rem 0.8rem 3rem;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  nav ul li a {
    font-size: 0.85rem;
  }

  article, blockquote, details {
    padding: 1rem;
  }
}

/* 暗色模式强化 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a12;
    --bg-card: rgba(255,255,255,0.04);
    --bg-glass: rgba(255,255,255,0.06);
    --text: #d0d0d0;
    --text-light: #a0a0a0;
    --border: rgba(255,255,255,0.08);
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* 选中文本 */
::selection {
  background: var(--primary);
  color: #fff;
}