/* ============================================================
   主内容容器与标题
   ============================================================ */
.page-main {
  padding-top: 40px;
  padding-bottom: 80px;
}
.section { margin-bottom: 48px; }
.section:last-child { margin-bottom: 0; }
.section-title {
  font-size: 20px;
  font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 24px; padding-left: 16px;
  border-left: 4px solid var(--accent); line-height: 1.4;
  display: flex; align-items: baseline; gap: 12px;
}
.section-title .bi {
  width: 20px; height: 20px;
  color: var(--accent);
  align-self: center;
}
.section-title .title-en {
  font-size: 13px; font-weight: 500; color: var(--text-tertiary);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.notice-box {
  background: var(--notice-bg); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 20px 24px;
  font-size: 15px; color: var(--text-secondary); line-height: 1.9;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.notice-box strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   带目录通用样式
   ============================================================ */
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 14px; color: var(--text-tertiary);
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-soft);
}

/* 两栏布局 */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: start;
}
.legal-content { min-width: 0; }

/* 右侧 sticky 目录 */
.legal-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  max-height: calc(100vh - var(--topbar-h) - 56px);
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.legal-sidebar::-webkit-scrollbar { width: 4px; }
.legal-sidebar::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
.legal-toc-side__title {
  font-size: 12px; font-weight: 600; color: var(--text-tertiary);
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 16px; padding-left: 14px;
}
.legal-toc-side { display: flex; flex-direction: column; border-left: 1px solid var(--border); transition: border-color .3s ease; }
.legal-toc-side a {
  font-size: 14.5px; color: var(--text-secondary);
  padding: 9px 14px; margin-left: -1px;
  border-left: 2px solid transparent; line-height: 1.55;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.legal-toc-side a:hover { color: var(--accent); }
.legal-toc-side a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; background: var(--accent-subtle); }

/* 带目录通用内容区 */
.legal-section { margin-bottom: 48px; scroll-margin-top: 90px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h3 {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.legal-section h3 .num {
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-light); border-radius: 4px;
  padding: 2px 10px; letter-spacing: .04em; flex-shrink: 0;
}
.legal-section p, .legal-section li { font-size: 16px; color: var(--text-secondary); line-height: 2.1; }
.legal-section p { margin-bottom: 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { list-style: none; margin: 16px 0; }
.legal-section li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal-section li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--dot-color);
}
.legal-section strong { color: var(--text-primary); font-weight: 600; }
.legal-section a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
  text-decoration-color: var(--border-hover);
}
.legal-section a:hover { text-decoration-color: var(--accent); }

/* 高亮提示框 */
.highlight-box {
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 2;
}
.highlight-box strong { color: var(--accent); font-weight: 600; }

/* 广告形式卡片网格 (宽屏下调整为更合适的列数) */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ad-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s, background-color .3s ease;
}
.ad-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); transform: translateY(-3px); }
.ad-card__icon { font-size: 24px; margin-bottom: 16px; display: block; line-height: 1; }
.ad-card__title { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; letter-spacing: .02em; }
.ad-card__desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.9; }

/* 投放流程步骤 (加大间距) */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.step:last-child { border-bottom: none; }
.step__no {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.step__body { flex: 1; }
.step__title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.step__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.9; }

/* 隐私政策 信息收集表格 */
.table-wrap { width: 100%; overflow-x: auto; margin: 20px 0; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.9;
  vertical-align: top;
}
.info-table th {
  background: var(--accent-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.info-table td strong { color: var(--text-primary); font-weight: 600; }
.info-table tbody tr:hover td { background: var(--accent-subtle); }

/* ============================================================
   地图页专用样式
   ============================================================ */
.map-filter { position: relative; margin-bottom: 32px; }
.map-filter input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 16px; font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.map-filter input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.map-filter input::placeholder { color: var(--text-tertiary); }
.map-filter .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}
.map-filter .clear-search {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer; padding: 0;
  display: none; align-items: center; justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}
.map-filter .clear-search.show { display: flex; }
.map-filter .clear-search:hover { color: var(--accent); background: var(--accent-light); }
.map-filter .clear-search .bi { width: 14px; height: 14px; }

.map-group { margin-bottom: 32px; }
.map-group:last-child { margin-bottom: 0; }
.map-group dt {
  font-size: 18px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 10px;
}
.map-group dt .bi {
  width: 18px; height: 18px;
  color: var(--accent);
}
.map-group dt a { color: var(--accent); transition: opacity 0.2s; }
.map-group dt a:hover { opacity: 0.75; }
.map-group dt .province-label {
  font-size: 18px; font-weight: 600;
  color: var(--text-primary);
}

/* 链接布局自适应，利用 1440px 的宽度展开 */
.link-grid {
  display: flex; flex-wrap: wrap;
  gap: 12px 32px;
}
.link-grid a {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.link-grid a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 搜索高亮 */
mark.search-highlight {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
  font-style: normal;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-tertiary);
  font-size: 16px;
  display: none;
}
.empty-state.show { display: block; }
.empty-state .bi {
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--border-hover);
}

