/**
 * 秀站成品市场 - 前台样式
 */

/* 通用样式 */
.xiu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.xiu-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.xiu-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.xiu-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.xiu-login-required {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
}

.xiu-login-required a {
    color: #0073aa;
    text-decoration: none;
}

/* 套餐卡片 */
.xiu-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.xiu-package-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.xiu-package-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
}

.xiu-package-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
}

.xiu-package-price {
    font-size: 32px;
    font-weight: 700;
}

.xiu-package-price small {
    font-size: 14px;
    font-weight: normal;
}

.xiu-package-features {
    padding: 20px;
}

.xiu-package-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.xiu-package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.xiu-package-features li:last-child {
    border-bottom: none;
}

.xiu-package-features .feature-label {
    font-weight: 600;
    color: #333;
    width: 100px;
    display: inline-block;
}

.xiu-package-footer {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.xiu-btn-buy {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.xiu-btn-buy:hover {
    background: #005a87;
    color: #fff;
}

/* 购买弹窗 */
.xiu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.xiu-modal.show {
    display: flex;
}

.xiu-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.xiu-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.xiu-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #999;
}

.xiu-modal-body {
    padding: 20px;
}

.xiu-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

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

.xiu-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.xiu-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.xiu-form-control:focus {
    border-color: #0073aa;
    outline: none;
}

.xiu-help-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.xiu-btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.xiu-btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.xiu-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* 表格样式 */
.xiu-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.xiu-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

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

.xiu-table tr:hover {
    background: #f9f9f9;
}

/* 状态标签 */
.xiu-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.xiu-status-pending {
    background: #fff3cd;
    color: #856404;
}

.xiu-status-paid,
.xiu-status-completed,
.xiu-status-active {
    background: #d4edda;
    color: #155724;
}

.xiu-status-deploying,
.xiu-status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.xiu-status-failed,
.xiu-status-suspended {
    background: #f8d7da;
    color: #721c24;
}

.xiu-status-refunding {
    background: #ffe5b4;
    color: #856404;
}

.xiu-status-refunded {
    background: #e2e3e5;
    color: #383d41;
}

/* 支付方式 */
.xiu-payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.xiu-payment-method {
    flex: 1;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
}

.xiu-payment-method input {
    display: none;
}

.xiu-payment-method-label {
    display: block;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.xiu-payment-method input:checked + .xiu-payment-method-label {
    border-color: #0073aa;
    background: #f0f9ff;
}

.xiu-payment-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.xiu-payment-name {
    font-size: 14px;
    font-weight: 500;
}

/* 站点管理 */
.xiu-site-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.xiu-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.xiu-stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.xiu-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.xiu-site-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

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

.xiu-btn-outline {
    background: transparent;
    border: 1px solid #0073aa;
    color: #0073aa;
}

.xiu-btn-outline:hover {
    background: #0073aa;
    color: #fff;
}

/* 进度条 */
.xiu-progress {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.xiu-progress-bar {
    height: 100%;
    background: #0073aa;
    border-radius: 4px;
    transition: width 0.3s;
}

/* 响应式 */
@media (max-width: 768px) {
    .xiu-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .xiu-site-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xiu-table {
        display: block;
        overflow-x: auto;
    }
}