/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
}

/* 添加动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(63, 81, 181, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hidden {
    display: none !important;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(26,26,46,0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 32px rgba(0,0,0,0.3),
        0 0 0 1px rgba(100, 181, 246, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
    transition: all 0.3s ease;
}

.nav-brand:hover {
    text-shadow: 0 0 30px rgba(100, 181, 246, 0.8);
    transform: scale(1.05);
}

.nav-brand i {
    margin-right: 12px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #64b5f6;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.15) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-color: rgba(100, 181, 246, 0.3);
    box-shadow: 
        0 4px 20px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #9c27b0);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 容器 */
.container {
    padding-top: 70px;
    min-height: 100vh;
}

/* 认证部分 */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.auth-container {
    background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(156, 39, 176, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.auth-header h1 {
    color: #64b5f6;
    font-size: 2.8rem;
    margin-bottom: 12px;
    text-shadow: 
        0 0 20px rgba(100, 181, 246, 0.5),
        0 0 40px rgba(100, 181, 246, 0.3);
    font-weight: 700;
}

.auth-header p {
    color: #b0bec5;
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-form {
    display: none;
    position: relative;
    z-index: 1;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

.auth-form h2 {
    text-align: center;
    margin-bottom: 32px;
    color: #64b5f6;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: #64b5f6;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(100, 181, 246, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%);
    color: #e0e0e0;
    backdrop-filter: blur(10px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364b5f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
    cursor: pointer;
    background-color: rgba(26, 26, 46, 0.8) !important;
}

/* 强制覆盖浏览器默认的下拉选项样式 */
.form-group select option {
    background-color: #1a1a2e !important;
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
}

.form-group select option:hover {
    background-color: #64b5f6 !important;
    background: #64b5f6 !important;
    color: #000000 !important;
}

.form-group select option:checked,
.form-group select option:focus {
    background-color: #64b5f6 !important;
    background: #64b5f6 !important;
    color: #000000 !important;
}

.form-group select option[disabled] {
    background-color: #2a2a3e !important;
    background: #2a2a3e !important;
    color: #666666 !important;
}

/* 针对不同浏览器的特殊处理 */
.form-group select option:not(:checked) {
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
}

/* Firefox 特殊处理 */
@-moz-document url-prefix() {
    .form-group select option {
        background-color: #1a1a2e;
        color: #e0e0e0;
    }
    
    .form-group select option:hover,
    .form-group select option:checked {
        background-color: #64b5f6;
        color: #000000;
    }
}

/* WebKit 浏览器特殊处理 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-group select option {
        background-color: #1a1a2e;
        color: #e0e0e0;
    }
    
    .form-group select option:hover,
    .form-group select option:checked {
        background-color: #64b5f6;
        color: #000000;
    }
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.15),
        0 8px 32px rgba(100, 181, 246, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(26, 26, 46, 0.4) 100%);
}

/* 滑块样式 */
.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(135deg, rgba(55, 71, 79, 0.8) 0%, rgba(38, 50, 56, 0.6) 100%);
    border-radius: 8px;
    outline: none;
    border: 2px solid rgba(100, 181, 246, 0.3);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(100, 181, 246, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.form-group input[type="range"]:focus {
    border-color: #64b5f6;
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.15),
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(100, 181, 246, 0.2);
}

/* WebKit 滑块滑块按钮 */
.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(100, 181, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 24px rgba(100, 181, 246, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 0 3px rgba(100, 181, 246, 0.3);
}

.form-group input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 
        0 2px 12px rgba(100, 181, 246, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* Firefox 滑块样式 */
.form-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 
        0 4px 16px rgba(100, 181, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.form-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 24px rgba(100, 181, 246, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.form-group input[type="range"]::-moz-range-track {
    height: 8px;
    background: linear-gradient(135deg, rgba(55, 71, 79, 0.8) 0%, rgba(38, 50, 56, 0.6) 100%);
    border-radius: 8px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 滑块进度条效果 */
.form-group input[type="range"] {
    background-image: linear-gradient(
        to right,
        #64b5f6 0%,
        #64b5f6 var(--value, 70%),
        rgba(55, 71, 79, 0.8) var(--value, 70%),
        rgba(55, 71, 79, 0.8) 100%
    );
}

/* 滑块容器增强 */
.slider-container {
    position: relative;
    margin: 16px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #90a4ae;
}

.slider-value {
    position: absolute;
    top: -40px;
    left: var(--thumb-position, 70%);
    transform: translateX(-50%);
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 
        0 4px 20px rgba(100, 181, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input[type="range"]:focus + .slider-value,
.form-group input[type="range"]:hover + .slider-value {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #90a4ae;
    font-size: 0.875rem;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    color: #000;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(100, 181, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(100, 181, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 50%, #1976d2 100%);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(156, 39, 176, 0.05) 100%);
    color: #64b5f6;
    border: 2px solid rgba(100, 181, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #000;
    border-color: #64b5f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: #b0bec5;
}

.auth-switch a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: #42a5f5;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

/* 主内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 70px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    color: #64b5f6;
    font-size: 2.8rem;
    margin-bottom: 12px;
    text-shadow: 
        0 0 20px rgba(100, 181, 246, 0.5),
        0 0 40px rgba(100, 181, 246, 0.3);
    font-weight: 700;
}

.section-header p {
    color: #b0bec5;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 仪表板 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, rgba(156, 39, 176, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 24px 60px rgba(100, 181, 246, 0.2),
        0 0 0 1px rgba(100, 181, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
    box-shadow: 
        0 8px 32px rgba(100, 181, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card-content h3 {
    color: #64b5f6;
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-status {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2) 0%, rgba(156, 39, 176, 0.15) 100%);
    color: #64b5f6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(100, 181, 246, 0.3);
    backdrop-filter: blur(10px);
}

.quick-actions {
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-actions h3 {
    color: #64b5f6;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* 个人资料 */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 4rem;
    box-shadow: 
        0 16px 40px rgba(100, 181, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

.profile-info h3 {
    color: #64b5f6;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-info p {
    color: #b0bec5;
    font-size: 1.1rem;
}

.profile-settings {
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-settings h3 {
    color: #64b5f6;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
    margin-right: 24px;
}

.setting-info h4 {
    color: #e0e0e0;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-info h4 i {
    color: #64b5f6;
}

.setting-description {
    color: #90a4ae;
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.setting-details {
    margin-top: 16px;
}

.detail-section {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 46, 0.2) 100%);
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.detail-section.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 152, 0, 0.2);
}

.detail-section h5 {
    color: #e0e0e0;
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h5 i {
    color: #64b5f6;
    font-size: 0.9rem;
}

.detail-section.warning h5 i {
    color: #ff9800;
}

.feature-list,
.scenario-list,
.warning-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.scenario-list li,
.warning-list li {
    color: #b0bec5;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.4;
}

.feature-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #64b5f6;
    font-size: 0.7rem;
}

.scenario-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-size: 0.8rem;
}

.warning-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #ff9800;
    font-size: 0.7rem;
}

.feature-list li strong,
.scenario-list li strong,
.warning-list li strong {
    color: #e0e0e0;
    font-weight: 600;
}

.feature-list li code {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.setting-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.switch-status {
    text-align: center;
}

.status-text {
    font-size: 0.8rem;
    color: #90a4ae;
    font-weight: 500;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #37474f 0%, #263238 100%);
    transition: .4s;
    border-radius: 36px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(100, 181, 246, 0.3);
}

input:checked + .slider:before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

/* 配置部分 */
.config-container {
    max-width: 900px;
    margin: 0 auto;
}

.config-tabs {
    display: flex;
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2);
}

.tab-button {
    flex: 1;
    padding: 24px;
    border: none;
    background: transparent;
    color: #b0bec5;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #000;
}

.tab-button.active::before {
    transform: scaleX(1);
}

.config-tab {
    display: none;
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    padding: 48px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.config-tab.active {
    display: block;
}

/* 使用指南 */
.usage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.usage-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.usage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, rgba(156, 39, 176, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 24px 60px rgba(100, 181, 246, 0.2),
        0 0 0 1px rgba(100, 181, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.usage-card:hover::before {
    opacity: 1;
}

.usage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 
        0 8px 32px rgba(100, 181, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.usage-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.usage-content h3 {
    color: #64b5f6;
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 600;
}

.usage-content p {
    color: #e0e0e0;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 1rem;
}

.usage-content ul {
    color: #e0e0e0;
    padding-left: 24px;
}

.usage-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.code-block {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(26,26,46,0.4) 100%);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    position: relative;
    margin: 16px 0;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.6),
        0 4px 20px rgba(100, 181, 246, 0.1);
    backdrop-filter: blur(10px);
}

.code-block code {
    color: #64b5f6;
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2) 0%, rgba(156, 39, 176, 0.15) 100%);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-btn:hover {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.3) 0%, rgba(156, 39, 176, 0.2) 100%);
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.3);
    transform: translateY(-2px);
}

/* 通知系统 */
.notification {
    position: fixed;
    top: 90px;
    right: 24px;
    background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.9) 100%);
    color: #e0e0e0;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(100, 181, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(400px);
    transition: transform 0.4s ease;
    z-index: 2100;
    max-width: 350px;
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.9) 0%, rgba(46, 125, 50, 0.8) 100%);
    border-color: #4caf50;
}

.notification.error {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.9) 0%, rgba(211, 47, 47, 0.8) 100%);
    border-color: #f44336;
}

.notification.warning {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.9) 0%, rgba(255, 152, 0, 0.8) 100%);
    border-color: #ffc107;
}

/* 加载指示器 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(100, 181, 246, 0.2);
    border-top: 6px solid #64b5f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #64b5f6;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(26,26,46,0.98) 0%, rgba(22,33,62,0.95) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: left 0.4s ease;
        gap: 16px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .usage-container {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .config-tabs {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .auth-container {
        margin: 20px;
        padding: 32px 24px;
    }

    .main-content {
        padding: 32px 16px;
    }

    .nav-container {
        padding: 0 16px;
    }
}

/* 额外的视觉效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
}

/* ========================================
   自定义下拉选择器样式
   ======================================== */

/* 隐藏原生select，使用自定义样式 */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    display: none;
}

