/* 企业网银仪表板样式 */

/* Logo布局调整 - 按照图片样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 120px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-chinese {
    font-family: "FZRuiZhengYuan", "SimHei", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "黑体", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    white-space: nowrap;
    line-height: 1.1;
    text-decoration: none;
}

.logo-english {
    font-family: "FZRuiZhengYuan", "Arial", "Helvetica", sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: #333333;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    line-height: 1.1;
    text-decoration: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logo链接样式 - 去掉下划线 */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.logo-link img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.logo-link .logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 120px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-link .logo-chinese {
    font-family: "FZRuiZhengYuan", "SimHei", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "黑体", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    white-space: nowrap;
    line-height: 1.1;
    text-decoration: none;
}

.logo-link .logo-english {
    font-family: "FZRuiZhengYuan", "Arial", "Helvetica", sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: #333333;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    line-height: 1.1;
    text-decoration: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 地区选择器位置调整 - 位于中国建设银行名字右边 */
.header-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 10px;
}

.location-selector {
    position: relative;
    display: inline-block;
}

.location-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    padding: 4px 25px 4px 8px;
    font-size: 12px;
    color: #333333;
    cursor: pointer;
    min-width: 80px;
    height: 28px;
    font-family: "SimHei", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "黑体", sans-serif;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    line-height: 1.2;
}

.location-dropdown:hover {
    border-color: #b0b0b0;
}

.location-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.location-dropdown option {
    padding: 6px 8px;
    font-size: 12px;
    color: #333333;
    background: white;
}

/* 用户欢迎信息 */
.user-welcome {
    background: linear-gradient(135deg, var(--ccb-primary) 0%, var(--ccb-secondary) 100%);
    color: white;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* 头部用户操作 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link {
    color: var(--ccb-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--ccb-secondary);
}

.logout-btn {
    background: var(--ccb-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--ccb-secondary);
    transform: translateY(-1px);
}

/* 主导航栏调整 */
.main-nav {
    background: var(--ccb-primary);
    border-bottom: 2px solid var(--ccb-secondary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    flex: 1;
}

.nav-link {
    padding: 15px 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

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

/* 仪表板布局 */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 30px;
}

/* 左侧面板 */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 常用功能布局 - 改为一行显示 */
.function-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: space-between;
    overflow-x: hidden;
    padding-bottom: 10px;
}

.function-item {
    flex: 1;
    min-width: auto;
    text-align: center;
    padding: 15px 10px;
}

.function-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.function-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.function-category {
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

/* 企业手机银行广告 */
.mobile-banking-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.banner-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.banner-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

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

.qr-code {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.qr-placeholder {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.qr-code p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.ad-label {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

/* 常用功能 */
.common-functions {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.common-functions h3 {
    font-size: 18px;
    color: var(--ccb-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.function-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: space-between;
    overflow-x: hidden;
    padding-bottom: 10px;
}

.function-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 15px 10px;
    background: var(--ccb-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.function-item:hover {
    background: #e8f4fd;
    transform: translateY(-5px);
}

.function-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.function-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.function-category {
    font-size: 11px;
    display: block;
    white-space: nowrap;
    color: var(--ccb-gray);
    background: rgba(0, 61, 130, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

/* 任务标签 */
.task-tabs {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ccb-border);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--ccb-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--ccb-primary);
    border-bottom-color: var(--ccb-primary);
}

.tab-btn:hover {
    color: var(--ccb-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ccb-gray);
}

.empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 扫码下载 */
.scan-download {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.scan-download .qr-code {
    margin-bottom: 15px;
}

.scan-download .qr-placeholder {
    font-size: 50px;
    margin-bottom: 10px;
}

.scan-download p {
    font-size: 12px;
    color: var(--ccb-gray);
    margin: 0;
}

.download-text p {
    font-size: 13px;
    color: var(--ccb-primary);
    font-weight: 500;
}

/* 右侧面板 */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 消息中心 */
.message-center {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-icon {
    font-size: 18px;
    color: var(--ccb-primary);
}

.message-text {
    flex: 1;
    font-size: 14px;
    color: var(--ccb-gray);
}

.view-all-link {
    color: var(--ccb-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* 账户概览 */
.account-overview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 账面余额数字颜色 */
.balance-amount {
    color: #000000;
}

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

.account-header h3 {
    font-size: 18px;
    color: var(--ccb-primary);
    margin: 0;
    font-weight: 600;
}

.refresh-btn {
    background: var(--ccb-light);
    color: var(--ccb-primary);
    border: 1px solid var(--ccb-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--ccb-primary);
    color: white;
}

.account-info {
    margin-bottom: 20px;
}

.account-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ccb-dark);
    margin-bottom: 5px;
}

.account-number {
    font-size: 14px;
    color: var(--ccb-gray);
    font-family: monospace;
}

.balance-section {
    margin-bottom: 20px;
}

.balance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.balance-label span {
    font-size: 14px;
    color: var(--ccb-gray);
}

.eye-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    color: var(--ccb-gray);
    transition: color 0.3s ease;
}

.eye-btn:hover {
    color: var(--ccb-primary);
}

.balance-amount {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
}

.account-actions {
    text-align: center;
}

.account-link {
    color: var(--ccb-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.account-link:hover {
    text-decoration: underline;
}

/* 业务专区 */
.business-zone {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.zone-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--ccb-border);
}

.zone-tab {
    flex: 1;
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--ccb-gray);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.zone-tab.active {
    color: var(--ccb-primary);
    border-bottom-color: var(--ccb-primary);
}

.zone-tab:hover {
    color: var(--ccb-primary);
}

.sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ccb-border);
}

.sub-tab {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--ccb-gray);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.sub-tab.active {
    color: var(--ccb-primary);
    border-bottom-color: var(--ccb-primary);
}

.sub-tab:hover {
    color: var(--ccb-primary);
}

.zone-content {
    text-align: center;
}

.zone-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.banner-image {
    margin-bottom: 10px;
}

.satellite-icon {
    font-size: 40px;
}

.banner-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.banner-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    background: var(--ccb-light);
}

.service-icon {
    font-size: 20px;
}

.service-text {
    font-size: 11px;
    color: var(--ccb-gray);
    text-align: center;
}

/* 底部广告 */
.bottom-ad {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-text h4 {
    font-size: 16px;
    color: var(--ccb-primary);
    margin: 0;
    font-weight: 600;
}

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

.ad-qr .qr-placeholder {
    font-size: 30px;
    margin-bottom: 5px;
}

/* 头部布局调整 - 三项在一行 */
.header-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0;
    gap: 10px;
}

.header-right {
    margin-left: auto;
}

/* 页脚调整 */
.footer {
    margin-top: 40px;
    background: #f8f9fa;
    border-top: 1px solid var(--ccb-border);
}

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

.footer-left p {
    font-size: 12px;
    color: var(--ccb-gray);
    margin: 0;
}

.footer-link {
    color: var(--ccb-primary);
    text-decoration: none;
    font-size: 13px;
}

.footer-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .user-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: none;
    }
    
    .zone-tabs,
    .sub-tabs {
        flex-wrap: wrap;
    }
    
    .zone-tab,
    .sub-tab {
        flex: none;
        min-width: 80px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .function-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .function-category {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .dashboard-layout {
        margin-top: 20px;
    }
    
    .left-panel,
    .right-panel {
        gap: 15px;
    }
    
    .mobile-banking-banner,
    .common-functions,
    .task-tabs,
    .scan-download,
    .message-center,
    .account-overview,
    .business-zone,
    .bottom-ad {
        padding: 20px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
