/**
 * 统一设计系统 - 通用样式
 * 简约 · 现代 · 高级
 */

/* ==================== 全局设置 ==================== */
@import url('/static/libs/fonts/inter/inter-fonts.css');

:root {
    /* 主色调 */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;

    /* 中性色 */
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* 字体大小 */
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 20px;
    --text-3xl: 24px;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* ==================== 卡片组件 ==================== */

/* 主输入卡片 */
.modern-card {
    background: white;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    transition: box-shadow 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-xl);
}

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
    padding: 24px;
}

/* ==================== 按钮组件 ==================== */

/* 主按钮 */
.btn-modern {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: var(--text-base);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modern:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

/* 次要按钮 */
.btn-outline-modern {
    background: white;
    color: var(--gray-500);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    font-weight: 500;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-modern:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* 圆形按钮 */
.btn-circle-modern {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-circle-modern:hover:not(:disabled) {
    background: var(--gray-300);
}

.btn-circle-modern.active {
    background: var(--primary);
}

.btn-circle-modern.active:hover {
    background: var(--primary-hover);
}

.btn-circle-modern svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.btn-circle-modern.active svg {
    color: white;
}

/* ==================== 输入框组件 ==================== */

/* 无边框输入框 */
.input-clean {
    width: 100%;
    padding: 0;
    border: none;
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--gray-900);
    background: transparent;
}

.input-clean:focus {
    outline: none;
}

.input-clean::placeholder {
    color: var(--gray-300);
}

/* 有边框输入框 */
.input-modern {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--gray-700);
    background: white;
    transition: border-color 0.2s;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary);
}

.input-modern::placeholder {
    color: var(--gray-400);
}

/* ==================== Tab组件 ==================== */

.tabs-modern {
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    gap: 4px;
}

.tab-modern {
    color: var(--gray-500);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--text-base);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

.tab-modern:hover {
    color: var(--gray-700);
}

.tab-modern.active {
    background: white;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

/* ==================== 导航栏 ==================== */

.navbar-modern {
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

/* ==================== 布局 ==================== */

.container-modern {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.container-narrow {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================== 动画 ==================== */

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 工具类 ==================== */

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.text-muted {
    color: var(--gray-500);
}

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

.divider-modern {
    height: 1px;
    background: var(--gray-100);
    margin: 20px 0;
}

/* ==================== 响应式 ==================== */

@media (max-width: 768px) {
    .modern-card {
        padding: 24px;
        border-radius: var(--radius-2xl);
    }

    .container-modern {
        padding: 40px 16px;
    }

    .tabs-modern {
        font-size: var(--text-sm);
    }

    .tab-modern {
        padding: 6px 12px;
    }
}

