:root {
    --primary: #ff6700;
    --primary-light: #ff9a44;
    --primary-dark: #e05c00;
    --secondary: #fff8f0;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --success: #00b42a;
    --warning: #ff7d00;
    --danger: #f53f3f;
    --border: #e5e6eb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body { background-color: #f7f8fa; color: var(--text-primary); line-height: 1.5; }

.container { max-width: 1440px; }

.logo { font-size: 24px; font-weight: 700; color: var(--primary); display: flex; align-items: center; }

.logo img { height: 40px; margin-right: 10px; }

.user-info { display: flex; align-items: center; }

.user-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--secondary); margin-right: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: bold; }

.page-title { font-size: 28px; font-weight: 600; margin-bottom: 10px; }

.page-desc { color: var(--text-secondary); margin-bottom: 30px; }

.recharge-container { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1440px; margin: 0 auto; }

.plans-section { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }

.section-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; }

.section-title i { margin-right: 8px; color: var(--primary); }

.plan-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

.plan-tab { padding: 12px 20px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s ease; display: inline-block; }

.plan-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.plan-tab:hover:not(.active) { color: var(--text-primary); border-bottom-color: var(--border); }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.plan-card {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-size: cover;
    background-position: center;
    text-align: center; /* 容器内文字居中 */
}

/* 注册会员背景 */
.template-plans .plan-card:nth-child(1) {
    background-image: url('../image/vip/bj1.jpg');
}

/* 月费会员背景 */
.template-plans .plan-card:nth-child(2) {
    background-image: url('../image/vip/bj2.jpg');
}

/* 年费会员背景 */
.template-plans .plan-card:nth-child(3) {
    background-image: url('../image/vip/bj3.jpg');
}

/* 终身会员背景 */
.template-plans .plan-card:nth-child(4) {
    background-image: url('../image/vip/bj4.jpg');
}

/* 素材会员背景图片 */
/* 注册用户背景 */
.material-plans .plan-card:nth-child(1) {
    background-image: url('../image/vip/bj1.jpg');
}

/* 月费会员背景 */
.material-plans .plan-card:nth-child(2) {
    background-image: url('../image/vip/bj2.jpg');
}

/* 年费会员背景 */
.material-plans .plan-card:nth-child(3) {
    background-image: url('../image/vip/bj3.jpg');
}

/* 终身会员背景 */
.material-plans .plan-card:nth-child(4) {
    background-image: url('../image/vip/bj4.jpg');
}

.plan-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #e05c00;
    margin-bottom: 8px;
    text-align: center;
}

.plan-period {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.plan-feature {
    display: flex;
    align-items: center;
    justify-content: center; /* 特性项内容居中 */
    font-size: 14px;
    margin-bottom: 12px;
    color: #666;
}

.plan-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); 
    border-color: #d0d0d0; 
}

.plan-card.selected { 
    border-color: #e05c00; 

}

.plan-card.recommended { 
    border: 2px solid #e05c00; 
    /* 取消阴影效果 */
    box-shadow: none; 
    transform: translateY(-12px); 
}

.plan-tag { 
    position: absolute; 
    top: -12px; 
    left: 75%; 
    transform: translateX(-50%); 
    background-color: #ff6700; 
    color: white; 
    font-size: 12px; 
    padding: 4px 16px; 
    border-radius: 20px; 
    font-weight: 500; 
}

.plan-name { 
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 15px; 
    color: #333; 
}

.plan-price { 
    font-size: 32px; 
    font-weight: 700; 
    color: #e05c00; 
    margin-bottom: 8px; 
}

.plan-period { 
    color: #888; 
    font-size: 14px; 
    margin-bottom: 20px; 
}

.plan-features { 
    margin-bottom: 60px; 
    flex-grow: 1; 
}

.plan-feature { 
    display: flex; 
    align-items: center; 
    font-size: 14px; 
    margin-bottom: 12px; 
    color: #666; 
}

.subscribe-btn { 
    width: 100%; 
    margin-top: auto; 
    padding: 14px 0; 
    border-radius: 8px; 
    font-size: 16px; 
    transition: all 0.3s ease; 
    background-color: #f5f5f5; 
    color: #333; 
}

.recommended-btn { 
    background-color: #e05c00; 
    color: white; 
}

.recommended-btn:hover { 
    background-color: #3a5fe8; 
    transform: translateY(-2px); 
}

/* 切换动画 */
.template-plans, .material-plans { 
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.template-plans { 
    opacity: 1; 
    transform: translateX(0);
}

.template-plans.hidden { 
    opacity: 0; 
    transform: translateX(-20px);
}

.material-plans { 
    opacity: 0; 
    transform: translateX(20px);
}

.material-plans.visible { 
    opacity: 1; 
    transform: translateX(0);
}
.plan-feature i { color: var(--success); margin-right: 8px; }

.vip-benefits { margin-top: 40px; background: var(--white); border-radius: 16px; padding: 25px; box-shadow: var(--shadow); overflow-x: auto; }

.benefits-table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 640px; }

.benefits-table th, .benefits-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); }

.benefits-table th { background-color: var(--secondary); font-weight: 600; }

.benefits-table tr:hover { background-color: rgba(255, 103, 0, 0.02); }

.recent-upgrades { margin-top: 40px; background: var(--white); border-radius: 16px; padding: 25px; box-shadow: var(--shadow); }

.upgrades-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.upgrade-item { padding: 8px 18px; background-color: var(--secondary); border-radius: 20px; font-size: 12px; color: var(--text-secondary); }

/* 自定义积分充值样式 */
.custom-recharge-section {
    margin-top: 35px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.custom-recharge-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.custom-recharge-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.custom-recharge-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.recharge-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
}

.recharge-description p {
    margin-bottom: 8px;
}

.recharge-description p:last-child {
    margin-bottom: 0;
}

.custom-recharge-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

#custom-amount {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 移动端响应式调整 */
@media (max-width: 576px) {
    .page-title { font-size: 24px; }
    .page-desc { font-size: 14px; }
    .section-title { font-size: 16px; }
    .plan-name { font-size: 16px; }
    .plan-price { font-size: 22px; }
    .plans-grid { grid-template-columns: 1fr; }
    .container { padding: 15px; }
    header { padding: 15px 0; margin-bottom: 20px; }
    .logo { font-size: 20px; }
    .logo img { height: 30px; }
}

/* 平板响应式调整 */
@media (min-width: 577px) and (max-width: 992px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 桌面响应式调整 */
@media (min-width: 993px) {
    .plans-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 表格在小屏幕上的响应式处理 */
@media (max-width: 768px) {
    .benefits-table-container { overflow-x: auto; }
    .benefits-table { min-width: 640px; }
}

/* FAQ部分样式 */
.faq-section {
    margin-top: 40px;
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.faq-list {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    color: var(--primary);
}

.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question::after {
    content: '-';
}