/**
 * 浪颜网络验证 - Material Design 3 丝滑动画样式
 * 版本: 2.0
 */

:root {
    /* MD3 主色调 */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;
    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8DEF8;
    --md-sys-color-on-secondary-container: #1D192B;
    --md-sys-color-tertiary: #7D5260;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FFD8E4;
    --md-sys-color-on-tertiary-container: #31111D;
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #F9DEDC;
    --md-sys-color-on-error-container: #410E0B;
    --md-sys-color-background: #FFFBFE;
    --md-sys-color-on-background: #1C1B1F;
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-outline: #79747E;
    --md-sys-color-outline-variant: #CAC4D0;

    /* 形状 */
    --md-sys-shape-small: 8px;
    --md-sys-shape-medium: 12px;
    --md-sys-shape-large: 16px;
    --md-sys-shape-extra-large: 28px;

    /* 过渡 */
    --md-sys-motion-duration-short: 200ms;
    --md-sys-motion-duration-medium: 400ms;
    --md-sys-motion-duration-long: 600ms;
    --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-easing-decelerated: cubic-bezier(0, 0, 0, 1);
    --md-sys-motion-easing-accelerated: cubic-bezier(0.3, 0, 1, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --md-sys-color-primary: #D0BCFF;
        --md-sys-color-on-primary: #381E72;
        --md-sys-color-primary-container: #4F378B;
        --md-sys-color-on-primary-container: #EADDFF;
        --md-sys-color-secondary: #CCC2DC;
        --md-sys-color-on-secondary: #332D41;
        --md-sys-color-secondary-container: #4A4458;
        --md-sys-color-on-secondary-container: #E8DEF8;
        --md-sys-color-tertiary: #EFB8C8;
        --md-sys-color-on-tertiary: #492532;
        --md-sys-color-tertiary-container: #633B48;
        --md-sys-color-on-tertiary-container: #FFD8E4;
        --md-sys-color-error: #F2B8B5;
        --md-sys-color-on-error: #601410;
        --md-sys-color-error-container: #8C1D18;
        --md-sys-color-on-error-container: #F9DEDC;
        --md-sys-color-background: #1C1B1F;
        --md-sys-color-on-background: #E6E1E5;
        --md-sys-color-surface: #1C1B1F;
        --md-sys-color-on-surface: #E6E1E5;
        --md-sys-color-surface-variant: #49454F;
        --md-sys-color-on-surface-variant: #CAC4D0;
        --md-sys-color-outline: #938F99;
        --md-sys-color-outline-variant: #49454F;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline-variant);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-outline);
}

/* ==================== 顶部应用栏 ==================== */
.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--md-sys-color-surface);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    backdrop-filter: blur(20px);
    background: rgba(255, 251, 254, 0.85);
}

@media (prefers-color-scheme: dark) {
    .top-app-bar {
        background: rgba(28, 27, 31, 0.85);
    }
}

.top-app-bar-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    letter-spacing: 0;
}

/* ==================== 侧边导航 ==================== */
.navigation-rail {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 72px;
    background: var(--md-sys-color-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    z-index: 999;
    border-right: 1px solid var(--md-sys-color-outline-variant);
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.nav-item {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    position: relative;
    margin: 2px 0;
}

.nav-item:hover {
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface);
    transform: scale(1.05);
}

.nav-item.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.nav-item .material-icons-round {
    font-size: 24px;
    transition: transform var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.nav-item:hover .material-icons-round {
    transform: scale(1.1);
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .navigation-rail {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 72px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0 16px;
        border-right: none;
        border-top: 1px solid var(--md-sys-color-outline-variant);
    }
}

/* ==================== 主内容区 ==================== */
.main-content {
    margin-top: 64px;
    margin-left: 72px;
    padding: 24px;
    min-height: calc(100vh - 64px);
    transition: margin-left var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-bottom: 72px;
    }
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-extra-large);
    padding: 24px;
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    animation: cardEnter 0.5s var(--md-sys-motion-easing-decelerated) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.card-subtitle {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 2px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--md-sys-shape-large);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--md-sys-motion-duration-short);
    background: currentColor;
}

.btn:hover::before {
    opacity: 0.08;
}

.btn:active {
    transform: scale(0.98);
}

.btn:active::before {
    opacity: 0.12;
}

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

.btn-filled {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 2px 8px rgba(103, 80, 164, 0.3);
}

.btn-filled:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(103, 80, 164, 0.4);
    transform: translateY(-1px);
}

.btn-outlined {
    background: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
}

.btn-outlined:hover:not(:disabled) {
    background: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
}

.btn-text {
    background: transparent;
    color: var(--md-sys-color-primary);
}

.btn-text:hover:not(:disabled) {
    background: var(--md-sys-color-primary-container);
}

.btn-elevated {
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-elevated:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
}

.btn-danger:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(179, 38, 30, 0.4);
}

.btn-small {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* ==================== 输入框 ==================== */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
    transition: color var(--md-sys-motion-duration-short);
}

.input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-medium);
    font-family: inherit;
    font-size: 16px;
    color: var(--md-sys-color-on-surface);
    background: var(--md-sys-color-surface);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    outline: none;
}

.input:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px var(--md-sys-color-primary-container);
}

.input:hover:not(:focus) {
    border-color: var(--md-sys-color-on-surface-variant);
}

.input::placeholder {
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.6;
}

