:root {
    /* Material Dashboard Pro 配色方案 */
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #e3f2fd;
    --secondary-color: #dc004e; /* Can be used for other accents if needed */
    --accent-color: #7c4dff;
    --success-color: #00c853;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #2196f3;
    
    /* 中性色调 */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-disabled: #bdbdbd;
    --divider-color: #e0e0e0;
    
    /* 背景色 */
    --bg-primary: #fafafa; /* Overall page background */
    --bg-paper: #ffffff;   /* Card/panel backgrounds */
    --bg-surface: #f5f5f5; /* Slightly off-white surfaces */
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    /* 阴影系统 */
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadow-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
    
    /* 圆角系统 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* 动画 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 渐变背景*/
    background: var(--bg-primary); /* Use the overall page background */
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-overlay { /* Decorative background elements */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(120, 219, 255, 0.15) 0%, transparent 50%);
    z-index: -1;
    opacity: 0.7;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 顶部导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.97); /* Slightly more opaque for better readability */
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl); /* Consistent with panel cards */
    padding: 16px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(224, 224, 224, 0.5); /* Softer border */
    animation: slideDown var(--transition-slow) ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem; /* Slightly larger icon */
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    background: rgba(25, 118, 210, 0.08); /* Lighter background */
    color: var(--primary-dark); /* Darker text for better contrast */
    font-weight: 500;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 主要内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr; /* Slightly narrower sidebar */
    gap: 32px;
    min-height: calc(100vh - 220px); /* Adjusted for navbar and padding */
}

/* 侧边栏 */
.sidebar {
    background: var(--bg-paper);
    backdrop-filter: blur(20px); /* Keep if bg-paper is semi-transparent */
    border-radius: var(--radius-xl);
    padding: 24px 0; /* Adjusted padding */
    box-shadow: var(--shadow-2); /* Softer shadow */
    border: 1px solid var(--divider-color);
    height: fit-content;
    position: sticky;
    top: 20px; /* Align with container padding */
    animation: slideInLeft var(--transition-slow) ease-out;
}

.sidebar-header {
    padding: 0 24px 20px; /* Adjusted padding */
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 20px; /* Adjusted margin */
}

.sidebar-title {
    font-size: 1.2rem; /* Slightly larger */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px; /* Adjusted margin */
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    margin: 6px 16px; /* Adjusted margin */
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px; /* Adjusted padding */
    border-radius: var(--radius-md); /* Consistent rounding */
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast); /* Faster transition */
    position: relative;
}

.menu-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(3px);
}

.menu-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(25, 118, 210, 0.4); /* Custom shadow for active link */
}

.menu-link.active::before { /* Indicator for active link */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%; /* Adjusted height */
    background: white; /* Or var(--accent-color) */
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.menu-link.active .menu-icon {
     color: white;
}


.menu-icon {
    font-size: 1.3rem; /* Slightly larger icons */
    width: 24px;
    text-align: center;
    color: var(--text-secondary); /* Default icon color */
}
 .menu-link:hover .menu-icon {
    color: var(--primary-dark);
}


/* 内容面板 */
.content-panel {
    animation: slideInRight var(--transition-slow) ease-out;
}

.panel-card {
    background: var(--bg-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    border: 1px solid var(--divider-color);
    overflow: hidden; /* Ensures header background doesn't bleed */
    margin-bottom: 32px; /* Space between multiple cards if any */
}

.panel-header {
    padding: 28px 32px; /* Adjusted padding */
    border-bottom: 1px solid var(--divider-color);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03), rgba(124, 77, 255, 0.03));
}

.panel-title {
    font-size: 1.6rem; /* Adjusted size */
    font-weight: 600; /* Bolder */
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-title .material-icons {
    font-size: 2rem; /* Icon size in title */
    color: var(--primary-color);
}

.panel-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem; /* Adjusted size */
}

.panel-content {
    padding: 32px;
}

/* 表单样式 */
.form-grid {
    display: grid;
    gap: 28px; /* Increased gap */
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px; /* Increased margin */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-textarea { /* Combined for brevity */
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--divider-color); /* Default border */
    border-radius: var(--radius-md); /* Consistent rounding */
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-paper);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}
.form-input:hover, .form-textarea:hover {
    border-color: var(--primary-dark);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2); /* Focus ring */
    /* transform: translateY(-1px); Removed for flatter feel */
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-disabled);
    opacity: 1; /* Ensure placeholder is visible */
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace; /* Monospace for content */
    line-height: 1.7; /* Increased line height */
}

