/**
 * 子比主题会员插件 - 前端样式
 */

/* 通用样式 */
.zibll-membership-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 会员徽章 */
.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    vertical-align: middle;
    margin-left: 5px;
}

.member-badge-none {
    background-color: #95a5a6;
}

/* 会员状态区域 */
.membership-status-section {
    margin-bottom: 40px;
}

.membership-status-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.current-membership-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.membership-header {
    padding: 30px;
    text-align: center;
    color: #fff;
}

.membership-header i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.membership-header h3 {
    font-size: 24px;
    margin: 0;
}

.membership-details {
    padding: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.detail-item .label {
    color: #666;
}

.detail-item .value {
    font-weight: 500;
    color: #333;
}

.detail-item .status-active {
    color: #27ae60;
}

/* 非会员状态 */
.no-membership {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-membership-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-membership h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.no-membership p {
    color: #999;
    margin-bottom: 20px;
}

/* 会员等级网格 */
.membership-levels-section {
    margin-bottom: 40px;
}

.membership-levels-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.membership-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 等级卡片 */
.level-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.level-card.current {
    border: 2px solid #3498db;
}

.level-card.not-available {
    opacity: 0.6;
}

.level-card .level-header {
    padding: 30px;
    text-align: center;
    color: #fff;
    position: relative;
}

.level-card .level-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.level-card .level-name {
    font-size: 22px;
    margin: 0 0 10px 0;
}

.level-card .level-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.level-card .level-price .price {
    font-size: 32px;
    font-weight: bold;
}

.level-card .level-price .duration {
    font-size: 14px;
    opacity: 0.9;
}

.level-card .current-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.level-description {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.level-description p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.level-benefits {
    padding: 20px;
}

.level-benefits h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.level-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.level-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.level-benefits li:last-child {
    border-bottom: none;
}

.level-benefits li i {
    color: #27ae60;
    font-size: 16px;
    margin-top: 2px;
}

.benefit-info {
    display: flex;
    flex-direction: column;
}

.benefit-info strong {
    font-size: 14px;
    color: #333;
}

.benefit-info span {
    font-size: 12px;
    color: #999;
}

.level-action {
    padding: 20px;
    border-top: 1px solid #eee;
}

.level-action .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-disabled {
    background: #ecf0f1;
    color: #bdc3c7;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

/* 会员权益区域 */
.membership-benefits-section {
    margin-bottom: 40px;
}

.membership-benefits-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.benefit-item i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 订单记录 */
.membership-orders-section {
    margin-bottom: 40px;
}

.membership-orders-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.membership-orders-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-collapse: collapse;
}

.membership-orders-table th,
.membership-orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.membership-orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.membership-orders-table tr:last-child td {
    border-bottom: none;
}

.level-badge-small {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 内容限制提示 */
.zibll-membership-restricted {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.zibll-membership-restricted .restricted-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.zibll-membership-restricted h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.zibll-membership-restricted p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.zibll-membership-restricted .btn {
    background: #fff;
    color: #667eea;
    font-size: 16px;
    padding: 12px 30px;
}

.zibll-membership-restricted .btn:hover {
    background: #f8f9fa;
}

/* 会员专属内容 */
.member-exclusive-content {
    background: #f8f9fa;
    border-left: 4px solid #27ae60;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.member-content-locked,
.member-download-locked {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.member-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #27ae60;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.member-download-link:hover {
    background: #229954;
    color: #fff;
}

/* 会员对比表格 */
.zibll-membership-comparison {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.comparison-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.comparison-table th.current,
.comparison-table td.current {
    background: #e8f4fd;
}

.level-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.level-header .level-icon {
    font-size: 32px;
}

.level-header .level-name {
    font-size: 16px;
    font-weight: 600;
}

.level-header .level-price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
}

.level-header .level-price small {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.level-header .current-badge {
    background: #3498db;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.feature-column {
    text-align: left !important;
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature-name i {
    color: #3498db;
}

.feature-yes {
    color: #27ae60;
    font-size: 20px;
}

.feature-no {
    color: #e74c3c;
    font-size: 20px;
}

.value-text {
    color: #666;
}

.action-row td {
    padding: 20px 15px;
}

.action-row .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* 移动端卡片视图 */
.comparison-cards-mobile {
    display: none;
}

.comparison-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.comparison-card.current {
    border: 2px solid #3498db;
}

.comparison-card .card-header {
    padding: 25px;
    text-align: center;
    color: #fff;
    position: relative;
}

.comparison-card .card-header i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.comparison-card .card-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.comparison-card .card-price {
    font-size: 24px;
    font-weight: bold;
}

.comparison-card .card-price small {
    font-size: 14px;
    opacity: 0.9;
}

.comparison-card .current-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.comparison-card .card-features {
    padding: 20px;
}

.comparison-card .card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card .card-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.comparison-card .card-features li:last-child {
    border-bottom: none;
}

.comparison-card .feature-label {
    color: #666;
    font-size: 14px;
}

.comparison-card .card-action {
    padding: 20px;
    border-top: 1px solid #eee;
}

.comparison-card .card-action .btn {
    width: 100%;
}

/* 升级说明 */
.upgrade-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.upgrade-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.upgrade-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #666;
}

.upgrade-info li i {
    color: #27ae60;
}

/* 弹窗样式 */
.zibll-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

/* 当前会员信息 */
.current-membership-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.current-membership-info h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.current-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.remaining-days {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* 等级选择 */
.level-selection {
    margin-bottom: 25px;
}

.level-selection h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.level-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.level-option:hover {
    border-color: #3498db;
}

.level-option.selected {
    border-color: #3498db;
    background: #f0f7ff;
}

.level-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.level-option .level-icon {
    font-size: 24px;
}

.level-option .level-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.level-option .level-name {
    font-weight: 500;
    color: #333;
}

.level-option .level-price {
    font-size: 14px;
    color: #e74c3c;
}

.level-option .current-label {
    background: #95a5a6;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 价格信息 */
.price-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.price-info h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-row.discount {
    color: #27ae60;
}

.price-row.discount-info {
    font-size: 12px;
    color: #666;
}

.price-row.total {
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: bold;
}

.price-row .original-price {
    text-decoration: line-through;
    color: #999;
}

.price-row .final-price {
    color: #e74c3c;
    font-size: 24px;
}

/* 支付方式 */
.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #3498db;
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option .payment-icon {
    font-size: 24px;
    color: #3498db;
}

.payment-option .payment-name {
    flex: 1;
    font-weight: 500;
}

/* 成功/失败弹窗 */
.success-content,
.error-content {
    text-align: center;
    padding: 40px !important;
}

.success-icon,
.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-icon {
    color: #27ae60;
}

.error-icon {
    color: #e74c3c;
}

.success-content h3,
.error-content h3 {
    margin-bottom: 15px;
}

.success-content p,
.error-content p {
    color: #666;
    margin-bottom: 25px;
}

/* 用户中心会员信息 */
.zibll-user-membership-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.zibll-user-membership-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.membership-status {
    padding: 15px;
    border-radius: 8px;
}

.membership-status.active {
    background: #d4edda;
}

.membership-status.inactive {
    background: #f8f9fa;
    text-align: center;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}

.membership-expiry {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

.membership-end-date {
    margin: 5px 0 0 0;
    color: #999;
    font-size: 12px;
}

.upgrade-option {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.upgrade-option p {
    margin: 0 0 10px 0;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .membership-levels-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-wrapper {
        display: none;
    }
    
    .comparison-cards-mobile {
        display: block;
    }
    
    .membership-orders-table {
        font-size: 12px;
    }
    
    .membership-orders-table th,
    .membership-orders-table td {
        padding: 10px 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .level-option {
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zibll-modal .modal-content {
    animation: fadeIn 0.3s ease;
}

/* 加载状态 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 前台发文表单样式 ==================== */

.zibll-frontend-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.post-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.post-form-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
}

.post-form-header h2 i {
    color: #3498db;
    margin-right: 10px;
}

.post-form-header .form-description {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.zibll-post-form .form-group {
    margin-bottom: 25px;
}

.zibll-post-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.zibll-post-form label i {
    color: #3498db;
    margin-right: 6px;
    width: 16px;
}

.zibll-post-form .required {
    color: #e74c3c;
}

.zibll-post-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.zibll-post-form .form-control:focus {
    border-color: #3498db;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.zibll-post-form input.form-control {
    height: 48px;
}

.zibll-post-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.zibll-post-form select.form-control {
    height: 48px;
    cursor: pointer;
}

.zibll-post-form .field-description {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* 编辑器样式调整 */
.zibll-post-form .wp-editor-wrap {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.zibll-post-form .wp-editor-wrap:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 会员权限设置区域 */
.membership-settings-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #dee2e6;
}

.membership-settings-section .section-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.membership-settings-section .section-title i {
    color: #f1c40f;
    margin-right: 8px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 快捷插入工具 */
.quick-insert-tools {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ced4da;
}

.quick-insert-tools label {
    margin-bottom: 12px;
}

.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.tool-buttons .btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.tool-buttons .btn-outline:hover {
    background: #3498db;
    color: #fff;
}

/* 提交按钮区域 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.form-actions .btn {
    padding: 14px 40px;
    font-size: 16px;
}

.form-actions .btn-lg {
    padding: 16px 50px;
}

.form-actions .btn-outline {
    background: transparent;
    border: 2px solid #95a5a6;
    color: #95a5a6;
}

.form-actions .btn-outline:hover {
    background: #95a5a6;
    color: #fff;
}

/* 提示信息 */
.form-notice {
    margin-top: 20px;
    padding: 15px 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 0 8px 8px 0;
    color: #1976d2;
    font-size: 14px;
}

.form-notice i {
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .zibll-frontend-post-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .post-form-header h2 {
        font-size: 22px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .tool-buttons {
        flex-direction: column;
    }
    
    .tool-buttons .btn {
        width: 100%;
    }
}

/* ==================== 优化版会员对比页样式 ==================== */

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
}

.comparison-title {
    font-size: 32px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.comparison-title i {
    font-size: 36px;
}

.comparison-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.renewal-notice {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.renewal-notice i {
    font-size: 20px;
}

/* 当前会员状态 */
.current-membership-status {
    margin-bottom: 40px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    flex-shrink: 0;
}

.status-info h4 {
    font-size: 14px;
    color: #999;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-level-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.expiry-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.remaining-days {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #27ae60;
    font-weight: 500;
}

.end-date {
    color: #999;
    font-size: 14px;
}

.lifetime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 对比表格优化 */
.comparison-table-wrapper {
    margin-bottom: 50px;
}

.comparison-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table th {
    padding: 25px 15px;
}

.comparison-table th.level-column {
    min-width: 160px;
}

.comparison-table th.level-column.current {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.level-header .level-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.level-header .level-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.level-header .level-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.level-header .price-value {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
}

.level-header .duration {
    font-size: 13px;
    color: #999;
}

.level-header .current-badge {
    margin-top: 10px;
    background: #3498db;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.level-header .gift-badge {
    margin-top: 8px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 功能行 */
.feature-row:hover {
    background: #f8f9fa;
}

.feature-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-info i {
    color: #3498db;
    font-size: 16px;
}

.feature-value {
    font-size: 15px;
}

.feature-value .free {
    color: #27ae60;
    font-weight: 500;
}

.feature-value .price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 18px;
}

.feature-value .lifetime {
    color: #9b59b6;
    font-weight: 500;
}

.feature-value .lifetime i {
    margin-right: 4px;
}

.feature-yes {
    color: #27ae60;
    font-size: 24px;
}

.feature-no {
    color: #e0e0e0;
    font-size: 24px;
}

/* 操作行 */
.action-row td {
    padding: 25px 15px;
}

.action-label {
    font-weight: 600;
    color: #333;
}

.btn-current {
    background: #ecf0f1;
    color: #27ae60;
    cursor: default;
}

.btn-current i {
    margin-right: 6px;
}

.action-cell .btn-primary {
    background: var(--btn-color, #3498db);
    border: none;
}

.action-cell .btn-primary:hover {
    filter: brightness(1.1);
}

.free-label {
    color: #27ae60;
    font-weight: 500;
}

/* 移动端卡片优化 */
.comparison-cards-mobile .comparison-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.comparison-cards-mobile .card-header {
    padding: 30px;
    text-align: center;
    color: #fff;
}

.comparison-cards-mobile .card-header i {
    font-size: 48px;
    margin-bottom: 15px;
}

.comparison-cards-mobile .card-header h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
}

.comparison-cards-mobile .card-price {
    font-size: 28px;
    font-weight: bold;
}

.comparison-cards-mobile .card-price small {
    font-size: 14px;
    opacity: 0.9;
}

.comparison-cards-mobile .current-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
}

.comparison-cards-mobile .gift-badge {
    margin-top: 10px;
    background: rgba(255,255,255,0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comparison-cards-mobile .card-features {
    padding: 25px;
}

.comparison-cards-mobile .card-features li {
    padding: 15px 0;
}

.comparison-cards-mobile .feature-label {
    font-size: 15px;
}

.comparison-cards-mobile .card-action {
    padding: 20px 25px;
}

.comparison-cards-mobile .card-action .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* 升级说明区域 */
.upgrade-info-section {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.upgrade-info-section h3 {
    font-size: 20px;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.upgrade-info-section h3 i {
    color: #3498db;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-item i {
    font-size: 24px;
    color: #3498db;
    flex-shrink: 0;
}

.info-item span {
    color: #555;
    line-height: 1.5;
}

.info-item.highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
}

.info-item.highlight i {
    color: #e53e3e;
}

/* FAQ区域 */
.membership-faq {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.membership-faq h3 {
    font-size: 20px;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.membership-faq h3 i {
    color: #f1c40f;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    cursor: pointer;
    background: #f8f9fa;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

/* 论坛拦截页面样式 */
.zibll-forum-restricted {
    padding: 60px 40px !important;
}

.zibll-forum-restricted .restricted-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.zibll-forum-restricted .current-membership-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 响应式 */
@media (max-width: 768px) {
    .comparison-header {
        padding: 25px 20px;
    }
    
    .comparison-title {
        font-size: 24px;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .status-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .expiry-info {
        justify-content: center;
    }
    
    .upgrade-info-section,
    .membership-faq {
        padding: 25px 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
