/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    padding: 15px 20px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo-icon {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.search-box {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.search-box input {
    width: 280px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 英雄区 */
.hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
    align-items: start;
}

/* 左侧内容区 */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 左侧轮播图 */
.hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    background: white;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.carousel-slide:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.carousel-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-desc {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.carousel-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.carousel-feature {
    background: rgba(16, 185, 129, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #10b981;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: white;
    transform: scale(1.1);
}

/* 英雄区内安全承诺栏 */
.hero-security {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.hero-security .security-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

.hero-security .security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.hero-security .security-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.hero-security .security-text {
    flex: 1;
}

.hero-security .security-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

.hero-security .security-desc {
    font-size: 11px;
    color: #6b7280;
}

.hero-security .security-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

/* 右侧装机必备 */
.hero-essential {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.essential-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #ecfdf5;
    padding-bottom: 15px;
}

.essential-title {
    font-size: 22px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 5px;
}

.essential-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.essential-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.essential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f0fdf4;
    transition: all 0.3s ease;
}

.essential-item:hover {
    background: #dcfce7;
    transform: translateX(5px);
}

.essential-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.essential-info {
    flex: 1;
    min-width: 0;
}

.essential-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.essential-meta {
    font-size: 12px;
    color: #6b7280;
}

.essential-install-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.essential-install-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 分类导航 */
.category-section {
    padding: 40px 0;
    background: #f0fdf4;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #1f2937;
    flex-shrink: 0;
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.category-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: white;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.category-tab:hover {
    background: #dcfce7;
    color: #059669;
}

.category-tab.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* 软件列表 */
.app-section {
    padding: 40px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.app-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.app-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-category {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

.app-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.app-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.app-tag {
    background: #f0fdf4;
    color: #059669;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.app-footer {
    display: flex;
    gap: 10px;
}

.app-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.app-btn-download:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.app-btn-detail {
    background: #f0fdf4;
    color: #059669;
}

.app-btn-detail:hover {
    background: #dcfce7;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #a7f3d0;
}

.footer-text {
    font-size: 14px;
    color: #d1fae5;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #d1fae5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #d1fae5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: #a7f3d0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .carousel-container {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 260px;
    }

    .carousel-title {
        font-size: 24px;
    }

    .carousel-desc {
        font-size: 14px;
    }

    .security-content {
        flex-direction: column;
    }

    .security-divider {
        display: none;
    }

    .category-tabs {
        display: none;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 180px;
    }
}
