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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, 
        #0f0c29 0%, 
        #302b63 25%, 
        #24243e 50%, 
        #0f0c29 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.1) rotate(1deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 25%, #48dbfb 50%, #ff9ff3 75%, #1dd1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -1px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
    color: #a8b2d1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-content {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.price-card:hover::before {
    left: 100%;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.price-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.current-price, .target-price {
    text-align: center;
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.current-price h3, .target-price h3 {
    font-size: 1.3rem;
    color: #a8b2d1;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-display {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #48dbfb 0%, #1dd1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(72, 219, 251, 0.3);
}

.price-display.target {
    background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 159, 243, 0.3);
}

.price-change {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
}

.price-change.positive {
    background: rgba(29, 209, 161, 0.2);
    color: #1dd1a1;
    border: 1px solid rgba(29, 209, 161, 0.3);
}

.price-change.negative {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.deadline {
    font-size: 1.1rem;
    color: #a8b2d1;
    font-weight: 500;
}

.difference-section {
    text-align: center;
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.difference-section h3 {
    font-size: 1.4rem;
    color: #a8b2d1;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difference-display {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.percentage {
    font-size: 1.4rem;
    color: #a8b2d1;
    margin-bottom: 30px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff9ff3, #48dbfb, #1dd1a1);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff9ff3, #48dbfb, #1dd1a1);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.stat-card h4 {
    font-size: 1rem;
    color: #a8b2d1;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #48dbfb 0%, #1dd1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(72, 219, 251, 0.3);
}

.chart-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 25px;
    padding: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
}

.chart-section h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #a8b2d1;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    height: 400px;
    position: relative;
    margin-bottom: 25px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #a8b2d1;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 4px;
    display: inline-block;
    border-radius: 2px;
}

.legend-color.historical {
    background: linear-gradient(90deg, #48dbfb, #1dd1a1);
}

.legend-color.predicted {
    background: linear-gradient(90deg, #ff6b6b, #ff9ff3);
    border-style: dashed;
}

.legend-color.target {
    background: linear-gradient(90deg, #feca57, #ff9ff3);
    border-style: dashed;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

.footer p {
    margin-bottom: 5px;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        margin-bottom: 40px;
    }
    
    .title {
        font-size: 2.5rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .price-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .price-section {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .current-price, .target-price {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .current-price h3, .target-price h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .price-display {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .price-change {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    
    .deadline {
        font-size: 1rem;
    }
    
    .difference-section {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .difference-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .difference-display {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .percentage {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .progress-bar {
        height: 16px;
        border-radius: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 35px;
    }
    
    .stat-card {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .stat-card h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .chart-section {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .chart-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .chart-container {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .chart-legend {
        gap: 20px;
    }
    
    .legend-item {
        font-size: 0.9rem;
    }
    
    .main-content {
        gap: 20px;
    }
    
    .footer {
        margin-top: 30px;
        font-size: 0.9rem;
    }
}

/* 超小屏幕适配 (手机竖屏) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .price-card {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    .difference-display {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .celebration-overlay {
        padding: 10px;
    }
    
    .celebration-content {
        padding: 1.5rem;
        margin: 0;
        max-width: 95%;
    }
    
    .celebration-icon {
        font-size: 2.5rem;
    }
    
    .celebration-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .celebration-message {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .celebration-time {
        font-size: 0.8rem;
    }
}

/* 横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .chart-container {
        height: 200px;
    }
    
    .price-section {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .celebration-content {
        padding: 2rem;
        max-width: 80%;
    }
    
    .celebration-title {
        font-size: 2rem;
    }
    
    .celebration-message {
        font-size: 1.1rem;
    }
}

/* 滚动动画 */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

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

/* 加载动画 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 预测达成庆祝动画 */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.celebration-overlay.hidden {
    display: none;
}

.celebration-content {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: celebrationBounce 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.celebration-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: sparkle 3s linear infinite;
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconPulse 2s infinite;
}

.celebration-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.celebration-message {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.celebration-time {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confettiFall 5s linear forwards;
}

.confetti:nth-child(2n) {
    background: #48dbfb;
}

.confetti:nth-child(3n) {
    background: #1dd1a1;
}

.confetti:nth-child(4n) {
    background: #feca57;
}

.confetti:nth-child(5n) {
    background: #ff9ff3;
}

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

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

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

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 年度价格新高记录样式 */
.highs-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 25px;
    padding: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.highs-section h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #a8b2d1;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highs-list {
    display: grid;
    gap: 15px;
}

.high-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.high-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #feca57, #ff9ff3);
}

.high-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.high-date {
    font-size: 1rem;
    color: #a8b2d1;
    font-weight: 500;
}

.high-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-highs {
    text-align: center;
    color: #a8b2d1;
    font-size: 1.1rem;
    padding: 40px;
    opacity: 0.7;
}

/* 移动端新高记录适配 */
@media (max-width: 768px) {
    .highs-section {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .highs-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .high-item {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .high-date {
        font-size: 0.9rem;
    }
    
    .high-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .highs-section {
        padding: 15px 10px;
    }
    
    .highs-section h3 {
        font-size: 1.1rem;
    }
    
    .high-item {
        padding: 12px;
    }
}

/* 庆祝状态下的页面样式 */
.celebration-active .header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.celebration-active .price-card {
    border: 2px solid #27ae60;
    box-shadow: 0 0 30px rgba(39, 174, 96, 0.3);
}

.celebration-active .progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
    }
}