/* SafeW — safew-js.com.cn */
:root {
  --color-primary: #0d6efd;
  --color-primary-dark: #0a58ca;
  --color-accent: #20c997;
  --color-bg: #f4f7fb;
  --color-bg-alt: #e8eef6;
  --color-text: #1a2332;
  --color-muted: #5c6b7a;
  --color-border: #d0dae6;
  --color-footer: #0f172a;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.brand img {
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
}

.nav-main {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-main a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  background: rgba(13, 110, 253, 0.1);
  color: var(--color-primary);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: 0.875rem;
}

.breadcrumb-wrap ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  color: var(--color-muted);
}

.breadcrumb-wrap li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-border);
}

.breadcrumb-wrap a {
  color: var(--color-muted);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0d6efd 100%);
  color: #fff;
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.35;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-meta {
  margin: 16px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-meta i {
  margin-right: 6px;
  color: var(--color-accent);
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--color-accent), #17a589);
  color: #fff !important;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(32, 201, 151, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(32, 201, 151, 0.5);
  text-decoration: none !important;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: var(--color-text);
}

.section-title p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

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

.feature-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.feature-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.review-card blockquote {
  margin: 0 0 12px;
  font-style: normal;
  color: var(--color-text);
  font-size: 0.95rem;
}

.review-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  padding-top: 14px;
}

/* Inner pages */
.page-content {
  background: #fff;
  padding: 40px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  margin: 32px auto 48px;
}

.page-content h1 {
  margin-top: 0;
  font-size: 1.65rem;
  line-height: 1.4;
}

.page-content h2 {
  margin-top: 28px;
  font-size: 1.25rem;
  color: var(--color-text);
}

.page-content .meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
  padding-left: 1.4em;
}

.page-content code {
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

main.container {
  padding-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #cbd5e1;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 0 32px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-dates {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-dates time {
  display: block;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
}

.footer-bottom a {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .btn-download {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
    box-shadow: var(--shadow);
  }

  .nav-main.open {
    display: flex;
  }

  .site-header .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .section {
    padding: 40px 0;
  }

  .page-content {
    padding: 24px 20px;
    margin: 20px auto 32px;
  }
}
