/* ==================== 阿里巴巴普惠体 ==================== */
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.woff2") format("woff2"),
       url("../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Noto Sans SC — 阿里巴巴普惠体不可用时的近似 fallback，Google Fonts CDN */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ==================== 字节跳动风格 - 全站主题 ==================== */
:root {
  /* === 品牌色（极简点缀色） === */
  --blue: #000000;
  --blue-1: #F5F5F5;
  --blue-2: #EBEBEB;
  --blue-3: #D6D6D6;
  --blue-4: #B8B8B8;
  --blue-5: #8C8C8C;
  --blue-6: #666666;
  --blue-7: #404040;
  --blue-8: #262626;
  --blue-9: #1A1A1A;
  --blue-10: #000000;

  /* === 语义色 === */
  --success: #000000;
  --success-light: #F5F5F5;
  --warning: #666666;
  --warning-light: #FAFAFA;
  --danger: #000000;
  --danger-light: #F5F5F5;

  /* === 中性灰色 === */
  --gray-1: #FAFAFA;
  --gray-2: #F5F5F5;
  --gray-3: #F0F0F0;
  --gray-4: #E8E8E8;
  --gray-5: #D9D9D9;
  --gray-6: #BFBFBF;
  --gray-7: #8C8C8C;
  --gray-8: #666666;
  --gray-9: #434343;
  --gray-10: #262626;
  --gray-11: #1A1A1A;
  --gray-12: #0D0D0D;
  --gray-13: #080808;
  --gray-14: #000000;

  /* === 背景 === */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F5F5F5;
  --bg-dark: #000000;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFA;
  --bg-blue-light: #FAFAFA;
  --bg-section: #FFFFFF;
  --bg-section-alt: #FAFAFA;

  /* === 文字 === */
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --text-placeholder: #BFBFBF;

  /* === 白色文字 === */
  --text-white-1: rgba(255,255,255,1);
  --text-white-2: rgba(255,255,255,0.65);
  --text-white-3: rgba(255,255,255,0.45);

  /* === 边框 === */
  --border-color: #F0F0F0;
  --border-light: #F5F5F5;

  /* === 阴影（极浅或无） === */
  --shadow-sm: none;
  --shadow-md: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 4px 16px rgba(0,0,0,0.08);

  /* === 圆角（统一层级） === */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-round: 50px;
  --radius-full: 50%;

  /* === 间距 scale === */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-120: 120px;

  /* === 字体 === */
  --font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-size-base: 14px;
}

/* ========== 全局修复 ========== */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family);
  font-weight: 400 !important;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* 标题 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700 !important;
  font-family: var(--font-family);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* 全局链接色 — 纯黑，hover 下划线 */
a, a:link, a:visited {
  color: #000000;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover, a:focus {
  color: #000000;
  text-decoration: underline;
}
a:active {
  color: #000000;
}

/* 段落行高 */
p, li, td, .lead {
  line-height: 1.7;
}

/* ========== 辅助工具类 ========== */
.pt-16 { padding-top: var(--sp-16) !important; }
.pb-16 { padding-bottom: var(--sp-16) !important; }
.pt-24 { padding-top: var(--sp-24) !important; }
.pb-24 { padding-bottom: var(--sp-24) !important; }
.pt-32 { padding-top: var(--sp-32) !important; }
.pb-32 { padding-bottom: var(--sp-32) !important; }
.pt-48 { padding-top: var(--sp-48) !important; }
.pb-48 { padding-bottom: var(--sp-48) !important; }
.pt-64 { padding-top: var(--sp-64) !important; }
.pb-64 { padding-bottom: var(--sp-64) !important; }
.pt-80 { padding-top: var(--sp-80) !important; }
.pb-80 { padding-bottom: var(--sp-80) !important; }

.mt-8  { margin-top: var(--sp-8) !important; }
.mb-8  { margin-bottom: var(--sp-8) !important; }
.mt-16 { margin-top: var(--sp-16) !important; }
.mb-16 { margin-bottom: var(--sp-16) !important; }
.mt-24 { margin-top: var(--sp-24) !important; }
.mb-24 { margin-bottom: var(--sp-24) !important; }
.mt-32 { margin-top: var(--sp-32) !important; }
.mb-32 { margin-bottom: var(--sp-32) !important; }
.mt-48 { margin-top: var(--sp-48) !important; }
.mb-48 { margin-bottom: var(--sp-48) !important; }
.mt-64 { margin-top: var(--sp-64) !important; }
.mb-64 { margin-bottom: var(--sp-64) !important; }

