:root {
    --primary-color: #f7931a;
    --secondary-color: #4d4d4d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* 比特币价格显示 */
#btc-price-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    margin: 15px auto;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#current-btc-price {
    font-size: 24px;
    font-weight: bold;
    margin-left: 5px;
}

.price-up {
    color: #4CAF50;
    animation: pulse 1s;
}

.price-down {
    color: #F44336;
    animation: pulse 1s;
}

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

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.history-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.history-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 投票区域 */
#voting-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#vote-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

.vote-option {
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.vote-option.selected {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(247, 147, 26, 0.3);
}

#vote-counts {
    margin: 15px 0;
    font-size: 16px;
    color: var(--secondary-color);
}

#submit-vote {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

#submit-vote:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(247, 147, 26, 0.3);
}

#submit-vote[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 资产区域 */
#portfolio-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#portfolio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.portfolio-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.portfolio-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.portfolio-card small {
    color: var(--secondary-color);
    font-size: 14px;
}

/* 图表区域 */
#quick-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* 历史记录页面样式 */
.back-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: var(--primary-color);
    color: white;
}

#history-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

#history-table {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:hover {
    background-color: rgba(247, 147, 26, 0.05);
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding-bottom: 60px;
    }
    
    .history-link, .back-link {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #vote-options {
        flex-direction: column;
    }
    
    #quick-charts, #history-charts {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card {
        padding: 15px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
    }
}
