:root {
    --bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card: rgba(255,255,255,0.95);
    --card-hover: rgba(255,255,255,0.98);
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --green: #10b981;
    --red: #ef4444;
    --gray: #6b7280;
    --text: #1e293b;
    --text-soft: #64748b;
    --border: rgba(203,213,225,0.8);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    min-height: 100vh;
    background: var(--bg);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.app {
    width: 100%;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 32px;
    padding: 0 20px;
}
.header h1 {
    color: var(--text);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--blue), var(--green), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}
.header p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
.disclaimer {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255,249,196,0.6);
    border: 1px solid rgba(255,204,0,0.3);
    border-radius: var(--radius-sm);
    display: inline-block;
}
.disclaimer span {
    color: #d97706;
    font-size: 12px;
    line-height: 1.4;
}
.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
}
.user-info span {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.user-actions {
    display: flex;
    gap: 8px;
}
.btn-primary {
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h2 {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
}
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-soft);
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: var(--text);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: rgba(255,255,255,0.8);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    transform: translateY(-1px);
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.form-actions .btn {
    flex: 1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.login-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.login-form-actions .btn-primary {
    flex: 1;
}
.login-form-actions .btn-link {
    flex: none;
    white-space: nowrap;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.card-title .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.card-title span {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before {
    left: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.btn-success {
    background: linear-gradient(135deg, var(--green), #34d399);
}
.btn-danger {
    background: linear-gradient(135deg, var(--red), #f87171);
}
.btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.btn:active:not(:disabled) {
    filter: brightness(0.95);
    transform: translateY(0);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.btn-link {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-link:hover {
    background: rgba(59,130,246,0.1);
    transform: translateY(-1px);
}

.result {
    position: relative;
    min-height: 280px;
    border-radius: var(--radius-sm);
    background: rgba(248,250,252,0.8);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px;
    transform: translateY(10px);
}
.content#fund-data {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}
.content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.status-icon {
    font-size: 32px;
    margin-bottom: 12px;
    animation: bounceIn 0.5s ease;
}
.status-text {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
    max-width: 80%;
}
.status-text.success {
    color: var(--green);
}
.status-text.error {
    color: var(--red);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59,130,246,0.15);
    border-top: 3px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}
.spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
    margin: 0;
}
@keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.fund-list {
    width: 100%;
    text-align: left;
    padding: 8px 0;
    overflow-x: auto;
}
.fund-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(203,213,225,0.6);
    transition: var(--transition);
    min-width: 300px;
}
.fund-item:hover {
    background: rgba(248,250,252,0.5);
    padding-left: 12px;
    border-radius: var(--radius-sm);
}
.fund-item:last-child {
    border-bottom: none;
}
.fund-label {
    width: 90px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}
.fund-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}
.fund-rise {
    color: var(--red);
    font-weight: 700;
    animation: pulseRed 0.5s ease;
}
.fund-fall {
    color: var(--green);
    font-weight: 700;
    animation: pulseGreen 0.5s ease;
}
@keyframes pulseGreen {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes pulseRed {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fund-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fund-input-row label {
    width: 80px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
}
.fund-input-row input,
.fund-input-row select {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: rgba(255,255,255,0.8);
    transition: var(--transition);
    outline: none;
}
.fund-input-row input:focus,
.fund-input-row select:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    transform: translateY(-1px);
}
.fund-input-row .btn {
    width: 120px;
    flex-shrink: 0;
}

.action-row {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 16px;
}

.optional-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.optional-title h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.optional-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.refresh-status {
    font-size: 13px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(241,245,249,0.8);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}


.fund-grid-container {
    width: 100%;
}
.fund-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.fund-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.fund-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.fund-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.fund-card:hover::before {
    transform: scaleX(1);
}
.fund-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.fund-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.fund-card-code {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 4px;
}
.btn-delete {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: var(--red);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(239,68,68,0.2);
}
.btn-delete:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(239,68,68,0.3);
}
.fund-card-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.fund-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fund-data-label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
}
.fund-data-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    transition: var(--transition);
}
.fund-data-value.fund-rise {
    color: var(--red);
    animation: pulseRed 0.5s ease;
}
.fund-data-value.fund-fall {
    color: var(--green);
    animation: pulseGreen 0.5s ease;
}
.fund-refresh-time {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
    background: rgba(248,250,252,0.7);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border);
    transition: var(--transition);
}
.empty-state:hover {
    background: rgba(248,250,252,0.9);
    border-color: var(--blue);
    transform: translateY(-2px);
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
    transition: var(--transition);
}
.empty-state:hover .icon {
    opacity: 0.8;
    transform: scale(1.1);
}
.empty-state div {
    font-size: 15px;
    line-height: 1.5;
}

.icon-search {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
}
.icon-optional {
    background: linear-gradient(135deg, var(--green), #34d399);
    color: white;
}

/* 批量操作样式 */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(248,250,252,0.8);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    visibility: hidden;
    min-height: 40px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--blue);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: var(--shadow);
}
.fund-card.selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.fund-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fund-info {
    flex: 1;
}

/* Tab导航样式 */
.tab-nav {
    display: flex;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.tab-btn:hover {
    color: var(--text);
    background: rgba(241,245,249,0.8);
}
.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.tab-content {
    width: 100%;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.tab-pane.active {
    display: block;
}

@media (max-width: 768px) {
    body {
        padding: 30px 16px;
    }
    .app {
        max-width: 100%;
    }
    .user-info {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .user-actions {
        justify-content: center;
    }
    .header h1 {
        font-size: 28px;
    }
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    .fund-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .fund-input-row label {
        text-align: left;
        width: 100%;
        font-size: 13px;
    }
    .fund-input-row input {
        min-width: 100%;
    }
    .fund-input-row .btn {
        width: 100%;
    }
    .action-row {
        justify-content: center;
    }
    .fund-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fund-card {
        padding: 16px;
    }
    .optional-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .batch-actions {
        justify-content: space-between;
    }
    .fund-card-info {
        gap: 8px;
    }
    .optional-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .refresh-status {
        width: 100%;
        justify-content: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .result {
        min-height: 250px;
    }
    .fund-list {
        padding: 8px;
    }
    .fund-item {
        min-width: 280px;
    }
    .footer {
        margin-top: 30px;
        padding: 16px;
    }
    .notification {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }
    .card {
        padding: 16px;
    }
    .fund-item {
        padding: 10px 0;
    }
    .fund-label {
        width: 80px;
        font-size: 13px;
    }
    .fund-value {
        font-size: 14px;
    }
}

/* 备案信息样式 */
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.icp-info a {
    color: var(--text-soft);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.icp-info a:hover {
    color: var(--blue);
}
.security-info {
    display: flex;
    align-items: center;
}
.security-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.security-info a:hover {
    color: var(--blue);
}
.security-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 黄金相关样式 */
.gold-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}

.gold-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gold-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.gold-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.gold-card:hover::before {
    transform: scaleX(1);
}

.gold-card .card-title {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.gold-card .card-title .icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.gold-card .card-title span {
    font-size: 18px;
    font-weight: 700;
    color: #d97706;
}

.gold-card .fund-input-row {
    margin-bottom: 24px;
}

.gold-card .result {
    min-height: 320px;
    border-radius: var(--radius);
    background: rgba(255, 251, 235, 0.5);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.gold-card .action-row {
    margin-top: 20px;
}

.gold-card .btn-primary {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.gold-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}

.gold-info {
    width: 100%;
    text-align: left;
    padding: 8px 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 280px;
}

.gold-info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(203,213,225,0.6);
    transition: var(--transition);
    min-width: 300px;
}

.gold-info-item:hover {
    background: rgba(248,250,252,0.5);
    padding-left: 12px;
    border-radius: var(--radius-sm);
}

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

.gold-info-label {
    width: 100px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.gold-info-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.gold-history-header {
    margin-bottom: 16px;
    text-align: center;
}

.gold-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 8px;
}

.gold-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gold-history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.gold-history-row:last-child {
    border-bottom: none;
}

.gold-history-header-row {
    background: rgba(255, 251, 235, 0.8);
    font-weight: 600;
    color: #d97706;
}

.gold-history-cell {
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .gold-card {
        padding: 24px;
    }
    
    .gold-card .result {
        min-height: 280px;
    }
}

/* 通知横幅样式 */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green), #34d399);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification.error {
    background: linear-gradient(135deg, var(--red), #f87171);
}

.notification-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.notification-close:hover {
    background: rgba(255,255,255,0.2);
}
