:root {
  color-scheme: light;
  --page: #f7f8f5;
  --paper: #ffffff;
  --ink: #202922;
  --muted: #627068;
  --faint: #8c9890;
  --line: #dfe5de;
  --soft: #edf2eb;
  --green: #35654d;
  --green-dark: #254a38;
  --warm: #f1ede3;
  --orange: #d66b42;
  --radius: 14px;
  font-family: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.6; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--green); }
:focus-visible { outline: 3px solid #90baa0; outline-offset: 3px; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 30; top: -80px; left: 16px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { background: rgba(247, 248, 245, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 31px; font-weight: 800; letter-spacing: -.095em; line-height: 1; padding-right: 3px; }
.brand-period { color: var(--orange); }
.brand-divider { height: 25px; width: 1px; background: #cdd7ce; }
.brand-caption { color: var(--muted); font-size: 12px; letter-spacing: .04em; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav > a { font-size: 14px; color: #435047; font-weight: 600; white-space: nowrap; }
.site-nav > a:hover { color: var(--green); }
.language-toggle { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 7px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; min-width: 44px; }
.language-toggle:hover { border-color: var(--green); color: var(--green); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; width: 42px; height: 42px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; }

.hero { padding: 84px 0 82px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(275px, .75fr); gap: clamp(42px, 7vw, 110px); align-items: center; }
.eyebrow { color: var(--green); font-size: 12px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.14; letter-spacing: -.075em; font-weight: 760; margin-bottom: 25px; max-width: 780px; }
.hero-lead { color: #56645a; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.9; max-width: 650px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 47px; padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); border: 1px solid var(--green); }
.button-primary:hover { color: #fff; background: var(--green-dark); }
.button-quiet { color: var(--ink); background: transparent; border: 1px solid #cbd6cc; }
.button-quiet:hover { border-color: var(--green); color: var(--green); }
.hero-aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; box-shadow: 0 8px 25px rgba(31, 48, 35, .035); }
.aside-label { color: var(--green); font-size: 12px; letter-spacing: .08em; font-weight: 800; margin-bottom: 18px; }
.hero-aside strong { display: block; font-size: 19px; line-height: 1.45; letter-spacing: -.035em; margin-bottom: 12px; }
.hero-aside p:not(.aside-label) { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.aside-rule { width: 100%; height: 1px; background: var(--line); margin-bottom: 17px; }
.hero-aside span { color: var(--muted); font-size: 13px; }

.section-pad { padding: 90px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 37px; }
.section-index { margin-bottom: 16px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.section-heading h2, .workflow-intro h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.055em; margin: 0; }
.section-intro { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }

.software-section { background: var(--paper); }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { min-width: 260px; flex: 1; max-width: 360px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border-radius: 8px; border: 1px solid #d7dfd7; background: var(--page); height: 43px; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #dce9df; }
.search-box > span[aria-hidden] { font-size: 24px; line-height: 1; color: var(--green); transform: translateY(-1px); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; min-width: 0; }
.search-box input::placeholder { color: #8c968d; }
.search-box kbd { font-family: inherit; font-size: 12px; color: #849188; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 8px 11px; color: #5a685f; font-size: 13px; font-weight: 650; white-space: nowrap; }
.filter-chip:hover { background: var(--soft); color: var(--green); }
.filter-chip[aria-pressed="true"] { background: var(--soft); color: var(--green-dark); border-color: #d1dfd2; }
.catalog-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 12px; margin: 23px 0 17px; }
.catalog-meta > span:first-child { color: var(--ink); font-weight: 700; }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.software-card { display: flex; flex-direction: column; min-height: 260px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.software-card:hover { border-color: #afc1b1; box-shadow: 0 8px 24px rgba(33, 53, 38, .055); }
.card-top, .card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-number { color: #9aa89e; font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; background: #f3f4ef; color: #677469; border: 1px solid #e7ebe3; border-radius: 5px; padding: 3px 8px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; background: #95a398; border-radius: 50%; }
.status-badge.is-ready { color: var(--green-dark); background: #edf5ee; border-color: #d8e8d9; }
.status-badge.is-ready::before { background: #4d9a67; }
.card-category { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .06em; margin: 30px 0 8px; text-transform: uppercase; }
.software-card h3 { font-size: 22px; letter-spacing: -.04em; line-height: 1.35; margin: 0 0 9px; }
.card-summary { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 0 22px; flex: 1; }
.card-footer { border-top: 1px solid var(--line); padding-top: 16px; }
.card-more { color: var(--green); background: none; border: 0; padding: 0; font-size: 13px; font-weight: 700; }
.card-more:hover { color: var(--green-dark); text-decoration: underline; }
.download-state { color: var(--faint); font-size: 12px; white-space: nowrap; }
.download-link { color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.download-link:hover { text-decoration: underline; }
.loading-message { color: var(--muted); margin: 12px 0; font-size: 14px; }
.empty-state { padding: 48px 20px; border: 1px dashed #cbd8cc; border-radius: 12px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty-state p { margin: 0; font-size: 13px; }

.workflow-section { background: #f2f4ef; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.4fr); gap: clamp(38px, 7vw, 100px); }
.workflow-intro h2 { margin-bottom: 20px; }
.workflow-intro > p:last-child { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.workflow-feed-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; min-height: 268px; }
.workflow-feed-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 23px; border-bottom: 1px solid var(--line); color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.workflow-feed { padding: 6px 23px 22px; }
.workflow-feed .loading-message { margin-top: 18px; }
.workflow-empty { padding: 50px 15px 38px; text-align: center; }
.workflow-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 16px; background: var(--soft); border-radius: 10px; color: var(--green); font-size: 21px; }
.workflow-empty h3 { font-size: 18px; margin-bottom: 8px; }
.workflow-empty p { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.8; }
.workflow-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.workflow-card:last-child { border-bottom: 0; padding-bottom: 0; }
.workflow-card-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 12px; margin-bottom: 9px; }
.workflow-card h3 { font-size: 19px; line-height: 1.4; margin-bottom: 8px; }
.workflow-card p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-bottom: 12px; }
.workflow-card button { border: 0; background: none; color: var(--green); font-weight: 700; font-size: 13px; padding: 0; }
.workflow-card button:hover { text-decoration: underline; }

.promise-section { background: var(--paper); }
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-card { display: flex; gap: 15px; padding: 28px 25px 28px 0; }
.promise-card + .promise-card { border-left: 1px solid var(--line); padding-left: 25px; }
.promise-mark { color: var(--green); font-size: 12px; font-weight: 800; padding-top: 3px; }
.promise-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.025em; }
.promise-card p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }

.site-footer { background: var(--page); border-top: 1px solid var(--line); }
.footer-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .brand-name { font-size: 24px; }
.footer-brand > span:last-child, .footer-inner p, .footer-inner > a { color: var(--muted); font-size: 12px; margin: 0; }
.footer-inner > a:hover { color: var(--green); }

.detail-dialog { width: min(590px, calc(100% - 32px)); max-height: min(88vh, 850px); border: 1px solid var(--line); border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(12, 28, 17, .2); }
.detail-dialog::backdrop { background: rgba(20, 31, 24, .42); backdrop-filter: blur(3px); }
.detail-dialog-inner { padding: clamp(24px, 5vw, 36px); }
.detail-dialog-top { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 13px; font-weight: 800; margin-bottom: 30px; }
.dialog-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 23px; line-height: 1; }
.dialog-close:hover { color: var(--ink); border-color: #aebcaf; }
.detail-category { color: var(--green); font-size: 12px; letter-spacing: .08em; font-weight: 800; margin-bottom: 9px; }
.detail-dialog h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.055em; line-height: 1.25; margin-bottom: 13px; }
.detail-summary { color: var(--muted); font-size: 15px; line-height: 1.85; margin-bottom: 23px; }
.detail-content { border-top: 1px solid var(--line); padding-top: 23px; }
.detail-content h3 { font-size: 13px; color: var(--green); margin-bottom: 13px; }
.detail-content ul, .detail-content ol { padding-left: 22px; margin: 0 0 23px; }
.detail-content li { color: #435249; font-size: 14px; line-height: 1.75; margin-bottom: 9px; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-actions .button { min-height: 42px; }
.detail-muted { font-size: 13px; color: var(--faint); padding: 11px 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-filters { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 36px, 1160px); }
  .header-inner { min-height: 66px; }
  .brand-name { font-size: 28px; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 12px 18px 20px; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 15px 20px rgba(22, 40, 27, .05); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 13px 5px; border-bottom: 1px solid var(--line); }
  .language-toggle { align-self: flex-start; margin-top: 14px; }
  .hero { padding: 58px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-aside { padding: 21px; }
  .section-pad { padding: 68px 0 76px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-intro { margin-top: 14px; max-width: 550px; }
  .workflow-layout { grid-template-columns: 1fr; gap: 23px; }
  .workflow-intro > p:last-child { max-width: 550px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card, .promise-card + .promise-card { border-left: 0; padding: 20px 0; }
  .promise-card + .promise-card { border-top: 1px solid var(--line); }
  .footer-inner { padding: 20px 0; flex-wrap: wrap; min-height: 0; }
}

@media (max-width: 560px) {
  html[lang="zh-CN"] .hero h1 { max-width: 6em; }
  .software-grid { grid-template-columns: 1fr; }
  .software-card { min-height: 220px; }
  .search-box { min-width: 100%; max-width: none; }
  .category-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar { display: none; }
  .catalog-meta { display: block; }
  .catalog-meta > span { display: block; }
  .catalog-meta > span + span { margin-top: 2px; }
  .brand-caption { font-size: 11px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .footer-brand { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
