/* 小蓝官方版 - 全局样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a8cff;
  --primary-dark: #0d6fd4;
  --secondary: #00c4b4;
  --text: #1a1a2e;
  --text-light: #5a5a72;
  --bg: #f5f8fc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(26, 140, 255, 0.08);
  --radius: 12px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-link img { width: 42px; height: 42px; border-radius: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(26, 140, 255, 0.1);
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a8cff 0%, #00c4b4 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 28px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt { background: var(--white); }

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--text);
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  max-height: 380px;
}

.feature-card-body { padding: 20px; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Content blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 320px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.content-block h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
}

.content-block p { margin-bottom: 12px; color: var(--text-light); }

.content-block ul {
  margin: 12px 0 12px 20px;
  color: var(--text-light);
}

.content-block li { margin-bottom: 6px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-item {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-item h3 { font-size: 1rem; margin-bottom: 8px; }
.step-item p { font-size: 0.88rem; color: var(--text-light); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 24px 18px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.03); }

/* Article / Legal pages */
.page-hero {
  background: linear-gradient(135deg, #1a8cff 0%, #00c4b4 100%);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.page-hero p { opacity: 0.9; }

.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin: -30px auto 40px;
  max-width: 900px;
  box-shadow: var(--shadow);
  position: relative;
}

.article-content h2 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h2:first-child { margin-top: 0; }

.article-content p,
.article-content li {
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 12px 24px;
}

.article-content a { word-break: break-all; }

.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a8cff, #00c4b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { font-size: 1.5rem; margin: 16px 0 8px; }
.error-page p { color: var(--text-light); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.footer-brand img { width: 48px; border-radius: 10px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }

/* Internal links highlight */
.internal-links {
  background: rgba(26, 140, 255, 0.06);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.internal-links p { margin-bottom: 8px; font-weight: 600; color: var(--text); }
.internal-links a { margin-right: 16px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .content-block { grid-template-columns: 1fr; }
  .content-block img { max-width: 280px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 12px;
  }

  .main-nav a { padding: 12px 16px; }

  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .article-content { padding: 24px 20px; margin: -20px 16px 32px; }
  .error-code { font-size: 4rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
}