/* 按钮系统 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content */
    gap: 10px; /* Increased gap */
    padding: 12px 28px; /* Adjusted padding */
    border: none;
    border-radius: var(--radius-md); /* Consistent rounding */
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Increased spacing */
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden; /* For ripple or shine effects */
    box-shadow: var(--shadow-1);
    line-height: 1.5; /* Ensure text is vertically centered */
}

.btn .material-icons {
    font-size: 1.2rem; /* Icon size in buttons */
}

/* Shine effect for buttons (optional) */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start further left */
    width: 50%; /* Narrower shine */
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg); /* Angled shine */
    transition: left var(--transition-slow) ease;
}

.btn:hover::before {
    left: 150%; /* Move further right */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--primary-color);
    border: 1px solid var(--divider-color); /* Default border */
}
.btn-secondary .material-icons {
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}
.btn-secondary:hover .material-icons {
    color: var(--primary-dark);
}


.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #c62828 100%); /* Darker red */
    color: white;
}
.btn-danger .material-icons {
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(244, 67, 54, 0.25), 0 3px 6px rgba(0,0,0,0.08); /* Custom shadow */
}

.btn:disabled, .btn.disabled {
    opacity: 0.5; /* Reduced opacity */
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important; /* No shadow when disabled */
    background-image: none; /* Remove gradient if any */
    background-color: var(--text-disabled);
    color: var(--bg-paper);
}
 .btn:disabled::before, .btn.disabled::before { /* Disable shine effect */
    display: none;
}


.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* 消息提示 (Global Alerts) */
 #globalAlertsContainer {
    position: fixed;
    top: 20px; /* Closer to top */
    right: 20px;
    z-index: 2000;
    width: clamp(300px, 90%, 400px); /* Responsive width */
}
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md); /* Consistent rounding */
    margin-bottom: 16px; /* Space between alerts */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid; /* Accent border */
    box-shadow: var(--shadow-3);
    background-color: var(--bg-paper); /* Ensure background */
    opacity: 0;
    transform: translateX(120%); /* Start further off-screen */
    animation: slideInAndFadeOut 5s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}
.alert .material-icons {
    font-size: 1.4rem; /* Icon size in alerts */
}
.alert div { /* Container for text content */
    flex-grow: 1;
}

.alert:hover {
    animation-play-state: paused;
}

.alert-success {
    border-color: var(--success-color);
    color: var(--success-color); /* Text color */
}
.alert-success .material-icons { color: var(--success-color); }


.alert-error {
    border-color: var(--error-color);
    color: var(--error-color);
}
.alert-error .material-icons { color: var(--error-color); }

.alert-info {
    border-color: var(--info-color);
    color: var(--info-color);
}
.alert-info .material-icons { color: var(--info-color); }


.alert-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}
.alert-warning .material-icons { color: var(--warning-color); }


@keyframes slideInAndFadeOut {
    0% { opacity: 0; transform: translateX(100%); }
    10% { opacity: 1; transform: translateX(0); } /* Faster slide in */
    90% { opacity: 1; transform: translateX(0); } /* Hold longer */
    100% { opacity: 0; transform: translateX(100%); }
}


/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 1em; /* Relative to font size */
    height: 1em; /* Relative to font size */
    border: 2px solid currentColor; /* Use button's text color */
    border-radius: 50%;
    border-top-color: transparent; /* Create the notch */
    border-right-color: transparent; /* For a C-shape spinner */
    animation: spin 0.8s linear infinite;
    vertical-align: middle; /* Align with text */
}
/* For buttons with dark background and light text */
.btn-primary .loading-spinner, .btn-danger .loading-spinner {
    border-color: rgba(255,255,255,0.8);
    border-top-color: transparent;
    border-right-color: transparent;
}


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

/* 登录页面特殊样式 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-paper);
    border-radius: var(--radius-xl);
    padding: 40px 48px; /* Adjusted padding */
    box-shadow: var(--shadow-4); /* Slightly less intense shadow */
    border: 1px solid var(--divider-color);
    max-width: 450px; /* Slightly narrower */
    width: 100%;
    animation: scaleIn var(--transition-slow) ease-out;
}

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

.login-title {
    font-size: 1.8rem; /* Adjusted size */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px; /* Increased margin */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.login-title .material-icons {
    font-size: 2.2rem; /* Icon in login title */
    color: var(--primary-color);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 退出按钮 */
.logout-btn {
    position: fixed; /* Keep it fixed */
    top: 36px; /* Adjusted to align with navbar content */
    right: 36px; /* Adjusted */
    background: var(--bg-paper);
    color: var(--error-color);
    border: 1px solid var(--divider-color);
    padding: 10px 18px; /* Adjusted padding */
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-1);
    display: flex; /* For icon alignment */
    align-items: center;
    gap: 8px;
}
.logout-btn .material-icons {
    font-size: 1.1rem; /* Icon size in logout button */
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.1); /* Error color tint */
    border-color: var(--error-color);
    color: var(--error-color); /* Ensure text remains error color */
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* 设置页面列表样式 */
.setting-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider-color);
}
.setting-section:last-child {
    border-bottom: none;
}

