html {
    overflow-x: hidden;
}

:root {
    --gradient-blue: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-gold: linear-gradient(135deg, #BF953F 0%, #FCF6BA 100%);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #1c2841 0%, #2c3e50 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.tab-btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: skew(-20deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.tab-btn span {
    display: block;
    transform: skew(20deg);
}

.tab-btn:first-child {
    border-radius: 30px 0 0 30px;
}

.tab-btn:last-child {
    border-radius: 0 30px 30px 0;
}

.tab-btn.active {
    background: var(--gradient-gold);
    color: #000;
    transform: skew(-20deg) translateY(-5px);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.3);
    z-index: 2;
    flex: 2;
    font-size: 20px;
    padding: 20px 40px;
}

.tab-btn:not(.active) {
    opacity: 0.7;
    flex: 1;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.membership-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.membership-container.active {
    display: grid;
}

.plan {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-10px);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.price {
    font-size: 36px;
    color: #BF953F;
    margin: 10px 0;
    font-weight: bold;
}

.benefits {
    margin-bottom: 30px;
}

.benefits h3 {
    color: #BF953F;
    margin-bottom: 15px;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #BF953F;
}

.join-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: var(--gradient-gold);
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover {
    transform: scale(1.05);
}

.popular, .premium {
    border: 2px solid #BF953F;
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.3);
}

.popular-tag, .premium-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-gold);
    padding: 5px 15px;
    border-radius: 15px;
    color: #000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .membership-container {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tab-btn.active {
        font-size: 16px;
        padding: 15px 25px;
    }

    .plan {
        margin-bottom: 20px;
    }

    .tab-btn span {
        white-space: nowrap;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .tab-btn.active {
        font-size: 15px;
        padding: 12px 20px;
    }
}

.back-button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(28, 40, 65, 1) 0%, rgba(28, 40, 65, 0.9) 50%, rgba(28, 40, 65, 0) 100%);
    z-index: 100;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-button-container {
        padding: 15px;
    }
    
    .back-btn {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 180px;
    }
}

.switch-button-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 40px auto 0;
}

.switch-btn {
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: skew(-20deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.switch-btn span {
    display: block;
    transform: skew(20deg);
}

/* 修改切换按钮的圆角样式 */
.switch-btn:first-child {
    border-radius: 30px 0 0 30px;
}

.switch-btn:last-child {
    border-radius: 0 30px 30px 0;
}

/* 当前页面的按钮样式 */
.switch-btn.current-basic {
    flex: 1;
    background: var(--gradient-gold);
    color: #000;
    transform: skew(-20deg) translateY(-5px);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.3);
}

.switch-btn.current-premium {
    flex: 1;
    background: var(--gradient-gold);
    color: #000;
    transform: skew(-20deg) translateY(-5px);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.3);
}

/* 切换按钮样式 */
.switch-btn.to-premium {
    flex: 2;
    background: var(--gradient-blue);
    color: #fff;
    transform: skew(-20deg) translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.switch-btn.to-basic {
    flex: 2;
    background: var(--gradient-blue);
    color: #fff;
    transform: skew(-20deg) translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .switch-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .switch-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* 添加顶部返回按钮样式 */
.top-back-button {
    text-align: center;
    margin-bottom: 30px;
}

.top-back-button .back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.top-back-button .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-back-button {
        margin-bottom: 20px;
    }
    
    .top-back-button .back-btn {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 180px;
    }
} 