/* 布局部分 */
.left-section {
    flex: 24; /* 从 20 增加 20% */
    align-items: center;
    justify-content: space-between; /* 均匀分布 */
    position: relative;
    gap: 20px;
    padding: 40px 0; /* 上下留白 */
}

.center-section {
    flex: 46; /* 相应减少中间区域宽度，保持总和不变 (24+46+30=100) */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-section {
    flex: 30;
    overflow: hidden;
    height: 100%;
}

/* 互动引导区 (左侧) */
#qr-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0; /* 关键：在 flex 容器中自动分配上下外边距，实现垂直居中且不随兄弟元素变化 */
}

.qr-container {
    width: 264px; /* 从 220px 增加 20% */
    height: 264px; /* 从 220px 增加 20% */
    background: white;
    padding: 12px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(244, 208, 63, 0.3);
}

.qr-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 4px solid var(--gold-color);
    border-radius: 24px;
    animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.guide-text {
    margin-top: 20px;
    font-size: 28px; /* 相应放大字号 */
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    color: var(--gold-color);
}

/* 资金池面板 */
.fund-pool-panel {
    margin-top: 25px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(244, 208, 63, 0.2);
}

.pool-header {
    font-size: 26px;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.pool-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 22px;
}

.pool-item .highlight {
    color: var(--gold-color);
    font-weight: bold;
    font-family: monospace;
    font-size: 28px;
}

.progress-container {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(244, 208, 63, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-red), var(--gold-color));
    box-shadow: 0 0 10px var(--gold-color);
    transition: width 0.5s ease-out;
}

.progress-text {
    text-align: right;
    font-size: 18px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* 中间区域特定的资金池样式 */
.center-section .fund-pool-panel {
    margin-top: 0;
    padding: 20px 30px;
}

.pool-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pool-info {
    flex: 1;
    display: flex;
    gap: 30px;
}

.pool-info .pool-item {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.progress-area {
    flex: 1.5;
}

.center-section .pool-header {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: left;
}

/* 排行榜看板 (右侧) */
.board-header {
    font-size: 32px;
    color: var(--gold-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ranking-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--primary-red);
}

.ranking-table th {
    text-align: center;
    padding: 15px;
    font-size: 20px;
    border-bottom: 1px solid rgba(244, 208, 63, 0.3);
    color: var(--gold-color);
    background-color: var(--primary-red);
}

.ranking-table td {
    padding: 20px 15px;
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    vertical-align: middle;
}

.rank-row {
    /* 移除 slideIn 动画，改为瞬间更新 */
}

/* 移除不再需要的 slideIn 关键帧 */

.rank-num {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
    margin-right: 10px;
    font-weight: bold;
}

.amount-text {
    color: var(--gold-color);
    font-weight: bold;
    font-family: monospace;
}

.empty-tip {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* 控制区 */
.controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-bottom: 10px;
}

.control-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 改为每行 2 个排列 */
    gap: 8px;
    width: 100%;
}

.status-row {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 8px 4px; /* 进一步减小内边距 */
    font-size: 14px; /* 减小字号 */
}
