/* ============================================================================
   东硅 Deaicup — 全站共享设计系统
   仿 microsoft.com 信息架构：吸顶导航 → Hero → 分类栏 → 卡片网格 → 特性带 → 页脚
   品牌色：绿主 (#15803d) + 蓝辅 (#0078d4)；浅色为主，保留深色切换
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. 设计 Token（浅色为默认，[data-theme="dark"] 覆盖）
   ---------------------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --brand:           #15803d;
  --brand-hover:     #166534;
  --brand-blue:      #0078d4;
  --brand-blue-dark: #0067b8;
  --gold:            #ffc53d;
  --silver:          #c0c0c0;
  --bronze:          #cd7f32;
  --est-blue:        #4aa8ff;
  --danger:          #c42b1c;

  /* 兼容别名（页面标记沿用 --accent，映射到品牌绿） */
  --accent:        var(--brand);
  --accent-hover:  var(--brand-hover);
  --accent-light:  var(--brand);

  /* 浅色主题 */
  --bg-base:       #ffffff;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #fafafa;
  --bg-input:      #ffffff;
  --border:        #e6e6e6;
  --border-hover:  #c8c8c8;
  --text-primary:  #0e1726;
  --text-secondary:#17253d;
  --text-muted:    #616161;
  --footer-bg:     #f2f2f2;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 3px 7px rgba(0,0,0,0.13), 0 1px 2px rgba(0,0,0,0.11);
  --shadow-lg:  0 8px 16px rgba(0,0,0,0.14);

  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;

  --font-sans: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system,
               BlinkMacSystemFont, Roboto, 'Helvetica Neue', 'Microsoft YaHei',
               'PingFang SC', sans-serif;
}

[data-theme="dark"] {
  --bg-base:       #171717;
  --bg-surface:    #1f1f1f;
  --bg-card:       #242424;
  --bg-card-hover: #2b2b2b;
  --bg-input:      #1f1f1f;
  --border:        #363636;
  --border-hover:  #505050;
  --text-primary:  #f2f2f2;
  --text-secondary:#c8c8c8;
  --text-muted:    #9a9a9a;
  --footer-bg:     #1f1f1f;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.30);
  --shadow-md:  0 3px 7px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
  --shadow-lg:  0 8px 16px rgba(0,0,0,0.55);
}

