/* ============================================================
   猫公社 · 组织官网
   苹果极简风 / 平实克制
   ============================================================ */

:root {
    --bg:        #ffffff;
    --bg-sub:    #f5f5f7;
    --text:      #1d1d1f;
    --text-sub:  #6e6e73;
    --text-dim:  #86868b;
    --line:      #d2d2d7;
    --line-soft: #e8e8ed;
    --accent:    #0071e3;
    --nav-bg:    rgba(255,255,255,.82);
    --radius:    12px;
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --bg:        #000000;
    --bg-sub:    #1d1d1f;
    --text:      #f5f5f7;
    --text-sub:  #a1a1a6;
    --text-dim:  #86868b;
    --line:      #38383c;
    --line-soft:  #2c2c2e;
    --accent:    #2997ff;
    --nav-bg:    rgba(0,0,0,.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.mono {
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: .92em;
}

/* ============================================================
   顶栏
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.brand-sub  { font-size: 10px; color: var(--text-dim); letter-spacing: .08em; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
    font-size: 14px;
    color: var(--text-sub);
    padding: 4px 0;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.is-on { color: var(--text); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 4px; flex: none; }

.icon-btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--text-sub);
    border-radius: 50%; cursor: pointer;
    line-height: 0;
    transition: background .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--bg-sub); color: var(--text); }
.icon-btn svg { display: block; }
[data-theme="light"] .ico-moon { display: none; }
[data-theme="dark"]  .ico-sun  { display: none; }

.burger {
    display: none;
    width: 34px; height: 34px;
    border: 0; background: transparent; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    line-height: 0;
}
.burger span {
    display: block; width: 17px; height: 1.5px;
    background: var(--text); border-radius: 2px;
}

/* ============================================================
   汉堡菜单（全屏，带头部与关闭按钮）
   ============================================================ */
.menu {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.menu[hidden] { display: none; }

.menu-head {
    position: sticky; top: 0;
    display: flex; align-items: center; justify-content: space-between;
    height: 52px; padding: 0 16px 0 20px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
}
.menu-brand { display: flex; flex-direction: column; line-height: 1.15; }
.menu-brand-name { font-size: 16px; font-weight: 600; }
.menu-brand-sub  { font-size: 10px; color: var(--text-dim); letter-spacing: .08em; }

.menu-list {
    display: flex; flex-direction: column;
    padding: 6px 20px 28px;
    max-width: 640px; width: 100%; margin: 0 auto;
}
.menu-list a {
    display: flex; align-items: baseline; gap: 12px;
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
    color: var(--text);
}
.menu-list a:last-child { border-bottom: 0; }
.menu-list a:hover { text-decoration: none; }
.menu-list a.is-on .menu-zh { font-weight: 600; color: var(--accent); }
.menu-zh { font-size: 20px; }
.menu-en { font-size: 12px; color: var(--text-dim); letter-spacing: .06em; }

/* ============================================================
   通用区块
   ============================================================ */
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line-soft); }

.sec-head { margin-bottom: 22px; }
.sec-title {
    font-size: 22px; font-weight: 600; letter-spacing: -.01em;
    margin-bottom: 6px;
}
.sec-sub { font-size: 14px; color: var(--text-sub); }

/* 段落文本 */
.prose p {
    font-size: 15px; color: var(--text-sub);
    margin-bottom: 12px;
}
.prose p:last-child { margin-bottom: 0; }

/* Hero */
.hero { padding: 60px 0 40px; }
.hero-name {
    font-size: clamp(30px, 7vw, 44px);
    font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
}
.hero-en {
    font-size: 12px; color: var(--text-dim);
    letter-spacing: .16em; margin-top: 6px;
}
.hero-desc {
    font-size: 16px; color: var(--text-sub);
    max-width: 560px; margin-top: 16px;
}
.hero-meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.chip {
    font-size: 12.5px; color: var(--text-sub);
    background: var(--bg-sub);
    border-radius: 980px; padding: 5px 12px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 0 20px;
    border-radius: 980px; background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 500;
    transition: background .18s ease, opacity .18s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn:active { transform: scale(.98); }
.btn-ghost {
    background: transparent; color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; opacity: 1; }

/* 卡片网格 */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--bg-sub);
    border-radius: var(--radius);
    padding: 20px;
}
.card-t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card-d { font-size: 13.5px; color: var(--text-sub); }

