:root {
  /* 宇宙深空主题色板 */
  --bg-deep: #050b14;
  --bg-surface: rgba(20, 25, 40, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* 锐利点缀色 */
  --accent-cyan: #00f2ea;
  --accent-magenta: #ff0050;
  --accent-gold: #ffd700;
  
  /* 文本颜色 */
  --text-main: #e0e6ed;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;

  /* 边框与光效 */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --glow-cyan: 0 0 20px rgba(0, 242, 234, 0.3);
  --glow-magenta: 0 0 20px rgba(255, 0, 80, 0.2);

  /* 字体堆栈 */
  --font-display: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-mono); /* 正文使用等宽字体，营造科技/复古终端感 */
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* 动态星空背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 242, 234, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 0, 80, 0.08) 0%, transparent 25%);
  z-index: -1;
  pointer-events: none;
}

/* 添加噪点纹理，增加胶片质感 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.container {
  max-width: 900px;
  width: 100%;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

/* 排版与字体 */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  display: inline-block;
}

h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 链接样式 */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-cyan);
}

/* 顶部导航 */
header {
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

header h1 {
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  height: auto;
}

.subtitle {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.8;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
}

.top-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
}

.top-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent-magenta);
  transition: width 0.3s;
}

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

/* 视觉横幅 - 玻璃拟态 */
.banner-placeholder {
  background: linear-gradient(135deg, rgba(255, 0, 80, 0.1) 0%, rgba(5, 11, 20, 0.4) 100%);
  border: 1px solid rgba(255, 0, 80, 0.3);
  padding: 60px 30px;
  border-radius: 0; /* 锐利的直角，更具科技感 */
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.banner-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-magenta);
  box-shadow: 0 0 10px var(--accent-magenta);
}

.banner-placeholder h2 {
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.banner-placeholder p {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  margin: 0;
  font-style: italic;
}

/* 通用卡片样式 */
.policy-section, .app-description, .support-info, .card, .feature, .gallery-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.policy-section:hover, .feature:hover, .card:hover, .gallery-section:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.feature h3 {
  color: var(--text-bright);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 15px;
}

.policy-section h3, .gallery-section h3 {
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Gallery Styles - Horizontal Scroll */
.gallery-grid {
  display: flex;
  gap: 20px;
  padding: 10px 5px 25px 5px; /* 底部留出滚动条空间 */
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-deep);
}

/* 自定义滚动条样式 */
.gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.gallery-item {
  flex: 0 0 200px; /* 固定宽度，防止压缩 */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
  transform: translateY(-5px); /* 悬停时上浮，不再放大以免影响布局 */
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

ul {
  margin: 10px 0 20px 20px;
}

li {
  margin-bottom: 8px;
  color: var(--text-muted);
  list-style-type: square;
}

li::marker {
  color: var(--accent-magenta);
}

/* 下载按钮 - 赛博朋克风格 */
.app-store-badge {
  margin: 50px 0;
  text-align: center;
}

.download-button {
  display: inline-block;
  background: transparent;
  color: var(--accent-cyan);
  padding: 16px 32px;
  border: 1px solid var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 242, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.download-button:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 242, 234, 0.4);
  transform: scale(1.05);
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

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

footer p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* Daily Challenge Section */
.daily-challenge-section {
  position: relative;
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.daily-challenge-section:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}

.daily-challenge-subtitle {
  font-size: 1.1rem;
  color: var(--text-bright);
  font-weight: 400;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.version-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* 联系人框 (Support/Policy) */
.contact-box, .contact-method {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--accent-cyan);
  padding: 20px;
  margin-top: 20px;
}

.contact-icon {
  background: rgba(0, 242, 234, 0.1);
  color: var(--accent-cyan);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* 方形图标，更硬核 */
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-details strong {
  color: var(--text-bright);
  display: block;
}

/* Cards Grid (Support page) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .banner-placeholder p { font-size: 1.5rem; }
  .container { padding: 20px; }
  /* Gallery is now horizontally scrollable on all screens */
}

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