/* ========================================
   辙屿科技 - 企业官网样式
   ======================================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --hero-bg: #F5F7FA;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(37, 99, 235, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1200px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(245, 247, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.header-inner .logo {
  justify-self: start;
}

.header-inner .nav {
  justify-self: center;
}

.header-inner .header-actions {
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.02em;
}

.logo-text .sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 主站登录入口 */
.site-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-text-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1;
}

.login-text-btn:hover {
  color: var(--primary);
}

.qq-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
}

.qq-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.qq-nickname {
  font-size: 13px;
  color: var(--gray-800);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qq-logout {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.qq-logout:hover {
  text-decoration: underline;
}

/* 登录弹窗 */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-modal[hidden] {
  display: none;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.login-modal-panel {
  position: relative;
  width: min(100%, 360px);
  padding: 36px 32px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: loginModalIn 0.22s ease;
}

@keyframes loginModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--gray-400);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.login-modal-close:hover {
  color: var(--gray-700);
}

.login-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.login-modal-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.login-modal-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qq-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.qq-login-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.qq-login-btn img {
  display: block;
  height: 32px;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 12px 48px;
  font-size: 16px;
  min-width: 148px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 12px 52px;
  min-width: 160px;
  border-radius: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--gray-100);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
  margin: 0 auto;
}

.menu-overlay {
  display: none;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-height);
  padding-bottom: 0;
  overflow: hidden;
  background-color: var(--hero-bg);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: clamp(48px, 10vw, 160px);
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-title .italic {
  font-style: italic;
  color: var(--primary);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

@media (max-width: 1919px) {
  .hero-bg-video {
    object-fit: cover;
    object-position: right center;
  }
}

/* ========== Section Common ========== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== Services ========== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  border-color: var(--primary-100);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  color: var(--white);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  transition: var(--transition);
}

.service-card:hover .service-link {
  transform: translateX(4px);
}

/* ========== Stats ========== */
.stats {
  background: linear-gradient(90deg, #F0F5FF 0%, #E8F0FE 50%, #F0F5FF 100%);
  padding: 56px 0;
  border-top: 1px solid rgba(37, 99, 235, 0.06);
  border-bottom: 1px solid rgba(37, 99, 235, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.stat-info {
  text-align: left;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-number:not(:has(span)) {
  font-size: 26px;
}

.stat-number span {
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ========== Cases ========== */
.cases {
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image.placeholder-1 {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
}

.case-image.placeholder-2 {
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
}

.case-image.placeholder svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.3);
}

.case-body {
  padding: 28px;
}

.case-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.case-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
}

.case-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.case-link::after {
  content: "→";
  transition: transform var(--transition);
}

.case-link:hover::after {
  transform: translateX(4px);
}

.api-loading,
.api-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-400);
  padding: 28px 12px;
  font-size: 14px;
}

/* ========== About ========== */
.about {
  background: var(--white);
  padding: 48px 0 80px;
}

.about-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  background: linear-gradient(135deg, #F6F9FF 0%, #F0F5FF 55%, #EBF2FF 100%);
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.about-content {
  padding: 0 24px 0 40px;
}

.about-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.2;
}

.about-text {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 2px;
}

.about-text + .about-text {
  margin-bottom: 14px;
}

.btn-about {
  padding: 7px 20px;
  font-size: 13px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

.about-visual {
  position: relative;
  height: 100%;
}

.about-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 12%, rgba(0, 0, 0, 0.8) 26%, #000 40%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 12%, rgba(0, 0, 0, 0.8) 26%, #000 40%, #000 100%);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #F6F9FF 0%, rgba(246, 249, 255, 0.92) 12%, rgba(240, 245, 255, 0.5) 28%, transparent 46%);
  pointer-events: none;
  z-index: 1;
}

/* ========== News ========== */
.news {
  background: var(--gray-50);
  padding-top: 80px;
  padding-bottom: 48px;
}

.news-scroll-wrap {
  position: relative;
}

.news-scroll {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-100) transparent;
}

.news-scroll::-webkit-scrollbar {
  width: 6px;
}

.news-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-100);
  border-radius: 3px;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.news-scroll-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gray-50));
  pointer-events: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
  color: inherit;
}

.news-date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  padding-top: 4px;
}