/* ========== Framework 颜色覆盖 ========== */
.bg-primary, .btn-primary, .badge-primary {
  background-color: #000000 !important;
}
.bg-dark {
  background-color: var(--bg-dark) !important;
  color: #fff !important;
}
.bg-secondary {
  background-color: var(--bg-secondary) !important;
}
.text-primary, a.text-primary:hover { color: #000000 !important; }
.text-white  { color: #fff !important; }
.text-dark   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary  { color: var(--text-tertiary) !important; }
.text-info    { color: #000000 !important; }
.text-success { color: #000000 !important; }
.text-warning { color: #666666 !important; }
.text-danger  { color: #000000 !important; }
.bg-white     { background-color: var(--bg-card) !important; }
.border-primary { border-color: #000000 !important; }

/* ========== Topbar 导航栏 ========== */
.topbar.topbar-inverse,
.topbar.topbar-bg {
  background-color: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
  color: #000000 !important;
}
.topbar.topbar-bg {
  background-color: rgba(255,255,255,0.98) !important;
}

/* 导航栏链接 */
.topbar .right-btn,
.topbar .right-btn:link,
.topbar .right-btn:visited,
.topbar .right-btn:hover,
.topbar .right-btn:focus,
.topbar .right-btn:active {
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-right: 2.8rem;
  text-decoration: none;
}

/* ========== 按钮 ========== */
.btn {
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  font-weight: 500;
}
a.btn, a.btn:hover, a.btn:focus, a.btn:active, a.btn:visited {
  color: inherit !important;
  text-decoration: none !important;
}

/* 所有黑色背景按钮 → 文字强制白色 */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
a.btn.btn-primary,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
a.btn.btn-primary:active,
a.btn.btn-primary:visited,
a.btn.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background: #000000 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: none !important;
}
.btn-primary:hover,
a.btn.btn-primary:hover {
  background: #333333 !important;
  color: #fff !important;
}
.btn-outline {
  border: 1px solid #000000 !important;
  color: #000000 !important;
  background: transparent !important;
}
.btn-outline:hover {
  background: #000000 !important;
  color: #fff !important;
}
.btn-outline.btn-white {
  background: transparent !important;
  color: #000000 !important;
  border-color: #000000 !important;
}
.btn-outline.btn-white:hover {
  background: #000000 !important;
  color: #fff !important;
}
.btn-white {
  background-color: #fff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
}
.btn-white:hover {
  border-color: #000000 !important;
  color: #000000 !important;
  background-color: #FAFAFA !important;
}

/* ========== Section 区域 ========== */
.main-content .section:not(.section-contact):not(.section-superiority):not(.cta-section):not(.page-cta) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%) !important;
  color: var(--text-primary);
}
.main-content .bb-11 {
  background: linear-gradient(180deg, #F8F9FB 0%, #F2F4F7 100%) !important;
}
.section-contact {
  background: #000000 !important;
  color: #fff !important;
  padding-bottom: var(--sp-80) !important;
}
.section-superiority {
  background: #000000 url(/skin/lingmao2025/img/superiority-bg.png) no-repeat center center !important;
  background-size: cover !important;
  color: #fff !important;
}
.section-gradient {
  background: linear-gradient(180deg, #F8F9FB 0%, #F2F4F7 100%) !important;
}
.section-gradient-alt {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%) !important;
}

/* ========== Header Hero ========== */
.header-inverse,
.header-inverse h1, .header-inverse h2, .header-inverse h3, .header-inverse h4, .header-inverse h5, .header-inverse h6 {
  color: var(--text-primary) !important;
}
.header-inverse {
  background-color: transparent !important;
}
.header-inverse .scroll-down-inverse span {
  border-color: var(--text-tertiary) !important;
}
.header-inverse .scroll-down-inverse span::before {
  background-color: var(--text-tertiary) !important;
}

/* ========== Footer ========== */
.footer {
  background: #1A1A1A !important;
  border-top: none !important;
  color: var(--text-white-2) !important;
  padding: var(--sp-64) 0 var(--sp-48) !important;
}
.footer a { color: var(--text-white-2) !important; }
.footer a:hover { color: #fff !important; text-decoration: none; }
.copyright { margin-top: var(--sp-48) !important; }

/* ========== 卡片系统 ========== */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.card-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.card-sm:hover { border-color: #000000; box-shadow: none; }
.card-md {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.card-md:hover { border-color: #000000; box-shadow: none; }
.card-lg {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.card-lg:hover { border-color: #000000; box-shadow: none; }

/* ========== 表单 ========== */
.form-control {
  background-color: #fff !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
}
.form-control:focus {
  border-color: #000000 !important;
  box-shadow: none !important;
}

/* ========== 阴影 ========== */
.shadow-1 { box-shadow: none !important; }
.shadow-2 { box-shadow: none !important; }
.shadow-3 { box-shadow: none !important; }
.shadow-4 { box-shadow: none !important; }
.shadow-5 { box-shadow: none !important; }

/* ========== Section 标题 ========== */
.section-header h2::before, .section-header h2::after { display: none; }
.section-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: var(--sp-8);
  font-weight: 400;
}

/* ========== 响应式 ========== */
@media (max-width: 767px) {
  .topbar-right {
    background-color: rgba(255,255,255,0.98) !important;
  }
  .topbar-right .right-btn {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
  }
}