/* ----------------------------------------------------------------------------
   2. Reset 与基础版式
   ---------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }

img { max-width: 100%; }

/* ----------------------------------------------------------------------------
   3. 吸顶 Header — 微软式标签导航
   ---------------------------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: stretch;
  height: 54px;
}
.header-left {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.logo-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.logo-link img {
  height: 30px; width: 30px; border-radius: var(--radius-sm);
}
.logo-text {
  font-size: 1.02rem; font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  white-space: nowrap;
}
.merge-badge {
  font-size: 0.7rem; font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-nav {
  display: flex; align-items: stretch;
  margin-left: auto;
}
.nav-tabs {
  display: flex; align-items: stretch; gap: 0;
}
.nav-tab {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 15px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.83rem; font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-bottom-color: var(--brand-blue);
}
.nav-tab.nav-active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: 16px;
}
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 32px; border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer; font-size: 0.72rem; font-weight: 600;
  font-family: inherit;
  transition: color 0.15s;
}
.lang-toggle:hover { color: var(--accent); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer; font-size: 0.9rem;
  transition: color 0.15s;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { transition: opacity 0.15s; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.header-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 16px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit; text-decoration: none;
}
.header-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); border-color: var(--border-hover); }
.btn-signin { background: transparent; color: var(--text-secondary); }
.btn-signup { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-signup:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* 汉堡按钮（桌面隐藏） */
.hamburger-btn {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  cursor: pointer; font-size: 1.2rem; flex-shrink: 0;
  transition: all 0.2s ease; font-family: inherit; padding: 0;
  margin-left: auto;
}
.hamburger-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* 移动端导航抽屉 */
.mobile-nav-overlay {
  position: fixed; inset: 0; top: 54px; z-index: 97;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
[data-theme="light"] .mobile-nav-overlay { background: rgba(0,0,0,0.12); }
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* ----------------------------------------------------------------------------
   4. 流动横幅（工作室 slogan）
   ---------------------------------------------------------------------------- */
.flowing-banner {
  position: sticky; top: 54px; z-index: 99;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 28px;
  display: flex; align-items: center;
}
.flowing-banner-track {
  display: flex; align-items: center; gap: 30px;
  white-space: nowrap;
  animation: banner-scroll 28s linear infinite;
}
.flowing-banner-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.flowing-banner-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: banner-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes banner-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes banner-dot-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ----------------------------------------------------------------------------
   5. 关键帧
   ---------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ----------------------------------------------------------------------------
   6. 主体容器与通用分节标题
   ---------------------------------------------------------------------------- */
main {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

.page-hero {
  padding: 48px 0 24px; text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600; line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto;
}

/* 全宽 Hero（仅首页） */
.hero {
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(21,128,61,0.08) 0%, transparent 60%),
    var(--bg-base);
  border-bottom: 1px solid var(--border);
  margin: 0 -24px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  background: rgba(21,128,61,0.06);
  border: 1px solid rgba(21,128,61,0.20);
  border-radius: var(--radius-sm);
  padding: 5px 16px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto;
}
.hero-origin {
  margin-top: 14px;
  font-size: 0.9rem; color: var(--text-muted);
}
.hero-actions {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.hero-btn-primary,
.hero-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hero-btn-primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.hero-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.hero-btn-ghost {
  background: transparent; color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}
.hero-btn-ghost:hover { background: rgba(0,120,212,0.06); color: var(--brand-blue-dark); }

/* 分类分隔栏 */
.category-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.category-divider:first-of-type {
  margin-top: 8px;
  border-top: none;
  padding-top: 0;
}
.category-divider .cat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.category-divider .cat-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.category-divider .cat-line {
  flex: 1; height: 1px;
  background: var(--border);
}
.category-divider .cat-sub {
  font-size: 0.75rem; color: var(--text-muted);
  white-space: nowrap;
}

/* 通用分节标题 */
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 1px;
  white-space: nowrap;
}
.section-header .line {
  flex: 1; height: 1px;
  background: var(--border);
}
.section-header .badge {
  font-size: 0.75rem; color: var(--text-muted);
  background: var(--bg-card-hover);
  padding: 2px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ----------------------------------------------------------------------------
   7. 卡片网格（统一微软式：近直角 + 仅卡片带阴影）
   ---------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.project-card.hidden { display: none; }
.project-card.highlighted {
  border-color: rgba(21,128,61,0.45);
  box-shadow: 0 0 0 1px rgba(21,128,61,0.15);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(21,128,61,0.04) 100%);
}
.project-card.highlighted:hover {
  border-color: rgba(21,128,61,0.7);
}

.card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 8px;
}
.card-icon-row {
  display: flex; align-items: center; gap: 8px;
}
.card-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.card-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary);
}
.card-badges {
  display: flex; gap: 6px; align-items: center;
}
.badge-status {
  font-size: 0.64rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-sm);
  background: rgba(21,128,61,0.08);
  color: var(--accent);
  border: 1px solid rgba(21,128,61,0.22);
}
.badge-status.wip {
  background: rgba(136,136,136,0.08);
  color: var(--text-muted);
  border-color: var(--border);
}
.badge-status.discontinued {
  background: rgba(196,43,28,0.08);
  color: var(--danger);
  border-color: rgba(196,43,28,0.20);
}
.badge-downloads {
  font-size: 0.64rem; font-weight: 500;
  padding: 2px 8px; border-radius: var(--radius-sm);
  background: rgba(0,120,212,0.06);
  color: var(--brand-blue);
  border: 1px solid rgba(0,120,212,0.15);
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem; line-height: 1.55;
  margin-bottom: 14px;
}
.card-footer {
  display: flex; align-items: center; gap: 8px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600;
  color: #fff; text-decoration: none;
  padding: 7px 16px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.card-link:hover { background: var(--accent-hover); color: #fff; }
.card-link::after { content: ' →'; }
.card-link.disabled {
  color: var(--text-muted);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}
.card-link.disabled::after { content: ''; }
.card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.card-tag {
  font-size: 0.68rem; padding: 2px 8px;
  border-radius: var(--radius-sm); color: var(--text-muted);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}

/* 卡片直接子级的标签行（独立于 card-footer，用于小项目卡片） */
.project-card > .card-tags { margin-top: 12px; }

/* 列表式卡片（思辨文章列表） */
.project-grid.topic-list {
  grid-template-columns: 1fr;
  gap: 0;
}
.project-grid.topic-list .project-card {
  border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 18px 4px;
  box-shadow: none;
}
.project-grid.topic-list .project-card:hover {
  border-bottom-color: var(--brand-blue);
}
.project-grid.topic-list .project-card .card-title {
  font-size: 1.05rem;
  color: var(--brand-blue);
}
.project-grid.topic-list .project-card:hover .card-title {
  color: var(--brand-blue-dark);
}

/* ----------------------------------------------------------------------------
   8. Minecraft 模组卡片
   ---------------------------------------------------------------------------- */
.mc-mods { padding: 0 0 40px; }
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mod-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.mod-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 10px;
}
.mod-icon-row {
  display: flex; align-items: center; gap: 8px;
}
.mod-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.mod-title {
  font-size: 0.98rem; font-weight: 600;
  color: var(--text-primary);
}
.mod-type {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-sm);
  background: rgba(21,128,61,0.08);
  color: var(--accent);
  border: 1px solid rgba(21,128,61,0.22);
}
.mod-desc {
  font-size: 0.8rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 12px;
}
.mod-footer {
  display: flex; align-items: center; gap: 8px;
}
.mod-code {
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  background: rgba(21,128,61,0.06);
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(21,128,61,0.18);
}
.mod-note {
  text-align: center; font-size: 0.82rem; color: var(--text-muted);
  padding: 14px 0 0;
}

