/* Safew Official Website - Global Styles */
/* Brand Colors */
:root {
  --primary: #0F3B5C;
  --accent: #10B981;
  --accent-hover: #059669;
  --secondary: #5EEAD4;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --error: #EF4444;
  --warning: #F59E0B;
  --border: #E5E7EB;
  --shadow: rgba(15, 59, 92, 0.08);
  --shadow-hover: rgba(15, 59, 92, 0.15);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Source Han Sans CN', 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1 { font-size: 38px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.4; }
p { font-size: 16px; line-height: 1.6; color: var(--text-gray); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 600;
  transition: all 0.2s ease; cursor: pointer; min-height: 44px; min-width: 44px;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-light); transform: scale(1.02); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: #fff; color: var(--primary); }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: all 0.3s ease;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: var(--primary); }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-gray); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { padding: 10px 24px; font-size: 14px; }
.nav-login { color: var(--text-gray); font-weight: 500; font-size: 15px; }
.nav-login:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; transition: 0.3s; }

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #0F3B5C 0%, #1a5276 50%, #0F3B5C 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 48px; margin-bottom: 20px; color: #fff; }
.hero .subtitle { font-size: 20px; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { font-size: 14px; color: rgba(255,255,255,0.6); }

/* Trust Bar */
.trust-bar { padding: 60px 0; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.trust-grid { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--text-gray); font-size: 14px; font-weight: 500; }
.trust-item svg { width: 24px; height: 24px; color: var(--accent); }
.trust-number { font-size: 24px; font-weight: 700; color: var(--primary); }

/* Section Common */
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary); color: #fff; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; color: var(--primary); }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 18px; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.8); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: #fff; border-radius: 16px; padding: 40px 32px;
  border: 1px solid var(--border); transition: all 0.3s ease; text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-hover); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 32px; height: 32px; color: #fff; }
.feature-card h3 { margin-bottom: 12px; font-size: 20px; }
.feature-card p { font-size: 15px; margin-bottom: 16px; }
.feature-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.feature-link:hover { color: var(--accent-hover); }

/* How It Works */
.steps { display: flex; gap: 40px; justify-content: center; align-items: flex-start; position: relative; }
.step { text-align: center; flex: 1; max-width: 300px; position: relative; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 12px; }
.step p { font-size: 15px; }
.step-connector {
  position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px);
  height: 2px; background: var(--accent); opacity: 0.3;
}

/* Security Section */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.security-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(94,234,212,0.1));
  border-radius: 24px;
}
.shield-icon { width: 120px; height: 120px; color: var(--accent); }
.security-points { display: flex; flex-direction: column; gap: 24px; }
.security-point { display: flex; gap: 16px; align-items: flex-start; }
.security-point-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  background: rgba(16,185,129,0.1); display: flex; align-items: center; justify-content: center;
}
.security-point-icon svg { width: 20px; height: 20px; color: var(--accent); }
.security-point h3 { font-size: 18px; margin-bottom: 4px; }
.security-point p { font-size: 14px; }

/* Scenarios */
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.scenario:nth-child(even) { direction: rtl; }
.scenario:nth-child(even) > * { direction: ltr; }
.scenario-visual {
  background: linear-gradient(135deg, var(--bg-light), rgba(94,234,212,0.1));
  border-radius: 20px; padding: 60px; display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.scenario-visual svg { width: 160px; height: 160px; color: var(--primary); opacity: 0.7; }
.scenario-content h3 { font-size: 24px; margin-bottom: 16px; color: var(--primary); }
.scenario-content p { font-size: 16px; margin-bottom: 16px; }

/* Pricing */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.pricing-toggle span { font-size: 15px; font-weight: 500; color: var(--text-gray); }
.pricing-toggle span.active { color: var(--primary); font-weight: 600; }
.pricing-save { background: var(--accent); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pricing-card {
  background: #fff; border-radius: 20px; padding: 40px 32px;
  border: 2px solid var(--border); text-align: center; transition: all 0.3s ease; position: relative;
}
.pricing-card.popular { border-color: var(--accent); transform: scale(1.05); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 4px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.pricing-card h3 { font-size: 22px; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 700; color: var(--primary); margin: 20px 0; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-gray); }
.pricing-features { text-align: left; margin: 32px 0; }
.pricing-features li { padding: 8px 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pricing-features li svg { width: 18px; height: 18px; min-width: 18px; }
.pricing-features li.included svg { color: var(--accent); }
.pricing-features li.excluded { color: var(--text-light); }
.pricing-features li.excluded svg { color: var(--text-light); }
.pricing-card .btn { width: 100%; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.review-card {
  background: #fff; border-radius: 16px; padding: 32px;
  border: 1px solid var(--border);
}
.review-stars { color: var(--warning); font-size: 18px; margin-bottom: 16px; }
.review-text { font-size: 15px; font-style: italic; margin-bottom: 20px; color: var(--text-dark); line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.review-name { font-weight: 600; font-size: 15px; }
.review-role { font-size: 13px; color: var(--text-gray); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; cursor: pointer; font-size: 17px; font-weight: 600;
  color: var(--text-dark); transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--accent); transition: transform 0.3s; }
.faq-item details[open] .faq-question::after { content: '-'; }
.faq-answer { padding: 0 0 24px; font-size: 15px; color: var(--text-gray); line-height: 1.8; }
.faq-answer ol { padding-left: 20px; margin-top: 8px; }
.faq-answer ol li { margin-bottom: 6px; list-style: decimal; }

/* CTA Banner */
.cta-banner {
  padding: 100px 0; text-align: center;
  background: linear-gradient(135deg, #0F3B5C, #1a5276);
  color: #fff;
}
.cta-banner h2 { font-size: 36px; margin-bottom: 16px; color: #fff; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-banner .btn { font-size: 18px; padding: 18px 48px; }
.cta-trust { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.5); }

/* Footer */
.footer { background: #0a2a3f; color: rgba(255,255,255,0.7); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 20px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--accent); }

/* Page Header (for inner pages) */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0F3B5C, #1a5276);
  color: #fff; text-align: center;
}
.page-header h1 { font-size: 42px; margin-bottom: 16px; color: #fff; }
.page-header p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* Content Pages */
.content-section { padding: 80px 0; }
.content-block { margin-bottom: 60px; }
.content-block h2 { font-size: 26px; margin-bottom: 16px; color: var(--primary); }
.content-block h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary); }
.content-block p { margin-bottom: 16px; }
.content-block ul { padding-left: 20px; }
.content-block ul li { padding: 6px 0; font-size: 15px; color: var(--text-gray); list-style: disc; }

/* Sitemap Page */
.sitemap-section { margin-bottom: 40px; }
.sitemap-section h2 { font-size: 22px; margin-bottom: 16px; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.sitemap-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sitemap-links a { font-size: 15px; color: var(--text-gray); padding: 8px 0; display: block; }
.sitemap-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .security-grid { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 1fr; gap: 30px; }
  .scenario:nth-child(even) { direction: ltr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { display: none; }
  .sitemap-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 17px; }
  .section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-grid { gap: 24px; }
  .pricing-grid { max-width: 100%; }
  .sitemap-links { grid-template-columns: 1fr; }
}
