:root {
    --primary-color: #ffd700;
    --secondary-color: #ffed4e;
    --accent-color: #ffb347;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    --card-hover-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffb347 100%);
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.5);
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,215,0,0.1)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.header .container {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.countdown-container {
    margin-top: 1.5rem;
}

.countdown-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    margin-bottom: 0.5rem;
}

.countdown-text span {
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    animation: pulse 1s ease-in-out infinite;
}

.progress {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    transition: width 1s linear;
    border-radius: 4px;
}

/* Footer样式 */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

footer h5 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.text-gold {
    color: #ffd700 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-gold:hover {
    color: #ffed4e !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: translateX(3px);
}

footer .mt-4 p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
    transform: rotate(0deg);
    animation: shine 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.card-header {
    background: var(--gold-gradient);
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="80" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="20" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.2)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.price-up {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.price-down {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.price-stable {
    color: #6c757d;
    font-weight: bold;
    font-size: 1.2rem;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    flex-direction: column;
}

.spinner-border {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    border: 0.5rem solid rgba(255, 215, 0, 0.2);
    border-top-color: #ffd700;
    box-shadow: var(--gold-glow);
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

.update-time {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.update-time:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.tab-content {
    padding: 2.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: none;
    border-radius: 0 0 15px 15px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.05) 50%, transparent 100%);
    animation: slide 3s ease-in-out infinite;
}

.nav-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-link {
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: bold;
    background: white;
    border-color: rgba(255, 215, 0, 0.4) rgba(255, 215, 0, 0.4) white;
    box-shadow: 0 -3px 0 #ffd700, 0 0 10px rgba(255, 215, 0, 0.3);
}

.nav-link i {
    margin-right: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-left: 20px;
    animation: fadeInUp 1s ease-out;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background: var(--gold-gradient);
    border-radius: 5px;
    box-shadow: var(--gold-glow);
}

.gold-icon {
    color: #ffd700;
    text-shadow: var(--gold-glow);
    animation: pulse 2s ease-in-out infinite;
}

.price-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 237, 78, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.price-card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 237, 78, 0.1) 100%);
    transform: translateX(8px) translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

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

.price-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.price-label {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
    opacity: 0.8;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.price-card:hover .price-value {
    transform: scale(1.05);
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.table {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.table th {
    font-weight: 600;
    padding: 1.2rem;
    text-align: center;
    border-bottom: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%);
    animation: slide 4s ease-in-out infinite;
}

.table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.table tbody tr {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.table tbody tr:hover td {
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 10s ease-in-out infinite;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .price-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 动画定义 */
@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slide {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

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

.number-animate {
    animation: numberAnimation 0.5s ease-out;
}

/* 加载动画 */
.loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffd700;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loader div:nth-child(1) {
    left: 8px;
    animation: loader1 0.6s infinite;
}

.loader div:nth-child(2) {
    left: 8px;
    animation: loader2 0.6s infinite;
}

.loader div:nth-child(3) {
    left: 32px;
    animation: loader2 0.6s infinite;
}

.loader div:nth-child(4) {
    left: 56px;
    animation: loader3 0.6s infinite;
}

@keyframes loader1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loader3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loader2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}