/**
 * 计费系统样式
 * 
 * 包含：
 * - 套餐卡片样式
 * - 订单列表样式
 * - 订阅状态样式
 */

/* 套餐卡片容器 */
.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 套餐卡片 */
.plan-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.plan-card.recommended {
    border: 2px solid #4CAF50;
}

.plan-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: 12px;
    right: -30px;
    background: #4CAF50;
    color: #fff;
    padding: 4px 40px;
    font-size: 12px;
    transform: rotate(45deg);
}

/* 套餐头部 */
.plan-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px;
    text-align: center;
}

.plan-card[data-target="b"] .plan-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-type {
    font-size: 14px;
    opacity: 0.9;
}

/* 价格区域 */
.plan-price {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.price-current {
    font-size: 48px;
    font-weight: 700;
    color: #333;
}

.price-current::before {
    content: '¥';
    font-size: 24px;
    vertical-align: top;
    margin-right: 4px;
}

.price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.price-period {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* 套餐特性 */
.plan-features {
    padding: 24px;
}

.plan-features h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

.feature-list li.disabled {
    color: #ccc;
}

.feature-list li.disabled::before {
    content: '✗';
    color: #ccc;
}

/* 购买按钮 */
.plan-action {
    padding: 0 24px 24px;
}

.btn-purchase {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-purchase:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-purchase:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 订单列表 */
.orders-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.order-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.order-info p {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3e0;
    color: #e65100;
}

.order-status.paid {
    background: #e3f2fd;
    color: #1565c0;
}

.order-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status.cancelled {
    background: #fafafa;
    color: #757575;
}

/* 订阅状态卡片 */
.subscription-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    max-width: 600px;
    margin: 40px auto;
}

.subscription-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.subscription-card .plan-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.subscription-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.subscription-info .info-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px;
}

.subscription-info .info-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.subscription-info .info-value {
    font-size: 18px;
    font-weight: 600;
}

/* 无订阅状态 */
.no-subscription {
    text-align: center;
    padding: 60px 20px;
}

.no-subscription h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 16px;
}

.no-subscription p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* 套餐分类标签 */
.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.plan-tab {
    padding: 12px 32px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #666;
}

.plan-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.plan-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

/* 加载状态 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .plans-container {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .plan-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .subscription-info {
        grid-template-columns: 1fr;
    }
}

/* 订单页面样式 */
.order-card {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header h2 {
    margin: 0;
    font-size: 20px;
}

.order-body {
    padding: 24px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-info-row .label {
    color: #666;
    font-size: 14px;
}

.order-info-row .value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.order-info-row .value.price {
    color: #f59e0b;
    font-size: 18px;
    font-weight: 600;
}

.order-info-row.discount .value {
    color: #10b981;
}

.order-info-row.total {
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
}

.order-info-row.total .value.price {
    font-size: 24px;
}

/* 支付方式 */
.payment-section {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
}

.payment-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #667eea;
}

.payment-method input:checked + .method-icon + .method-name {
    color: #667eea;
}

.payment-method:has(input:checked) {
    border-color: #667eea;
    background: #f8f7ff;
}

.payment-method input {
    margin-right: 12px;
}

.method-icon {
    font-size: 24px;
    margin-right: 12px;
}

.method-name {
    font-size: 16px;
    color: #333;
}

/* 按钮 */
.btn-pay {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-pay:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-cancel {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    margin-top: 12px;
}

.btn-cancel:hover {
    color: #666;
}

/* 成功状态 */
.success-section {
    padding: 40px 24px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.success-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.success-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    color: #666;
    text-decoration: none;
    display: inline-block;
}

/* 错误状态 */
.error-section {
    text-align: center;
    padding: 60px 20px;
}

.error-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 16px;
}

.error-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* 订阅页面样式 */
.subscription-card {
    max-width: 600px;
    margin: 40px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
}

.subscription-card.expired {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.subscription-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-header h3 {
    margin: 0;
    font-size: 18px;
}

.subscription-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
}

.subscription-status.active {
    background: #10b981;
}

.subscription-status.expired {
    background: #ef4444;
}

.subscription-plan {
    padding: 32px 24px;
    text-align: center;
}

.subscription-plan .plan-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscription-plan .plan-type {
    font-size: 14px;
    opacity: 0.8;
}

.subscription-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 24px 24px;
}

.subscription-info .info-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.subscription-info .info-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.subscription-info .info-value {
    font-size: 18px;
    font-weight: 600;
}

.subscription-actions {
    padding: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-renew {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-renew:hover {
    background: #fff;
    color: #667eea;
}

.btn-cancel-sub {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-cancel-sub:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 无订阅卡片 */
.no-subscription-card {
    max-width: 400px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-sub-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-subscription-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.no-subscription-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.btn-subscribe {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 订单列表页 */
.orders-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

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

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

.order-right {
    display: flex;
    align-items: center;
}

/* ===== 管理后台计费模块样式 ===== */

.billing-admin-container {
    padding: 20px;
}

.billing-admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.billing-admin-tabs .admin-tab-btn {
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.billing-admin-tabs .admin-tab-btn:hover {
    background: #e5e7eb;
}

.billing-admin-tabs .admin-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.billing-sub-content {
    animation: fadeIn 0.3s ease;
}

.billing-sub-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.billing-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.billing-admin-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.orders-filter {
    display: flex;
    gap: 12px;
    align-items: center;
}

.orders-filter select,
.orders-filter input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.orders-filter select:focus,
.orders-filter input:focus {
    outline: none;
    border-color: #667eea;
}

/* 套餐卡片网格 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.plan-admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.plan-admin-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.plan-admin-card.inactive {
    opacity: 0.7;
    border: 1px dashed #d1d5db;
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

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

.plan-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.plan-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.plan-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.plan-card-body {
    padding: 16px;
}

.plan-price {
    margin-bottom: 8px;
}

.plan-price .price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.plan-price .original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.plan-duration,
.plan-users {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.plan-features {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.plan-features div {
    margin-bottom: 4px;
}

.plan-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* 套餐分区 */
.plans-section {
    margin-bottom: 32px;
}

.plans-section-title {
    font-size: 16px;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

/* 订单表格 */
.orders-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table td {
    font-size: 14px;
    color: #4b5563;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.admin-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background: #d1fae5;
    color: #059669;
}

.status-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.info {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.default {
    background: #f3f4f6;
    color: #6b7280;
}

/* 订单汇总 */
.orders-summary {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
}

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

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.features-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.feature-item label {
    font-size: 12px;
    color: #6b7280;
}

.feature-item input {
    padding: 8px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state-mini {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 14px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 加载状态 */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* 错误消息 */
.error-message {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 8px;
}

/* 订单详情 */
.order-detail {
    padding: 8px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-row .label {
    color: #6b7280;
    font-size: 14px;
}

.detail-row .value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.detail-row.highlight {
    background: #f0fdf4;
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 8px;
}

.detail-row.highlight .value {
    color: #059669;
    font-size: 18px;
}
