:root {
    /* 明亮主题 */
    --bg-light: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    --glass-light: rgba(255, 255, 255, 0.25);
    --text-light: #2c3e50;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.4);
    
    /* 暗色主题 */
    --bg-dark: linear-gradient(120deg, #20242c 0%, #3d4654 100%);
    --glass-dark: rgba(0, 0, 0, 0.2);
    --text-dark: #ecf0f1;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* 添加新的动画变量 */
    --transition-speed: 0.3s;
    --hover-scale: 1.05;
    --theme-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
    --bg-gradient: var(--bg-dark);
    --glass-bg: var(--glass-dark);
    --text-color: var(--text-dark);
    --shadow-color: var(--shadow-dark);
    --border-color: var(--border-dark);
}

[data-theme='light'] {
    --bg-gradient: var(--bg-light);
    --glass-bg: var(--glass-light);
    --text-color: var(--text-light);
    --shadow-color: var(--shadow-light);
    --border-color: var(--border-light);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 8px 32px var(--shadow-color),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 24px;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* 个人资料部分 */
.profile {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 120px;
    margin: 0 auto;
    margin-top: 40px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    overflow: hidden;
    padding: 5px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.weather-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    min-width: 120px;
    transition: all 0.3s ease;
}

.weather-location {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 2px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 1.2em;
}

.weather-temp {
    font-weight: 500;
}

.weather-extra {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 2px;
}

.nickname {
    font-size: 2em;
    margin: 20px 0 10px;
    font-weight: 700;
}

.hitokoto {
    font-size: 1.1em;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* 链接部分 */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.link-card {
    background: var(--glass-bg);
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100px;
}

.link-card:hover {
    transform: translateY(-5px) scale(var(--hover-scale));
    box-shadow: 
        0 15px 30px var(--shadow-color),
        0 5px 15px var(--shadow-color);
}

.link-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.link-title {
    font-size: 0.95em;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.link-status {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.75em;
    padding: 2px 4px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 8px;
    background: var(--glass-bg);
    opacity: 0.9;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.status-ok {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.status-slow {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.status-error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 小部件容器 */
.widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 音乐播放器 */
.music-player {
    padding: 20px;
    border-radius: 16px;
    background: var(--glass-bg);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.now-playing {
    font-size: 0.9em;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.playlist {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.playlist-item {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.track-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-name {
    font-size: 0.9em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.8em;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item:hover {
    background: var(--glass-bg);
    transform: translateX(5px);
}

.playlist-item.active {
    background: var(--glass-bg);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* 倒计时 */
.countdown {
    padding: 20px;
    border-radius: 16px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.widget-header h3 {
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header h3::before {
    content: '🔥';
    font-size: 1.1em;
}

.platform-tabs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
}

.tab-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    opacity: 0.8;
}

.tab-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
    opacity: 1;
}

.update-time {
    font-size: 0.75em;
    opacity: 0.6;
    margin-left: auto;
    padding-left: 15px;
}

.add-btn {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.1));
    color: var(--text-color);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 2px 5px var(--shadow-color),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all var(--transition-speed) ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px var(--shadow-color),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.countdown-items {
    display: grid;
    gap: 15px;
}

.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.1));
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 2px 5px var(--shadow-color),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all var(--transition-speed) ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px var(--shadow-color),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .links-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .widgets-container {
        grid-template-columns: 1fr;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 保留滚动功能 */
.playlist {
    max-height: 250px;
    overflow-y: auto;
    /* margin-top: 15px; */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 确保在所有浏览器中隐藏滚动条但保留滚动功能 */
.playlist::-webkit-scrollbar {
    display: none;
}

/* 添加平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 添加加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container > * {
    animation: fadeIn 0.5s ease-out forwards;
} 

/* 音乐播放器样式优化 */
.music-player {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--text-color) 0%, 
        rgba(255,255,255,0.5) 50%,
        var(--text-color) 100%
    );
    opacity: 0.3;
}

.volume-control {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-left: 10px;
}

.volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-control::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.playlist-item::before {
    display: none;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
} 

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--text-color);
    transition: width 0.3s ease;
}

.loader-text {
    margin-top: 10px;
    color: var(--text-color);
    font-size: 14px;
} 

/* 添加加载状态样式 */
.loading {
    opacity: 0.5;
    pointer-events: none;
} 

/* 加错误提示样式 */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 0.9em;
}

/* 优化加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '载中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
} 

.playlist-item.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.playlist-item.loading::after {
    content: '加载中...';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: var(--text-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 防止加载时布局抖动 */
.track-info {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-name, .track-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 

/* 雪花效果样式 */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* 雪花动画 */
@keyframes snowfall {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

.snowflake {
    position: fixed;
    top: -10px;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* 雪容器的背景渐变，增加深度感 */
.snow-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 0%,
        rgba(0, 0, 0, 0.02) 100%
    );
    pointer-events: none;
} 

/* 添加主题切换扫光效果 */
.theme-transition-mask {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    pointer-events: none;
    z-index: 9999;
    transition: none;
}

.theme-transition-mask.active {
    left: 100%;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
} 

/* 热搜模块样式 */
.hot-search {
    padding: 20px;
    border-radius: 16px;
    background: var(--glass-bg);
}

.hot-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--text-color) 0%, rgba(255, 255, 255, 0.5) 50%, var(--text-color) 100%);
    opacity: 0.3;
}

.hot-search-list {
    max-height: 280px;
    overflow-y: auto;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    /* margin-bottom: 8px; */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 15px;
}

.hot-rank.top3 {
    color: #ff6b6b;
}

.hot-content {
    flex: 1;
    min-width: 0;
}

.hot-title {
    font-size: 0.9em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-heat {
    font-size: 0.8em;
    opacity: 0.7;
    padding-left: 15px;
    white-space: nowrap;
}

.hot-item:hover {
    background: var(--glass-bg);
    transform: translateX(5px);
}

.update-time {
    font-size: 0.8em;
    opacity: 0.7;
    text-align: right;
    margin-top: 10px;
}

/* 滚动条美化 */
.playlist::-webkit-scrollbar,
.hot-search-list::-webkit-scrollbar {
    width: 4px;
}

.playlist::-webkit-scrollbar-thumb,
.hot-search-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.playlist::-webkit-scrollbar-track,
.hot-search-list::-webkit-scrollbar-track {
    background: transparent;
}

/* 加载和错误提示 */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    opacity: 0.7;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 87, 87, 0.1);
    border-radius: 8px;
    color: #ff5757;
    font-size: 0.9em;
}

.retry-btn {
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 87, 87, 0.1);
} 

/* 平台图标样式 */
.platform-icon {
    width: 1em;
    height: 1em;
    margin-right: 6px;
    vertical-align: -0.125em;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn i,
.tab-btn svg {
    font-size: 1.1em;
} 

/* 外链跳转弹窗样式 */
.jump-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.jump-modal.show {
    display: flex;
}

.jump-modal-content {
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}

.jump-modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.jump-url {
    margin: 10px 0 20px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    word-break: break-all;
    font-size: 0.9em;
    opacity: 0.8;
}

.jump-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.jump-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.jump-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.jump-btn.confirm {
    background: rgba(46, 204, 113, 0.2);
}

.jump-btn.confirm:hover {
    background: rgba(46, 204, 113, 0.3);
}

.jump-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
}

.jump-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
} 

/* 搜索框样式 */
.search-container {
    position: fixed;
    top: 20px;
    right: 80px;  /* 预留主题切换按钮的空间 */
    z-index: 1000;
}

/* 移动端隐藏搜索框 */
@media (max-width: 1350px) {
    .search-container {
        display: none;
    }
}

.search-box {
    position: relative;
    width: 260px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 5px 15px var(--shadow-color);
}

.search-icon {
    color: var(--text-color);
    opacity: 0.7;
    margin-right: 10px;
}

#searchInput {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.9em;
}

