/* 增值服务购买页 */

/* 防止 Vue 模板闪烁 */
[v-cloak] {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.page-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 0 24px 0;
}

.page-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header .back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.page-header .back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.page-header .page-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.membership-tag {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
}

/* 配额概览 */
.quota-overview {
    background: white;
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.quota-overview-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.quota-bars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.quota-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quota-bar-label {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.quota-bar-track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.quota-bar-fill.green { background: #52c41a; }
.quota-bar-fill.orange { background: #fa8c16; }
.quota-bar-fill.red { background: #ff4d4f; }

/* 服务分类区块 */
.addon-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.addon-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.addon-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.addon-section-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* 定价卡片网格 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e8edf5 100%);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #1890ff;
}

.pricing-card.best-value {
    border-color: #52c41a;
    position: relative;
}

.pricing-card.best-value::after {
    content: '最划算';
    position: absolute;
    top: -1px;
    right: 16px;
    background: #52c41a;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 0 0 6px 6px;
}

.pricing-amount {
    font-size: 28px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 4px;
}

.pricing-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.pricing-unit-price {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.pricing-period {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.pricing-buy-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-buy-btn:hover {
    background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
    box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}

/* 订单提醒沿用增值服务的套餐与使用状态布局。 */
#order-monitor { scroll-margin-top: 20px; }
.oma-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.oma-heading .addon-section-header { flex-wrap: wrap; }
.oma-badge { padding: 3px 9px; border-radius: 12px; font-size: 12px; background: #f3f4f6; color: #6b7280; }
.oma-badge-active { background: #eff6ff; color: #1d4ed8; }
.oma-refresh { flex-shrink: 0; padding: 7px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #4b5563; cursor: pointer; }
.oma-layout { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.5fr); gap: 24px; }
.oma-plan { background: #f0f6ff; border: 1px solid #dbeafe; border-radius: 12px; padding: 24px; }
.oma-plan-label { font-size: 14px; color: #4b5563; }
.oma-price { margin: 10px 0 16px; font-size: 26px; line-height: 1.4; font-weight: 700; color: #1d4ed8; }
.oma-price span { margin-left: 7px; font-size: 13px; font-weight: 400; color: #6b7280; }
.oma-features { margin: 0 0 20px; padding-left: 18px; font-size: 14px; color: #4b5563; line-height: 1.9; }
.oma-plan .pricing-buy-btn { min-width: 140px; }
.order-monitor-addon button:disabled { cursor: not-allowed; opacity: .6; box-shadow: none; }
.oma-plan-note, .oma-footer-note { font-size: 12px; color: #6b7280; line-height: 1.7; overflow-wrap: anywhere; }
.oma-plan-note { margin-top: 12px; }
.oma-current { min-width: 0; padding: 6px 0; }
.oma-current h3 { font-size: 16px; margin-bottom: 10px; color: #1f2937; }
.oma-state { font-size: 14px; line-height: 1.7; color: #4b5563; overflow-wrap: anywhere; }
.oma-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 12px; }
.oma-metrics div { min-width: 0; padding: 12px; border-radius: 8px; background: #f8fafc; }
.oma-metrics dt { font-size: 12px; line-height: 1.5; color: #6b7280; }
.oma-metrics dd { margin: 8px 0 0; color: #111827; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.oma-renewals { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e5e7eb; font-size: 12px; line-height: 1.7; color: #6b7280; }
.oma-renewals h4 { font-size: 13px; color: #374151; margin-bottom: 6px; }
.oma-renewals ul { padding-left: 18px; margin-top: 6px; overflow-wrap: anywhere; }
.oma-links { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 20px; }
.oma-links a { color: #2563eb; font-size: 13px; text-decoration: none; }
.oma-links a:hover { text-decoration: underline; }
.oma-links .oma-manage { border: 1px solid #93c5fd; border-radius: 6px; padding: 7px 13px; }
.oma-footer-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.oma-message { font-size: 13px; line-height: 1.7; padding: 10px 0; color: #2563eb; overflow-wrap: anywhere; }
.oma-error { color: #b91c1c; }
@media (max-width: 680px) {
    .oma-heading { flex-direction: column; gap: 8px; margin-bottom: 16px; }
    .oma-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .oma-plan { padding: 20px; }
    .oma-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oma-plan .pricing-buy-btn { width: 100%; }
}

/* 加载状态 */
.loading {
    text-align: center;
    color: #999;
    padding: 80px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FAQ 常见问题 */
.faq-section {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

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

.faq-item {
    padding: 16px 18px;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 3px solid #1890ff;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 联系客服 */
.contact-section {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.contact-section a {
    color: #1890ff;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* 媒体空间扩容 */
.media-space-config {
    background: linear-gradient(135deg, #f8fafc 0%, #e8edf5 100%);
    border-radius: 12px;
    padding: 24px;
}

.config-row {
    margin-bottom: 20px;
}

.config-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-option-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.quick-option-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.quick-option-btn.active {
    border-color: #1890ff;
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 600;
}

.discount-tag {
    display: inline-block;
    background: #ff4d4f;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: top;
}

.media-space-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 4px;
    gap: 16px;
}

.summary-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.summary-discount {
    background: #fff2e8;
    color: #fa8c16;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.summary-price {
    flex: 1;
    text-align: right;
}

.price-big {
    font-size: 26px;
    font-weight: bold;
    color: #1890ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .container { padding: 12px !important; }
    .page-header { padding: 12px 16px !important; }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .pricing-card {
        padding: 18px !important;
    }

    .quota-bars {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .section { padding: 16px !important; margin-bottom: 14px !important; }
    .section-title { font-size: 16px !important; }

    .media-space-summary { flex-wrap: wrap !important; gap: 10px !important; }
}

@media (max-width: 480px) {
    .quota-bars { grid-template-columns: 1fr !important; }
    .media-space-summary { flex-wrap: wrap; }
}

/* ============================================================
 * 从 addons.html 内联样式提取
 * ============================================================ */
.contact-section-secondary {
    margin-top: 8px;
}
