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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* 时间显示样式 */
.time-container {
    text-align: center;
    margin-top: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out forwards;
}

#time {
    font-size: 82px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

#date {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.quote {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
    margin-top: 15px;
    font-weight: 400;
}

/* 搜索框样式优化 */
.search-container {
    margin: 20px auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
    animation: fadeIn 0.8s ease-out forwards;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.search-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 40px;
    padding: 8px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    height: 70px;
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
}

.search-box input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: black;
    font-size: 18px;
    caret-color: black;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.search-box button {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 12px 35px;
    min-width: 120px;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(1px);
}

.search-engine-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

/* 搜索引擎选项样式优化 */
.search-engines {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.engine-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.engine-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
}

.engine-item img {
    width: 22px;
    height: 22px;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.engine-item:hover img {
    transform: scale(1.1);
}

/* 下载区域样式 */
.download-section, .tutorial-section, .auth-section, .website-section {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    animation: fadeIn 0.8s ease-out forwards;
}

h2 {
    color: white;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 24px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('img/电脑.svg') no-repeat center/contain;
    opacity: 0.9;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.download-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-item:hover {
    transform: translateY(5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.download-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.download-item:hover img {
    transform: scale(1.05);
}

.download-item span {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* 授权和官网区域样式 */
.auth-section, .website-section {
    margin: 30px 0;
}

/* 版权信息样式 */
.copyright {
    margin-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 调整底部链接样式 */
.footer {
    margin-top: 50px;
}

.footer .download-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 900px;
    margin: 20px auto;
}

.footer a {
    color: #4a90e2;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 优化滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* 添加响应式设计 */
@media (max-width: 768px) {
    .search-engines {
        padding: 10px;
    }
    
    .engine-item {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    #time {
        font-size: 64px;
    }
    
    .container {
        padding: 15px;
    }
}

/* 修改背景样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
    opacity: 1;
}

/* 购买推荐区域样式优化 */
.website-section .download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.website-section .download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.website-section .download-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.website-section .download-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.website-section .download-item:hover img {
    transform: scale(1.1);
}

.website-section .download-item span {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .website-section .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 顶部按钮容器样式 */
.top-buttons {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 0;
}

/* 左侧按钮组样式 */
.left-buttons {
    display: flex;
    gap: 12px;
}

/* 右侧赞助按钮样式 */
.sponsor-button {
    margin-left: 20px;
}

/* 统一按钮样式 */
.buy-button a, .server-button a, .contact-button a, .sponsor-button a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* 防止文字换行 */
}

/* 按钮图标样式 */
.buy-button img, .server-button img, .contact-button img, .sponsor-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-buttons {
        flex-wrap: wrap;
        padding: 6px;
    }
    
    .left-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .sponsor-button {
        margin-left: auto;
    }
    
    .buy-button a, .server-button a, .contact-button a, .sponsor-button a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 修改内容区域的动画 */
.container > div {
    /* 移除这个动画 */
    /*
    animation: fadeIn 0.8s ease-out forwards;
    */
}

/* 如果需要保留淡入效果，可以只对特定元素应用动画 */
.time-container,
.search-container,
.download-section,
.tutorial-section,
.auth-section,
.website-section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 确保顶部按钮不受动画影响 */
.top-buttons {
    opacity: 1 !important;
    transform: none !important;
} 