/* SafeW 官网样式 */
:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: #bdb7c0;
  --text-secondary: #8a8a8a;
  --gradient: linear-gradient(135deg, #0693e3 0%, #9b51e0 100%);
  --gradient-hover: linear-gradient(135deg, #af26ee 0%, #3188f3 100%);
  --max-width: 1280px;
  --header-h: 72px;
  --radius-card: 16px;
  --radius-btn: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo img { height: 32px; width: auto; }

.nav-desktop {
  display: none;
  gap: 28px;
  align-items: center;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-desktop a:hover { opacity: 0.8; }

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-gradient:hover { background: var(--gradient-hover); }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.menu-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-size: 20px;
  font-weight: 600;
}

.nav-mobile .btn-gradient { margin-top: 16px; }

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  background: var(--bg) url("../images/section1-bg.png") no-repeat center top;
  background-size: cover;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  margin: 0 0 24px;
  text-align: center;
}

.hero-logo {
  text-align: center;
  margin-bottom: 24px;
}

.hero-logo img { display: inline-block; width: 238px; height: 54px; object-fit: contain; }

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-visual { text-align: center; }

.hero-visual .hero-desktop { display: none; }
.hero-visual .hero-mobile { display: block; margin: 0 auto; max-width: 360px; }

/* Download buttons */
.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  padding: 16px 8px;
  background: #fff;
  color: #000;
  border-radius: var(--radius-card);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  border: none;
  cursor: pointer;
}

.download-btn svg { width: 30px; height: 30px; margin-bottom: 6px; }

.download-btn:hover {
  background: var(--gradient-hover);
  color: #fff;
}

.download-grid--large .download-btn {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  font-size: 16px;
}

/* Features */
.features {
  padding: 60px 0;
  background: var(--bg) url("../images/section2-bg.png") no-repeat left center;
  background-size: cover;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.section-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  text-align: center;
  margin: 0 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 21px;
  border: 1px solid #27272a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card img { width: 48px; height: 48px; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

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

/* Testimonials */
.testimonials {
  padding: 60px 0 80px;
  position: relative;
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.testimonials-header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  margin: 0;
}

.testimonials-header h2 strong { font-weight: 700; }

.swiper-nav {
  display: none;
  gap: 8px;
}

.swiper-nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0d0d0d;
  border: none;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.swiper-nav button:hover:not(:disabled) {
  background: #1a1a1a;
  color: #fff;
}

.swiper-nav button:disabled { opacity: 0.4; cursor: not-allowed; }

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 0;
  height: 100%;
  min-height: 170px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding: 20px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author cite {
  margin-left: 10px;
  font-style: normal;
  font-weight: 600;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.swiper-pagination-bullet {
  background: #555 !important;
}

.swiper-pagination-bullet-active {
  background: #0693e3 !important;
}

/* Download CTA */
.download-section {
  padding: 60px 0;
}

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

.download-banner {
  margin-top: 40px;
  max-width: 385px;
  filter: brightness(1.8);
}

.download-visual img {
  max-width: 100%;
  margin: 0 auto;
}

/* Blog section */
.blog-section { padding: 60px 0; }

.blog-section > .container > h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin: 0 0 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.blog-card {
  padding: 30px;
}

.blog-card-cover {
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-cover img { transform: scale(1.03); }

.blog-card time {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.blog-card h3 a:hover { color: #0693e3; }

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-more {
  text-align: center;
  margin-top: 32px;
}

.blog-more a {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s, background 0.2s;
}

.blog-more a:hover {
  border-color: #0693e3;
  background: rgba(6, 147, 227, 0.1);
}

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--text-muted);
}

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

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

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sub pages */
.page-main {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  min-height: 60vh;
}

.page-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 24px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.breadcrumb a:hover { color: #0693e3; }

.breadcrumb span { margin: 0 8px; }

.content-block { max-width: 800px; }

.content-block h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.content-block h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.content-block p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.content-block ul, .content-block ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin: 0 0 16px;
}

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.faq-item h2, .faq-item h3 {
  font-size: 1.125rem;
  margin: 0 0 12px;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* Article */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 32px;
}

.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-posts h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li { margin-bottom: 8px; }

.related-posts a { color: #0693e3; }
.related-posts a:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-top: 32px;
  color: #0693e3;
}

.back-link:hover { text-decoration: underline; }

/* Blog list page */
.blog-list-page .blog-card { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

/* Desktop */
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .feature-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    border-color: transparent;
  }

  .feature-card img { margin-bottom: 0; margin-right: 0; flex-shrink: 0; }

  .feature-card > div { padding-left: 30px; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }

  .nav-desktop { display: flex; }

  .hero-grid { grid-template-columns: 1fr 1fr; }

  .hero h1, .hero-subtitle, .hero-desc, .hero-logo { text-align: left; }

  .hero-desc { margin-left: 0; }

  .download-grid { justify-content: flex-start; }

  .hero-visual .hero-desktop { display: block; max-width: 100%; }
  .hero-visual .hero-mobile { display: none; }

  .section-title, .section-subtitle { text-align: left; }

  .testimonials-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .swiper-nav { display: flex; }

  .download-grid-wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 374px) {
  .download-btn { width: 80px; padding: 12px 4px; font-size: 12px; }
}
