:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-active: #096dd9;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-tertiary: rgba(0, 0, 0, 0.45);
    --border-color: #d9d9d9;
    --border-light: #f0f0f0;
    --bg-white: #ffffff;
    --bg-gray: #fafafa;
    --bg-hover: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius-md: 4px;
    --radius-lg: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5715;
    color: var(--text-primary);
    background-color: var(--bg-gray);
}

.gpu-market-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    margin-top: 80px;
}

.gpu-market-flex-row-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

.gpu-market-left-panel-section {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    width: 66.666667%;
}

.gpu-market-right-panel-section {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
}

/* 配置面板 */
.gpu-market-config-panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gpu-market-section-card-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.gpu-market-section-body-content {
    padding: 24px;
}

/* 镜像选择标签页 */
.gpu-market-image-tabs-container {
    width: 100%;
}

.gpu-market-tab-navigation-list {
    display: flex;
    list-style: none;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
    padding: 0 24px;
    background: var(--bg-white);
}

.gpu-market-tab-nav-item {
    margin-right: 40px;
}

.gpu-market-tab-link-button {
    display: block;
    padding: 16px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    top: 1px;
    cursor: pointer;
}

.gpu-market-tab-link-button:hover {
    color: var(--primary-hover);
}

.gpu-market-tab-link-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* 镜像内容区 */
.gpu-market-image-content-wrapper-v2 {
    padding: 16px;
}

.gpu-market-image-category-section {
    margin-bottom: 40px;
}

.gpu-market-image-category-section:last-child {
    margin-bottom: 0;
}

.gpu-market-category-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.gpu-market-category-description-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

/* 镜像网格 */
.gpu-market-image-grid-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gpu-market-image-card-item-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
}

.gpu-market-image-card-item-box:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gpu-market-image-card-item-box.selected {
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 15px;
    background: #f0f7ff;
}

/* 镜像图标 */
.gpu-market-image-card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
    color: white;
}

