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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #667eea;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.last-update {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Main Content */
main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

h3 {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 15px;
}

/* Price Overview */
.price-overview {
    text-align: center;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.unit {
    font-size: 1rem;
    opacity: 0.9;
}

.price-change {
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.price-change span:first-child {
    font-weight: bold;
}

.price-change span:last-child {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
}

.positive {
    color: #4ade80;
}

.negative {
    color: #f87171;
}

/* Tables */
.price-tables {
    overflow-x: auto;
}

.table-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e5e7eb;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.table-content {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.price-table {
    display: none;
}

.price-table.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: #667eea;
    color: white;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
}

tbody tr:hover {
    background: #f9fafb;
}

/* Charts */
.price-charts, .technical-analysis, .three-day-comparison {
    background: #f9fafb;
    padding: 25px;
    border-radius: 15px;
}

.chart-tabs, .tech-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.chart-tab-btn, .tech-tab-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chart-tab-btn:hover, .tech-tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.chart-tab-btn.active, .tech-tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.chart-container {
    position: relative;
    height: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Technical Indicators */
.tech-indicators {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.indicator-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.indicator-item strong {
    display: block;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.indicator-item span {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 0;
    text-align: center;
    color: #666;
}

footer p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .chart-tabs, .tech-tabs {
        flex-direction: column;
    }
    
    .chart-tab-btn, .tech-tab-btn {
        width: 100%;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 10px 5px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* SEO Content */
.seo-content {
    background: #f9fafb;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.seo-content h2 {
    font-size: 1.6rem;
    color: #667eea;
    margin-bottom: 20px;
}

.seo-article h3 {
    font-size: 1.3rem;
    color: #555;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.seo-article h3:first-child {
    margin-top: 0;
}

.seo-article p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.seo-article strong {
    color: #667eea;
    font-weight: 600;
}

.seo-article ul {
    margin: 15px 0;
    padding-left: 25px;
}

.seo-article li {
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

.seo-article li strong {
    color: #667eea;
    font-weight: 600;
}

@media (max-width: 768px) {
    .seo-content {
        padding: 20px;
    }
    
    .seo-content h2 {
        font-size: 1.3rem;
    }
    
    .seo-article h3 {
        font-size: 1.1rem;
    }
    
    .seo-article p {
        font-size: 0.95rem;
    }
}