/* ==================== 开关 ==================== */
.switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.switch-track {
    width: 52px;
    height: 32px;
    background: var(--md-sys-color-surface-variant);
    border-radius: 16px;
    position: relative;
    transition: background var(--md-sys-motion-duration-short);
}

.switch-track::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--md-sys-color-outline);
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.switch-input:checked + .switch-track {
    background: var(--md-sys-color-primary-container);
}

.switch-input:checked + .switch-track::before {
    background: var(--md-sys-color-primary);
    transform: translateX(20px);
}

/* ==================== 表格 ==================== */
.table-container {
    border-radius: var(--md-sys-shape-large);
    overflow: hidden;
    background: var(--md-sys-color-surface);
    animation: tableEnter 0.6s var(--md-sys-motion-easing-decelerated) forwards;
    opacity: 0;
}

@keyframes tableEnter {
    to {
        opacity: 1;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--md-sys-color-surface-variant);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.table td {
    padding: 16px;
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition: background var(--md-sys-motion-duration-short);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: all var(--md-sys-motion-duration-short);
}

.table tbody tr:hover td {
    background: var(--md-sys-color-surface-variant);
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    animation: badgeEnter 0.3s var(--md-sys-motion-easing-decelerated);
}

@keyframes badgeEnter {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF3E0;
    color: #E65100;
}

.badge-error {
    background: #FFEBEE;
    color: #C62828;
}

.badge-info {
    background: #E3F2FD;
    color: #1565C0;
}

.badge-neutral {
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
}

/* ==================== 对话框 ==================== */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--md-sys-motion-duration-medium);
}

.dialog-overlay.open {
    opacity: 1;
    visibility: visible;
}

.dialog {
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-extra-large);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.dialog-overlay.open .dialog {
    transform: scale(1) translateY(0);
}

.dialog-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dialog-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.dialog-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-on-surface-variant);
    transition: all var(--md-sys-motion-duration-short);
}

.dialog-close:hover {
    background: var(--md-sys-color-surface-variant);
}

.dialog-body {
    padding: 0 24px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.dialog-actions {
    padding: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== 统计卡片 ==================== */
.stat-card {
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-large);
    padding: 20px;
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    animation: statEnter 0.5s var(--md-sys-motion-easing-decelerated) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card:nth-child(1) { animation-delay: 0ms; }
.stat-card:nth-child(2) { animation-delay: 50ms; }
.stat-card:nth-child(3) { animation-delay: 100ms; }
.stat-card:nth-child(4) { animation-delay: 150ms; }
.stat-card:nth-child(5) { animation-delay: 200ms; }
.stat-card:nth-child(6) { animation-delay: 250ms; }

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 4px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 12px;
}

/* ==================== 网格布局 ==================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
    transition: all var(--md-sys-motion-duration-short);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--md-sys-color-surface-variant);
}

.pagination-btn.active {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

/* ==================== 辅助类 ==================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--md-sys-color-on-surface-variant); }
.text-primary { color: var(--md-sys-color-primary); }
.text-success { color: #2E7D32; }
.text-error { color: #C62828; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ==================== Toast提示 ==================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--md-sys-color-inverse-surface, #313033);
    color: var(--md-sys-color-inverse-on-surface, #F4EFF4);
    border-radius: var(--md-sys-shape-medium);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: toastEnter 0.4s var(--md-sys-motion-easing-standard);
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.success { border-left: 4px solid #4CAF50; }
.toast.error { border-left: 4px solid #F44336; }
.toast.warning { border-left: 4px solid #FF9800; }

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    animation: emptyEnter 0.6s var(--md-sys-motion-easing-decelerated);
}

@keyframes emptyEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-state .material-icons-round {
    font-size: 80px;
    color: var(--md-sys-color-outline-variant);
    animation: emptyIcon 2s ease-in-out infinite;
}

@keyframes emptyIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-top: 16px;
}

.empty-state p {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 8px;
}

/* ==================== 加载动画 ==================== */
.loading {
    width: 24px;
    height: 24px;
    border: 3px solid var(--md-sys-color-outline-variant);
    border-top-color: var(--md-sys-color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--md-sys-color-surface-variant) 25%, var(--md-sys-color-surface) 50%, var(--md-sys-color-surface-variant) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== 登录页特殊样式 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #9747FF 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-extra-large);
    padding: 48px 40px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    animation: loginCardEnter 0.6s var(--md-sys-motion-easing-decelerated);
}

@keyframes loginCardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .material-icons-round {
    font-size: 72px;
    color: var(--md-sys-color-primary);
    animation: logoEnter 0.8s var(--md-sys-motion-easing-decelerated);
}

@keyframes logoEnter {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 16px;
    color: var(--md-sys-color-on-surface);
}

.login-logo p {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-icon {
    position: relative;
}

.input-icon .material-icons-round {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-sys-color-on-surface-variant);
    transition: color var(--md-sys-motion-duration-short);
}

.input-icon .input {
    padding-left: 48px;
}

.input-icon:focus-within .material-icons-round {
    color: var(--md-sys-color-primary);
}

/* ==================== 下拉选择 ==================== */
.select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-medium);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    animation: selectMenuEnter 0.2s var(--md-sys-motion-easing-standard);
}

.select-menu.open {
    display: block;
}

@keyframes selectMenuEnter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--md-sys-motion-duration-short);
}

.select-option:hover {
    background: var(--md-sys-color-surface-variant);
}

.select-option.selected {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
