/* ========== 公共CSS变量 ========== */
:root {
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --line: #f2f2f2;
  --line-strong: rgba(221, 48, 35, 0.18);
  --text-main: #333333;
  --text-body: #666666;
  --text-muted: #797979;
  --brand: #dd3023;
  --brand-soft: rgba(221, 48, 35, 0.08);
  --shadow: 0 16px 40px rgba(15, 32, 43, 0.06);
}

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-width: 1280px;
  background: var(--page-bg);
  color: var(--text-main);
  font:
    14px/1.5714286 Arial,
    "PingFang SC",
    -apple-system,
    "Microsoft YaHei",
    BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== 容器 ========== */
.shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.general-padding {
  padding: 0 16px;
}

@media (min-width: 768px) {
  .general-padding {
    padding: 0 24px;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .general-padding {
    padding: 0 80px;
  }
}

@media (min-width: 1440px) and (max-width: 1920px) {
  .general-padding {
    padding: 0 200px;
  }
}

@media (min-width: 1920px) {
  .general-padding {
    padding: 0 300px;
  }
}

/* ========== Header导航 ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(211, 238, 245, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: 100%;
  height: 100%;
  margin: 0;
  padding-left: 100px;
  padding-right: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

@media (max-width: 1440px) {
  .header-inner {
    padding-left: 80px;
  }
}

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-wrap img {
  display: block;
  height: 32px;
}

.logo-official {
  height: 28px !important;
}

.logo-text {
  margin: 0 12px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  margin-left: 100px;
  min-width: 0;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 0;
}

.nav-item.active {
  color: var(--brand);
}

.nav-item.active::after,
.nav-item:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  background: var(--brand);
}

.nav-item:hover {
  color: var(--brand);
}

.nav-lang:hover::after {
  display: none;
}

.nav-spacer {
  flex: 1;
}

/* ========== Footer公共样式 ========== */
.footer {
  background: #191c1f;
}

.foot {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 20px;
  color: #dbdbdb;
  background: #191c1f;
  display: flex;
  justify-content: center;
}

.foot a {
  color: #dbdbdb;
  text-decoration: none;
}

.foot-content {
  margin: 40px 0;
  display: flex;
}

.foot-content * {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.foot-row {
  display: flex;
  margin-bottom: 4px;
}

.foot-row > :not(:first-child) {
  margin-left: 20px;
}

.foot-row > * {
  flex-shrink: 0;
}

.w-100 {
  width: 100px;
  flex-shrink: 0;
}

.w-200 {
  width: 200px;
  flex-shrink: 0;
}

.mr-40 {
  margin-right: 40px;
}

.mr-8 {
  margin-right: 8px;
}

.foot-col {
  display: flex;
  flex-direction: column;
}

.foot-col > * {
  margin-bottom: 4px;
}

.foot-col > *:last-child {
  margin-bottom: 0;
}

.foot-col a:hover {
  text-decoration: underline;
}

.foot-link-icp:hover {
  text-decoration: underline;
}

/* ========== Footer 子布局样式 ========== */
.foot-left-top {
  margin-bottom: 28px;
}

.foot-left-top > :first-child {
  margin-bottom: 4px;
}

.foot-left {
  padding-right: 40px;
}

.foot-vertical-line {
  width: 1px;
  flex-grow: 1;
  background-color: #dbdbdb;
}

.foot-right {
  padding-left: 24px;
}

.foot-right > * {
  margin-bottom: 4px;
}

.foot-right > *:last-child {
  margin-bottom: 0;
}

.foot-right span,
.foot-right a {
  min-width: 72px;
}

.foot-right-header {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.foot-contact-grid {
  min-width: 300px;
  display: grid;
  grid-template-columns: auto 1fr;
  margin-bottom: 8px;
}

.foot-contact-item {
  display: contents;
}

.foot-contact-label {
  font-weight: 500;
  min-width: 72px;
  white-space: nowrap;
  margin-right: 20px;
  margin-bottom: 4px;
}

.foot-contact-value {
  word-break: break-word;
  margin-bottom: 4px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
}

.foot-links a {
  min-width: auto;
  margin-right: 20px;
}

.foot-links a:last-child {
  margin-right: 0;
}

.foot-left-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.report-demo {
  cursor: pointer;
}
