:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #10b981;
    --accent-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --new-user: #059669;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray-light: #e2e8f0;
    --gray: #94a3b8;
    --gray-dark: #475569;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 头部样式 */
header {
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
}

.header-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin-bottom: 24px;
}

/* 平台卡片 */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.platform-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.platform-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    background-color: white;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.platform-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.beian-tag {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.card-poster {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.platform-card:hover .card-poster img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.card-content {
    padding: 20px 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-section {
    margin-bottom: 18px;
}

.plan-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-count {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.plan-section-title i {
    margin-right: 8px;
    color: var(--accent);
    flex-shrink: 0;
}

.plans-list {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 4px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 6px;
}

.plan-config {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.plan-name {
    font-weight: 600;
    color: var(--dark);
    min-width: 60px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.plan-specs {
    color: var(--gray-dark);
    font-size: 0.85rem;
    margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.plan-specs span {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 500;
}

.plan-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 8px;
}

.plan-price small {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.new-user-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background-color: var(--new-user);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.platform-desc {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.9rem;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.features {
    display: flex;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.feature i {
    margin-right: 4px;
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.btn i {
    margin-left: 6px;
}

/* 展开按钮样式 */
.expand-btn {
    display: none;
    width: 100%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.expand-btn:hover {
    background: rgba(37, 99, 235, 0.12);
}

.expand-btn i {
    transition: var(--transition);
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* 推荐区域 */
.recommendation {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: var(--radius);
    padding: 40px 24px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.recommendation::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0) 70%);
    border-radius: 50%;
}

.recommendation h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.recommendation p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 30px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.tip-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tip-card i {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.tip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: white;
    padding: 30px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }
    
    .recommendation h2 {
        font-size: 1.6rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 16px 16px 0;
    }
    
    .card-content {
        padding: 16px 16px 20px;
    }
    
    /* 手机端套餐优化 - 确保一行显示 */
    .plan-item {
        padding: 10px;
        flex-wrap: nowrap;
    }
    
    .plan-name {
        min-width: 50px;
        font-size: 0.85rem;
    }
    
    .plan-specs {
        margin-left: 8px;
        font-size: 0.8rem;
        overflow: visible;
        white-space: nowrap;
    }
    
    .plan-specs span {
        padding: 2px 4px;
        margin-right: 3px;
        font-size: 0.75rem;
    }
    
    .plan-price {
        font-size: 0.9rem;
        margin-left: 6px;
        white-space: nowrap;
    }
    
    .plan-price small {
        font-size: 0.7rem;
    }
    
    .new-user-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
        top: -6px;
    }
    
    /* 手机端按钮优化 */
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .features {
        gap: 10px;
    }
    
    .feature {
        font-size: 0.8rem;
    }
    
    /* 手机端页脚优化 - 减小尺寸 */
    footer {
        padding: 24px 0 18px;
    }
    
    .footer-logo {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
        margin-bottom: 16px;
        padding: 0 10px;
    }
    
    .disclaimer {
        font-size: 0.75rem;
        margin-top: 16px;
        padding-top: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 手机端头部高度减小 */
    header {
        padding: 30px 0 24px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    /* 手机端Logo优化 */
    .platform-logo {
        width: 45px;
        height: 45px;
    }
    
    /* 手机端套餐折叠功能 */
    .expand-btn {
        display: flex;
    }
    
    /* 默认隐藏第三、第四个套餐 */
    .plan-item:nth-child(n+3) {
        display: none;
    }
    
    /* 展开状态显示所有套餐 */
    .plans-list.expanded .plan-item:nth-child(n+3) {
        display: flex !important;
    }
}

/* 响应式设计 - 小手机 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .card-poster {
        height: 140px;
    }
    
    .platform-info h3 {
        font-size: 1.2rem;
    }
    
    /* 超小屏幕进一步优化套餐显示 */
    .plan-specs span {
        padding: 1px 3px;
        margin-right: 2px;
        font-size: 0.7rem;
    }
    
    .plan-name {
        min-width: 45px;
        font-size: 0.8rem;
    }
    
    .plan-price {
        font-size: 0.85rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .features {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 小手机页脚进一步优化 */
    footer {
        padding: 20px 0 16px;
    }
    
    .footer-logo {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .footer-links {
        gap: 8px;
        margin-bottom: 14px;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-content p {
        font-size: 0.8rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }
    
    .disclaimer {
        font-size: 0.7rem;
        margin-top: 14px;
        padding-top: 14px;
        line-height: 1.4;
    }
    
    .disclaimer p {
        margin-top: 6px;
        font-size: 0.7rem;
    }
    
    /* 小手机Logo优化 */
    .platform-logo {
        width: 42px;
        height: 42px;
    }
}

/* 响应式设计 - 超小手机屏幕 */
@media (max-width: 360px) {
    .plan-specs span {
        font-size: 0.65rem;
        padding: 1px 2px;
    }
    
    .plan-name {
        min-width: 40px;
        font-size: 0.75rem;
    }
    
    .plan-price {
        font-size: 0.8rem;
    }
    
    .plan-price small {
        font-size: 0.65rem;
    }
    
    .platform-info h3 {
        font-size: 1.1rem;
    }
    
    .platform-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* 超小手机页脚优化 */
    footer {
        padding: 18px 0 14px;
    }
    
    .footer-logo {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .footer-content p {
        font-size: 0.75rem;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .disclaimer {
        padding-left: 5px;
        padding-right: 5px;
        font-size: 0.65rem;
    }
    
    .disclaimer p {
        font-size: 0.65rem;
        margin-top: 5px;
    }
    
    /* 超小手机Logo优化 */
    .platform-logo {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
}