.news-day {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.news-month {
  display: block;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.news-link::after {
  content: " →";
  transition: letter-spacing var(--transition);
}

.news-card:hover .news-link::after {
  letter-spacing: 2px;
}

/* ========== Footer ========== */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: var(--gray-500);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.qr-box {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.qr-box svg {
  width: 100%;
  height: 100%;
}

.qr-text {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-beian {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.footer-beian-divider {
  color: var(--gray-300);
}

.footer-police {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-police-icon {
  flex-shrink: 0;
}

/* ========== News Detail ========== */
.news-detail-page {
  padding: calc(var(--header-height) + 40px) 0 80px;
  background: var(--white);
  min-height: 70vh;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 36px;
}

.news-breadcrumb a {
  color: var(--gray-500);
}

.news-breadcrumb a:hover {
  color: var(--primary);
}

.news-breadcrumb span:last-child {
  color: var(--gray-600);
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.news-detail-meta time {
  font-size: 14px;
  color: var(--gray-400);
}

.news-detail-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 32px;
}

.news-detail-content {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.9;
}

.news-detail-content p {
  margin-bottom: 20px;
}

.news-detail-nav {
  max-width: 800px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .qq-nickname {
    max-width: 72px;
    font-size: 12px;
  }

  .login-text-btn {
    font-size: 14px;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
  }

  .header-inner .nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: min(280px, 78vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 32px;
    gap: 0;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    border-bottom: none;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }

  .header-inner .nav.open {
    display: flex;
    transform: translateX(0);
  }

  .nav-link {
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
    font-size: 16px;
  }

  .nav-link.active {
    color: var(--primary);
    font-weight: 600;
  }

  .nav-link.active::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  body.menu-open {
    overflow: hidden;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

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

  .news-scroll {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .news-scroll-wrap::after {
    display: none;
  }

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

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-bg-video {
    object-fit: cover;
    object-position: 72% center;
  }

  .hero-inner {
    min-height: auto;
    justify-content: flex-start;
    text-align: left;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(28px, 6.5vw, 40px);
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .about-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-content {
    padding: 28px 24px 20px;
    text-align: center;
  }

  .about-title {
    font-size: 20px;
  }

  .about-visual img {
    height: 180px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
  }

  .about-visual::before {
    background: linear-gradient(to bottom, #F6F9FF 0%, rgba(246, 249, 255, 0.6) 10%, transparent 24%);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .logo-text .name {
    font-size: 16px;
  }

  .logo-text .sub {
    font-size: 9px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-desc {
    font-size: 14px;
    padding: 0 8px;
  }

  .hero-bg-video {
    object-position: 78% center;
  }

  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn,
  .btn-lg {
    width: 100%;
    min-width: 0;
    padding: 14px 24px;
  }

  .services-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 20px 24px;
  }

  .stats {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }

  .stat-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .stat-info {
    text-align: center;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 13px;
  }

  .case-image {
    height: 180px;
  }

  .case-body {
    padding: 20px;
  }

  .news {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .news-card {
    padding: 18px;
    gap: 14px;
  }

  .news-day {
    font-size: 24px;
  }

  .news-body h3 {
    font-size: 15px;
  }

  .about {
    padding: 32px 0 56px;
  }

  .about-content {
    padding: 24px 20px 16px;
  }

  .about-text {
    text-align: left;
  }

  .footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    padding: 20px 0;
    font-size: 12px;
  }

  .footer-beian {
    flex-direction: column;
    gap: 6px;
  }

  .footer-beian-divider {
    display: none;
  }

  .news-detail-page {
    padding: calc(var(--header-height) + 24px) 0 56px;
  }

  .news-breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .news-breadcrumb span:last-child {
    max-width: 100%;
    white-space: normal;
  }

  .news-detail-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .news-detail-content {
    font-size: 15px;
  }

  .news-detail-nav {
    margin-top: 36px;
  }

  .news-detail-nav .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }

  .stat-info {
    text-align: left;
  }

  .hero-bg-video {
    object-position: 85% center;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245, 247, 250, 0.92) 0%, rgba(245, 247, 250, 0.75) 55%, rgba(245, 247, 250, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
  }

  .hero-inner {
    z-index: 1;
  }
}
