/* 
 * Milano Eyes Fashion Reward - 积分页面样式
 * 黑金风格设计
 */

/* ======= 积分部分 ======= */
#points {
    background-color: #0a0a0a;
    position: relative;
}

#points::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.points-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* 积分摘要部分 */
.points-summary {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #191919, #232323);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.1);
}

.points-balance {
    padding: 30px;
    text-align: center;
    background: linear-gradient(145deg, #1c1c1c, #262626);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.points-balance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.balance-label {
    display: block;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.balance-amount {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.points-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}

.stat-item {
    padding: 20px;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

/* 积分历史部分 */
.points-history {
    background: linear-gradient(145deg, #191919, #232323);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.1);
}

.points-history h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.points-history h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #d4af37;
}

.history-table-container {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #ffffff;
}

.history-table thead th {
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.history-table thead th:first-child {
    border-top-left-radius: 8px;
}

.history-table thead th:last-child {
    border-top-right-radius: 8px;
}

.history-table tbody tr {
    transition: all 0.3s ease;
}

.history-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.history-table tbody td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.history-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.points-earned {
    color: #4CAF50;
    font-weight: 600;
}

.points-spent {
    color: #F44336;
    font-weight: 600;
}

/* 积分图表部分 */
.points-chart {
    background: linear-gradient(145deg, #191919, #232323);
    border-radius: 15px;
    padding: 30px;
    margin-top: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.1);
}

.points-chart h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.points-chart h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #d4af37;
}

.chart-container {
    height: 300px;
    position: relative;
    margin-top: 20px;
}

/* 图表标签样式 */
.chart-labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: -30px;
    left: 40px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* 图表数值样式 */
.chart-values {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding-right: 10px;
    text-align: right;
    width: 40px;
}

/* 图表网格 */
.chart-grid {
    position: absolute;
    left: 40px;
    right: 20px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* 图表条形 */
.chart-bars {
    position: absolute;
    left: 40px;
    right: 20px;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
}

.bar {
    width: 30px;
    background: linear-gradient(to top, #d4af37, rgba(212, 175, 55, 0.6));
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: height 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;
    font-weight: 600;
    font-size: 0.85rem;
}

.bar:hover {
    background: linear-gradient(to top, #e5c250, rgba(229, 194, 80, 0.7));
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* 图表注释 */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: linear-gradient(to bottom right, #d4af37, rgba(212, 175, 55, 0.6));
}

.legend-text {
    color: #ffffff;
    font-size: 0.9rem;
}
