/* ============================================
   Eastern Mindset - Unified Design System
   字體統一 | 顏色統一 | 風格統一
   ============================================ */

/* Font Import - 統一使用思源宋體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600&display=swap');

:root {
    /* 統一色彩系統 - 只有2種核心顏色 */
    --gold-primary: #D4AF37;
    /* 標題/重點 */
    --text-body: #E5E7EB;
    /* 正文 (統一為淺灰/米白) */
    --bg-dark: #050505;

    /* 統一字體大小 */
    --font-title: 18px;
    --font-body: 14px;
    --line-height: 1.8;
}

/* 全局字體統一 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input {
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-size: var(--font-body);
    line-height: var(--line-height);
}

/* 標題樣式統一 (Type 1) */
h1,
h2,
h3,
h4,
h5,
h6,
.text-title {
    color: var(--gold-primary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
}

/* 正文樣式統一 (Type 2) */
p,
.text-body {
    color: var(--text-body) !important;
    font-weight: 400;
    opacity: 0.9;
}

/* 覆蓋 Tailwind 的灰色系列，強制統一 */
[class*="text-gray-"] {
    color: var(--text-body) !important;
}

/* Glassmorphism - 玻璃效果 */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
}

/* Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    border: 1.5px solid #000;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* 卡片內部統一樣式 */
.card-title {
    font-size: var(--font-title);
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body {
    font-size: var(--font-body);
    color: var(--gold-light);
    line-height: var(--line-height);
}

.card-caption {
    font-size: var(--font-caption);
    color: var(--text-secondary);
}

/* 強調文字統一 */
.highlight {
    color: var(--gold-primary) !important;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 覆蓋 Tailwind 的多餘顏色 */
[class*="text-gray-"] {
    color: var(--text-secondary) !important;
}

/* 統一所有金色文字 */
[class*="text-[#D4AF37]"],
[class*="text-[#fcf6ba]"] {
    font-family: "Noto Serif SC", "Songti SC", serif !important;
}