/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #667eea;
    --success-color: #48bb78;
    --error-color: #f56565;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 背景动画 ========== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.globe-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.orbit-2 {
    width: 600px;
    height: 600px;
    border-color: rgba(118, 75, 162, 0.1);
    animation-duration: 45s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    border-color: rgba(102, 126, 234, 0.15);
    animation-duration: 30s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== 头部样式 ========== */
.header {
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    animation: logoRotate 20s linear infinite, logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
    transition: all 0.3s ease;
}

.logo:hover svg {
    animation: logoRotateFast 2s linear infinite, logoPulseHover 1s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.9));
}

@keyframes logoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoRotateFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.8));
    }
}

@keyframes logoPulseHover {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.7));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 1));
    }
}

.logo-text {
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
    }
}

/* Logo指针动画 */
.logo-hour-hand {
    transform-origin: 20px 20px;
    animation: hourHandRotate 43200s linear infinite;
}

.logo-minute-hand {
    transform-origin: 20px 20px;
    animation: minuteHandRotate 3600s linear infinite;
}

.logo:hover .logo-hour-hand {
    animation: hourHandRotate 10s linear infinite;
}

.logo:hover .logo-minute-hand {
    animation: minuteHandRotate 2s linear infinite;
}

@keyframes hourHandRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes minuteHandRotate {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
}

/* ========== 主内容区 ========== */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

/* Hero区域 */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 搜索框 */
.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 12px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    padding: 12px 0;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: translateX(3px);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 快捷城市 */
.quick-cities {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.quick-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.city-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.city-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 时区浏览器 */
.timezone-browser {
    max-width: 900px;
    margin: 40px auto 0;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.toggle-browser-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toggle-browser-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.toggle-browser-btn .chevron {
    transition: transform 0.3s ease;
}

.toggle-browser-btn.active .chevron {
    transform: rotate(180deg);
}

.browser-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 20px;
}

.browser-panel.show {
    max-height: 600px;
    overflow-y: auto;
}

.browser-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.search-icon-small {
    color: var(--text-secondary);
    margin-right: 10px;
    flex-shrink: 0;
}

#timezoneFilter {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

#timezoneFilter::placeholder {
    color: var(--text-secondary);
}

.timezone-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timezone-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.timezone-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.timezone-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.timezone-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.timezone-list::-webkit-scrollbar {
    width: 6px;
}

.timezone-list::-webkit-scrollbar-track {
    background: transparent;
}

.timezone-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.timezone-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.timezone-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timezone-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.timezone-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timezone-item-code {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
}

.timezone-item-offset {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 500;
}

.timezone-item.hidden {
    display: none;
}

/* ========== 结果展示 ========== */
.result-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
}

.result-section.hidden {
    display: none;
}

.result-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.result-city {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-timezone {
    color: var(--text-secondary);
    font-size: 16px;
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: var(--success-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: rgba(72, 187, 120, 0.2);
    transform: translateY(-2px);
}

/* 时钟显示 */
.clock-display {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
}

/* 模拟时钟 */
.analog-clock {
    position: relative;
}

.clock-face {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 3px solid rgba(102, 126, 234, 0.3);
    position: relative;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: var(--accent-color);
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hour-hand {
    width: 6px;
    height: 50px;
    margin-left: -3px;
    opacity: 0.8;
}

.minute-hand {
    width: 4px;
    height: 70px;
    margin-left: -2px;
    opacity: 0.9;
}

.second-hand {
    width: 2px;
    height: 80px;
    margin-left: -1px;
    background: #f56565;
}

.clock-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mark {
    position: absolute;
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    transform-origin: center 100px;
}

.mark-12 { top: 10px; left: calc(50% - 1px); }
.mark-3 { top: calc(50% - 1px); right: 10px; left: auto; width: 12px; height: 2px; }
.mark-6 { bottom: 10px; left: calc(50% - 1px); }
.mark-9 { top: calc(50% - 1px); left: 10px; width: 12px; height: 2px; }

/* 数字时钟 */
.digital-time {
    flex: 1;
}

.time-display {
    font-family: 'Orbitron', monospace;
    font-size: 72px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.date-display {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.weekday-display {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 时间详情 */
.time-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

/* ========== 世界时钟墙 ========== */
.world-clock-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 8px;
}

.clear-btn {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: var(--error-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(245, 101, 101, 0.2);
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.world-clock-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.world-clock-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.world-clock-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.world-clock-location {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.world-clock-timezone {
    font-size: 12px;
    color: var(--text-secondary);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

.world-clock-time {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.world-clock-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== 时差对比 ========== */
.compare-section {
    margin-bottom: 60px;
}

.compare-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
}

.compare-input-group {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.compare-input-box {
    flex: 1;
}

.compare-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.compare-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.compare-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.compare-search-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-search-btn:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.compare-arrow {
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.compare-result {
    animation: fadeInUp 0.6s ease;
}

.compare-result.hidden {
    display: none;
}

.compare-cards {
    display: flex;
    align-items: center;
    gap: 40px;
}

.compare-card {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-location {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.compare-time {
    font-family: 'Orbitron', monospace;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.compare-date {
    font-size: 16px;
    color: var(--text-secondary);
}

.compare-difference {
    flex-shrink: 0;
}

.diff-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: var(--primary-gradient);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.diff-label {
    font-size: 14px;
    opacity: 0.9;
}

.diff-value {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 700;
}

/* ========== 页脚 ========== */
.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 42px;
    }

    .clock-display {
        flex-direction: column;
        gap: 30px;
    }

    .time-display {
        font-size: 56px;
    }

    .time-details {
        grid-template-columns: 1fr;
    }

    .compare-input-group {
        flex-direction: column;
    }

    .compare-arrow {
        transform: rotate(90deg);
    }

    .compare-cards {
        flex-direction: column;
    }

    .world-clock-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-box {
        padding: 6px 6px 6px 16px;
    }

    .search-input {
        font-size: 14px;
    }

    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .result-card {
        padding: 24px;
    }

    .clock-face {
        width: 150px;
        height: 150px;
    }

    .time-display {
        font-size: 42px;
    }

    .compare-container {
        padding: 24px;
    }

    .timezone-list {
        grid-template-columns: 1fr;
        max-height: 300px;
    }

    .timezone-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .timezone-tabs::-webkit-scrollbar {
        display: none;
    }

    .toggle-browser-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .browser-panel.show {
        max-height: 500px;
    }
}

/* ========== 加载动画 ========== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