#searchInput::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-icon {
    opacity: 0.5;
    font-size: 0.9em;
}

.suggestion-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 

/* 容器搜索框样式 */
.container-search {
    position: absolute;
    top: 25px;
    right: 55px;  /* 增加右边距 */
    width: 260px;
    z-index: 10;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--glass-bg);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 15px var(--shadow-color);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-icon {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    transition: opacity 0.3s ease;
}

.search-box:focus-within .search-icon {
    opacity: 1;
}

#searchInput {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.95em;
    padding: 4px 0;
}

#searchInput::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.suggestion-icon {
    opacity: 0.6;
    font-size: 0.9em;
}

.suggestion-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
} 

/* 移动端适配 */
@media (max-width: 768px) {
    .container-search {
        display: none;
    }
} 

/* 添加搜索引擎切换提示样式 */
.engine-switch {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.engine-switch i {
    font-size: 1em;
    opacity: 0.8;
}

.engine-switch .suggestion-text {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85em;
} 

/* 天气模块样式 */
.weather-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    min-width: 120px;
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .weather-badge {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
    }

    .weather-location {
        font-size: 0.9em;
        margin-bottom: 0;
    }

    .weather-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .weather-extra {
        display: flex;
        gap: 15px;
        font-size: 0.8em;
    }

    /* 调整容器内边距，为天气腾出空间 */
    .container {
        padding-top: 20px;
    }

    /* 调整头像位置 */
    .avatar-container {
        margin-top: 20px;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .weather-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .weather-extra {
        width: 100%;
        justify-content: space-between;
    }
} 