/* 下单页面样式 */

body {
    background: #f5f7fa;
}

/* 主内容区 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 88px 40px 40px;
}

/* 订单容器 */
.order-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* 配置区域 */
.config-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 配置卡片 */
.config-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* 配置预览 */
.config-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.preview-label {
    font-size: 14px;
    color: #64748b;
}

.preview-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* 系统盘配置 */
.disk-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.disk-type-selector {
    display: flex;
    gap: 12px;
}

.disk-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.disk-type-btn:hover {
    border-color: #667eea;
}

.disk-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.disk-type-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.disk-type-price {
    font-size: 13px;
    opacity: 0.8;
}

.disk-size-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.size-label {
    font-size: 14px;
    color: #64748b;
    min-width: 100px;
}

.disk-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.disk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.size-display {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
    text-align: right;
}

.disk-note {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 公网IP选择 */
.ip-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ip-type-selector {
    display: flex;
    gap: 12px;
}

.ip-type-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ip-type-btn:hover {
    border-color: #667eea;
}

.ip-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.ip-type-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ip-type-desc {
    font-size: 13px;
    opacity: 0.8;
}

.ip-count-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.count-label {
    font-size: 14px;
    color: #64748b;
    min-width: 100px;
}

.count-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.count-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.count-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.count-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    min-width: 40px;
    text-align: center;
}

/* 操作系统版本选择 */
.os-version-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.os-version-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.os-version-btn:hover {
    border-color: #667eea;
}

.os-version-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* 应用镜像选择 */
.app-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.app-item {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-item:hover {
    border-color: #667eea;
}

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

.app-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.app-item-name {
    font-size: 13px;
    font-weight: 500;
}

/* 购买时长选择 */
.duration-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.duration-btn {
    padding: 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.duration-btn:hover {
    border-color: #667eea;
}

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

.duration-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.duration-discount {
    font-size: 13px;
    color: #10b981;
}

.duration-btn.active .duration-discount {
    color: #fef08a;
}

/* 订单摘要 */
.order-summary {
    position: sticky;
    top: 88px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* 配置详情 */
.summary-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.detail-label {
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

/* 价格明细 */
.price-breakdown {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.price-label {
    color: #64748b;
}

.price-value {
    font-weight: 600;
    color: #1e293b;
}

.price-row.discount {
    color: #10b981;
}

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

/* 总价 */
.total-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    color: white;
}

.total-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.total-amount {
    display: flex;
    align-items: baseline;
}

.total-amount .currency {
    font-size: 24px;
    font-weight: 700;
}

.total-amount .amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin: 0 4px;
}

.total-amount .unit {
    font-size: 16px;
    opacity: 0.9;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 服务保障 */
.service-guarantee {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.guarantee-item svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .order-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 16px 40px;
    }

    .disk-type-selector,
    .ip-type-selector {
        flex-direction: column;
    }

    .duration-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-selector {
        grid-template-columns: 1fr;
    }
}