/**
 * 会员支付页面样式
 * 文件位置：style/membership-payment.css
 */

/* ============================================
   支付页面Hero区域
   ============================================ */
.payment-hero {
    min-height: 300px;
}

.payment-hero .subhero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================
   支付内容区域
   ============================================ */
.payment-content-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   会员等级卡片
   ============================================ */
.membership-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

/* 确保三个卡片都能显示 */
.membership-plans-grid .membership-plan-card {
    min-width: 0; /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
}

/* 免费会员特殊样式 */
.free-membership-note {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.free-note-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.btn-free-register {
    display: inline-block;
    background: #f4821f;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-free-register:hover {
    background: #e6731a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 130, 31, 0.3);
    color: white;
    text-decoration: none;
}

.membership-plan-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.membership-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.membership-plan-card.featured {
    border: 3px solid #f4821f;
    transform: scale(1.05);
}

.membership-plan-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #f4821f;
    color: white;
    padding: 5px 40px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #f4821f;
}

.price-unit {
    font-size: 1.2rem;
    color: #666;
}

.plan-savings {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

/* ============================================
   会员权益列表
   ============================================ */
.plan-features {
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #f4821f;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* ============================================
   支付方式
   ============================================ */
.plan-payment {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.payment-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.payment-method-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.method-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.method-header i {
    font-size: 1.5rem;
}

.method-header .fa-weixin {
    color: #09bb07;
}

.method-header .fa-alipay {
    color: #1677ff;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-img {
    width: 200px;
    height: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.qr-code-img:hover {
    transform: scale(1.1);
}

.qr-tip {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ============================================
   侧边栏
   ============================================ */
/* 确保侧边栏卡片不会被截断 */
.sidebar-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4821f;
}

/* ============================================
   支付流程步骤
   ============================================ */
.process-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-steps li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.process-steps li:last-child {
    border-bottom: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f4821f;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    font-size: 1rem;
    color: #555;
}

/* ============================================
   联系方式
   ============================================ */
.contact-methods {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: #f4821f;
    width: 30px;
    margin-right: 15px;
    text-align: center;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #f4821f;
}

.contact-note {
    background: #fff8f0;
    border-left: 4px solid #f4821f;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    flex-grow: 1;
}

.contact-note p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.contact-note ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #555;
    word-wrap: break-word;
}

.contact-note ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.highlight-text {
    color: #f4821f;
    font-weight: 600;
}

/* ============================================
   常见问题
   ============================================ */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .membership-plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .membership-plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .membership-plan-card.featured {
        transform: scale(1);
    }
    
    .membership-plan-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .membership-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .payment-hero .subhero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .qr-code-img {
        width: 180px;
        height: 180px;
    }
    
    .payment-methods {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .payment-content-section {
        padding: 40px 0;
    }
    
    .membership-plan-card {
        padding: 20px;
    }
    
    .plan-price {
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-img {
        width: 150px;
        height: 150px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.membership-plan-card {
    animation: fadeInUp 0.6s ease-out;
}

.membership-plan-card:nth-child(2) {
    animation-delay: 0.2s;
}

.sidebar-card {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sidebar-card:nth-child(3) {
    animation-delay: 0.2s;
}
