/* ============================================================
   回归科技 · 全站公共样式 —— 终端暗金版 (v2)
   覆盖 assets/css/site.css,全站页面一次生效。
   类名与原站完全一致,页面 HTML 无需改动。
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Noto+Serif+SC:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --bg: #0b0e12;
    --bg-alt: #0e1116;
    --bg-soft: #171d24;
    --ink: #f5f1e8;
    --ink-2: rgba(245, 241, 232, 0.66);
    --ink-3: rgba(245, 241, 232, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.12);
    --accent: #e0c097;
    --accent-dark: #d6a25f;
    --accent-soft: rgba(224, 192, 151, 0.14);
    --line-gold: rgba(224, 192, 151, 0.28);
    --serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
    --sans: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --mono: 'JetBrains Mono', 'IBM Plex Mono', Consolas, 'Courier New', monospace;
    --max: 1240px;
    --r: 6px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
/* 顶部 1px 金色扫光 + 左上暖光源 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(224,192,151,0.5), transparent) top / 100% 1px no-repeat,
        radial-gradient(900px 520px at 10% -6%, rgba(181, 106, 54, 0.18), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 等宽标签体系 ===== */
.mono-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.4);
}
.mono-label.accent { color: var(--accent-dark); }

/* ===== 导航(终端风:虚线下边框) ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 18, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--ink);
}
.brand::before {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cpath d='M66 6 L6 6 L6 90 L90 90 L90 30 L66 30' stroke='%23f5f1e8' stroke-width='12' stroke-linejoin='miter'/%3E%3Crect x='36' y='36' width='24' height='24' fill='%23e0c097'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
    font-family: var(--mono);
    padding: 4px 2px;
    font-size: 12.5px;
    color: var(--ink-3);
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-social {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}
.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r);
    color: var(--ink-3);
    transition: color 0.2s, background 0.2s;
}
.nav-social a:hover { color: var(--accent); background: rgba(255, 255, 255, 0.04); }
.nav-social svg { width: 19px; height: 19px; fill: currentColor; }
@media (max-width: 640px) {
    .nav-social { display: none; }
}

/* ===== 大标题 ===== */
.h-display {
    font-family: var(--serif);
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0.01em;
    margin: 0;
}
.h-display .accent { color: var(--accent); font-style: italic; }

.h-section {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* ===== 按钮(终端风:等宽字 + 直角) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--r);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--ink); color: #0b0e12; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--line-gold); color: var(--accent); background: transparent; }
.btn-outline:hover { border-color: rgba(224, 192, 151, 0.5); color: #f2dcae; transform: translateY(-1px); }
.btn-accent {
    background: linear-gradient(135deg, #e0c097, #d6a25f);
    color: #0b0e12;
    font-weight: 700;
    box-shadow: 0 12px 40px rgba(214, 162, 95, 0.18);
}
.btn-accent:hover { color: #0b0e12; transform: translateY(-1px); box-shadow: 0 14px 44px rgba(214, 162, 95, 0.26); }

/* ===== 区块头 ===== */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head .mono-label { display: block; margin-bottom: 6px; }
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}
.more-link {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent-dark);
    font-weight: 500;
    white-space: nowrap;
}
.more-link:hover { color: var(--accent); }

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--bg-alt);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-gold);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
}
.card-media {
    height: 130px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--ink-3);
    border-bottom: 1px solid var(--border);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 16px; font-weight: 700; margin: 0; }
.card-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-top: 4px;
}
.card-desc {
    font-size: 13px;
    color: rgba(245, 241, 232, 0.52);
    line-height: 1.7;
    margin: 10px 0 0;
    flex: 1;
}
.card-foot {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-dark);
}

