/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

#app {
    width: 100%;            /* 占满屏幕 */
    max-width: 480px;       /* 可选：限制最大宽度 */
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
/* Saldo 和 Atur 按钮颜色 */
.account-section .action-btn,
.transactions-section .action-btn {
    color: #6cb6f3;
}

.account-section .action-btn i,
.transactions-section .action-btn i {
    color: #6cb6f3;
}


.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-left i, .status-right i {
    font-size: 12px;
}

/* 用户信息头部 */
.user-header {
    background: #3da6f9;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

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

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f2f4f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.user-details h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.points {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    opacity: 0.9;
}

.points-value {
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.action-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.icon-img{
    width: 100%;
}

.action-icon:hover {
    background-color: rgba(255,255,255,0.2);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}

/* 通用卡片样式 */
.account-section, .transactions-section {
    background-color: white;
    margin: 16px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #fff;
}

.action-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* 账户类型导航 */
.account-nav {
    display: flex;
    justify-content: space-between;
}


.account-nav::-webkit-scrollbar {
    height: 2px;
}

.account-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 1px;
}

.account-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 1px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 0px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f9fafb;
}

.nav-item.active {
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #fbbf24;
    border-radius: 2px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
}

.nav-item.active .nav-icon {
    background-color: #dbeafe;
    color: #3b82f6;
}

.nav-label {
    font-size: 11px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

.nav-item.active .nav-label {
    color: #3b82f6;
    font-weight: 600;
}

/* 账户卡片 */
.account-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfcfe;
    border-radius: 8px;
    padding: 5px 16px ;
    margin-bottom: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    color: #767875;
    margin-bottom: 8px;
}

.account-balance {
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency {
    font-size: 16px;
    font-weight: 500;
    color: #767875;
}

.balance-masked {
    font-size: 16px;
    font-weight: 600;
    color: #767875;
    letter-spacing: 2px;
}

.card-image {
    margin-left: 16px;
}

.bank-card {
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
}

.card-logo {
    font-size: 8px;
    font-weight: bold;
    color: #1f2937;
}

.card-map {
    font-size: 12px;
    text-align: right;
}

/* 其他产品 */
.other-products {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6cb6f3;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
}

.other-products:hover {
    color: #1d4ed8;
}

/* 交易网格 */
.transactions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.transaction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 2px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.transaction-item:hover {
    background-color: #f9fafb;
}

.transaction-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.transaction-label {
    font-size: 10px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.2;
}

.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;                /* 改为从左开始 */
    width: 100%;            /* 占满屏幕 */
    background-color: #fff;
    z-index: 100;
    border-radius: 20px 20px 0 0;
}

/* 底部导航 */
.bottom-nav {
    display: flex;
    justify-content: space-between; /* 子项平均分布 */
    align-items: center;
    width: 100%;
}

.bottom-nav .nav-item {
    flex: 1;                  /* 均分宽度 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.bottom-nav .nav-item .nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.bottom-nav .nav-item .nav-label {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;   /* 给图标和文字留点间距 */
    height: 16px;      /* 控制统一高度 */
    text-align: center;
}

.bottom-nav .nav-item:hover {
    background-color: #f9fafb;
}

.bottom-nav .nav-item.active {
    background-color: #fff;
}

.bottom-nav .nav-item.active::after {
    display: none;
}

.bottom-nav .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
}

.bottom-nav .nav-item.active .nav-icon {
    background-color: #fff;
    color: white;
}

.livin-logo {
    color: white !important;
}

.livin-text {
    font-size: 10px;
    font-weight: bold;
}

.bottom-nav .nav-label {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

.bottom-nav .nav-item.active .nav-label {
    color: #3b82f6;
    font-weight: 600;
}

/* QRIS特殊样式 - 中间突出的扫码图标 */
.bottom-nav .nav-item.qris-special .nav-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    transform: translateY(-8px);
    margin-top: -30px;
}

/* 仅让 QRIS 名字图片在自己的格子里水平/垂直都居中 */
.bottom-nav .nav-item.qris-special .nav-label {
    transform: none !important;        /* 取消上移 */
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 16px;                      /* 与文字高度一致，便于对齐 */
    text-align: center;
}

.bottom-nav .nav-item.qris-special .nav-label img {
    display: block;
    margin: 0 auto;
    max-height: 14px;
    width: auto;
    object-fit: contain;
}

/* QRIS悬停效果 */
.bottom-nav .nav-item.qris-special:hover .nav-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 6px 16px rgba(61, 166, 249, 0.4);
}

