/* --- 1. 全局背景与字体 --- */
body {
    /* 渐变黑背景：从深墨色到纯黑的径向渐变，比纯黑更有深度 */
    background: radial-gradient(circle at top, #1c1c21 0%, #0a0a0c 100%) fixed !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0;
}

/* --- 2. 核心卡片 (Widget) 美化 --- */
.widget {
    /* 深色半透明，配合金色边框 */
    background: rgba(30, 30, 35, 0.7) !important;
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(212, 175, 55, 0.2) !important; /* 极细的暗金色边框 */
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 鼠标悬停：金色加亮并上浮 */
.widget:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.1) !important;
}

/* --- 3. 搜索栏：金边胶囊设计 --- */
.search-form {
    margin-bottom: 2.5rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar-input {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 30px !important;
    padding: 14px 28px !important;
    font-size: 1rem !important;
    color: #d4af37 !important; /* 输入文字为金色 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease;
}

.search-bar-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
    outline: none;
}

/* --- 4. 导航栏优化 --- */
.header-tabs {
    border-bottom: none !important;
    margin-bottom: 2rem !important;
}

.header-tab {
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
}

.header-tab.active {
    color: #d4af37 !important; /* 激活页面为金色 */
    border-bottom: 2px solid #d4af37 !important;
    opacity: 1;
}

/* --- 5. RSS 与推特图片优化 --- */
.widget-rss-item-title {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #ffffff !important; /* 标题设为纯白，方便阅读 */
}

.widget-rss-item-content img {
    border-radius: 12px !important;
    margin-top: 10px !important;
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(0.85); /* 默认稍暗，不刺眼 */
    transition: filter 0.3s ease;
}

.widget-rss-item-content img:hover {
    filter: brightness(1.05); /* 悬停时点亮 */
}