/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.renewal-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: none;
}

/* 顶部标签样式 */
.tab-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active {
    color: #25AE78;
    background: rgba(37, 174, 120, 0.1);
    font-weight: bold;
}

/* 机器码输入区域 */
.machine-code-section {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    min-width: 280px;
}

.machine-code-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    min-width: 300px;
}

.confirm-btn {
    padding: 0.6rem 1.2rem;
    background: #25AE78;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.confirm-btn:hover {
    background: #1a8c5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 174, 120, 0.2);
}

/* 会员卡片样式 */
.membership-cards {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
    width: 100%;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
    max-width: calc(20% - 1rem);
    height: 480px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.price {
    font-size: 1.6rem;
    color: #25AE78;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.price span {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body ul {
    list-style: none;
    margin-bottom: 1rem;
    text-align: center;
}

.card-body li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

.card-body i {
    flex-shrink: 0;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.card-body i.fa-check {
    color: #25AE78;
}

.card-body i.fa-times {
    color: #ccc;
}

.purchase-btn {
    width: 100%;
    padding: 0.8rem;
    background: #25AE78;
    color: white;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    border-radius: 6px;
    font-weight: 500;
}

.purchase-btn:hover {
    background: #1a8c5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 174, 120, 0.2);
}

/* 标签内容切换 */
.tab-content {
    display: none;
    position: relative;
    margin-top: 0.5rem;
}

.tab-content.active {
    display: block;
}

/* 系统扩容标签页特殊样式 */
.tab-content[data-tab="expansion"] {
    padding-top: 0;
}

/* 响应式设计 */
@media (max-width: 1600px) {
    .renewal-container {
        margin: 0.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 1200px) {
    .membership-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        margin-bottom: 1rem;
    }
}

@media (max-width: 900px) {
    .card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .renewal-container {
        margin: 0;
        padding: 1rem;
    }

    .tab-header {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .tab-buttons {
        width: 100%;
        justify-content: center;
    }

    .tab-btn {
        width: auto;
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .machine-code-section {
        flex-direction: column;
        width: 100%;
        padding: 0.8rem;
    }

    .machine-code-input {
        width: 100%;
        min-width: unset;
        margin-bottom: 0.5rem;
    }

    .confirm-btn {
        width: 100%;
    }

    .membership-cards {
        flex-direction: column;
        padding: 0;
    }

    .card {
        flex: 1;
        max-width: 100%;
        margin-bottom: 1rem;
        height: auto;
        min-height: 480px;
    }

    .card-body ul {
        padding: 0 1rem;
    }

    .card-body li {
        justify-content: flex-start;
        text-align: left;
    }

    .payment-content {
        width: 95%;
        padding: 1.5rem;
    }

    .qr-container {
        width: 180px;
        height: 180px;
    }

    .agreement-section {
        margin-top: 1rem;
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .renewal-container {
        padding: 0.5rem;
    }

    .tab-header {
        padding: 0 0.5rem;
    }

    .card {
        min-height: 450px;
    }

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

    .price {
        font-size: 1.4rem;
    }

    .card-body li {
        font-size: 0.85rem;
    }

    .renewal-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .payment-content {
        padding: 1rem;
    }

    .qr-container {
        width: 160px;
        height: 160px;
    }
}

/* 支付弹窗样式 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.payment-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.payment-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.payment-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.payment-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qr-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-tip {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.payment-amount {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.payment-amount span {
    color: #25AE78;
}

/* 续费按钮样式 */
.renewal-btn {
    background: linear-gradient(135deg, #25AE78 0%, #1a8c5f 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.renewal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 174, 120, 0.2);
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    margin-top: auto;
    text-align: center;
}

.agreement-section {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.agreement-text {
    font-size: 0.9rem;
    color: #666;
}

.agreement-text a {
    color: #25AE78;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-text a:hover {
    color: #1a8c5f;
    text-decoration: underline;
}