/* 账户信息页面样式 */

/* 企业网银头部样式 - 与图片排版一致 */
.enterprise-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bank-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.bank-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chinese-name {
    font-size: 18px;
    font-weight: bold;
    color: #1e3a8a;
    line-height: 1.2;
}

.english-name {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    width: 300px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

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

.action-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.action-link:hover {
    background-color: #f0f0f0;
}

.action-link.logout {
    color: #dc2626;
    font-weight: bold;
}

.welcome-message {
    padding: 15px 20px;
    font-size: 14px;
    color: #000000;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

/* 用户欢迎信息样式 */
.user-welcome {
    background: var(--ccb-primary);
    color: white;
    padding: 10px 0;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text {
    font-size: 14px;
    margin: 0;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hide-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
}

.hide-checkbox input[type="checkbox"] {
    margin: 0;
}

.welcome-icon {
    font-size: 16px;
    color: var(--ccb-accent);
}

/* 主导航栏调整 */
.main-nav {
    background: var(--ccb-primary);
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--ccb-secondary);
    border-bottom-color: var(--ccb-accent);
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb span {
    font-size: 12px;
    color: #666;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 400px);
}

/* 账户基本信息 */
.account-info-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    background: var(--ccb-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.refresh-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--ccb-primary);
}

.info-item label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.info-item span {
    color: #666;
    font-size: 14px;
    text-align: right;
    max-width: 200px;
    word-break: break-all;
}

.status-active {
    color: #28a745 !important;
    font-weight: 600;
}



/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    background: var(--ccb-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.action-btn:hover {
    background: var(--ccb-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 页脚样式 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.qr-codes {
    display: flex;
    gap: 20px;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 5px;
}

.qr-code p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .welcome-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .permissions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px 0;
    }
    
    .info-grid {
        gap: 15px;
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item span {
        text-align: left;
        max-width: none;
    }
    
    .balance-grid {
        grid-template-columns: 1fr;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-codes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .balance-item {
        padding: 15px;
    }
    
    .balance-amount {
        font-size: 20px;
    }
}

/* 无障碍和高对比度支持 */
@media (prefers-contrast: high) {
    .info-item {
        border-left-width: 6px;
    }
    
    .permission-item {
        border-left-width: 6px;
    }
    
    .action-btn {
        border: 2px solid var(--ccb-primary);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .action-btn {
        transition: none;
    }
}