/* 列表 */
.list { list-style: none; }
.list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14.5px; color: var(--text-sub);
}
.list li:last-child { border-bottom: 0; }
.list li b { color: var(--text); font-weight: 600; }

.num-list { counter-reset: n; list-style: none; }
.num-list li {
    counter-increment: n;
    padding: 11px 0 11px 34px;
    position: relative;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14.5px; color: var(--text-sub);
}
.num-list li::before {
    content: counter(n, decimal-leading-zero);
    position: absolute; left: 0; top: 12px;
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 12px; color: var(--text-dim);
}
.num-list li:last-child { border-bottom: 0; }
.num-list li b { color: var(--text); font-weight: 600; }

/* 成员 */
.mem {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.mem:last-child { border-bottom: 0; }
.mem-av {
    width: 40px; height: 40px; flex: none;
    border-radius: 50%;
    background: var(--bg-sub);
    border: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; color: var(--text-sub);
}
.mem-info { min-width: 0; flex: 1; }
.mem-id { font-size: 15px; font-weight: 500; }
.mem-note { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.mem-tag {
    flex: none;
    font-size: 12px; color: var(--text-sub);
    background: var(--bg-sub);
    border-radius: 980px; padding: 4px 11px;
    white-space: nowrap;
}
.mem-tag.is-leader { color: #fff; background: var(--accent); }

/* 动态 */
.news {
    padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.news:last-child { border-bottom: 0; }
.news-top { display: flex; align-items: center; gap: 10px; }
.news-date { font-size: 12.5px; color: var(--text-dim); font-family: "SF Mono", ui-monospace, monospace; }
.news-tag {
    font-size: 11.5px; color: var(--text-sub);
    background: var(--bg-sub); border-radius: 980px; padding: 2px 9px;
}
.news-title { font-size: 16px; font-weight: 600; margin-top: 6px; }
.news-body { font-size: 14px; color: var(--text-sub); margin-top: 4px; }

/* 链接 */
.link {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
    color: var(--text);
}
.link:last-child { border-bottom: 0; }
.link:hover { text-decoration: none; }
.link:hover .link-go { transform: translateX(2px); }
.link-body { min-width: 0; flex: 1; }
.link-name { display: block; font-size: 15px; font-weight: 500; }
.link-url {
    display: block;
    font-size: 12.5px; color: var(--text-dim);
    font-family: "SF Mono", ui-monospace, monospace; margin-top: 2px;
    word-break: break-all;
}
.link-desc { display: block; font-size: 13.5px; color: var(--text-sub); margin-top: 3px; }
.link-go { flex: none; color: var(--accent); font-size: 14px; transition: transform .18s ease; }

/* 说明条 */
.note {
    background: var(--bg-sub);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 13.5px; color: var(--text-sub);
    margin-top: 20px;
}

/* 空状态 */
.empty {
    padding: 40px 0; text-align: center;
    color: var(--text-dim); font-size: 14px;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
    border-top: 1px solid var(--line-soft);
    padding: 40px 0 32px;
    margin-top: 20px;
    font-size: 13.5px;
}
.foot-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
}
.foot-name { font-size: 15px; font-weight: 600; }
.foot-sub { font-size: 11px; color: var(--text-dim); letter-spacing: .1em; margin-top: 2px; }
.foot-desc { font-size: 13px; color: var(--text-sub); margin-top: 10px; max-width: 320px; }
.foot-title { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.foot-list { list-style: none; }
.foot-list li {
    font-size: 13px; color: var(--text-sub);
    padding: 3px 0; display: flex; gap: 8px;
}
.foot-list li span { color: var(--text-dim); }
.foot-list li b { font-weight: 500; color: var(--text-sub); }
.foot-decl {
    font-size: 12.5px; color: var(--text-dim);
    padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.foot-icp { padding: 6px 0; font-size: 12.5px; text-align: center; }
.foot-icp a { color: var(--text-sub); }
.icp-sep { color: var(--text-dim); margin: 0 6px; }
.icp-placeholder { color: var(--text-dim); }
.foot-copy {
    font-size: 12px; color: var(--text-dim);
    text-align: center; padding-top: 10px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 820px) {
    .foot-main { grid-template-columns: 1fr 1fr; gap: 24px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-inner { gap: 14px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 44px 0 28px; }
    section { padding: 32px 0; }
    .foot-main { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
