/* 国内产品首页：复用门户主题与头部，仅此页面加载。 */
.domestic-home .style-switcher { margin-left: auto; }
.domestic-home .style-switcher select { min-height: 44px; }
.domestic-home nav a:nth-child(n) { display: flex; }
.cn-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; align-items: center; padding: 56px 0 58px; }
.cn-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 11px; border: 1px solid var(--accent-soft-3); border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 700; }
.cn-hero h1 { max-width: none; margin-top: 22px; font-size: clamp(30px, 3.25vw, 46px); line-height: 1.4; letter-spacing: -.025em; }
.cn-hero h1 em { color: var(--accent); font-style: normal; }
.cn-hero-description { max-width: 500px; margin: 20px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.cn-hero-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cn-hero-capabilities span { padding: 5px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-pill); color: var(--text-2); background: var(--surface-2); font-size: 12px; }
.cn-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cn-primary-link, .cn-download, .cn-retry { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.cn-primary-link { color: #fff; border-color: var(--accent); background: var(--accent-grad); }
.cn-primary-link:hover { filter: brightness(1.1); }
.cn-download { color: var(--text-4); background: var(--surface-2); cursor: not-allowed; }
.cn-download-note { margin: 12px 0 0; color: var(--text-4); font-size: 12px; }
.cn-model-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.8; }
.cn-model-note > span { flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.domestic-home footer a { color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }
.domestic-home footer a:hover { color: var(--accent); }
.cn-software { padding: 38px 0 48px; border-top: 1px solid var(--line-soft); }
.cn-section-heading h2 { margin: 0; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.4; letter-spacing: -.02em; }
.cn-eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 12px; font-weight: 600; }
.cn-section-heading > p:last-child, .cn-section-heading > div > p:last-child { margin: 12px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.8; }
.cn-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.cn-feature { min-width: 0; padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface-2); }
.cn-feature-number { color: var(--accent); font: 600 12px ui-monospace, monospace; }
.cn-feature-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cn-feature-top svg { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cn-feature h3 { margin: 18px 0 10px; color: var(--text-1); font-size: 17px; }
.cn-feature p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.8; }
.cn-feature a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--accent); font-size: 12px; font-weight: 600; }
.cn-feature a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cn-models { padding: 38px 0 64px; border-top: 1px solid var(--line-soft); }
.cn-models-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cn-model-count { flex-shrink: 0; color: var(--text-3); font-size: 12px; }
.cn-model-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 58px; }
.cn-model-feedback p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.8; }
.cn-retry { color: var(--accent); background: var(--surface-2); }
.cn-retry:hover { border-color: var(--accent); }
.cn-retry:disabled { cursor: wait; opacity: .65; }
.cn-model-count[hidden], .cn-retry[hidden] { display: none; }
.cn-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cn-model-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.cn-model-kind { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: var(--radius-sm); color: var(--accent); background: var(--accent-soft); font-size: 11px; }
.cn-model-card h3 { margin: 16px 0 6px; color: var(--text-1); font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.cn-model-id { margin: 0; color: var(--text-4); font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.cn-model-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.cn-model-tags:empty { display: none; }
.cn-model-tags span { max-width: 100%; padding: 4px 8px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); color: var(--text-3); background: var(--surface-1); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.cn-model-description { margin: 16px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.cn-empty { color: var(--text-3); font-size: 13px; line-height: 1.8; }
@media (max-width: 930px) {
  .cn-hero { grid-template-columns: 1fr; gap: 30px; padding: 38px 0; }
  .cn-hero-description { max-width: 650px; }
  .showcase-carousel { width: 100%; max-width: 660px; }
  .showcase-carousel { margin: 0 auto; }
  .cn-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .domestic-home nav { display: none; }
  .domestic-home .brand span { display: inline; }
  .cn-hero { gap: 24px; padding: 30px 0; }
  .cn-hero h1 { font-size: clamp(25px, 6vw, 34px); }
  .cn-hero-description { font-size: 15px; }
  .cn-hero-actions { gap: 10px; }
  .cn-primary-link, .cn-download { flex: 1 1 190px; }
  .showcase-carousel { padding: 12px 0 0; }
  .cn-software, .cn-models { padding-top: 28px; }
  .cn-feature-grid, .cn-model-grid { grid-template-columns: 1fr; gap: 12px; }
  .cn-feature, .cn-model-card { padding: 20px; }
  .cn-models-heading { align-items: flex-start; flex-direction: column; }
}
.cn-feature a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-embedded .domestic-home .cn-hero { padding-top: 24px; }
