/* 金价查询页面专用CSS */
:root {
    --gold-primary: #28a745;    /* 绿色主色 */
    --gold-secondary: #198754;   /* 深绿色 */
    --gold-dark: #1a1a1a;        /* 黑色 */
    --gold-light: #ffffff;       /* 白色 */
    --gold-bg: #f8f9fa;          /* 浅背景 */
    --gold-border: #dee2e6;      /* 边框色 */
    --gold-hover: #20c997;       /* 悬停色 */
}

.gold-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.gold-header {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--gold-light);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.gold-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.gold-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.gold-card {
    background: var(--gold-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--gold-border);
    transition: all 0.3s ease;
}

.gold-card:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.gold-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gold-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 8px;
}

.gold-table thead {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--gold-light);
}

.gold-table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
}

.gold-table tbody tr {
    border-bottom: 1px solid var(--gold-border);
    transition: all 0.2s ease;
}

.gold-table tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.05);
    transform: scale(1.01);
}

.gold-table tbody td {
    padding: 1rem;
    text-align: center;
    color: var(--gold-dark);
}

.gold-table tbody tr:last-child {
    border-bottom: none;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.price-unit {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

.brand-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.update-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.chart-container {
    height: 400px;
    margin-top: 1rem;
}

.spot-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.spot-price-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid var(--gold-primary);
    transition: all 0.3s ease;
}

.spot-price-card:hover {
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.2);
    transform: translateY(-3px);
}

.spot-price-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.spot-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
}

.spot-price-unit {
    font-size: 0.85rem;
    color: #6c757d;
}

.refresh-btn {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--gold-light);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
}

.icon-gold {
    color: #ffd700;
    font-size: 1.5rem;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

.alert-info {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 4px solid var(--gold-primary);
    color: var(--gold-dark);
}

/* Bootstrap Icons 备用方案 */
.bi {
    display: inline-block;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bi-gem:before { content: "\f1a8"; }
.bi-info-circle:before { content: "\f431"; }
.bi-globe:before { content: "\f2a4"; }
.bi-shop:before { content: "\f5a0"; }
.bi-graph-up:before { content: "\f2b0"; }
.bi-arrow-clockwise:before { content: "\f1a0"; }
.bi-award:before { content: "\f1b0"; }
.bi-inbox:before { content: "\f2f0"; }
.bi-gear-fill:before { content: "\f2c0"; }
