/* 抖阴官网 - 全局样式 */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --accent-gradient: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --max-width: 1100px;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* 跳过导航 */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: 16px;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-link:hover {
  color: var(--text-primary);
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* 主内容 */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 720px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(131, 58, 180, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(230, 57, 70, 0.1), transparent 50%);
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* 特性网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* 内容展示 */
.content-showcase {
  display: grid;
  gap: 48px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse > * {
  direction: ltr;
}

.showcase-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.showcase-image img {
  width: 100%;
}

.showcase-text h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.showcase-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.showcase-text ul {
  list-style: none;
  margin-top: 16px;
}

.showcase-text li {
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.95rem;
}

.showcase-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  padding-top: 48px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 分类标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* 法律页面 */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-brand img {
  width: 48px;
  border-radius: 10px;
}

.footer-nav h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px 12px;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    flex: 1 1 100%;
  }

  .main-nav ul {
    justify-content: center;
    gap: 4px;
  }

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .logo-link {
    font-size: 1rem;
  }

  .logo-link img {
    width: 36px;
    height: 36px;
  }

  .main-nav a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

/* 长文 SEO 内容 */
.prose-block {
  max-width: 900px;
}

.prose-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.prose-block h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.prose-block ul,
.prose-block ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-block li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.prose-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

/* 目录导航 */
.toc-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 0;
}

.toc-nav h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.toc-nav ol {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
  list-style: decimal;
}

.toc-nav li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.toc-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.toc-nav a:hover {
  color: var(--accent);
}

/* 信息表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 14px 18px;
  text-align: left;
}

.info-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  width: 28%;
}

.info-table td {
  color: var(--text-secondary);
}

.info-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* 对比列表 */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.compare-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.compare-item h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.compare-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .prose-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc-nav ol {
    columns: 1;
  }

  .info-table th {
    width: 35%;
  }
}
