/* 主题：浅色 daylight；深色 black-gold 对齐 H5 炭黑+香槟金 */

:root[data-theme="daylight"] {
    --header-bg: #fffaf5;
    --header-text: #2a1210;
    --header-border: rgba(180, 60, 40, 0.12);
    --bg-primary: #fffaf5;
    --bg-secondary: #fff1e6;
    --bg-tertiary: #ffe4cc;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.94);
    --text-primary: #2a1210;
    --text-secondary: #6b3a28;
    --text-muted: #9a6a55;
    --accent-color: #c43c2c;
    --accent-hover: #a83022;
    --accent-soft: rgba(196, 60, 44, 0.12);
    --accent-glow: rgba(196, 60, 44, 0.28);
    --border-color: rgba(180, 60, 40, 0.12);
    --border-strong: rgba(180, 60, 40, 0.2);
    --shadow: rgba(180, 60, 40, 0.1);
    --shadow-lg: rgba(120, 40, 20, 0.16);
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #d97706;
}

/* 深色：与 H5 html.kxm-theme-dark 一致 */
:root[data-theme="black-gold"] {
    --header-bg: #2d2e3b;
    --header-text: #f0d78c;
    --header-border: rgba(240, 215, 140, 0.18);
    --bg-primary: #2d2e3b;
    --bg-secondary: #23242f;
    --bg-tertiary: #2a2b38;
    --bg-elevated: #3a3b4a;
    --bg-card: rgba(58, 59, 74, 0.94);
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #8a8a8a;
    --accent-color: #f0d78c;
    --accent-hover: #f5e0a0;
    --accent-soft: rgba(240, 215, 140, 0.14);
    --accent-glow: rgba(240, 215, 140, 0.35);
    --border-color: rgba(240, 215, 140, 0.18);
    --border-strong: rgba(240, 215, 140, 0.32);
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-lg: rgba(0, 0, 0, 0.55);
    --success-color: #26d196;
    --error-color: #f56c6c;
    --warning-color: #f59e0b;
}

:root[data-theme="luxury-orange"] {
    --header-bg: #1a0808;
    --header-text: #fff8f0;
    --header-border: rgba(255, 255, 255, 0.08);
    --bg-primary: #120606;
    --bg-secondary: #1e0c0a;
    --bg-tertiary: #2e1410;
    --bg-elevated: #1e0c0a;
    --bg-card: rgba(30, 12, 10, 0.92);
    --text-primary: #fff8f0;
    --text-secondary: #d4a888;
    --text-muted: #9a7058;
    --accent-color: #e85d3a;
    --accent-hover: #ff7a55;
    --accent-soft: rgba(232, 93, 58, 0.18);
    --accent-glow: rgba(255, 122, 85, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --success-color: #3ecf8e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

:root[data-theme="daylight"] body {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 60, 44, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 168, 56, 0.06), transparent);
}

:root[data-theme="black-gold"] body {
    background-image:
        radial-gradient(ellipse 70% 45% at 50% -15%, rgba(240, 215, 140, 0.1), transparent),
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(240, 215, 140, 0.05), transparent);
}

:root[data-theme="luxury-orange"] body {
    background-image:
        radial-gradient(ellipse 70% 45% at 50% -15%, rgba(232, 93, 58, 0.16), transparent),
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(232, 168, 56, 0.08), transparent);
}

body,
.header,
.hero,
.notice-strip,
.access-section,
.gallery-section,
.service-section,
.footer,
.popup-content {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle .theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.theme-swatch--luxury {
    background: linear-gradient(135deg, #e85d3a, #e8a838);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }
::selection { background-color: var(--accent-color); color: #2d2e3b; }