/* ===== 徽章 ===== */
.badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 10px;
    border-radius: var(--r);
    vertical-align: middle;
}
.badge-hot { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line-gold); }
.badge-new { background: rgba(140, 233, 154, 0.12); color: #8ce99a; border: 1px solid rgba(140, 233, 154, 0.25); }
.badge-soon { background: var(--bg-soft); color: rgba(245, 241, 232, 0.4); border: 1px solid var(--border); }

/* ===== 筛选/标签胶囊(终端风:等宽 + 直角) ===== */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
    padding: 8px 20px;
    font-family: var(--mono);
    font-size: 12.5px;
    white-space: nowrap;
    border-radius: var(--r);
    border: 1px solid var(--border-2);
    color: var(--ink-2);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.pill:hover { border-color: var(--line-gold); color: var(--ink); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #0b0e12; font-weight: 700; }

/* ===== 命令块(详情页) ===== */
.cmd { margin-bottom: 26px; }
.cmd-desc {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.cmd-desc .note { font-weight: 400; color: var(--ink-2); }
.cmd-code {
    position: relative;
    background: #060809;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.cmd-code pre {
    margin: 0;
    padding: 16px 56px 16px 20px;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.7;
    color: #ece8e0;
    white-space: pre-wrap;
    word-break: break-all;
}
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-family: var(--mono);
    font-weight: 500;
    color: var(--ink-3);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.copy-btn.copied { color: #8ce99a; border-color: rgba(140, 233, 154, 0.4); }

/* ===== 说明卡 ===== */
.notice {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 26px;
    margin-bottom: 36px;
}
.notice h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px;
}
.notice ol { margin: 0; padding-left: 20px; }
.notice li { font-size: 14.5px; color: var(--ink-2); margin-bottom: 6px; }
.notice a { color: var(--accent-dark); font-weight: 600; }
.notice a:hover { color: var(--accent); text-decoration: underline; }
.notice a.btn-accent { color: #0b0e12; }
.notice a.btn-accent:hover { color: #0b0e12; text-decoration: none; }

/* ===== 详情页头部 ===== */
.article-head { padding: 44px 0 8px; }
.article-head .mono-label { display: block; margin-bottom: 10px; }
.article-head h1 {
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
}
.article-head .lede { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; max-width: 640px; }
.article-actions { display: flex; gap: 10px; margin: 20px 0 8px; flex-wrap: wrap; }
.article-body { padding: 28px 0 56px; max-width: 860px; }

/* ===== 提示词卡片 ===== */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.prompt-card {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.prompt-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-gold);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
}
.prompt-card img { width: 100%; object-fit: cover; border-bottom: 1px solid var(--border); }
.prompt-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.prompt-text {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    color: var(--ink-2);
    background: #060809;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 10px 12px;
    margin: 0;
    max-height: 110px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}
.prompt-copy {
    margin-top: 10px;
    align-self: flex-end;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--line-gold);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.2s;
}
.prompt-copy:hover { background: var(--accent); color: #0b0e12; }
.prompt-copy.copied { background: rgba(140, 233, 154, 0.12); color: #8ce99a; border-color: rgba(140, 233, 154, 0.25); }

/* ===== 热门横条 ===== */
.hot-list { display: flex; flex-direction: column; gap: 10px; }
.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg-alt);
    transition: border-color 0.2s;
}
.hot-item:hover { border-color: var(--line-gold); }
.hot-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: var(--r);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}
.hot-meta { min-width: 0; }
.hot-name { font-size: 14px; font-weight: 800; line-height: 1.4; }
.hot-sub { font-size: 12px; color: rgba(245, 241, 232, 0.4); }
.hot-flag {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(245, 241, 232, 0.4);
    white-space: nowrap;
}
.hot-flag.hot { color: var(--accent); }

/* ===== 社群卡 ===== */
.group-card { background: var(--bg-alt); border-radius: var(--r); }
.group-card.pro {
    background: linear-gradient(150deg, #1c232b, #11151b) !important;
    border-color: var(--line-gold) !important;
    box-shadow: 0 12px 40px rgba(214, 162, 95, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.group-card.pro h3, .group-card.pro .group-num { color: var(--ink) !important; }
.group-card.pro p { color: var(--ink-3) !important; }
.group-card.pro .mono-label { color: var(--accent) !important; }
.group-num { font-family: var(--mono); color: var(--accent); }

/* ===== 页脚 ===== */
.footer {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(11, 14, 18, 0.6);
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding: 40px 0 28px;
}
.footer h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}
.footer h4::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cpath d='M70 6 L6 6 L6 90 L90 90 L90 26 L70 26' stroke='%23f5f1e8' stroke-width='15' stroke-linejoin='miter'/%3E%3Crect x='34' y='38' width='28' height='28' fill='%23e0c097'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer .mono-label { display: block; margin-bottom: 12px; font-size: 11px; }
.footer-desc { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13.5px; color: var(--ink-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0 20px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(245, 241, 232, 0.4);
}
.footer-bottom a { color: rgba(245, 241, 232, 0.4); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .card-grid, .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 18px; }
    .card-grid, .prompt-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 20px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 11.5px; }
    .brand { font-size: 14px; }
    .brand::before { width: 20px; height: 20px; }
    .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