/* ----------------------------------------------------------------------------
   9. 开源项目卡片
   ---------------------------------------------------------------------------- */
.opensource { padding: 0 0 40px; }
.opensource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex; align-items: center; gap: 14px;
}
.os-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.os-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.os-info { min-width: 0; }
.os-info h4 {
  font-size: 0.92rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.os-info .os-desc {
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.os-info .os-lang {
  display: inline-block;
  font-size: 0.66rem; font-weight: 500;
  color: var(--brand-blue);
  background: rgba(0,120,212,0.06);
  padding: 1px 8px; border-radius: var(--radius-sm);
  border: 1px solid rgba(0,120,212,0.15);
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
   10. 团队分组官网卡片
   ---------------------------------------------------------------------------- */
.group-sites { padding: 0 0 40px; }
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex; flex-direction: column; gap: 10px;
}
.group-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.group-card-top {
  display: flex; align-items: center; gap: 12px;
}
.group-card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.group-card-name {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary);
}
.group-card-desc {
  font-size: 0.84rem; color: var(--text-secondary);
  line-height: 1.5;
}
.group-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 0.8rem; font-weight: 600;
  color: #fff; text-decoration: none;
  padding: 6px 14px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  margin-top: auto;
}
.group-card-link:hover { background: var(--accent-hover); color: #fff; }
.group-card-link::after { content: ' ↗'; }

/* ----------------------------------------------------------------------------
   11. 团队成员卡片
   ---------------------------------------------------------------------------- */
.founder-section { padding: 0 0 32px; }
.founder-grid {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  flex: 1; min-width: 260px; max-width: 500px;
}
.founder-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  flex-shrink: 0;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.founder-avatar-1 { background-image: url('../assets/logo.jpg'); }
.founder-avatar-3 { background-image: url('../scencloud/logo.png'); }
.founder-info { display: flex; flex-direction: column; gap: 2px; }
.founder-name {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-primary);
}
.founder-tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  padding: 1px 8px; border-radius: var(--radius-sm);
  background: rgba(21,128,61,0.08);
  color: var(--accent);
  border: 1px solid rgba(21,128,61,0.22);
  vertical-align: middle;
  margin-left: 4px;
}
.founder-detail {
  font-size: 0.78rem; color: var(--text-secondary);
  line-height: 1.5;
}
.founder-detail a { color: var(--brand-blue); text-decoration: none; }
.founder-detail a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------------
   12. 社区卡片
   ---------------------------------------------------------------------------- */
.community { padding: 0 0 40px; }
.community-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.community-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 12px;
}
.community-hero-card h3 {
  font-size: 1.25rem; font-weight: 600;
  color: var(--text-primary);
}
.community-hero-card p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.55; max-width: 400px;
}
.community-hero-card .cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 0.85rem; font-weight: 600;
  color: #fff; text-decoration: none;
  padding: 9px 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.community-hero-card .cta-btn:hover { background: var(--accent-hover); color: #fff; }
.community-side-cards {
  display: flex; flex-direction: column; gap: 16px;
}
.community-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none; color: var(--text-primary);
  flex: 1;
}
.community-mini-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.community-mini-card .mini-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.community-mini-card .mini-info h4 {
  font-size: 0.92rem; font-weight: 600; margin-bottom: 2px;
  color: var(--text-primary);
}
.community-mini-card .mini-info span {
  font-size: 0.78rem; color: var(--text-muted);
}