.select-selected {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%);
    color: #e0e0e0;
    padding: 16px 20px;
    border: 2px solid rgba(100, 181, 246, 0.2);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.select-selected:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #64b5f6 transparent transparent transparent;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #64b5f6 transparent;
    transform: translateY(-50%) rotate(180deg);
}

.select-selected:hover,
.select-selected:focus {
    border-color: #64b5f6;
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.15),
        0 8px 32px rgba(100, 181, 246, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(26, 26, 46, 0.4) 100%);
}

.select-items {
    position: absolute;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(20px);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(100, 181, 246, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.select-items div {
    color: #e0e0e0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.select-items div:last-child {
    border-bottom: none;
}

.select-items div:hover {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2) 0%, rgba(156, 39, 176, 0.15) 100%);
    color: #64b5f6;
    transform: translateX(4px);
}

.same-as-selected {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%) !important;
    color: #000000 !important;
    font-weight: 600;
}

.select-hide {
    display: none;
}

/* 自定义下拉选择器滚动条样式 */
.select-items::-webkit-scrollbar {
    width: 6px;
}

.select-items::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
}

/* 禁用状态 */
.select-selected.disabled {
    background: rgba(100, 100, 100, 0.1);
    color: #666666;
    cursor: not-allowed;
    border-color: rgba(100, 100, 100, 0.2);
}

