:root {
  --bg-main: #0B0D1F;
  --bg-dark: #141833;
  --panel-1: #1C2145;
  --panel-2: #262C58;
  --rainbow: linear-gradient(90deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
  --border-1: rgba(255, 61, 129, .18);
  --border-2: rgba(255, 225, 77, .16);
  --border-3: rgba(0, 194, 255, .18);
  --text-main: #F2F2F7;
  --text-sub: #A4A9C4;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 31, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
  padding: 10px 4%;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; border-radius: 6px; }
.brand span { font-size: 1.2rem; font-weight: bold; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: none; gap: 20px; }
.nav-links a { font-size: 0.9rem; color: var(--text-sub); transition: color 0.3s; }
.nav-links a:hover { color: #00C2FF; }
.mobile-toggle { display: block; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }
.mobile-menu {
  display: none; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--border-2);
}
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 10px 0; color: var(--text-sub); border-bottom: 1px solid var(--border-1); font-size: 0.95rem; }

/* 通用按钮 */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  background: var(--rainbow); color: var(--bg-main); font-weight: bold;
  text-align: center; transition: transform 0.2s;
}
.btn:hover { transform: scale(1.02); }

/* 首屏区域 */
.hero {
  padding: 40px 4%; max-width: 1200px; margin: 0 auto; text-align: center;
}
.hero h1 {
  font-size: 2rem; line-height: 1.3; margin-bottom: 20px;
  background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-sub); margin-bottom: 30px; font-size: 1rem; }
.hero-gallery {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; overflow: hidden;
}
.hero-gallery img {
  width: 30%; max-width: 200px; border-radius: 12px; border: 1px solid var(--border-3); object-fit: cover;
}
.download-group {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 30px;
}
.download-group .btn { width: 140px; font-size: 0.9rem; padding: 10px; }

/* 跑马灯 */
.marquee {
  background: var(--panel-1); border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1);
  overflow: hidden; white-space: nowrap; padding: 10px 0; position: relative;
}
.marquee-content {
  display: inline-block; animation: scroll 15s linear infinite;
  font-weight: bold; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* 通用版块 */
.section { padding: 40px 4%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.5rem; margin-bottom: 20px; text-align: center; color: var(--text-main); }
.section-title span { background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* 聊天风格板块 */
.chat-list { display: flex; flex-direction: column; gap: 15px; }
.chat-item {
  display: flex; gap: 10px; background: var(--panel-1); padding: 15px; border-radius: 10px;
  border: 1px solid var(--border-2);
}
.chat-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-1); }
.chat-content { flex: 1; }
.chat-name { font-size: 0.85rem; color: #00C2FF; margin-bottom: 5px; }
.chat-text { font-size: 0.95rem; color: var(--text-main); }

/* 卡片网格布局 */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--panel-2); padding: 20px; border-radius: 12px;
  border: 1px solid var(--border-3);
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #FFE14D; }
.card p { font-size: 0.9rem; color: var(--text-sub); }

/* 左右图文结构 */
.flex-row { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.flex-row img { width: 100%; max-width: 300px; border-radius: 12px; }

/* 问答风格 */
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--panel-1); padding: 15px; border-radius: 8px; border-left: 4px solid #B93DFF; }
.faq-q { font-weight: bold; color: #FF8A00; margin-bottom: 5px; }
.faq-a { font-size: 0.9rem; color: var(--text-sub); }

/* 浮动下载窗 */
.float-download {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--border-1);
  border-radius: 30px; padding: 10px 20px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 99;
}
.float-download img { height: 30px; width: 30px; border-radius: 50%; }
.float-download .btn { padding: 8px 16px; font-size: 0.85rem; }

/* 页脚 */
.site-footer {
  background: var(--bg-dark); padding: 30px 4% 60px; text-align: center; border-top: 1px solid var(--border-2);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 15px; }
.footer-links a { font-size: 0.85rem; color: var(--text-sub); }
.footer-copy { font-size: 0.8rem; color: #6B7280; line-height: 1.8; margin-bottom: 10px; }
.about-details { margin-top: 20px; text-align: left; max-width: 800px; margin-left: auto; margin-right: auto; }
.about-details summary { cursor: pointer; color: var(--text-sub); font-size: 0.85rem; list-style: none; display: inline-block; }
.about-details summary::-webkit-details-marker { display: none; }
.about-content { margin-top: 15px; padding: 15px; background: var(--panel-1); border-radius: 8px; border: 1px solid var(--border-3); font-size: 0.85rem; color: var(--text-sub); }
.about-content a { display: block; padding: 5px 0; color: #00C2FF; }

/* 弹窗 */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 999; justify-content: center; align-items: center;
}
.modal-content {
  background: var(--panel-2); padding: 20px; border-radius: 12px; max-width: 400px; width: 90%;
  text-align: center; border: 1px solid var(--border-1);
}
.modal-content p { font-size: 0.95rem; margin-bottom: 15px; color: var(--text-main); word-break: break-all; }
.modal-content button {
  background: var(--rainbow); border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; width: 100%; margin-bottom: 10px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .flex-row { flex-direction: row; justify-content: space-between; }
  .flex-row img { width: 40%; }
  .flex-row .text-content { width: 55%; }
  .flex-row.reverse { flex-direction: row-reverse; }
}
@media (min-width: 1024px) {
  .hero-gallery img { width: 22%; max-width: 250px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
}