/* 提交提示条 */
.submit-hint {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.submit-hint .hint-text {
  display: flex; flex-direction: column; gap: 4px;
}
.submit-hint .hint-text span {
  font-size: 0.86rem; color: var(--text-secondary);
}
.submit-hint .hint-text .hint-contact {
  font-size: 0.8rem; color: var(--text-muted);
}
.submit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 600;
  color: #fff; text-decoration: none;
  padding: 9px 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}
.submit-btn:hover { background: var(--accent-hover); color: #fff; }

/* 招募二维码 */
.qr-recruit {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.qr-recruit h4 {
  font-size: 0.98rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.qr-recruit .qr-img {
  max-width: 280px; width: 100%; height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.qr-recruit p {
  margin-top: 12px;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
   13. 思辨（特性带）
   ---------------------------------------------------------------------------- */
.philosophy-section { padding: 0 0 40px; }
.philosophy-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: left;
}
.philosophy-hero h3 {
  font-size: 1.25rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.philosophy-hero p {
  font-size: 0.98rem; color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.65;
}
.philosophy-hero .philosophy-link {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 22px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600; font-size: 0.88rem;
  transition: background 0.15s;
}
.philosophy-hero .philosophy-link:hover {
  background: var(--brand-blue-dark);
  color: #fff;
}
.card-link.series-link { color: var(--brand-blue); }
.topic-list .card-desc { color: var(--text-secondary); }

/* ----------------------------------------------------------------------------
   14. 访客统计面板
   ---------------------------------------------------------------------------- */
.stats-section { padding: 0 0 40px; }
.stats-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.stats-title {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.stats-title::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.stats-item {
  text-align: center; padding: 16px 8px;
  background: var(--bg-card-hover);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.stats-label {
  font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 6px;
}
.stats-value {
  font-size: 1.4rem; font-weight: 600;
  color: var(--text-primary);
}
.stats-value.stats-danger { color: var(--danger); }
.stats-footer {
  font-size: 0.74rem; color: var(--text-muted);
  text-align: center;
}

/* ----------------------------------------------------------------------------
   15. 联系我们信息卡
   ---------------------------------------------------------------------------- */
.contact-info-section { padding: 0 0 28px; }
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-info-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.contact-info-card .cic-icon { font-size: 1.5rem; }
.contact-info-card .cic-label {
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 500;
}
.contact-info-card .cic-value {
  font-size: 0.92rem; color: var(--brand-blue);
  font-weight: 600; text-decoration: none;
}
.contact-info-card a.cic-value:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------------
   16. 常用软件下载（software.php）
   ---------------------------------------------------------------------------- */
.software-section { padding: 8px 0 40px; }
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}
.sw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex; gap: 16px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  text-decoration: none;
  color: inherit;
}
.sw-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.sw-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.sw-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.sw-info h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.sw-platform {
  font-size: 0.62rem; font-weight: 600;
  padding: 1px 8px; border-radius: var(--radius-sm);
  background: rgba(21,128,61,0.08);
  color: var(--accent);
  border: 1px solid rgba(21,128,61,0.22);
  white-space: nowrap;
}
.sw-info .sw-desc {
  font-size: 0.84rem; color: var(--text-secondary);
  line-height: 1.5;
}
.sw-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.sw-tag {
  font-size: 0.68rem; color: var(--text-muted);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  padding: 1px 8px; border-radius: var(--radius-sm);
}
.sw-arrow {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.15s;
}
.sw-card:hover .sw-arrow { color: var(--accent); }

.disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.6;
}
.disclaimer strong { color: var(--text-secondary); }

/* ----------------------------------------------------------------------------
   17. Deshab-OS 作品页（works.html 专属）
   ---------------------------------------------------------------------------- */
.os-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  margin-bottom: 28px;
}
.os-hero-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent);
  background: rgba(21,128,61,0.08);
  border: 1px solid rgba(21,128,61,0.22);
  padding: 3px 12px; border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.os-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.os-hero-desc {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 640px; line-height: 1.6;
  margin-bottom: 20px;
}
.os-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.os-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.os-hero-btn.primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.os-hero-btn.primary:hover { background: var(--accent-hover); color: #fff; }
.os-hero-btn:not(.primary) {
  background: transparent; color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}
.os-hero-btn:not(.primary):hover {
  background: rgba(0,120,212,0.06);
  color: var(--brand-blue-dark);
}
.os-hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.os-hero-tag {
  font-size: 0.72rem; color: var(--text-secondary);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: var(--radius-sm);
}

.os-features { padding: 0 0 40px; }
.os-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.os-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}
.os-feature h4 {
  font-size: 0.98rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.os-feature p {
  font-size: 0.84rem; color: var(--text-secondary);
  line-height: 1.55;
}

/* ----------------------------------------------------------------------------
   18. 全球操作系统排行（os-ranking.html 专属）
   ---------------------------------------------------------------------------- */
.page-hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  margin-bottom: 16px;
}
.page-hero h1 .accent { color: var(--accent); }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.stat-card .lbl {
  font-size: 0.74rem; color: var(--text-muted);
  margin-bottom: 4px;
}
.stat-card .val {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
}
.stat-card .val.accent { color: var(--accent); }

.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 20px 0 6px;
}
.search-wrapper {
  position: relative; flex: 1; min-width: 220px;
}
.search-input {
  width: 100%; padding: 10px 36px 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem; font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 0.9rem; padding: 4px; opacity: 0;
  transition: opacity 0.15s; pointer-events: none;
  font-family: inherit;
}
.search-clear.visible { opacity: 1; pointer-events: auto; }
.search-clear:hover { color: var(--text-primary); }

.family-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 6px 0 12px;
}
.chip {
  font-size: 0.72rem; font-weight: 500;
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.chip:hover { border-color: var(--border-hover); color: var(--text-primary); }
.chip.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent); font-weight: 600;
}