.setting-section h3 { /* Already styled via inline style in HTML, this is for consistency if that's removed */
    color: var(--primary-color); /* As per existing */
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px; /* Increased gap */
    font-size: 1.2rem; /* Title size */
    font-weight: 600;
}
.setting-section h3 .material-icons {
    font-size: 1.6rem; /* Icon size */
    color: var(--primary-color); /* Ensure icon color matches */
}

.settings-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-secondary);
}

.settings-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.settings-list li .material-icons {
    font-size: 1.25rem;
    color: var(--accent-color); /* Use accent for list icons */
    width: 24px; /* Ensure consistent icon width */
}
.setting-section p { /* Style paragraphs within settings */
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* 字数统计 */
.word-count-display {
    position: absolute;
    bottom: 12px; /* Adjusted position */
    right: 12px;  /* Adjusted position */
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: var(--bg-surface); /* Use surface color */
    padding: 3px 7px; /* Adjusted padding */
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: 1;
    box-shadow: var(--shadow-1);
}
/* Ensure textarea parent is relative for word count positioning */
.form-group.has-word-count { /* Add this class via JS if needed, or rely on existing relative positioning */
     position: relative;
}


/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 动画关键帧 */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes slideInUp { /* General purpose slide up */
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); } /* Subtler scale */
    to { opacity: 1; transform: scale(1); }
}

/* Posts List Styles */
.posts-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.post-card {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.post-title:hover {
    color: #3E9CD7;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    align-items: center;
}

.post-meta .material-icons {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.post-tags {
    display: flex;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.posts-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-icon {
    font-size: 2rem;
    animation: spin 1s infinite linear;
}

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

/* 响应式设计 */
@media (max-width: 1024px) { /* Tablet and below */
    .main-content {
        grid-template-columns: 1fr; /* Stack sidebar and content */
    }
    
    .sidebar {
        order: 2; /* Sidebar below content on stack */
        position: static; /* No longer sticky */
        margin-top: 0; /* Remove top margin when stacked */
    }
    
    .content-panel {
        order: 1;
    }
    .navbar {
        padding: 16px 24px;
    }
}

@media (max-width: 768px) { /* Mobile */
    .container {
        padding: 16px;
    }
    
    .navbar {
        flex-direction: column; /* Stack logo and actions */
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
    .navbar-actions {
        justify-content: center;
    }
    
    .main-content {
        gap: 24px;
    }
    
    .panel-header,
    .panel-content,
    .login-card {
        padding: 24px;
    }
    .login-card {
         margin: 16px;
    }
    
    .btn-group {
        flex-direction: column; /* Stack buttons in group */
    }
    .btn-group .btn {
        width: 100%; /* Full-width buttons */
    }
    
    .logout-btn { /* Adjust logout button for mobile */
        position: static;
        margin: 0 auto 20px; /* Center it if main page is visible */
        display: block;
        width: fit-content;
    }
    #mainPage.hidden + .logout-btn { /* Hide if not logged in and static */
         /* This logic might be better handled by JS toggling a class on body */
    }
     #globalAlertsContainer {
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; } /* Base font size adjustment */

    .login-title { font-size: 1.6rem; }
    .login-title .material-icons { font-size: 2rem; }
    
    .panel-title { font-size: 1.4rem; }
    .panel-title .material-icons { font-size: 1.8rem; }
    
    .form-input, .form-textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
     .btn .material-icons { font-size: 1rem; }

    .sidebar-menu { padding: 0 10px; } /* Reduce padding for menu items on very small screens */
    .menu-item { margin: 4px 0; }
    .menu-link { padding: 12px 15px; }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08); /* Lighter track */
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6a11cb); /* Darker accent */
}

/* 选择文本样式 */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* 焦点可见性 - Material Design often uses subtle rings or state changes */
*:focus-visible {
    /* Input focus is handled by .form-input:focus */
    /* For other elements, ensure a visible focus indicator if default is removed */
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}
 /* Remove default outline if custom focus is applied elsewhere */
*:focus {
    outline: none;
}
.btn:focus-visible, .menu-link:focus-visible {
     box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.3); /* Specific focus for interactive elements */
}