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

/* 全局平滑过渡 */
* {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 防止右边白边和水平滚动条 */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 强制所有元素不超出视口 */
* {
    max-width: 100%;
}



body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 背景图片 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%),
        url('/wallpaper/粉色长发动漫女孩楪祈 4K壁纸 3840x2160_彼岸图网 (1).jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(120, 229, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(255, 217, 61, 0.05) 0%, transparent 60%);
    z-index: 1;
}

/* 主容器 */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 顶部栏 */
.top-bar {
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-left .time-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.emoji {
    font-size: 30px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.top-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
}

.time-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.time {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.top-right {
    display: flex;
    align-items: center;
}

.icon-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 6px;
}

.icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.icon-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索框容器 */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 30px;
    padding: 0 20px;
    z-index: 50;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-icon-left {
    margin-right: 15px;
    color: #666;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 5px 0;
}

.search-input::placeholder {
    color: #999;
}

.search-icon-right {
    margin-left: 15px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon-right:hover {
    color: #333;
}

/* 应用容器 - 已移动到下方统一管理 */

/* app-title样式已移动到下方统一管理 */

.app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

/* 重复的app-item样式已删除，使用下方优化版本 */

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.app-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

/* 壁纸模态框样式 */
.wallpaper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.wallpaper-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.3s ease;
}

.wallpaper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wallpaper-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wallpaper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wallpaper-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.05);
}

.wallpaper-item.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
}

.wallpaper-preview {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wallpaper-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
}

/* 预设壁纸样式 */
.default-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
}

.anime1-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
}

.anime2-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
}

.nature-bg {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(34, 193, 195, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(45, 253, 159, 0.3) 0%, transparent 50%);
}

.space-bg {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.2) 0%, transparent 50%);
}

.gradient1-bg {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.gradient2-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.minimal-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.wallpaper-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.wallpaper-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.wallpaper-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wallpaper-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.wallpaper-btn.secondary {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wallpaper-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
}

/* 自定义壁纸上传区域样式 */
.custom-wallpaper-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #5a6fd8;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #4a5fd1;
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: #5a6fd8;
}

.upload-text p {
    margin: 5px 0;
    color: #333;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* 上传进度样式 */
.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.upload-progress p {
    color: #667eea;
    font-weight: 500;
    margin: 0;
}

/* 预设壁纸区域 */
.preset-wallpaper-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* 自定义壁纸项样式 */
.custom-wallpaper-item {
    position: relative;
}

.custom-preview {
    position: relative;
    overflow: hidden;
}

.wallpaper-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-wallpaper-item:hover .wallpaper-actions-overlay {
    opacity: 1;
}

.delete-wallpaper-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e74c3c;
    font-size: 14px;
}

.delete-wallpaper-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* 自定义壁纸网格特殊样式 */
#customWallpaperGrid .wallpaper-item {
    position: relative;
}

#customWallpaperGrid .wallpaper-preview {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 动画效果 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes smoothScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1000px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .app-container {
        max-width: 600px;
    }
}

@media (max-width: 1200px) {
    .category-tabs {
        grid-template-columns: repeat(6, 1fr);
        margin-bottom: 20px;
    }
    
    .category-nav {
        max-width: 900px;
    }
}

