/**
 * 討論區花魁風格（需搭配 ../static/huakui-theme.css）
 * 直角高級感：圓角變數與元件一律直角（頭像等圓形除外）。
 */

html.fate-theme-huakui {
    --accent-soft: rgba(201, 174, 82, 0.12);
    --radius-lg: 0;
}

html.fate-theme-huakui body.forum-body,
body.fate-theme-huakui.forum-body {
    background:
        radial-gradient(900px 480px at 92% -6%, rgba(184, 77, 92, 0.1), transparent 55%),
        radial-gradient(720px 420px at -6% 30%, rgba(201, 174, 82, 0.07), transparent 50%),
        linear-gradient(180deg, #080608 0%, #050405 42%, #020102 100%) !important;
    color: var(--fg, #ebe6dc);
}

html.fate-theme-huakui .sidebar-card,
body.fate-theme-huakui .sidebar-card {
    background: linear-gradient(165deg, rgba(20, 17, 18, 0.97), rgba(8, 6, 7, 0.99));
    border: 1px solid rgba(201, 174, 82, 0.14);
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(201, 174, 82, 0.05) inset, 0 12px 40px rgba(0, 0, 0, 0.55);
}

html.fate-theme-huakui .sidebar-title,
body.fate-theme-huakui .sidebar-title {
    font-family: "Shippori Mincho", "Noto Serif TC", serif;
    text-transform: none;
    letter-spacing: 0.14em;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent, #c9ae52);
    border-bottom: 1px solid rgba(201, 174, 82, 0.18);
    padding-bottom: 0.5rem;
    margin-bottom: 0.7rem;
}

html.fate-theme-huakui .sidebar-btn,
body.fate-theme-huakui .sidebar-btn {
    background: rgba(201, 174, 82, 0.08);
    border: 1px solid rgba(201, 174, 82, 0.18);
    color: var(--fg, #ebe6dc);
    border-radius: 0;
}

html.fate-theme-huakui .sidebar-btn:hover,
body.fate-theme-huakui .sidebar-btn:hover {
    background: rgba(201, 174, 82, 0.16);
    border-color: rgba(201, 174, 82, 0.4);
    color: var(--accent, #c9ae52);
}

html.fate-theme-huakui .sidebar-btn--ghost,
body.fate-theme-huakui .sidebar-btn--ghost {
    background: transparent;
    color: var(--muted, #a89890);
}

html.fate-theme-huakui .sidebar-search,
html.fate-theme-huakui .sidebar-submit,
html.fate-theme-huakui .sidebar-search-tabs,
body.fate-theme-huakui .sidebar-search,
body.fate-theme-huakui .sidebar-submit,
body.fate-theme-huakui .sidebar-search-tabs {
    border-radius: 0;
    border: 1px solid rgba(201, 174, 82, 0.18);
}

html.fate-theme-huakui .sidebar-search,
body.fate-theme-huakui .sidebar-search {
    background: rgba(0, 0, 0, 0.28);
    color: var(--fg, #ebe6dc);
}

html.fate-theme-huakui .sidebar-submit,
body.fate-theme-huakui .sidebar-submit {
    background: rgba(201, 174, 82, 0.08);
    color: var(--fg, #ebe6dc);
}

html.fate-theme-huakui .forum-panel,
html.fate-theme-huakui .thread-card,
html.fate-theme-huakui .board-card,
html.fate-theme-huakui .forum-compose,
body.fate-theme-huakui .forum-panel,
body.fate-theme-huakui .thread-card,
body.fate-theme-huakui .board-card,
body.fate-theme-huakui .forum-compose {
    background: linear-gradient(165deg, rgba(34, 24, 30, 0.95), rgba(22, 16, 20, 0.98));
    border: 1px solid rgba(201, 174, 82, 0.18);
    border-radius: 0;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

html.fate-theme-huakui .forum-panel h1,
html.fate-theme-huakui .forum-panel h2,
html.fate-theme-huakui .thread-title,
body.fate-theme-huakui .forum-panel h1,
body.fate-theme-huakui .forum-panel h2,
body.fate-theme-huakui .thread-title {
    font-family: "Shippori Mincho", "Noto Serif TC", serif;
    letter-spacing: 0.06em;
    color: var(--fg, #ebe6dc);
}

html.fate-theme-huakui a,
body.fate-theme-huakui a {
    color: var(--accent, #c9ae52);
}

html.fate-theme-huakui a:hover,
body.fate-theme-huakui a:hover {
    color: var(--hk-gold-bright, #e2cb78);
}

html.fate-theme-huakui .btn,
html.fate-theme-huakui .forum-btn,
body.fate-theme-huakui .btn,
body.fate-theme-huakui .forum-btn {
    background: rgba(201, 174, 82, 0.1);
    border: 1px solid rgba(201, 174, 82, 0.3);
    color: var(--fg, #ebe6dc);
    border-radius: 0;
}

html.fate-theme-huakui .btn:hover,
html.fate-theme-huakui .forum-btn:hover,
body.fate-theme-huakui .btn:hover,
body.fate-theme-huakui .forum-btn:hover {
    background: rgba(201, 174, 82, 0.18);
    border-color: rgba(201, 174, 82, 0.45);
    color: var(--accent, #c9ae52);
}

html.fate-theme-huakui .btn-primary,
html.fate-theme-huakui .forum-btn--primary,
body.fate-theme-huakui .btn-primary,
body.fate-theme-huakui .forum-btn--primary {
    background: #8e2f3d;
    border-color: #c45c6a;
    color: #fff;
}

html.fate-theme-huakui .btn-primary:hover,
html.fate-theme-huakui .forum-btn--primary:hover,
body.fate-theme-huakui .btn-primary:hover,
body.fate-theme-huakui .forum-btn--primary:hover {
    background: #c45c6a;
}

html.fate-theme-huakui input,
html.fate-theme-huakui select,
html.fate-theme-huakui textarea,
body.fate-theme-huakui input,
body.fate-theme-huakui select,
body.fate-theme-huakui textarea {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 174, 82, 0.18);
    color: var(--fg, #ebe6dc);
    border-radius: 0;
}

html.fate-theme-huakui .pager a,
body.fate-theme-huakui .pager a {
    border: 1px solid rgba(201, 174, 82, 0.18);
    background: rgba(0, 0, 0, 0.22);
    color: var(--accent, #c9ae52);
    border-radius: 0;
}

html.fate-theme-huakui .mod-mode-bar,
body.fate-theme-huakui .mod-mode-bar {
    background: rgba(184, 77, 92, 0.12);
    border-color: rgba(184, 77, 92, 0.35);
    color: #f0c0c6;
}

html.fate-theme-huakui .board-notices,
html.fate-theme-huakui .thread-meta,
body.fate-theme-huakui .board-notices,
body.fate-theme-huakui .thread-meta {
    color: var(--muted, #a89890);
}

html.fate-theme-huakui table.forum-table,
body.fate-theme-huakui table.forum-table {
    border-color: rgba(201, 174, 82, 0.15);
}

html.fate-theme-huakui table.forum-table th,
body.fate-theme-huakui table.forum-table th {
    background: rgba(201, 174, 82, 0.08);
    color: var(--accent, #c9ae52);
    border-color: rgba(201, 174, 82, 0.15);
}

html.fate-theme-huakui table.forum-table td,
body.fate-theme-huakui table.forum-table td {
    border-color: rgba(240, 230, 224, 0.06);
}