.gpu-market-image-card-icon-wrapper.pytorch { background: linear-gradient(135deg, #ee4c2c 0%, #ff6b35 100%); }
.gpu-market-image-card-icon-wrapper.tensorflow { background: linear-gradient(135deg, #ff6f00 0%, #ffa726 100%); }
.gpu-market-image-card-icon-wrapper.miniconda { background: linear-gradient(135deg, #44a833 0%, #5cb85c 100%); }
.gpu-market-image-card-icon-wrapper.cuda { background: linear-gradient(135deg, #76b900 0%, #8bc34a 100%); }
.gpu-market-image-card-icon-wrapper.comfyui { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.gpu-market-image-card-icon-wrapper.sdwebui { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.gpu-market-image-card-icon-wrapper.ollama { background: linear-gradient(135deg, #000000 0%, #374151 100%); }
.gpu-market-image-card-icon-wrapper.vllm { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); }
.gpu-market-image-card-icon-wrapper.sglang { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); }
.gpu-market-image-card-icon-wrapper.private-image { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }
.gpu-market-image-card-icon-wrapper.windows { background: linear-gradient(135deg, #0078d4 0%, #50a0e8 100%); }
.gpu-market-image-card-icon-wrapper.ubuntu { background: linear-gradient(135deg, #e95420 0%, #ff7043 100%); }
.gpu-market-image-card-icon-wrapper.community { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }

.gpu-market-image-card-info-section {
    flex: 1;
    min-width: 0;
}

.gpu-market-image-card-name-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gpu-market-image-card-version-info {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
}

.gpu-market-image-card-version-info:hover {
    color: var(--primary-color);
}

.gpu-market-image-card-version-info i {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* 版本下拉框 */
.gpu-market-version-dropdown {
    position: absolute;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 400px;
    max-width: 600px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    top: 0;
    left: 100%;
    margin-left: 8px;
}

.gpu-market-image-card-item-box {
    position: relative;
}

.gpu-market-version-dropdown-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.gpu-market-variant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gpu-market-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.gpu-market-variant-item:hover {
    border-color: var(--primary-color);
    background: rgba(24, 144, 255, 0.05);
}

.gpu-market-variant-item.active {
    border-color: var(--primary-color);
    background: rgba(24, 144, 255, 0.1);
}

.gpu-market-variant-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.gpu-market-variant-size {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 12px;
}


/* 社区镜像搜索 */
.gpu-market-community-search-box {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gpu-market-search-input-field {
    flex: 1;
    height: 32px;
    padding: 4px 11px 4px 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.gpu-market-search-input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.community-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.community-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.community-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 社区镜像卡片列表 */
.community-image-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.community-image-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.community-image-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.community-image-card.selected {
    border-color: var(--primary-color);
    background: #e6f7ff;
}

.community-image-card-cover-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.community-image-card-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-image-card-content-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.community-image-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

.community-image-card-title-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.community-image-card-price-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--error-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.community-image-card-price-badge.free {
    color: var(--success-color);
}

.community-image-card-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.community-image-card-author-info {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.community-image-card-author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-image-card-author-badge {
    color: var(--warning-color);
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .community-image-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .community-image-list {
        grid-template-columns: 1fr;
    }
}
    white-space: nowrap;
}

/* 标签筛选弹出层 */
.tag-filter-dropdown {
    position: fixed;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 260px;
    max-width: 320px;
    max-height: 480px;
    overflow-y: auto;
}

.tag-filter-section {
    border-bottom: 1px solid var(--border-light);
}

.tag-filter-section:last-child {
    border-bottom: none;
}

.tag-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
}

.tag-filter-title:hover {
    background: #f0f0f0;
}

.tag-filter-title i {
    font-size: 12px;
    color: var(--text-tertiary);
}

.tag-filter-options {
    padding: 12px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white;
}

.tag-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    user-select: none;
}

.tag-filter-option:hover {
    background: #f5f5f5;
    color: var(--text-primary);
}

.tag-filter-option input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

/* 右侧配置区 */
.config-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selected-image-info {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.image-info-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.image-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.image-thumbnail.pytorch { background: linear-gradient(135deg, #ee4c2c 0%, #ff6b35 100%); }
.image-thumbnail.tensorflow { background: linear-gradient(135deg, #ff6f00 0%, #ffa726 100%); }
.image-thumbnail.miniconda { background: linear-gradient(135deg, #44a833 0%, #5cb85c 100%); }
.image-thumbnail.cuda { background: linear-gradient(135deg, #76b900 0%, #8bc34a 100%); }
.image-thumbnail.comfyui { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.image-thumbnail.sdwebui { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.image-thumbnail.ollama { background: linear-gradient(135deg, #000000 0%, #374151 100%); }
.image-thumbnail.vllm { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); }
.image-thumbnail.sglang { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); }
.image-thumbnail.windows { background: linear-gradient(135deg, #0078d4 0%, #50a0e8 100%); }
.image-thumbnail.ubuntu { background: linear-gradient(135deg, #e95420 0%, #ff7043 100%); }
.image-thumbnail.community { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }

.image-details {
    flex: 1;
    min-width: 0;
}

.image-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.image-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.image-version {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-version i {
    font-size: 10px;
}

.image-size {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 配置卡片 */
.config-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.config-scrollable-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.config-scrollable-area::-webkit-scrollbar {
    width: 6px;
}

.config-scrollable-area::-webkit-scrollbar-track {
    background: transparent;
}

.config-scrollable-area::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

.config-scrollable-area::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

.config-fixed-bottom {
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.config-section {
    margin-bottom: 24px;
}

.config-section:last-child {
    margin-bottom: 0;
}

.section-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-label i {
    color: var(--text-tertiary);
    font-size: 12px;
}

.required-mark {
    color: var(--error-color);
    margin-left: 4px;
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.region-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--error-color);
}

.region-text {
    font-weight: 500;
}

.zone-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 150px;
    padding: 8px 0;
}

.zone-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: var(--text-primary);
}

.zone-option:hover {
    background: var(--bg-hover);
}

.zone-option.active {
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
}

.zone-option.active .region-dot {
    background: var(--primary-color);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 8px;
}

.btn-option {
    flex: 1;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-option.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #e6f7ff;
}

.btn-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-gray);
    color: var(--text-tertiary);
}

.btn-option:disabled:hover {
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

/* GPU网格 */
.gpu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gpu-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: center;
    background: var(--bg-white);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gpu-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gpu-card.active {
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 7px 5px;
    background: #e6f7ff;
}

.gpu-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gpu-card.disabled:hover {
    border-color: var(--border-color);
    box-shadow: none;
}

.gpu-badge-top {
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px 0 6px 0;
    color: white;
    font-weight: 500;
}

.gpu-badge-top.hot {
    background: var(--error-color);
}

.gpu-badge-top.new {
    background: var(--warning-color);
}

.gpu-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
}

.gpu-memory {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.gpu-model {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.gpu-stock-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.gpu-stock-dot.abundant {
    background: var(--success-color);
}

.gpu-stock-dot.limited {
    background: var(--warning-color);
}

.gpu-stock-dot.sold-out {
    background: var(--error-color);
}

/* 磁盘输入组 */
.disk-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.disk-input {
    width: 80px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s;
}

.disk-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.disk-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.disk-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 付款方式 */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.payment-option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-white);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 85px;
}

.payment-option-card:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-option-card.active {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.payment-card-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 3px 10px;
    border-radius: 0 6px 0 8px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.payment-card-badge.blue {
    background: var(--primary-color);
}

.payment-card-badge.orange {
    background: #ff6b35;
}

.payment-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: left;
}

.payment-card-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: auto;
    text-align: left;
}

.payment-card-price .price-symbol {
    font-size: 16px;
    color: var(--error-color);
    font-weight: 500;
}

.payment-card-price .price-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--error-color);
}

.payment-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.payment-card-detail {
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
}

.payment-card-detail:hover {
    text-decoration: underline;
}

.gpu-market-price-detail-popup-wrapper {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    z-index: 1000;
    min-width: 280px;
    white-space: nowrap;
}

.gpu-market-price-detail-popup-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.gpu-market-price-detail-popup-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    white-space: normal;
}

.gpu-market-price-detail-popup-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.gpu-market-price-detail-popup-row span {
    text-align: center;
}

.gpu-market-price-detail-popup-values {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.gpu-market-price-detail-popup-units {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 0;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-title i {
    color: var(--primary-color);
}

.payment-badge {
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    color: white;
    font-weight: 500;
}

.payment-badge.blue {
    background: var(--primary-color);
}

.payment-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.price-symbol {
    font-size: 18px;
    color: var(--error-color);
    font-weight: 500;
}

.price-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--error-color);
}

.payment-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-note {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 8px;
}

/* 立即部署按钮 */
.btn-deploy {
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-deploy:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-deploy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-deploy-disabled {
    background: #9ca3af !important;
}

.btn-deploy-disabled:hover {
    background: #9ca3af !important;
}

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

.fa-spin {
    animation: spin 1s linear infinite;
}

/* 响应式设计 */
@media (min-width: 992px) {
    .gpu-market-flex-row-wrapper {
        display: flex !important;
        flex-direction: row !important;
    }
    .gpu-market-left-panel-section {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
    .gpu-market-right-panel-section {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

@media (max-width: 1200px) {
    .gpu-market-left-panel-section {
        flex: 0 0 60%;
    }
    .gpu-market-right-panel-section {
        flex: 0 0 40%;
    }
}

@media (max-width: 991px) {
    .gpu-market-flex-row-wrapper {
        flex-direction: column;
    }
    .gpu-market-left-panel-section, .gpu-market-right-panel-section {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .config-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .gpu-market-image-grid-three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .gpu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
