/* 主页特定样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeIn 1s ease-out;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 1.2s ease-out;
}

.hero-features p {
    font-size: 18px;
    opacity: 0.9;
}

/* 导航样式 */
.nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
}

/* 用户网格 */
.user-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.user-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
}

.user-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.user-card ul {
    list-style: none;
}

.user-card li {
    margin-bottom: 10px;
    color: var(--light-text);
}

/* 统计数据 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

/* 套餐卡片 */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.package-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.package-card.featured::before {
    content: "推荐";
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.package-header {
    text-align: center;
    margin-bottom: 30px;
}

.package-price {
    margin: 20px 0;
}

.package-price .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.package-price .period {
    color: var(--light-text);
}

.package-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    margin-bottom: 15px;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.package-features li::before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 10px;
}

.package-footer {
    text-align: center;
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .package-grid,
    .user-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .package-grid,
    .user-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 5px;
    }
}

/* 侧边广告 */
.side-ads {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 100%;
    pointer-events: none;
}

.side-ads .ad-item {
    position: fixed;
    width: 240px;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.side-ads .ad-item:hover {
    transform: scale(1.05);
}

.side-ads .ad-item:first-child {
    left: 20px;
}

.side-ads .ad-item:last-child {
    right: 20px;
}

.ad-front, .ad-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ad-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border-radius: 12px;
    z-index: 1;
}

.ad-back {
    transform: rotateY(180deg);
    background: white;
    color: #333;
}

.ad-item.flipped .ad-front {
    transform: rotateY(180deg);
}

.ad-item.flipped .ad-back {
    transform: rotateY(0);
}

.ad-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.ad-item p {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.ad-item img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ad-item:hover img {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .side-ads .ad-item {
        width: 220px;
        height: 300px;
    }
    
    .ad-item img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 1200px) {
    .side-ads .ad-item {
        width: 200px;
        height: 280px;
    }
    
    .ad-item img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .side-ads {
        display: none;
    }
} 