/**
 * 核币详情弹窗样式（独立，仅使用 core-coin-detail- 前缀）
 */

.core-coin-detail-panel {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.core-coin-detail-panel[data-open="true"] {
    pointer-events: auto;
}

.core-coin-detail-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.core-coin-detail-panel[data-open="true"] .core-coin-detail-backdrop {
    opacity: 1;
}

.core-coin-detail-drawer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: 420px;
    max-width: calc(100vw - 24px);
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.core-coin-detail-panel[data-open="true"] .core-coin-detail-drawer {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.core-coin-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.core-coin-detail-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    margin: 0;
}

.core-coin-detail-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.core-coin-detail-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.core-coin-detail-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* 深色滚动条 */
.core-coin-detail-body::-webkit-scrollbar {
    width: 8px;
}

.core-coin-detail-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.core-coin-detail-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.core-coin-detail-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.core-coin-detail-summary {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.core-coin-detail-summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
}

.core-coin-detail-summary-row:last-child {
    margin-bottom: 0;
}

.core-coin-detail-label {
    color: var(--text-secondary);
    min-width: 90px;
}

.core-coin-detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.core-coin-detail-balance {
    font-size: 14px;
}

.core-coin-detail-unit {
    color: var(--text-secondary);
    font-size: 12px;
}

.core-coin-detail-subtitle {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    margin: 0 0 8px 0;
}

.core-coin-detail-by-model {
    margin-bottom: 16px;
}

.core-coin-detail-model-list {
    font-size: 12px;
    color: var(--text-secondary);
}

.core-coin-detail-model-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-primary);
}

.core-coin-detail-model-item:last-child {
    border-bottom: none;
}

.core-coin-detail-records {
    margin-bottom: 8px;
}

.core-coin-detail-empty {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 12px 0;
}

.core-coin-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.core-coin-detail-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
}

.core-coin-detail-item-time {
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.core-coin-detail-item-model {
    color: var(--text-primary);
}

.core-coin-detail-item-tokens {
    color: var(--text-secondary);
    margin-top: 2px;
}

.core-coin-detail-item-cost {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.core-coin-detail-load-more {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.core-coin-detail-load-more:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.core-coin-detail-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.core-coin-detail-recharge-btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    color: rgba(255, 255, 255, 0.9);
    background: #4a4a4a;
    border: 1px solid #5a5a5a;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.core-coin-detail-recharge-btn:hover {
    background: #5a5a5a;
    border-color: #6a6a6a;
}
