/* ============================================================
   dark.css — 全站统一 Apple 暗色主题 · 设计令牌 + 共享组件
   引用方式：<link rel="stylesheet" href="/static/assets/dark.css">
   自包含，无外部依赖。
   ============================================================ */

:root {
    /* ---- Apple 暗色令牌 ---- */
    --bg: #000000;
    --surface: #161617;
    --surface2: #1d1d1f;
    --border: rgba(255, 255, 255, .10);
    --text: #f5f5f7;
    --text-dim: #86868b;
    --accent: #ff8a7a;   /* 链接（品牌珊瑚） */
    --accent2: #a1a1a6;  /* 兼容旧变量名 */
    --cta: #ff8a7a;      /* 主按钮（品牌珊瑚） */
    --cta-hover: #e85d75;
    --green: #30d158;
    --yellow: #ffd60a;
    --red: #ff453a;

    /* ---- 疗愈师专属色（保留） ---- */
    --gubei: #f87171;
    --zhonglan: #fb923c;
    --shenzhi: #34d399;
    --yueling: #c084fc;
    --luye: #38bdf8;

    /* ---- 头部 / Hero（Apple 风格：纯黑平铺） ---- */
    --hero-gradient: #000000;

    /* ---- 字体 ---- */
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   基础
   ============================================================ */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

.muted,
.text-dim {
    color: var(--text-dim);
}

.hero-gradient {
    background: var(--hero-gradient);
}

a {
    color: var(--accent);
}

/* ============================================================
   卡片（Apple 圆角瓦片）
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text);
}

.card--hero {
    border-radius: 28px;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 980px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
    border-color: rgba(255, 255, 255, .28);
    background: #2c2c2e;
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--cta);
    border-color: var(--cta);
    border-radius: 980px;
    color: #1c0f0c;
    padding: 11px 22px;
    font-size: 17px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
}

.btn-ghost:hover {
    color: var(--accent);
    text-decoration: underline;
}

.btn-danger {
    background: rgba(255, 69, 58, .12);
    border-color: rgba(255, 69, 58, .4);
    color: var(--red);
}

/* 文字链接（Apple 风格，尾部 ›） */
.link-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 17px;
}

.link-more:hover {
    text-decoration: underline;
}

.link-more::after {
    content: " \203A";
}

/* ============================================================
   导航胶囊
   ============================================================ */
.nav-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    opacity: .8;
    transition: opacity .15s ease, border-color .15s ease, background .15s ease;
}

.nav-pill:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .10);
}

.nav-pill--accent { border-color: rgba(255, 138, 122, .5); background: rgba(255, 138, 122, .14); color: #ffb4a6; opacity: 1; }
.nav-pill--purple { border-color: rgba(161, 161, 166, .5); background: rgba(161, 161, 166, .14); color: #d1d1d6; opacity: 1; }
.nav-pill--green  { border-color: rgba(48, 209, 88, .4); background: rgba(48, 209, 88, .12); color: #6ee787; opacity: 1; }
.nav-pill--yellow { border-color: rgba(255, 214, 10, .4); background: rgba(255, 214, 10, .12); color: #ffe066; opacity: 1; }
.nav-pill--red    { border-color: rgba(255, 69, 58, .4); background: rgba(255, 69, 58, .12); color: #ff8a80; opacity: 1; }

/* ============================================================
   表单控件（Apple 暗色）
   ============================================================ */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    font: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 138, 122, .22);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

select option {
    background: var(--surface);
    color: var(--text);
}

/* ============================================================
   滚动条（暗色）
   ============================================================ */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .30);
}
