/* 公司机构页面专用样式 */
/* 头部登录区域样式调整 */

/* 头部顶部行布局 */
.header-top-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    gap: 20px;
}

/* 登录区域样式调整 */
.header-login-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.header-login-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px; /* 与选择框高度一致 */
    position: relative;
}

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

.header-login-type-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 6px 35px 6px 12px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    min-width: 100px;
    height: 32px; /* 减少高度 */
    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 8px center;
    background-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-login-type-dropdown:hover {
    border-color: #b0b0b0;
}

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

.header-login-button {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px; /* 与选择框高度一致 */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-login-button:hover {
    background: #2d5aa0;
    transform: translateY(-1px);
}

.header-login-button:active {
    transform: translateY(0);
}

.lock-icon {
    font-size: 14px;
}

.login-text {
    font-size: 14px;
}

/* 展开箭头样式 */
.expand-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.7;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.expand-arrow:hover {
    transform: translateX(-50%) translateY(2px);
    opacity: 1;
}

.arrow-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.expand-arrow.expanded .arrow-icon {
    transform: rotate(180deg);
}

/* 功能链接样式 - 默认隐藏 */
.header-login-features {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-login-features.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.header-feature-link {
    text-decoration: none;
    color: #4a90e2;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: rgba(74, 144, 226, 0.1);
}

.header-feature-link:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #2d5aa0;
}

.header-feature-link.active {
    background: #4a90e2;
    color: white;
}

/* 底部链接样式 */
.header-login-bottom-links {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-login-bottom-links.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.header-bottom-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: color 0.3s ease;
}

.header-bottom-link:hover {
    color: #4a90e2;
}

.link-icon {
    font-size: 14px;
}

.link-text {
    font-size: 12px;
}

.separator {
    color: #ccc;
    font-size: 12px;
}

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

.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: 0;
    gap: 20px;
    flex: 1;
}

.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;
}

/* 头部布局调整 - 垂直布局 */
.header-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px 0;
    gap: 0;
    width: 100%;
}

.product-services {
    display: flex;
    align-items: center;
}

.services-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-link {
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.service-link:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-login-section {
        max-width: 300px;
    }
    
    .header-login-features {
        gap: 5px;
    }
    
    .header-feature-link {
        font-size: 9px;
        padding: 2px 5px;
    }
}

@media (max-width: 992px) {
    .header-top-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .header-main {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-login-section {
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }
    
    .header-center {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        flex: none;
    }
    
    .logo {
        align-items: center;
        text-align: center;
    }
    
    .logo-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-top-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .header-center {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        flex: none;
    }
    
    .services-links {
        gap: 10px;
    }
    
    .service-link {
        font-size: 16px;
        padding: 3px 6px;
    }
    
    .header-login-box {
        flex-direction: column;
        gap: 6px;
    }
    
    .header-login-features {
        justify-content: center;
    }
    
    .header-login-bottom-links {
        flex-direction: column;
        gap: 4px;
    }
    
    .separator {
        display: none;
    }
}

/* 移除原有的登录区域样式 */
.login-section {
    display: none;
}

/* 面包屑导航调整 */
.breadcrumb {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--ccb-border);
    font-size: 12px;
}

.breadcrumb a {
    color: var(--ccb-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--ccb-gray);
} 