.legend {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 0.76rem; color: var(--text-muted);
  margin: 8px 0 16px;
}
.legend .dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 5px;
}
.legend .est { color: var(--gold); }
.legend .gh { color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
thead th {
  text-align: left;
  padding: 11px 14px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
thead th:hover { color: var(--text-primary); }
thead th.sorted { color: var(--accent); }
thead th.num, td.num { text-align: right; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr.hl { background: linear-gradient(90deg, rgba(21,128,61,0.06), transparent); }
td { padding: 10px 14px; vertical-align: middle; }
td.num { font-family: 'Cascadia Code', 'Consolas', monospace; white-space: nowrap; }

.rank {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-weight: 700; font-size: 0.9rem;
  color: var(--text-muted); text-align: right; white-space: nowrap;
}
.rank.r1 { color: var(--gold); }
.rank.r2 { color: var(--silver); }
.rank.r3 { color: var(--bronze); }

.os-cell { min-width: 220px; }
.os-name {
  font-weight: 600; color: var(--text-primary);
  display: inline-flex; align-items: center; gap: 7px;
}
.os-desc {
  font-size: 0.76rem; color: var(--text-muted);
  margin-top: 2px; max-width: 460px; line-height: 1.4;
}
.os-link { color: var(--text-secondary); text-decoration: none; font-size: 0.68rem; }
.os-link:hover { color: var(--accent); }
.os-base { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.req {
  font-size: 0.62rem; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(21,128,61,0.4);
  padding: 0 5px; border-radius: var(--radius-sm);
  margin-left: 6px;
}
.tag-wrap { display: flex; flex-wrap: wrap; gap: 4px; min-width: 110px; }

.badge {
  display: inline-block;
  font-size: 0.66rem; font-weight: 500;
  padding: 2px 7px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.badge.family { background: var(--bg-card-hover); border: 1px solid var(--border); color: var(--text-secondary); }
.badge.lang { background: rgba(21,128,61,0.07); border: 1px solid rgba(21,128,61,0.18); color: var(--accent); }
.badge.closed { background: rgba(255,197,61,0.1); border: 1px solid rgba(255,197,61,0.35); color: var(--gold); }
.badge.manual { background: rgba(136,136,136,0.1); border: 1px solid var(--border); color: var(--text-muted); }
.badge.tag { background: var(--bg-card-hover); border: 1px solid var(--border); color: var(--text-secondary); }

.score-wrap { min-width: 120px; }
.score-val {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-weight: 700; color: var(--text-primary); font-size: 0.85rem;
}
.score-val.est { color: var(--gold); }
.score-val.est2 { color: var(--est-blue); }
.score-bar {
  height: 5px; background: var(--bg-card-hover);
  border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.score-bar i {
  display: block; height: 100%;
  background: var(--accent); border-radius: 2px;
  transition: width 0.4s;
}
.score-bar.est i { background: var(--gold); }
.score-bar.est2 i { background: var(--est-blue); }

.empty {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ----------------------------------------------------------------------------
   19. 多栏页脚（浅灰底）
   ---------------------------------------------------------------------------- */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 24px 28px;
}
.footer-col h4 {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.8rem; color: var(--text-secondary);
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-blue); }
.footer-legal {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--brand-blue); }
.footer-legal .footer-links {
  display: flex; gap: 18px; flex-wrap: wrap;
}

/* 兼容旧 footer 结构（避免遗漏页脚样式） */
footer p {
  font-size: 0.8rem; color: var(--text-muted);
  text-align: center; padding: 16px 0 4px;
}
footer .footer-links {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 16px;
}
footer .footer-links a {
  font-size: 0.82rem; color: var(--text-secondary);
  text-decoration: none; transition: color 0.15s;
}
footer .footer-links a:hover { color: var(--brand-blue); }

/* ----------------------------------------------------------------------------
   20. 响应式
   ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .os-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .header-inner { height: auto; padding: 8px 0; flex-wrap: nowrap; gap: 8px; align-items: center; }
  .header-left { flex-shrink: 0; }
  .header-nav {
    position: fixed; top: 54px; right: 0; width: 280px;
    height: calc(100vh - 54px); max-height: calc(100dvh - 54px);
    background: var(--bg-surface); border-left: 1px solid var(--border);
    flex-direction: column; padding: 8px; z-index: 99;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg); display: flex;
  }
  .header-nav.open { transform: translateX(0); }
  .nav-tabs { flex-direction: column; gap: 2px; }
  .nav-tab {
    padding: 11px 14px; border-bottom: none; border-left: 3px solid transparent;
    border-radius: var(--radius-sm); font-size: 0.92rem;
  }
  .nav-tab:hover { border-left-color: var(--brand-blue); }
  .nav-tab.nav-active { border-left-color: var(--accent); border-bottom-color: transparent; }
  .nav-actions {
    margin-left: 0; margin-top: 8px; padding-top: 10px;
    border-top: 1px solid var(--border);
    flex-direction: row; flex-wrap: wrap; gap: 6px;
  }
  .nav-actions .header-btn { flex: 1; min-width: 80px; justify-content: center; text-align: center; }
  .lang-toggle, .theme-toggle { align-self: center; }

  .flowing-banner { top: 54px; height: 24px; }
  .flowing-banner-item { font-size: 0.7rem; }

  main { padding: 0 16px; }

  .hero { padding: 44px 16px 36px; margin: 0 -16px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero p { font-size: 0.95rem; }

  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { padding: 16px 16px 14px; }
  .mod-grid { grid-template-columns: 1fr; gap: 12px; }
  .opensource-grid { grid-template-columns: 1fr; gap: 12px; }
  .group-grid { grid-template-columns: 1fr; gap: 12px; }
  .founder-grid { flex-direction: column; gap: 12px; }
  .founder-card { max-width: 100%; min-width: 0; padding: 14px 16px; }

  .community-featured { grid-template-columns: 1fr; }
  .community-side-cards { flex-direction: row; }
  .community-mini-card { flex: 1; }

  .software-grid { grid-template-columns: 1fr; gap: 12px; }
  .sw-card { padding: 16px; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 12px; }

  .stats-grid, .rank-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .os-features-grid { grid-template-columns: 1fr; }

  .category-divider { flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; padding-top: 18px; }
  .category-divider .cat-sub { width: 100%; }
  .category-divider .cat-label { font-size: 0.74rem; }

  .submit-hint { flex-direction: column; align-items: flex-start; gap: 8px; }
  .os-hero { padding: 24px 20px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 520px) {
  .os-features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main { padding: 0 12px; }
  header { padding: 0 12px; }
  .header-nav { width: 100%; }
  .hero { padding: 36px 12px 28px; margin: 0 -12px; }
  .hero h1 { font-size: clamp(1.4rem, 8vw, 1.8rem); }
  .hero p { font-size: 0.88rem; }
  .project-card { padding: 14px 14px 12px; }
  .card-top { flex-wrap: wrap; gap: 4px; }
  .founder-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .founder-avatar { width: 40px; height: 40px; }
  .founder-name { font-size: 0.85rem; }
  .community-side-cards { flex-direction: column; }
  .stats-grid, .rank-stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* 品牌字标保留等宽字体 */
.logo-text, .auth-logo span {
  font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}
