@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --overlay-bg: rgba(0, 0, 0, 0.75);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.65);
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-bg-strong: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --overlay-bg: rgba(255, 255, 255, 0.35);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-tertiary: rgba(0, 0, 0, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dynamic-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.theme-overlay {
    background: var(--overlay-bg);
    transition: background 0.5s ease;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.glass-strong {
    background: var(--glass-bg-strong);
    border-bottom: 1px solid var(--glass-border);
}

.text-theme-primary { color: var(--text-primary); }
.text-theme-secondary { color: var(--text-secondary); }
.text-theme-tertiary { color: var(--text-tertiary); }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.3);
}

/* 横向滚动条专门优化 */
.overflow-x-auto::-webkit-scrollbar {
    height: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.4);
    border-radius: 2px;
}

/* 表单焦点样式 */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* 表格行悬停效果 - 仅桌面端 */
@media (min-width: 768px) {
    tr:hover td {
        color: var(--text-primary);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .glass-strong {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 移动端表格文字缩小 */
    .glass table {
        font-size: 11px;
    }
    
    .glass th,
    .glass td {
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass {
    animation: fadeIn 0.3s ease-out;
}

/* 隐藏白色遮罩层 */
.white-overlay {
    display: none !important;
}
