:root {
    --primary-color: #000;
    --secondary-color: #666;
    --bg-color: #fff;
    --card-purple: linear-gradient(135deg, #f0f0ff 0%, #e6e6ff 100%);
    --card-pink: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    --card-gray: linear-gradient(135deg, #f5f5f5 0%, #e6e6e6 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa;
}

.container {
    display: grid;
    grid-template-columns: 80px 1fr 400px;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    background: #fff;
    border-right: 1px solid #eee;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    margin-bottom: 40px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-items li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    position: relative;
}

.nav-items li i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-items li:hover i {
    opacity: 1;
}

.nav-items li.active {
    position: relative;
}

.nav-items li.active i {
    opacity: 1;
}

.nav-items li.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
}

/* 主内容区样式 */
.main-content {
    padding: 40px;
    background: #fafafa;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search {
    position: relative;
    width: 300px;
}

.search input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 15px;
    transition: background 0.3s ease;
}

.search input:focus {
    background: #f0f0f0;
    outline: none;
}

.search::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('../assets/icons/search.svg') no-repeat center;
    background-size: contain;
    opacity: 0.4;
}

.notification {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification:hover {
    background: #f0f0f0;
}

.notification img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #FF5252;
    border-radius: 50%;
    border: 2px solid #fff;
}

.header-profile {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.header-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* 卡片区域样式 */
.cards {
    margin: 40px 0;
}

.cards h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card.universal {
    background: var(--card-purple);
}

.card.gold {
    background: var(--card-pink);
}

.card.silver {
    background: var(--card-gray);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header span {
    font-size: 18px;
    font-weight: 600;
}

.card-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header button:hover {
    opacity: 1;
}

.card-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-number {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.6;
}

.card-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 30px;
    object-fit: contain;
}

/* 交易记录样式 */
.transactions {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.filter {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter:hover {
    background: #f0f0f0;
}

.filter img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.transactions-wrapper {
    background: white;
    border-radius: 20px;
    padding: 0;
}

.transactions-table {
    width: 100%;
    border-spacing: 0;
}

.transactions-table th {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 12px 20px;
    border-top: none;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon img {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.transaction-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.transaction-date {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.transactions-table td:nth-child(2) {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cashback {
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
}

.amount {
    color: #FF5252;
    font-weight: 600;
    font-size: 14px;
}

.transactions-table tr:hover {
    background: #fafafa;
}

/* 货币兑换面板样式 */
.currency-exchange {
    background: #000;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.profile {
    text-align: center;
}

.profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 25px;
    object-fit: cover;
}

.profile-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    display: block;
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.exchange-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
}

.exchange-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.amount-group label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.amount-input-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 500;
}

.amount-input {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: 500;
    width: 100%;
}

.amount-input:focus {
    outline: none;
}

.currency-selectors {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

.currency-btn {
    flex: 1;
    background: white;
    color: black;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.currency-btn:hover {
    opacity: 0.9;
}

.currency-btn .arrow {
    font-size: 10px;
    opacity: 0.5;
}

.exchange-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.exchange-arrow img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.conversion-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.result-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.result-amount .amount {
    font-size: 20px;
    font-weight: 500;
}

.exchange-rates {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rate {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.convert-btn {
    background: white;
    color: black;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.convert-btn:hover {
    opacity: 0.9;
}

.last-update {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 20px;
}

/* 资金流动图表 */
.money-flow {
    margin-top: 40px;
}

.money-flow .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.money-flow h2 {
    font-size: 24px;
    font-weight: 700;
}

.date-selector {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 10px;
}

.date-btn {
    border: none;
    background: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-btn:hover {
    color: #333;
}

.date-btn.active {
    background: white;
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#flowChart {
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 20px;
    padding: 25px;
}

/* 图表样式覆盖 */
.money-flow .chart-legend {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

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

.money-flow .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.money-flow .legend-dot.income {
    background: #000;
}

.money-flow .legend-dot.expenses {
    background: #666;
}

.money-flow .legend-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
 