.select-selected.disabled:after {
    border-color: #666666 transparent transparent transparent;
}

.select-items div.disabled {
    color: #666666;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.1);
}

.select-items div.disabled:hover {
    background: rgba(100, 100, 100, 0.1);
    color: #666666;
    transform: none;
}

/* ========================================
   优化的滑块样式
   ======================================== */

/* 重置所有浏览器的默认滑块样式 */
input[type="range"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 100%;
    height: 56px; /* 与输入框相同的总高度 */
    background: transparent;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 16px 20px; /* 与输入框相同的内边距 */
    border: 2px solid rgba(100, 181, 246, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    position: relative;
}

/* 滑块轨道背景 */
input[type="range"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 6px;
    background: linear-gradient(135deg, rgba(55, 71, 79, 0.8) 0%, rgba(38, 50, 56, 0.6) 100%);
    border-radius: 6px;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 滑块进度条 */
input[type="range"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    height: 6px;
    width: calc((100% - 40px) * var(--value, 70) / 100);
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border-radius: 6px;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.3s ease;
}

/* 焦点状态 */
input[type="range"]:focus {
    border-color: #64b5f6;
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.15),
        0 8px 32px rgba(100, 181, 246, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(26, 26, 46, 0.4) 100%);
}

/* 滑块轨道 - WebKit */
input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, rgba(55, 71, 79, 0.8) 0%, rgba(38, 50, 56, 0.6) 100%);
    border-radius: 6px;
    border: none;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 滑块轨道 - Firefox */
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, rgba(55, 71, 79, 0.8) 0%, rgba(38, 50, 56, 0.6) 100%);
    border-radius: 6px;
    border: none;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 滑块按钮 - WebKit */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(100, 181, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: -7px;
    position: relative;
    z-index: 3;
}