/* 确保QRIS图标在突出时保持正确的样式 */
.bottom-nav .nav-item.qris-special.active .nav-icon {
    background-color: #3da6f9 !important;
    color: white !important;
    border-color: #3da6f9 !important;
}

/* 系统导航 */
.system-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;            /* 占满屏幕 */
    height: 24px;
    background-color: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    font-size: 12px;
    z-index: 1000;
}

.system-nav i {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.system-nav i:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 转账页面样式 */
.transfer-page {
    background-color: #f5f5f5;
}

/* 转账页面头部 */
.transfer-header {
    background-color: #3da6f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-left, .header-center, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: center;
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    color: white;
}

.scheduled-btn {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.scheduled-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.scheduled-btn i {
    font-size: 14px;
}

/* 搜索区域 */
.search-section {
    padding: 16px;
    background-color: white;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #374151;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    outline: none;
    border-color: #3da6f9;
    box-shadow: 0 0 0 3px rgba(61, 166, 249, 0.1);
}

/* 转账列表区域 */
.transfer-list-section {
    background-color: white;
    margin: 16px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transfer-list-section .section-header {
    margin-bottom: 16px;
}

.manage-btn {
    background: none;
    border: none;
    color: #3da6f9;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.manage-btn:hover {
    background-color: #f0f9ff;
}

/* 账户标签 */
.account-tab {
    margin-bottom: 20px;
}

.tab-label {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-text {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 底部操作按钮 */
.bottom-action {
    padding: 16px;
    background-color: white;
}

.new-transfer-btn {
    width: 100%;
    background-color: #3da6f9;
    color: white;
    border: none;
    border-radius: 999px;   /* 两边完全圆弧 */
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(61, 166, 249, 0.3);
}


.new-transfer-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 166, 249, 0.4);
}

.new-transfer-btn i {
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 选择银行页面样式 */
.select-bank-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.select-bank-header {
    background-color: #3da6f9;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.method-tabs {
    display: flex;
    background-color: white;
    margin: 16px;
    border-radius: 12px;
    padding: 4px;
    
}

.method-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.method-tab.active {
    
    color: white;
   
}

.form-section {
    background-color: white;
    margin: 16px;
    border-radius: 12px;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.bank-select {
    position: relative;
    width: 100%;
}

.bank-selector {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.bank-selector:hover {
    border-color: #3da6f9;
}

.bank-selector.active {
    border-color: #3da6f9;
    box-shadow: 0 0 0 3px rgba(61, 166, 249, 0.1);
}

.bank-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.bank-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.bank-option:last-child {
    border-bottom: none;
}

.bank-option:hover {
    background-color: #f9fafb;
}

.bank-option.selected {
    background-color: #eff6ff;
    color: #3da6f9;
    font-weight: 600;
}

.account-input {
    width: 100%;
    padding: 8px 0px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.2s;
}
/* 确保 QRIS 名字图片在底部导航里居中 */
.bottom-nav .nav-label img {
    display: block;
    margin: 0 auto;
    max-height: 14px;  /* 保持高度一致 */
    object-fit: contain;
}

.account-input:focus {
    outline: none;
    border-color: #3da6f9;
    box-shadow: 0 0 0 3px rgba(61, 166, 249, 0.1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-btn:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

.bottom-action {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    padding: 16px;
    background-color: white;
    z-index: 100;
}

.continue-btn {
    width: 100%;
    background-color: #3da6f9;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(61, 166, 249, 0.3);
}

.continue-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 166, 249, 0.4);
}

.continue-btn:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 确认弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

/* 弹窗内容 */
.modal-content {
    background-color: white;
    width: 100%;            /* 占满屏幕宽度 */
    max-width: 480px;       /* 保持居中美观 */
    padding: 24px;
    animation: slideUp 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0 auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.recipient-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.recipient-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.recipient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3da6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.recipient-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.recipient-details p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.recipient-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.action-button.primary {
    background-color: #3da6f9;
    color: white;
    border-color: #3da6f9;
}

.action-button.primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 375px) {
    #app {
        max-width: 100%;
    }
    
    .account-nav {
    display: flex;
    justify-content: space-between; /* 平均分布 */
    margin-top: 10px;
}
/* 每个项目平均占满宽度 */
.account-nav .nav-item {
    flex: 1;                  /* 每个 item 平分宽度 */
    text-align: center;       /* 居中 */
    padding: 10px 0;
}
.account-nav .nav-item.active {
    border-bottom: 2px solid #6cb6f3; /* 选中高亮 */
    font-weight: 600;
}
.account-nav .nav-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}
    
    .transactions-grid {
        gap: 10px;
    }
    
    .transaction-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-section, .transactions-section {
    animation: fadeIn 0.3s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