@media (max-width: 800px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-container {
        max-width: 500px;
    }
    
    .category-tabs {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 20px;
    }
    
    .category-nav {
        max-width: 600px;
        padding: 0 15px;
    }
    
    .category-tab {
        padding: 14px 16px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        min-height: 50px !important;
        min-width: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .wallpaper-preview {
        width: 100px;
        height: 70px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-text p {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .top-bar {
        height: 60px;
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .emoji {
        font-size: 26px;
    }
    
    .time {
        font-size: 16px;
    }
    
    .date {
        font-size: 10px;
    }
    
    .icon-group {
        gap: 8px;
    }
    
    .icon {
        font-size: 14px;
        padding: 4px;
    }
    
    .search-container {
        padding: 0 15px;
    }
    
    .category-nav {
        padding: 0 15px;
        max-width: 500px;
    }
    
    .category-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 16px 18px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        min-height: 50px !important;
        min-width: 120px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .wallpaper-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .wallpaper-preview {
        width: 80px;
        height: 60px;
    }
    
    .wallpaper-name {
        font-size: 12px;
    }
    
    .wallpaper-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .upload-area {
        padding: 20px 10px;
    }
    
    .upload-icon {
        font-size: 28px;
    }
    
    .upload-text p {
        font-size: 12px;
    }
    
    .upload-hint {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .delete-wallpaper-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .app-container {
        top: 280px;
        padding: 0 15px;
        max-width: 400px;
    }
    
    .category-tabs {
        margin-bottom: 20px;
    }
    
    .app-item {
        padding: 12px 8px;
        min-height: 90px;
        width: 90px;
    }
    
    .app-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    
    .app-name {
        font-size: 10px;
        max-width: 70px;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .app-item {
        padding: 10px 6px;
        min-height: 80px;
        width: 80px;
    }
    
    .app-icon {
        font-size: 18px;
        width: 35px;
        height: 35px;
    }
    
    .app-name {
        font-size: 9px;
        max-width: 60px;
    }
    
    .category-nav {
        max-width: 400px;
    }
    
    .category-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 40px;
    }
    
    .category-tab {
        padding: 14px 12px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        min-height: 50px !important;
        min-width: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .app-container {
        top: 300px;
    }
    
    .icon-group {
        gap: 6px;
    }
    
    .icon {
        font-size: 12px;
        padding: 3px;
    }
}

/* 超小屏幕手机适配 */
@media (max-width: 320px) {
    .category-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 12px 8px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        min-height: 50px !important;
        min-width: 90px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .category-nav {
        padding: 0 10px;
    }
    
    .app-container {
        padding: 0 10px;
    }
}

/* 手机屏幕适配 - 强制覆盖 */
@media (max-width: 480px) {
    .app-container {
        padding: 0 10px !important;
    }
    
    .category-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 14px 12px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        min-height: 50px !important;
        min-width: 110px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .category-nav {
        padding: 0 10px !important;
        max-width: 100% !important;
    }
}

/* 手机横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .category-tabs {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 30px;
    }
    
    .category-tab {
        padding: 6px 4px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        min-height: 32px !important;
    }
    
    .category-nav {
        top: 120px;
    }
    
    .app-container {
        top: 200px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-item {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.app-item:nth-child(1) { animation-delay: 0.1s; }
.app-item:nth-child(2) { animation-delay: 0.2s; }
.app-item:nth-child(3) { animation-delay: 0.3s; }
.app-item:nth-child(4) { animation-delay: 0.4s; }
.app-item:nth-child(5) { animation-delay: 0.5s; }
.app-item:nth-child(6) { animation-delay: 0.6s; }
.app-item:nth-child(7) { animation-delay: 0.7s; }
.app-item:nth-child(8) { animation-delay: 0.8s; }
.app-item:nth-child(9) { animation-delay: 0.9s; }
.app-item:nth-child(10) { animation-delay: 1.0s; }
.app-item:nth-child(11) { animation-delay: 1.1s; }
.app-item:nth-child(12) { animation-delay: 1.2s; }
.app-item:nth-child(13) { animation-delay: 1.3s; }
.app-item:nth-child(14) { animation-delay: 1.4s; }
.app-item:nth-child(15) { animation-delay: 1.5s; }
.app-item:nth-child(16) { animation-delay: 1.6s; }
.app-item:nth-child(17) { animation-delay: 1.7s; }
.app-item:nth-child(18) { animation-delay: 1.8s; }
.app-item:nth-child(19) { animation-delay: 1.9s; }
.app-item:nth-child(20) { animation-delay: 2.0s; }

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 特殊效果 */
.app-item:active {
    transform: scale(0.95);
}

.search-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-bar:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 分类导航 */
.category-nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    z-index: 50;
    box-sizing: border-box;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 100%;
    grid-auto-rows: minmax(65px, auto);
    align-items: stretch;
    padding: 0 10px;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    min-height: 65px;
    min-width: 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    width: 100%;
    transform-origin: center center;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.category-tab:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-tab:hover::before {
    opacity: 1;
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
}

.category-tab.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.category-tab i {
    font-size: 18px;
    position: relative;
    z-index: 1;
    margin-bottom: 2px;
}

.category-tab span {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 应用容器优化 */
.app-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 40px 20px;
    z-index: 10;
    box-sizing: border-box;
}

/* 确保快速导航标题正确显示 */
.app-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 30px 0 40px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    position: relative;
}

/* 重复的app-title样式已删除 */

@media (max-width: 600px) {
    .app-container {
        padding: 20px 15px !important;
    }
    
    .app-title {
        font-size: 28px;
        margin: 20px 0 30px;
        gap: 15px;
    }
    
    .search-container {
        margin: 30px auto 20px;
    }
    
    .category-nav {
        margin: 0 auto 30px;
        padding: 20px 15px;
    }
}

@media (max-width: 400px) {
    .app-container {
        padding: 0 10px !important;
    }
    
    .app-title {
        font-size: 20px;
        margin-top: 12px;
        margin-bottom: 15px;
        gap: 10px;
    }
}

.app-title i {
    font-size: 36px;
    color: #ffd93d;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.8);
    animation: rocketPulse 2s ease-in-out infinite;
}

@keyframes rocketPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 217, 61, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(255, 217, 61, 1);
    }
}

@media (max-width: 600px) {
    .app-title i {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .app-title i {
        font-size: 24px;
    }
}

/* 应用区域 */
.app-section {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.link-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: auto;
}

/* 应用项优化 */
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 110px;
    width: 110px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.app-item:hover::before {
    opacity: 1;
}

.app-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.app-item:hover .app-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.app-icon {
    font-size: 26px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.app-name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
    position: relative;
    z-index: 1;
    max-width: 90px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.app-desc {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.icon-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

/* 浮动操作按钮 */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
}

.fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.fab:active {
    transform: scale(0.95);
}


/* 滚动条优化 */
.app-container::-webkit-scrollbar {
    width: 0px;
}

.app-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.app-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.app-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 玻璃风格摸鱼语录狂款样式 */
.cyber-widget-container {
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cyber-widget {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 1px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cyber-widget:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.cyber-frame {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cyber-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cyber-title i {
    font-size: 28px;
    color: #667eea;
    transition: all 0.3s ease;
}

.cyber-title:hover i {
    transform: scale(1.1);
    color: #5a6fd8;
}

.cyber-pulse {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: gentlePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.cyber-date {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cyber-content {
    position: relative;
}

.cyber-quote {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cyber-quote:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.cyber-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #667eea 25%, 
        #764ba2 50%, 
        #667eea 75%, 
        transparent 100%);
    animation: gentleScan 4s linear infinite;
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(102, 126, 234, 0.6);
    font-size: 20px;
    transition: all 0.3s ease;
}

.quote-icon:hover {
    color: #667eea;
    transform: scale(1.1);
}

.quote-icon-right {
    top: auto;
    left: auto;
    bottom: 15px;
    right: 15px;
}

.quote-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    padding: 0 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    animation: gentleFadeIn 1s ease-out;
}

.cyber-footer {
    display: flex;
    justify-content: center;
}

.cyber-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 摸鱼模式特殊高亮效果 */
.stat-item.moyu-mode {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: moyuGlow 2s ease-in-out infinite alternate;
}

.stat-item.moyu-mode:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.25) 0%, 
        rgba(118, 75, 162, 0.25) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.stat-item.moyu-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: moyuShine 3s ease-in-out infinite;
}

.stat-item.moyu-mode i {
    color: #667eea;
    animation: moyuPulse 1.5s ease-in-out infinite;
}

.stat-item.moyu-mode span {
    color: #292c38;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.stat-item i {
    font-size: 16px;
    transition: all 0.3s ease;
    color: #666;
}

.stat-item:hover i {
    transform: scale(1.1);
    color: #333;
}

.cyber-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.03) 0%, 
        transparent 70%);
    animation: gentleRotate 20s linear infinite;
    pointer-events: none;
}

/* 动画效果 */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes gentleScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes gentleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 摸鱼模式高亮动画 */
@keyframes moyuGlow {
    0% {
        box-shadow: 
            0 4px 15px rgba(102, 126, 234, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(102, 126, 234, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes moyuShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes moyuPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cyber-widget-container {
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .cyber-frame {
        padding: 20px;
    }
    
    .cyber-title {
        font-size: 20px;
    }
    
    .cyber-date {
        font-size: 16px;
    }
    
    .quote-text {
        font-size: 16px;
        padding: 0 30px;
    }
    
    .cyber-stats {
        gap: 15px;
    }
    
    .stat-item {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .cyber-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cyber-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .quote-text {
        padding: 0 20px;
    }
}

/* 三栏布局样式 */
.three-column-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin: 20px auto;
    padding: 0 20px;
    max-width: 1400px;
}

.calendar-widget,
.cyber-widget,
.stock-widget {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 日历组件样式 */
.calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-month-year {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.calendar-today-info {
    text-align: right;
}

.calendar-today-date {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.calendar-today-weekday {
    font-size: 14px;
    color: #cccccc;
    text-shadow: 0 0 5px rgba(204, 204, 204, 0.3);
    margin-top: 2px;
}

.calendar-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #cccccc;
    text-shadow: 0 0 5px rgba(204, 204, 204, 0.3);
    padding: 5px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    flex: 1;
    align-items: stretch;
}

.calendar-day-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 32px;
    min-width: 32px;
    height: 100%;
    width: 100%;
}

.calendar-day-item.current-month {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-day-item.current-month:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.calendar-day-item.today {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.calendar-day-item.prev-month,
.calendar-day-item.next-month {
    color: #666666;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-day-item.prev-month:hover,
.calendar-day-item.next-month:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.7;
}

/* 统一所有组件的框架样式 - 使用与摸鱼框相同的毛玻璃样式 */
.calendar-widget .cyber-frame,
.cyber-widget .cyber-frame,
.stock-widget .cyber-frame {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.calendar-widget .cyber-header,
.cyber-widget .cyber-header,
.stock-widget .cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-widget .cyber-title,
.cyber-widget .cyber-title,
.stock-widget .cyber-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
}

.calendar-widget .cyber-title i,
.cyber-widget .cyber-title i,
.stock-widget .cyber-title i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.calendar-widget .cyber-pulse,
.cyber-widget .cyber-pulse,
.stock-widget .cyber-pulse {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

.calendar-widget .cyber-date,
.cyber-widget .cyber-date,
.stock-widget .cyber-date {
    font-size: 14px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.calendar-widget .cyber-content,
.cyber-widget .cyber-content,
.stock-widget .cyber-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.calendar-widget .cyber-footer,
.cyber-widget .cyber-footer,
.stock-widget .cyber-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-widget .cyber-stats,
.cyber-widget .cyber-stats,
.stock-widget .cyber-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-widget .stat-item,
.cyber-widget .stat-item,
.stock-widget .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-widget .stat-item i,
.cyber-widget .stat-item i,
.stock-widget .stat-item i {
    font-size: 14px;
}

.calendar-widget .cyber-glow,
.cyber-widget .cyber-glow,
.stock-widget .cyber-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent);
    border-radius: 18px;
    z-index: -1;
    animation: glow 3s linear infinite;
}

/* 股票组件的控制区域样式 */
.stock-widget .cyber-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn i.fa-spin {
    animation: spin 1s linear infinite;
}

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

.stock-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
}

.stock-title i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.stock-pulse {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

.stock-time {
    font-size: 14px;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.stock-content {
    position: relative;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stock-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.stock-item.loading {
    opacity: 0.6;
    animation: pulse 1.5s infinite;
}

.stock-item.error {
    opacity: 0.8;
    border-color: rgba(255, 100, 100, 0.3);
}

.stock-name {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    flex: 1;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.stock-price {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
}

.stock-change {
    font-size: 12px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px currentColor;
    min-width: 80px;
    text-align: right;
}

.stock-change.positive {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.stock-change.negative {
    color: #006600;
    text-shadow: 0 0 5px rgba(0, 102, 0, 0.5);
}

.stock-change.neutral {
    color: #cccccc;
    text-shadow: 0 0 5px rgba(204, 204, 204, 0.3);
}

.stock-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stock-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.stock-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
}

.stock-stats .stat-item i {
    font-size: 14px;
}

.stock-message {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.stock-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.stock-message.error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6666;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent);
    border-radius: 15px;
    z-index: -1;
    animation: glow 3s linear infinite;
}

@keyframes glow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* 响应式设计 - 三栏布局 */
@media (max-width: 1024px) {
    .three-column-container {
        flex-direction: column;
        gap: 15px;
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .calendar-widget,
    .cyber-widget,
    .stock-widget {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .three-column-container {
        flex-direction: column;
        gap: 15px;
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .calendar-widget .cyber-frame,
    .cyber-widget .cyber-frame,
    .stock-widget .cyber-frame {
        padding: 15px;
    }
    
    .calendar-widget .cyber-title,
    .cyber-widget .cyber-title,
    .stock-widget .cyber-title {
        font-size: 16px;
    }
    
    .calendar-widget .cyber-date,
    .cyber-widget .cyber-date,
    .stock-widget .cyber-date {
        font-size: 12px;
    }
    
    .calendar-month-year {
        font-size: 18px;
    }
    
    .calendar-today-date {
        font-size: 20px;
    }
    
    .calendar-day-item {
        font-size: 12px;
        min-height: 28px;
        min-width: 28px;
    }
    
    .weekday {
        font-size: 10px;
    }
    
    .stock-widget .cyber-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-scroll-container {
        margin: 10px 0;
        padding: 10px;
    }
    
    .news-header {
        font-size: 12px;
    }
    
    .news-scroll {
        height: 150px;
    }
    
    .news-content {
        font-size: 13px;
        -webkit-line-clamp: 5;
    }
    
    .news-time {
        font-size: 11px;
    }
    
    .news-item {
        min-height: 110px;
        padding: 15px 15px;
    }
    
    .refresh-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .stock-item {
        padding: 6px 10px;
    }
    
    .stock-name {
        font-size: 13px;
    }
    
    .stock-price {
        font-size: 14px;
    }
    
    .stock-change {
        font-size: 11px;
        min-width: 70px;
    }
    
    .calendar-day {
        font-size: 36px;
    }
    
    .calendar-month {
        font-size: 20px;
    }
    
    .calendar-weekday {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .calendar-widget .cyber-header,
    .cyber-widget .cyber-header,
    .stock-widget .cyber-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .calendar-widget .cyber-stats,
    .cyber-widget .cyber-stats,
    .stock-widget .cyber-stats {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .stock-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .stock-price {
        margin: 0;
    }
    
    .calendar-day {
        font-size: 32px;
    }
    
    .calendar-month {
        font-size: 18px;
    }

    .calendar-weekday {
        font-size: 14px;
    }
}

/* 新闻滚动区域样式 */
.news-scroll-container {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.news-header i {
    color: #00ff88;
    animation: pulse 2s infinite;
}

.news-source {
    font-size: 10px;
    color: #888888;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    text-shadow: 0 0 3px rgba(136, 136, 136, 0.3);
}

.news-scroll {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    min-height: 140px;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.news-item.loading {
    opacity: 0.6;
    animation: pulse 1.5s infinite;
}

.news-item.error {
    opacity: 0.8;
    border-color: rgba(255, 100, 100, 0.3);
}

.news-content {
    flex: 1;
    font-size: 14px;
    color: #000000;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 85%;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    margin-right: 12px;
}

.news-time {
    font-size: 12px;
    color: #000000;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    margin-left: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
}
