/* 全局重置与基础 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #0d0d1a; color: #e0e0e0; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }

/* 暗色模式变量 */
:root { --bg-primary: #0d0d1a; --bg-secondary: #1a1a2e; --bg-card: rgba(26, 26, 46, 0.7); --text-primary: #e0e0e0; --text-secondary: #a0a0b0; --accent: #ff6b35; --accent-hover: #ff8c5a; --gradient-start: #1a1a2e; --gradient-end: #16213e; --glass-bg: rgba(255, 255, 255, 0.08); --glass-border: rgba(255, 255, 255, 0.15); --shadow: 0 8px 32px rgba(0, 0, 0, 0.3); --radius: 16px; --transition: 0.3s ease; }

/* 滚动动画基础 */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* 链接与交互 */
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--accent-hover); outline: none; }

/* 头部导航 */
header { background: var(--bg-secondary); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; padding: 0.5rem 1rem; }
nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
nav > a { font-size: 1.4rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; padding: 0.5rem 0; }
nav > a:hover { color: var(--accent-hover); }
nav ul { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; }
nav ul li a { padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.95rem; color: var(--text-secondary); transition: background var(--transition), color var(--transition); }
nav ul li a:hover, nav ul li a:focus { background: var(--glass-bg); color: var(--text-primary); }

/* 主内容 */
main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }

/* 英雄区域 - 渐变Banner */
#hero { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); padding: 4rem 2rem; border-radius: var(--radius); text-align: center; margin-bottom: 3rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%); animation: heroGlow 8s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { transform: translate(0, 0); } 100% { transform: translate(20%, 20%); } }
#hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; position: relative; z-index: 1; }
#hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; position: relative; z-index: 1; }
#hero a { display: inline-block; background: var(--accent); color: #fff; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); position: relative; z-index: 1; box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4); }
#hero a:hover, #hero a:focus { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6); }

/* 通用section样式 */
section { margin-bottom: 3rem; padding: 2rem; background: var(--bg-card); border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
section:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
section h2 { font-size: 1.8rem; margin-bottom: 1.2rem; color: #fff; border-left: 4px solid var(--accent); padding-left: 0.8rem; }
section h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--accent); }
section p { margin-bottom: 1rem; color: var(--text-secondary); }
section ul, section ol { padding-left: 1.5rem; margin-bottom: 1rem; }
section li { margin-bottom: 0.5rem; color: var(--text-secondary); }
section a { color: var(--accent); font-weight: 500; }

/* 产品卡片（圆角卡片） */
#products article { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; transition: background var(--transition), transform var(--transition); }
#products article:hover { background: rgba(255, 255, 255, 0.12); transform: scale(1.01); }
#products ul { list-style: none; padding-left: 0; }
#products ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--glass-border); }
#products ul li:last-child { border-bottom: none; }

/* 常见问题 details/summary */
details { margin-bottom: 0.8rem; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; transition: border-color var(--transition); }
details[open] { border-color: var(--accent); }
summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 500; color: var(--text-primary); background: var(--glass-bg); transition: background var(--transition); list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); transition: transform var(--transition); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { background: rgba(255, 255, 255, 0.12); }
details p { padding: 0.8rem 1.2rem 1.2rem; color: var(--text-secondary); }

/* 安装指引有序列表 */
#howto ol { counter-reset: step; list-style: none; padding-left: 0; }
#howto ol li { counter-increment: step; padding: 0.8rem 1rem 0.8rem 2.8rem; position: relative; margin-bottom: 0.5rem; background: var(--glass-bg); border-radius: 10px; transition: background var(--transition), transform var(--transition); }
#howto ol li::before { content: counter(step); position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; }
#howto ol li:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(4px); }

/* 联系区域address */
address p { margin-bottom: 0.3rem; font-style: normal; }

/* 页脚 */
footer { background: var(--bg-secondary); border-top: 1px solid var(--glass-border); padding: 1.5rem 1rem; text-align: center; }
footer nav { justify-content: center; margin-bottom: 0.8rem; }
footer nav ul { gap: 1.5rem; }
footer nav ul li a { font-size: 0.9rem; color: var(--text-secondary); padding: 0.3rem 0; }
footer nav ul li a:hover { color: var(--accent); }
footer p { font-size: 0.85rem; color: var(--text-secondary); }

/* 响应式布局 */
@media (max-width: 768px) {
  html { font-size: 14px; }
  header { padding: 0.4rem 0.8rem; }
  nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav ul { width: 100%; justify-content: center; gap: 0.5rem; }
  nav ul li a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  #hero { padding: 2.5rem 1rem; }
  #hero h1 { font-size: 1.8rem; }
  #hero p { font-size: 1rem; }
  section { padding: 1.2rem; margin-bottom: 2rem; }
  section h2 { font-size: 1.4rem; }
  #products article { padding: 1rem; }
  #howto ol li { padding-left: 2.4rem; }
  #howto ol li::before { width: 24px; height: 24px; font-size: 0.8rem; left: 0.6rem; }
}

@media (max-width: 480px) {
  #hero h1 { font-size: 1.5rem; }
  #hero a { padding: 0.6rem 1.5rem; font-size: 1rem; }
  section h2 { font-size: 1.2rem; }
  footer nav ul { flex-direction: column; gap: 0.3rem; }
  footer nav ul li a { font-size: 0.8rem; }
}

/* 暗色模式已为默认，无需额外媒体查询 */
/* 确保所有元素适应暗色背景 */
::selection { background: var(--accent); color: #fff; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }