/* ========== UNIFIED HEADER ========== */
.header{position:fixed;top:0;left:0;right:0;background:rgba(10,10,10,0.95);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);-webkit-transform:translateZ(0);transform:translateZ(0);border-bottom:1px solid rgba(200,164,92,0.2);z-index:1000;height:60px}
.header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 1.2rem;height:60px;position:relative}
.header .logo{display:flex;align-items:center;text-decoration:none;color:#c8a45c;font-weight:700;font-size:1.1rem;gap:8px}
.header .logo img{height:36px;width:auto;border-radius:6px}
.header .nav{display:flex;gap:0.3rem;flex-wrap:nowrap;align-items:center}
.header .nav a{color:#ccc;text-decoration:none;padding:0.4rem 0.7rem;border-radius:4px;font-size:0.85rem;white-space:nowrap;transition:all 0.2s}
.header .nav a:hover,.header .nav a.active{color:#c8a45c;background:rgba(200,164,92,0.1)}
.header .nav a.nav-cta{background:linear-gradient(135deg,#c8a45c,#a88a3c);color:#000!important;font-weight:600;padding:0.4rem 1rem;border-radius:6px}
.header .nav a.nav-cta:hover{opacity:0.9}
.mobile-menu-btn{display:none;background:none;border:1px solid #444;color:#fff;font-size:1.4rem;cursor:pointer;padding:0.4rem 0.8rem;border-radius:4px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;min-width:44px;min-height:44px;position:relative;z-index:1001}
@media(max-width:768px){
  .header .nav{max-height:0;overflow:hidden;opacity:0;position:absolute;top:100%;left:0;right:0;background:rgba(10,10,10,0.98);flex-direction:column;padding:0.5rem;border-bottom:1px solid #333;transition:max-height 0.3s ease,opacity 0.2s ease}
  .header .nav.open{max-height:500px!important;opacity:1!important;overflow:visible;-webkit-transform:translateZ(0);transform:translateZ(0)}
  .mobile-menu-btn{display:block!important}
  .header .nav a{padding:0.6rem 1rem;border-bottom:1px solid #222}
}

/* ========== UNIFIED FOOTER ========== */
.site-footer{background:#050505;border-top:1px solid #222;padding:2.5rem 1rem 1.5rem;color:#bbb}
.footer-grid{max-width:1200px;margin:0 auto 1.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;text-align:left}
.footer-grid h4{color:#c8a45c;font-size:1.05rem;font-weight:700;margin-bottom:0.8rem}
.footer-grid p{line-height:1.7;font-size:0.9rem;margin:0.15rem 0}
.footer-grid a{color:#c8a45c;text-decoration:none}
.footer-grid a:hover{color:#c9a96e}
.footer-social{display:flex;flex-wrap:wrap;gap:0.8rem;justify-content:center;margin-bottom:1.2rem}
.footer-social a{color:#bbb;text-decoration:none;font-size:0.8rem;padding:4px 12px;border:1px solid #333;border-radius:4px;transition:all 0.2s}
.footer-social a:hover{color:#c9a96e;border-color:#c9a96e}
.footer-bottom{text-align:center;border-top:1px solid #222;padding-top:1rem}
.footer-bottom p{font-size:0.78rem;color:#777}
.footer-bottom a{color:#888;text-decoration:none}
@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:1.5rem}
  .footer-grid h4{font-size:0.9rem}
}
@media(max-width:480px){
  .footer-grid{grid-template-columns:1fr;gap:1rem;text-align:center}
}

/* ========== BODY PADDING ========== */
body{padding-top:60px!important}
/* ========== 全局移动端适配 v11 ========== */

/* 1. 所有内联grid在手机端变1列 */
@media (max-width: 768px) {
  /* 首页信任证明3列→1列 */
  [style*="grid-template-columns:1fr 1.3fr 1fr"],
  [style*="grid-template-columns: 1fr 1.3fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* 首页信任下方2列→1列 */
  [style*="grid-template-columns:1fr 1fr;gap:20px;max-width:1100px"],
  [style*="grid-template-columns: 1fr 1fr; gap:20px; max-width:1100px"] {
    grid-template-columns: 1fr !important;
  }
  /* 客户评价2列→1列 */
  [style*="grid-template-columns:1fr 1fr;gap:20px;max-width:1000px"],
  [style*="grid-template-columns: 1fr 1fr; gap:20px; max-width:1000px"] {
    grid-template-columns: 1fr !important;
  }
  /* 通用2列grid→1列 */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* 通用3列grid→1列 */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* section标题缩小 */
  .section-title { font-size: 1.4rem !important; }
  .section { padding: 3rem 16px !important; }
  
  /* 卡片间距统一 */
  .card { padding: 16px !important; }
  
  /* 图片高度适配 */
  [style*="height:200px"][style*="object-fit:cover"] {
    height: 150px !important;
  }
  [style*="height:160px"][style*="object-fit:cover"] {
    height: 140px !important;
  }
  
  /* 信任证明区大图缩放 */
  [style*="max-height:320px"] {
    max-height: 200px !important;
  }
  
  /* 服务流程横排→竖排 */
  [style*="display:flex"][style*="justify-content:center"][style*="flex-wrap:wrap"][style*="gap:30px"] {
    gap: 15px !important;
  }
  [style*="font-size:2.5rem"] {
    font-size: 2rem !important;
  }
  
  /* 表单区域适配 */
  [style*="max-width:520px"] {
    max-width: 100% !important;
  }
  
  /* 4S对比区适配 */
  [style*="max-width:800px"] {
    max-width: 100% !important;
    padding: 20px 16px !important;
  }
  
  /* Hero统计区缩小 */
  .hero-stats { gap: 1.5rem !important; margin-top: 1.5rem !important; }
  
  /* 视频iframe适配 */
  iframe, video, .video-container {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.2rem !important; }
  .section { padding: 2.5rem 12px !important; }
  .card { padding: 14px !important; }
  
  /* 按钮适配 */
  .btn { padding: 10px 20px !important; font-size: 0.9rem !important; }
  
  /* 页脚链接加大点击区 */
  .footer-grid a { padding: 4px 0; display: inline-block; min-height: 32px; }
  
  /* emoji图标适配 */
  [style*="font-size:2.5rem"] {
    font-size: 1.8rem !important;
  }
  [style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }
}

/* 2. 统一卡片样式 - 全站一致 */
.card {
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(200,164,92,0.1) !important;
}

/* 3. 统一grid间距 */
[style*="display:grid"] {
  gap: 16px !important;
}
@media (min-width: 769px) {
  [style*="display:grid"] {
    gap: 20px !important;
  }
}


/* ========== LANGUAGE SWITCH (batch 2) ========== */
.header .nav a.lang-switch{margin-left:0.4rem;padding:0.35rem 0.75rem;border:1px solid rgba(200,164,92,0.5);border-radius:4px;color:#c8a45c;font-size:0.8rem;font-weight:600;background:rgba(200,164,92,0.05);letter-spacing:0.5px;transition:all 0.2s}
.header .nav a.lang-switch:hover{background:rgba(200,164,92,0.15);border-color:#c8a45c;color:#e5c878}
.header .nav a.lang-switch.active{background:linear-gradient(135deg,#c8a45c,#a88a3c);color:#000;border-color:#c8a45c}
@media(max-width:768px){
  .header .nav a.lang-switch{margin-left:0;margin-top:0.3rem;text-align:center;border-color:#c8a45c}
}
