/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* 头部 */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

header h1 i {
    margin-right: 15px;
    color: #00d4ff;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

nav a.active {
    background-color: #00d4ff;
    font-weight: bold;
}

/* 主要内容 */
main {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #00d4ff, #0088ff);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 132, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
}

/* 特性 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 订阅预览 */
.preview {
    text-align: center;
    margin-bottom: 4rem;
}

.preview h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.subscription-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subscription-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.card-header img.icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid white;
}

.card-header h3 {
    font-size: 1.5rem;
    flex-grow: 1;
}

.card-body {
    padding: 1.5rem;
    text-align: left;
}

.description {
    color: #666;
    margin-bottom: 1rem;
}


.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 1rem;
}

.import {
    background: #28a745;
    color: white;
}

.secondary {
    background: #6c757d;
    color: white;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #00d4ff;
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* 响应式 */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    header h1 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    nav {
        gap: 0.8rem;
    }
    nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    .hero {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature {
        padding: 1.5rem;
    }
    .preview h2 {
        font-size: 1.8rem;
    }
    .subscription-list {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .subscription-card {
        border-radius: 12px;
    }
    .card-header {
        padding: 1.2rem;
    }
    .card-header img.icon {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
    }
    .card-header h3 {
        font-size: 1.3rem;
    }
    .card-body {
        padding: 1.2rem;
    }
    .description {
        font-size: 0.95rem;
    }
    .actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .actions .btn {
        width: 100%;
        padding: 0.9rem;
    }
}

/* 针对非常小的屏幕（如手机竖屏） */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.7rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .preview h2 {
        font-size: 1.5rem;
    }
    .card-header h3 {
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .card-header img.icon {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }
    .card-header h3 {
        font-size: 1.1rem;
    }
    .card-body {
        padding: 1rem;
    }
    .description {
        font-size: 0.9rem;
    }
    .actions .btn {
        padding: 0.8rem;
    }
}

/* 针对非常小的屏幕（如手机竖屏） */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.7rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .preview h2 {
        font-size: 1.5rem;
    }
    .card-header h3 {
        font-size: 1.2rem;
    }
}