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

body {
    font-family: 'Times New Roman', 'SimSun', serif;
    line-height: 1.0;
    color: #e0e0e0;
    background-color: #000000;
    background-image:
        radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 500px 500px, 300px 300px;
    background-position: 0 0, 25px 25px;
}

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

/* 头部样式 */
.header {
    background-color: transparent;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
    opacity: 0.4;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.9);
}

.header:hover::before {
    opacity: 0.6;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 35px;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.nav a:hover {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* 搜索区域 */
.search-section {
    background-color: transparent;
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: 70px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.search-box:hover {
    transform: translateZ(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    font-size: 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}

.search-box button:hover {
    background-color: #2980b9;
    transform: scale(1.02);
}

.search-box button:active {
    transform: scale(0.98);
}

/* 搜索下拉框 */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 25px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    display: none;
}

.search-dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #333;
}

.search-dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.search-dropdown-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #3498db;
}

.search-dropdown-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.search-dropdown-no-result {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 软件分类 */
.category-section {
    padding: 80px 20px;
}

.category-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.category-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px 30px 40px 30px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    text-decoration: none;
    transform-style: preserve-3d;
    transform: translateZ(0);
    position: relative;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    border-radius: 15px;
    transform: translateZ(-10px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-8px) translateZ(15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: rgba(52, 152, 219, 0.15);
}

.category-item:hover::before {
    transform: translateZ(-15px);
    opacity: 0.8;
}

.category-item h3 {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #3498db;
    font-weight: bold;
    flex-shrink: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.3),
        0 0 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(5px) translateY(2px);
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.category-item h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 8px;
    transform: translateZ(-1px);
    opacity: 0.6;
}

.category-item:hover h3 {
    transform: translateZ(10px) translateY(0) scale(1.05);
    box-shadow:
        0 5px 0 rgba(0, 0, 0, 0.4),
        0 10px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

/* 双倍高度的分类项 */
.category-item.double-height {
    padding: 120px 30px;
}

.category-item p {
    font-size: 20px;
    color: #b0b0b0;
    line-height: 1.8;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-weight: bold;
    font-family: 'SimSun', serif;
    text-shadow: 0 0 8px rgba(176, 176, 176, 0.3);
    transition: all 0.3s ease;
}

.category-item:hover p {
    text-shadow: 0 0 12px rgba(176, 176, 176, 0.5);
    color: #e0e0e0;
}

/* 热门软件 */
.hot-section {
    padding: 80px 20px;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hot-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.software-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.software-item {
    background-color: rgba(255, 255, 255, 0.05);
    width: calc(25% - 15px);
    min-width: 200px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    position: relative;
}

.software-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    border-radius: 15px;
    transform: translateZ(-10px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.software-item:hover {
    transform: translateY(-8px) translateZ(15px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.software-item:hover::before {
    transform: translateZ(-15px);
    opacity: 0.8;
}

.software-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-icon img {
    max-width: 70px;
    max-height: 70px;
}

.software-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: bold;
}

.software-item p {
    color: #b0b0b0;
    margin-bottom: 20px;
    font-size: 16px;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #2980b9;
}

/* 关于我们 */
.about-section {
    padding: 80px 20px;
    text-align: center;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1), transparent 70%);
    transform: translateZ(-20px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.about-section:hover::before {
    transform: translateZ(-15px) scale(1.05);
    opacity: 0.8;
}

.about-section h2 {
    font-size: 40px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateZ(10px);
    transition: transform 0.3s ease;
}

.about-section:hover h2 {
    transform: translateZ(15px) scale(1.02);
}

.about-section p {
    font-size: 18px;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    transform: translateZ(5px);
    transition: transform 0.3s ease;
}

.about-section:hover p {
    transform: translateZ(10px);
}

/* 底部样式 */
.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: #b0b0b0;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
    transform: translateZ(0);
    position: relative;
    transition: transform 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    transform: translateZ(-10px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer:hover {
    transform: translateZ(5px);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.9);
}

.footer:hover::before {
    transform: translateZ(-8px);
    opacity: 0.8;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #e0e0e0;
    transform: translateZ(2px);
    transition: transform 0.3s ease;
}

.footer:hover .footer-info p {
    transform: translateZ(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 10px 20px;
    }

    .nav li {
        margin-left: 20px;
        margin-right: 20px;
    }

    .search-section {
        padding: 50px 20px 30px;
    }

    .search-box {
        flex-direction: row;
        max-width: 100%;
    }

    .search-box input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-box button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .category-grid,
    .software-grid {
        flex-direction: row;
    }

    .software-item {
        width: calc(50% - 10px);
        min-width: 150px;
        margin-bottom: 20px;
    }

    .category-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .nav ul {
        flex-direction: column;
        text-align: center;
    }

    .nav li {
        margin: 10px 0;
    }

    .search-section h2 {
        font-size: 24px;
    }

    .category-section h2,
    .hot-section h2,
    .about-section h2 {
        font-size: 24px;
    }

    /* 装机必备页面响应式 */
    .software-item {
        width: 100%;
        min-width: auto;
    }
}

/* 装机必备页面样式 */
.essentials-section {
    padding: 100px 20px 50px;
}

.essentials-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    text-align: center;
    font-size: 36px;
}

.essentials-subtitle {
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 60px;
    font-size: 18px;
}

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

/* 一级目录纵向排列 */
.essentials-category {
    margin-bottom: 50px;
    padding: 0px;
}

.essentials-category h3 {
    color: #3498db;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

/* 返回首页按钮 */
.back-to-home {
    text-align: center;
    margin-top: 60px;
}

.back-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}

.back-btn:hover {
    background-color: #2980b9;
    transform: scale(1.02);
}