/* 滑块按钮 - Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(100, 181, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

/* 悬停效果 */
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(100, 181, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 2px rgba(100, 181, 246, 0.3);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(100, 181, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 激活状态 */
input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 
        0 1px 6px rgba(100, 181, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input[type="range"]::-moz-range-thumb:active {
    transform: scale(0.95);
    box-shadow: 
        0 1px 6px rgba(100, 181, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 滑块容器样式统一 - 与输入框高度一致 */
.form-group input[type="range"] {
    height: 56px !important; /* 与其他输入框相同高度 */
    padding: 16px 20px !important; /* 与其他输入框相同内边距 */
    border: 2px solid rgba(100, 181, 246, 0.2) !important;
    border-radius: 12px !important; /* 与其他输入框相同圆角 */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%) !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
}

.form-group input[type="range"]:focus {
    border-color: #64b5f6 !important;
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.15),
        0 8px 32px rgba(100, 181, 246, 0.2) !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(26, 26, 46, 0.4) 100%) !important;
}

/* 温度显示容器 */
.temperature-container {
    position: relative;
    margin: 16px 0;
}

.temperature-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.temperature-label {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.temperature-value {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 
        0 4px 16px rgba(100, 181, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    min-width: 45px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.temperature-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #90a4ae;
    opacity: 0.8;
}

.temperature-labels span {
    padding: 2px 6px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

/* 禁用状态 */
input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.2) !important;
}

input[type="range"]:disabled::-webkit-slider-thumb {
    background: #666666 !important;
    cursor: not-allowed;
}

input[type="range"]:disabled::-moz-range-thumb {
    background: #666666 !important;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    input[type="range"] {
        height: 60px;
        margin: 16px 0;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
        margin-top: -8px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
    
    .temperature-value {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-width: 50px;
    }
}

/* ========================================
   SSH Key 信息样式
   ======================================== */

.ssh-key-info {
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 46, 0.2) 100%);
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.ssh-key-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-indicator {
    font-size: 0.8rem;
    color: #f44336;
}

.ssh-key-fingerprint {
    margin-top: 8px;
}

.ssh-key-fingerprint code {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

/* ========================================
   模态框样式
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(100, 181, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px 24px;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.modal-header h3 {
    color: #64b5f6;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #90a4ae;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.modal-body {
    padding: 32px 40px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(100, 181, 246, 0.1);
}

.modal-actions .btn {
    min-width: 120px;
}

/* SSH Key 模态框特殊样式 */
.ssh-key-tabs {
    display: flex;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(26,26,46,0.3) 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.ssh-key-tabs .tab-button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #b0bec5;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.ssh-key-tabs .tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ssh-key-tabs .tab-button.active {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #000;
}

.ssh-key-tabs .tab-button.active::before {
    transform: scaleX(1);
}

.ssh-key-tab {
    display: none;
}

.ssh-key-tab.active {
    display: block;
}

/* 当前密钥信息样式 */
.current-key-info {
    margin-bottom: 24px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 46, 0.2) 100%);
    border-radius: 16px;
    border: 1px solid rgba(100, 181, 246, 0.1);
    margin-bottom: 20px;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(156, 39, 176, 0.05) 100%);
    border: 2px solid rgba(100, 181, 246, 0.2);
}

.status-text h4 {
    color: #e0e0e0;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.status-text p {
    color: #90a4ae;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.key-details {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item label {
    color: #64b5f6;
    font-weight: 600;
    min-width: 80px;
    font-size: 0.9rem;
}

.detail-item span,
.detail-item code {
    color: #e0e0e0;
    font-size: 0.9rem;
    flex: 1;
}

.detail-item code {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid rgba(100, 181, 246, 0.2);
    word-break: break-all;
}

.detail-item textarea {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.key-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 181, 246, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(211, 47, 47, 0.05) 100%);
    color: #f44336;
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    border-color: #f44336;
}

/* 上传密钥表单样式 */
#uploadKeyTab .form-group textarea {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

#uploadKeyTab .form-group small {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    display: block;
    color: #ffc107;
    line-height: 1.5;
}

#uploadKeyTab .form-group small code {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-header,
    .modal-body {
        padding: 24px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .ssh-key-tabs {
        flex-direction: column;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-item label {
        min-width: auto;
    }
}