/* ============================================================
   主内容容器与通用标题
   ============================================================ */
.page-main {
  padding-top: 40px;
  padding-bottom: 80px;
  min-height: 60vh;
}
.section { margin-bottom: 56px; }
.section:last-child { margin-bottom: 0; }
.section-title {
  font-size: 20px;
  font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 24px; padding-left: 16px;
  border-left: 4px solid var(--accent); line-height: 1.4;
  display: flex; align-items: baseline; gap: 12px;
}
.section-title .bi {
  width: 20px; height: 20px;
  color: var(--accent);
  align-self: center;
}
.section-title .title-en {
  font-size: 13px; font-weight: 500; color: var(--text-tertiary);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============================================================
   通用组件 (卡片、按钮、标签)
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background-color 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px;
  border-radius: var(--radius); font-size: 16px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-secondary);
  transition: all 0.2s ease; text-decoration: none;
}
.btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}

/* ============================================================
   关于我们：主体特有样式
   ============================================================ */
.about-prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2.1;
  margin-bottom: 16px;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--text-primary); font-weight: 600; }

/* 核心板块网格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC 宽屏下强制 3 列 */
  gap: 20px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background-color 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.service-card__icon {
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}
.service-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.service-card__desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* 使命与价值列表 */
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 宽屏下双列 */
  gap: 20px;
}
.value-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.3s ease;
}
.value-item:hover { border-color: var(--border-hover); }
.value-item__mark {
  flex-shrink: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}
.value-item__content { flex: 1; }
.value-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.value-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   联系我们特有样式
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* 顶部介绍文字 */
.contact-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2.1;
  margin-bottom: 40px;
}
.contact-intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 联系卡片网格 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background-color 0.3s ease;
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon .bi { width: 24px; height: 24px; }
.contact-card__content { flex: 1; }
.contact-card__title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
}
.contact-card__desc {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}
.contact-card__desc a {
  color: var(--accent);
  font-weight: 500;
}
.contact-card__desc a:hover { text-decoration: underline; }

/* 反馈表单 */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-size: 20px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 15px; color: var(--text-tertiary);
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 15px; font-weight: 500; color: var(--text-primary);
}
.form-label span { color: #c0392b; } /* 必填项红色星号 */
.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus {
  border-color: var(--accent);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
textarea.form-control {
  height: 160px;
  padding: 16px;
  resize: vertical;
  line-height: 1.8;
}
.select-wrapper {
  position: relative;
  width: 100%;
  height: 48px; /* 强制固定高度，防止被内部的元素撑开变形 */
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 100%;
  padding-right: 48px; 
  cursor: pointer;
}

[data-theme="light"] .form-select { color-scheme: light; }
[data-theme="dark"] .form-select { color-scheme: dark; }
.form-select option {
  background-color: var(--card-bg);
  color: var(--text-primary);
}

/* --- 自定义箭头图标 --- */
.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -8px; /* 图标高 16px，所以上边距 -8px 实现绝对居中 */
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  fill: currentColor;
  pointer-events: none; 
  transition: color 0.2s; /* 去掉了 transform，防止覆盖居中 */
}

.form-select:focus + .select-arrow {
  color: var(--accent);
}

/* --- 优化后的表单底部操作区 --- */
.form-actions {
  margin-top: 40px;
  display: flex;
  justify-content: space-between; /* 左右两端对齐 */
  align-items: center;
  padding-top: 24px;
  border-top: 1px dashed var(--border-soft); /* 增加一条虚线分割，视觉更清晰 */
}

.form-actions__hint {
  font-size: 14px;
  color: var(--text-tertiary);
}

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 48px; /* 稍微加宽一点，显得更大气 */
  font-size: 16px; font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
}
[data-theme="dark"] .btn-submit { color: #1a1917; }
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 右侧辅助侧栏 */
.contact-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  display: flex; flex-direction: column; gap: 24px;
}
.sidebar-card {
  background: var(--notice-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-title .bi { color: var(--accent); }
.sidebar-content {
  font-size: 14.5px; color: var(--text-secondary); line-height: 2;
}
.sidebar-content ul { list-style: none; margin-top: 8px; }
.sidebar-content li { margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.sidebar-content li::before {
  content: "•"; color: var(--accent); font-weight: bold; line-height: 1.5;
}
.sidebar-link {
  display: block;
  font-size: 14.5px;
  color: var(--accent);
  margin-top: 12px;
  font-weight: 500;
}
.sidebar-link:hover { text-decoration: underline; }
