/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 时钟样式 */
.clock {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
}

.clock .time {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.clock .date {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
}

/* 搜索框样式 */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.search-box form {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    outline: none;
}

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

.search-box button[type="submit"] {
    padding: 15px 25px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button[type="submit"]:hover {
    background: rgba(255,255,255,0.3);
}

.search-engines {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-engines button {
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.search-engines button:hover,
.search-engines button.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* 快捷方式样式 */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.quick-link {
    width: 80px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.quick-link:hover {
    transform: translateY(-5px);
}

.quick-link .icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.quick-link:hover .icon {
    background: rgba(255,255,255,0.2);
}

.quick-link .name {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 导航分类样式 */
.nav-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.category h3 {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category h3 i {
    font-size: 16px;
}

.category .links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category .links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 12px;
}

.category .links a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}

.category .links a i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 添加按钮 */
.add-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.add-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: rgba(255,255,255,0.5);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.form-actions button:first-child {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.form-actions button:last-child {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.form-actions button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .clock .time {
        font-size: 48px;
    }
    
    .nav-categories {
        grid-template-columns: 1fr;
    }
    
    .category .links {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.category {
    animation: fadeIn 0.5s ease forwards;
}

.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.2s; }
.category:nth-child(3) { animation-delay: 0.3s; }
.category:nth-child(4) { animation-delay: 0.4s; }
.category:nth-child(5) { animation-delay: 0.5s; }
.category:nth-child(6) { animation-delay: 0.6s; }
