/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a4c 0%, #4c1a4c 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 弹窗提示样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* 顶部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.header-left {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.user-info {
    display: flex;
    flex-direction: column;
}

.nickname {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.user-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.header-right {
    text-align: right;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

#time {
    font-size: 1.8rem;
    font-weight: normal;
}

#date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
}

.search-box i {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 5px;
    color: white;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.search-tips {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -10px;
    margin-bottom: 10px;
}

/* 搜索结果样式 */
.search-results {
    position: absolute;
    z-index: 100;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 60, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.search-result-item .app-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    margin-bottom: 0;
}

.search-result-item p {
    font-size: 0.95rem;
}

.no-result {
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 为搜索结果添加滚动条样式 */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 一言样式 */
.hitokoto-container {
    margin: 15px auto 25px;
    padding: 0 20px;
    text-align: center;
    max-width: 800px;
}

#hitokoto-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    line-height: 1.5;
    font-weight: 300;
}

#hitokoto-from {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

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

.app-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-item:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-icon i {
    font-size: 24px;
}

.app-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 底部样式 */
footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 10px 0;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
    }
    
    .header-left {
        margin-bottom: 0;
    }
    
    .header-right {
        text-align: right;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    #time {
        font-size: 1.5rem;
    }
    
    .avatar {
        width: 50px;
        height: 50px;
    }
    
    .nickname {
        font-size: 1rem;
    }
    
    .user-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    #time {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 8px 15px;
    }
    
    .app-item p {
        font-size: 0.8rem;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    
    .nickname {
        font-size: 0.9rem;
    }
    
    .user-desc {
        font-size: 0.7rem;
    }
} 