/* 轮播图样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 15px 30px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #ff5252;
}

/* 字体分类样式 */
.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.category-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0 10px 20px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.category-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.category-item p {
    color: #666;
    font-size: 14px;
}

/* 热门字体样式 */
.hot-fonts {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.view-more {
    color: #ff6b6b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #ff5252;
    text-decoration: underline;
}

.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.font-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.font-preview {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3vw, 28px);
    font-weight: 500;
    color: #333;
    transition: background-color 0.3s ease;
    overflow: hidden;
    padding: 15px;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.font-card:hover .font-preview {
    background-color: #e9e9e9;
}

.font-info {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.info-item {
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.font-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.font-actions .btn {
    flex: 1;
}

/* 会员专区样式 - 全新设计 */
.member-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.member-header {
    text-align: center;
    margin-bottom: 60px;
}

.member-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #764ba2;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.member-title {
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.member-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.member-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 会员特权卡片 */
.member-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.member-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.member-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.member-card.featured h3,
.member-card.featured p {
    color: #fff;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}

.member-card.featured .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.member-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.member-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 价格方案 */
.pricing-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #764ba2;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.pricing-card.popular .pricing-header h3 {
    color: #fff;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 24px;
    font-weight: bold;
}

.amount {
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
}

.period {
    font-size: 18px;
    color: #999;
}

.pricing-card.popular .period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-save {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-top: 10px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 35px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.pricing-card.popular .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #28a745;
    font-size: 16px;
}

.pricing-card.popular .pricing-features i {
    color: #ffd700;
}

.pricing-card .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
}

.pricing-card .btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.pricing-card .btn-outline:hover {
    background: #667eea;
    color: #fff;
}

.pricing-card.popular .btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #764ba2;
    border: none;
}

.pricing-card.popular .btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

/* 信任标识 */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #666;
}

.trust-item i {
    font-size: 24px;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        padding: 60px 0;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-input {
        border-radius: 10px 10px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 10px 10px;
    }
    
    .category-list {
        flex-direction: column;
        align-items: center;
    }
    
    .category-item {
        max-width: 100%;
        margin: 0 0 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .font-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .member-section {
        padding: 50px 0;
    }
    
    .member-title {
        font-size: 28px;
    }
    
    .member-subtitle {
        font-size: 16px;
    }
    
    .member-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .member-card {
        padding: 25px 15px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .member-card h3 {
        font-size: 16px;
    }
    
    .member-card p {
        font-size: 12px;
    }
    
    .pricing-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
        padding: 30px 25px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-5px);
    }
    
    .amount {
        font-size: 42px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .font-grid {
        grid-template-columns: 1fr;
    }
    
    .font-preview {
        height: 120px;
        font-size: 28px;
    }
    
    .member-title {
        font-size: 24px;
    }
    
    .member-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .pricing-features li {
        font-size: 14px;
    }
}
