/* 卡盟官方网站 首页样式 */
/* ===== 主题变量 ===== */
  :root {
      --c-bg: #f8fafc;
      --c-body: #1e293b;
      --c-ink: #0f172a;
      --c-primary: #2563eb;
      --c-grad-a: #3b82f6;
      --c-grad-b: #8b5cf6;
      --c-text: #475569;
      --c-muted: #64748b;
  }
  /* ===== 全局重置与基础 ===== */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", Roboto, Arial, sans-serif;
      background-color: var(--c-bg);
      color: var(--c-body);
      line-height: 1.7;
  }
  a {
      text-decoration: none;
      color: inherit;
      transition: color 0.3s ease;
  }
  img {
      max-width: 100%;
      height: auto;
      display: block;
  }
  ul,
  ol {
      list-style: none;
  }
  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
  }
  /* ===== 顶部导航栏 ===== */
  nav {
      background: linear-gradient(135deg, var(--c-ink) 0%, #1e3a5f 100%);
      padding: 14px 0;
      position: sticky;
      top: 0;
      z-index: 999;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  nav .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
  }
  .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      font-size: 24px;
      font-weight: 700;
      letter-spacing: 1px;
  }
  .nav-logo svg {
      flex-shrink: 0;
  }
  .nav-logo span {
      background: linear-gradient(90deg, #60a5fa, #a78bfa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  .nav-links {
      display: flex;
      gap: 28px;
      align-items: center;
      flex-wrap: wrap;
  }
  .nav-links a {
      color: rgba(255, 255, 255, 0.85);
      font-size: 15px;
      font-weight: 500;
      padding: 6px 0;
      border-bottom: 2px solid transparent;
      transition: color 0.3s ease, border-color 0.3s ease;
  }
  .nav-links a:hover {
      color: #60a5fa;
      border-bottom-color: #60a5fa;
  }
  .hamburger {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 8px;
      min-width: 44px;
      min-height: 44px;
  }
  .hamburger span {
      display: block;
      width: 28px;
      height: 3px;
      background: #fff;
      border-radius: 3px;
      transition: 0.3s ease;
  }
  /* ===== Hero Banner ===== */
  .hero {
      background: linear-gradient(135deg, #0b1a33 0%, #1a3a5c 40%, #0f2b4a 100%);
      padding: 80px 0 70px;
      position: relative;
      overflow: hidden;
  }
  .hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
  }
  .hero::after {
      content: '';
      position: absolute;
      bottom: -30%;
      left: -15%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
  }
  .hero .container {
      position: relative;
      z-index: 2;
      text-align: center;
  }
  .hero-badge {
      display: inline-block;
      background: rgba(96, 165, 250, 0.15);
      border: 1px solid rgba(96, 165, 250, 0.25);
      color: #93c5fd;
      padding: 6px 20px;
      border-radius: 30px;
      font-size: 14px;
      letter-spacing: 1px;
      margin-bottom: 24px;
  }
  .hero h1 {
      font-size: clamp(32px, 6vw, 56px);
      font-weight: 800;
      color: #ffffff;
      line-height: 1.25;
      margin-bottom: 20px;
      letter-spacing: -0.5px;
  }
  .hero h1 .highlight {
      background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  .hero h1 .sep {
      color: #60a5fa;
      -webkit-text-fill-color: #60a5fa;
      margin: 0 4px;
  }
  .hero p {
      font-size: clamp(16px, 2vw, 20px);
      color: rgba(255, 255, 255, 0.75);
      max-width: 720px;
      margin: 0 auto 32px;
      line-height: 1.8;
  }
  .hero-btns {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
  }
  .btn-primary {
      display: inline-block;
      background: linear-gradient(135deg, var(--c-grad-a), var(--c-primary));
      color: #fff;
      padding: 14px 40px;
      border-radius: 50px;
      font-size: 17px;
      font-weight: 600;
      box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: none;
      cursor: pointer;
  }
  .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
  }
  .btn-outline {
      display: inline-block;
      background: transparent;
      color: #93c5fd;
      padding: 13px 38px;
      border-radius: 50px;
      font-size: 17px;
      font-weight: 600;
      border: 2px solid rgba(96, 165, 250, 0.4);
      transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  }
  .btn-outline:hover {
      border-color: #60a5fa;
      color: #fff;
      background: rgba(96, 165, 250, 0.1);
  }
  .hero-stats {
      display: flex;
      justify-content: center;
      gap: 40px;
      margin-top: 50px;
      flex-wrap: wrap;
  }
  .hero-stat-item {
      text-align: center;
      color: #fff;
  }
  .hero-stat-item .num {
      font-size: 32px;
      font-weight: 800;
      background: linear-gradient(90deg, #60a5fa, #a78bfa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  .hero-stat-item .label {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.6);
      margin-top: 4px;
  }
  /* ===== 通用 Section 样式 ===== */
  section {
      padding: 70px 0;
      scroll-margin-top: 80px;
  }
  .section-title {
      text-align: center;
      margin-bottom: 50px;
  }
  .section-title h2 {
      font-size: clamp(26px, 3.5vw, 38px);
      font-weight: 800;
      color: var(--c-ink);
      letter-spacing: -0.3px;
  }
  .section-title h2 .sub {
      display: block;
      font-size: 16px;
      font-weight: 400;
      color: var(--c-muted);
      margin-top: 10px;
      letter-spacing: 0.5px;
  }
  .section-title .divider {
      width: 60px;
      height: 4px;
      background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
      border-radius: 4px;
      margin: 16px auto 0;
  }
  .section-bg-light {
      background-color: #ffffff;
  }
  .section-bg-alt {
      background-color: #f1f5f9;
  }
  /* ===== 服务卡片 ===== */
  .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 28px;
  }
  .service-card {
      background: #ffffff;
      border-radius: 20px;
      padding: 36px 28px 32px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
      border: 1px solid rgba(0, 0, 0, 0.04);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      text-align: center;
  }
  .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
      border-color: rgba(59, 130, 246, 0.15);
  }
  .service-card .icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 18px;
      background: linear-gradient(135deg, #eff6ff, #dbeafe);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .service-card h3 {
      font-size: 20px;
      font-weight: 700;
      color: var(--c-ink);
      margin-bottom: 10px;
  }
  .service-card p {
      font-size: 15px;
      color: var(--c-text);
      line-height: 1.7;
  }
  .service-card .tag {
      display: inline-block;
      margin-top: 14px;
      background: #eff6ff;
      color: var(--c-primary);
      padding: 4px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
  }
  /* ===== 关于我们 ===== */
  .about-wrap {
      display: flex;
      gap: 50px;
      align-items: center;
      flex-wrap: wrap;
  }
  .about-text {
      flex: 1 1 55%;
  }
  .about-text h2 {
      font-size: clamp(24px, 3vw, 34px);
      font-weight: 800;
      color: var(--c-ink);
      margin-bottom: 16px;
  }
  .about-text p {
      font-size: 16px;
      color: var(--c-text);
      margin-bottom: 16px;
      line-height: 1.8;
  }
  .about-text .feature-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 20px;
      margin-top: 20px;
  }
  .about-text .feature-list li {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      color: var(--c-body);
  }
  .about-text .feature-list li::before {
      content: '✓';
      color: var(--c-grad-a);
      font-weight: 700;
      font-size: 18px;
  }
  .about-visual {
      flex: 1 1 35%;
      min-width: 260px;
      background: linear-gradient(135deg, #1e3a5f, var(--c-ink));
      border-radius: 24px;
      padding: 40px 30px;
      text-align: center;
      color: #fff;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  }
  .about-visual .big-num {
      font-size: 52px;
      font-weight: 800;
      background: linear-gradient(90deg, #60a5fa, #a78bfa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  .about-visual p {
      color: rgba(255, 255, 255, 0.7);
      margin-top: 6px;
      font-size: 15px;
  }
  .about-visual .hr-line {
      width: 60px;
      height: 2px;
      background: rgba(255, 255, 255, 0.15);
      margin: 20px auto;
  }
  /* ===== 安全保障 ===== */
  .security-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 24px;
  }
  .security-item {
      background: #fff;
      border-radius: 16px;
      padding: 28px 22px;
      text-align: center;
      border: 1px solid rgba(0, 0, 0, 0.04);
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .security-item:hover {
      border-color: rgba(59, 130, 246, 0.2);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  }
  .security-item .s-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      color: var(--c-primary);
  }
  .security-item .s-icon svg {
      width: 30px;
      height: 30px;
  }
  .security-item h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--c-ink);
      margin-bottom: 6px;
  }
  .security-item p {
      font-size: 14px;
      color: var(--c-muted);
  }
  /* ===== FAQ ===== */
  .faq-list {
      max-width: 860px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
  }
  .faq-item {
      background: #ffffff;
      border-radius: 16px;
      padding: 24px 30px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      border: 1px solid rgba(0, 0, 0, 0.04);
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .faq-item:hover {
      border-color: rgba(59, 130, 246, 0.15);
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  }
  .faq-item h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--c-ink);
      margin-bottom: 10px;
      padding-left: 28px;
      position: relative;
  }
  .faq-item h3::before {
      content: 'Q';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--c-grad-a);
      font-weight: 800;
      font-size: 20px;
  }
  .faq-item p {
      font-size: 15px;
      color: var(--c-text);
      line-height: 1.8;
      padding-left: 28px;
  }
  /* ===== Footer ===== */
  footer {
      background: var(--c-ink);
      color: rgba(255, 255, 255, 0.7);
      padding: 40px 0 30px;
  }
  footer .container {
      text-align: center;
  }
  footer .footer-links {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
      margin-bottom: 20px;
  }
  footer .footer-links a {
      color: rgba(255, 255, 255, 0.6);
      font-size: 14px;
      transition: color 0.3s ease;
  }
  footer .footer-links a:hover {
      color: #60a5fa;
  }
  footer .copyright {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.6);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 20px;
      margin-top: 10px;
  }
  footer .disclaimer {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.6);
      max-width: 700px;
      margin: 12px auto 0;
      line-height: 1.6;
  }
  footer .date-line {
      margin-top: 16px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.6);
  }
  footer .date-line hr {
      border: none;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      margin-bottom: 14px;
      max-width: 200px;
      margin-left: auto;
      margin-right: auto;
  }
  footer .date-line .date-text {
      font-size: 13px;
  }
  /* ===== 响应式 ===== */
  @media (max-width: 768px) {
      nav .container {
          padding: 0 16px;
      }
      .nav-links {
          display: none;
          width: 100%;
          flex-direction: column;
          gap: 12px;
          padding: 16px 0 8px;
          border-top: 1px solid rgba(255, 255, 255, 0.06);
          margin-top: 12px;
      }
      .nav-links.open {
          display: flex;
      }
      .hamburger {
          display: flex;
      }
      .hero {
          padding: 50px 0 50px;
      }
      .hero-stats {
          gap: 20px;
      }
      .hero-stat-item .num {
          font-size: 26px;
      }
      section {
          padding: 50px 0;
      }
      .services-grid {
          grid-template-columns: 1fr 1fr;
      }
      .about-text .feature-list {
          grid-template-columns: 1fr;
      }
      .about-visual {
          padding: 30px 20px;
      }
      .faq-item {
          padding: 18px 20px;
      }
      .faq-item h3 {
          font-size: 16px;
          padding-left: 24px;
      }
      .faq-item p {
          padding-left: 24px;
          font-size: 14px;
      }
      footer .footer-links {
          gap: 16px;
      }
      .btn-primary,
      .btn-outline {
          padding: 12px 28px;
          font-size: 15px;
      }
  }
  @media (max-width: 480px) {
      .services-grid {
          grid-template-columns: 1fr;
      }
      .nav-logo {
          font-size: 20px;
      }
      .nav-logo svg {
          width: 32px;
          height: 32px;
      }
      .hero h1 {
          font-size: 26px;
      }
      .hero p {
          font-size: 15px;
      }
      .hero-btns {
          flex-direction: column;
          align-items: center;
      }
      .section-title h2 {
          font-size: 22px;
      }
      .service-card {
          padding: 26px 20px 24px;
      }
      .security-grid {
          grid-template-columns: 1fr 1fr;
      }
  }
  @media (max-width: 380px) {
      .security-grid {
          grid-template-columns: 1fr;
      }
  }
  .big-num--sm {
      font-size: 38px;
  }
  /* ===== 滚动动画 ===== */
  .fade-in {
      opacity: 1;
      transform: none;
  }
  html.js .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
  }
  html.js .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
  }
  /* ===== 可访问性：跳过链接与焦点 ===== */
  .skip-link {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
      padding: 12px 20px;
      background: #ffffff;
      color: var(--c-ink);
      font-size: 14px;
      font-weight: 600;
      border-radius: 0 0 10px 0;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
      transform: translateY(-120%);
      transition: transform 0.2s ease;
  }
  .skip-link:focus {
      transform: translateY(0);
  }
  :focus-visible {
      outline: 3px solid var(--c-primary);
      outline-offset: 2px;
      border-radius: 4px;
  }
  /* ===== 滚动与动效偏好 ===== */
  html {
      scroll-behavior: smooth;
  }
  @media (prefers-reduced-motion: reduce) {
      html {
          scroll-behavior: auto;
      }
      *,
      *::before,
      *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
          scroll-behavior: auto !important;
      }
      html.js .fade-in {
          opacity: 1 !important;
          transform: none !important;
      }
  }

