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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

strong {
    color: #e82c3b;
}

.app-container {
    display: inline;
    min-height: 100vh;
}

/* 左侧导航菜单 - 修改为固定定位 */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1e3c72, #2a5298);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    /* 改为固定定位，不随页面滚动 */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto; /* 如果菜单内容太多，允许在菜单内滚动 */
}

.logo {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo i {
    font-size: 24px;
    color: #409eff;
}

.logo h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-item {
    margin: 5px 15px;
    border-radius: 8px;
    overflow: hidden;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active a {
    background: rgba(64, 158, 255, 0.2);
    color: white;
    border-left: 4px solid #409eff;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item span {
    font-size: 15px;
    font-weight: 500;
}

/* 用户信息区域 */
.user-area {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 24px;
    color: white;
}

.user-details {
    flex: 1;
}

.username {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.user-dropdown-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s;
}

.user-dropdown {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
    z-index: 10;
}

.user-area:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    padding: 15px 20px;
    color: #606266;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f7fa;
    color: #409eff;
}

.dropdown-item i {
    font-size: 14px;
    width: 20px;
}

/* 主内容区域 - 添加左边距避免被固定菜单覆盖 */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: #f5f7fa;
    margin-left: 240px; /* 与侧边栏宽度一致 */
}

.page-content {
    display: none;
    padding: 20px;
    min-height: 100%;
}

.page-content.active {
    display: block;
}

/* 搜索容器 */
.search-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.search-icon {
    color: #409eff;
    font-size: 20px;
}

.searchInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e4e7ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.searchInput:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.searchButton {
    padding: 15px 30px;
    background: linear-gradient(135deg, #409eff, #337ecc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.searchButton:hover {
    background: linear-gradient(135deg, #66b1ff, #409eff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.search-tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #909399;
}

.tip i {
    color: #e6a23c;
    margin-right: 5px;
}

.result-count {
    font-weight: 600;
    color: #404040;
}

/* 公司列表容器 */
.company-list-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e7ed;
}

.list-header h3 {
    color: #303133;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background: white;
    color: #606266;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-options select:focus {
    outline: none;
    border-color: #409eff;
}

/* 三行布局的公司列表 */
.company-list {
    min-height: 400px;
}

.company-card {
    background: white;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
}

.company-card:hover {
    border-color: #409eff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
    transform: translateY(-2px);
}

/* 修改公司名称行样式，让按钮在同一行右侧 */
.company-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.company-name {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #404040;
}

.company-name:hover {
    color: #409eff;
}

/* 修改信息行样式，让label和value在同一行 */
.company-info-row {
    display: flex;
    flex-flow: row wrap;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-right: 24px;
    margin-bottom: 8px;
}

.info-label {
    color: #909399;
    font-size: 13px;
    white-space: nowrap;
}

.info-value {
    color: #606266;
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
}

.info-value a {
    color: #409eff;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.company-address-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #606266;
    font-size: 14px;
}

.company-address-row i {
    color: #909399;
    margin-top: 3px;
}

.company-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    border-radius: 3px;
    padding: 4px 12px;
    background: #f7f8fc;
    width: fit-content;
    color: #606266;
}

.company-contact-row img {
    margin-top: 3px;
}

.company-contact-row span {
    color: #909399;
}

/* 移除原来的按钮行样式，因为按钮已经移到公司名行 */
.company-action-row {
    display: none;
}

.unlock-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #67c23a, #5daf34);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.unlock-btn:hover {
    background: linear-gradient(135deg, #85ce61, #67c23a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
    grid-column: 1 / -1;
}

.empty-state i {
    margin-bottom: 20px;
    color: #c0c4cc;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 10px;
}

.subtext {
    font-size: 14px;
    color: #c0c4cc;
}

/* 空页面样式 */
.empty-page {
    text-align: center;
    padding: 100px 20px;
    color: #909399;
}

.empty-page i {
    margin-bottom: 20px;
    color: #c0c4cc;
}

.empty-page h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #303133;
}

.empty-page p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e4e7ed;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #e4e7ed;
    background: white;
    border-radius: 6px;
    color: #606266;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    border-color: #409eff;
    color: #409eff;
}

.page-btn.active {
    background: #409eff;
    color: white;
    border-color: #409eff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #909399;
    font-size: 14px;
}

.goto-page-input {
    width: 60px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    text-align: center;
}

/* 响应式设计 - 保留与导航、列表等相关的部分 */
@media (max-width: 1200px) {
    .sidebar {
        width: 70px;
    }

    .logo h2, .nav-item span, .user-details, .user-dropdown-icon {
        display: none;
    }

    .logo {
        justify-content: center;
        padding: 25px 10px;
    }

    .nav-item a {
        justify-content: center;
        padding: 15px;
    }

    .user-area {
        padding: 20px 10px;
    }

    .user-info {
        justify-content: center;
    }

    .user-dropdown {
        left: 10px;
        right: 10px;
    }

    .main-content {
        margin-left: 70px; /* 调整左边距以适应变窄的侧边栏 */
    }

    .company-info-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 996px) {
    .company-info-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端将固定定位改为相对定位，以便显示为水平导航栏 */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0 15px;
        height: 60px;
    }

    .logo {
        border-bottom: none;
        padding: 0;
        width: auto;
        margin-right: 15px;
    }

    .logo h2 {
        display: none;
    }

    .nav-menu {
        flex: 1;
        padding: 0;
    }

    .nav-menu ul {
        display: flex;
        justify-content: space-around;
        height: 100%;
    }

    .nav-item {
        margin: 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 120px;
    }

    .nav-item a {
        flex-direction: column;
        padding: 8px 5px;
        text-align: center;
    }

    .nav-item span {
        display: block;
        font-size: 12px;
    }

    .nav-item i {
        font-size: 16px;
        margin-bottom: 3px;
    }

    /* 移动端用户信息区域 */
    .user-area {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        padding: 0;
        border-top: none;
    }

    .user-info {
        padding: 5px;
        gap: 5px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .avatar i {
        font-size: 20px;
    }

    .user-details {
        display: none;
    }

    .user-dropdown-icon {
        display: none;
    }

    .user-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: auto;
        bottom: auto;
        width: 150px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        display: none;
        z-index: 100;
    }

    .user-area:hover .user-dropdown {
        display: block;
    }

    /* 调整主内容区域，移除左边距 */
    .main-content {
        margin-left: 0;
        height: calc(100vh - 60px);
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    #searchInput, #searchButton {
        width: 100%;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .list-controls {
        width: 100%;
        justify-content: space-between;
    }

    .company-info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* 在移动端将label和value放在同一行 */
    .info-item {
        flex-direction: row;
        align-items: center;
    }

    .company-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .company-name {
        margin-bottom: 5px;
    }

    .unlock-btn {
        align-self: flex-end;
    }
}

/* 在较小的移动设备上进一步调整 */
@media (max-width: 480px) {
    .logo {
        display: none;
    }

    .nav-item {
        max-width: none;
    }

    .nav-item span {
        font-size: 11px;
    }

    .nav-item i {
        font-size: 14px;
    }

    .user-area {
        right: 10px;
    }

    .avatar {
        width: 28px;
        height: 28px;
    }

    .avatar i {
        font-size: 18px;
    }

    /* 超小屏幕适配 */
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        margin-bottom: 2px;
    }
}

/* 业务搜索页面特有样式 */
.filter-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e4e7ed;
}

.filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range span {
    color: #909399;
    font-size: 14px;
}

.date-picker {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.date-picker:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #606266;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #409eff;
}

/* 添加快捷日期选项样式 */
.quick-date-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-date-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #606266;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-date-btn:hover {
    border-color: #c0c4cc;
    color: #303133;
}

.quick-date-btn.active {
    background: #409eff;
    color: white;
    border-color: #409eff;
}

.date-range-with-quick {
    display: flex;
    gap: 10px;
}

.custom-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-date span {
    color: #909399;
    font-size: 14px;
}

/* 注册资本Pill按钮样式 */
.pill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #606266;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.pill-btn:hover {
    border-color: #c0c4cc;
    color: #303133;
}

.pill-btn.active {
    background: #409eff;
    color: white;
    border-color: #409eff;
}

/* 筛选操作按钮 */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    /*padding-top: 15px;
    border-top: 1px solid #e4e7ed;*/
}

.secondary-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    color: #606266;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    border-color: #c0c4cc;
    color: #303133;
}

.search-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #409eff, #337ecc);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #66b1ff, #409eff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

/* 业务搜索的公司卡片样式调整 */
.business-company-card .company-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.business-company-card .company-name {
    font-size: 18px;
    font-weight: 600;
    color: #404040;
    cursor: pointer;
    flex: 1;
}

.business-company-card .company-name:hover {
    color: #409eff;
}

.business-company-card .unlock-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #67c23a, #5daf34);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.business-company-card .unlock-btn:hover {
    background: linear-gradient(135deg, #85ce61, #67c23a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.2);
}

.business-company-card .company-info-row {
    display: flex;
}

.business-company-card .info-item {
    display: flex;
    margin-right: 0px;
}

.business-company-card .info-label {
    color: #909399;
    font-size: 13px;
}

.business-company-card .info-value {
    color: #606266;
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
}

.business-company-card .company-business-row {
    background: #f7f8fc;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 4px;
    padding: 8px;
    margin-top: 4px;
}


.business-company-card .company-business-row .company-business-blocks {
    display: flex;
    margin-top: 8px;
}

.business-company-card .company-business-row .company-business-blocks .company-business-block {
    flex: 1 1 0%;
    min-width: 0;
    background-color: #fff;
    padding: 0 8px 8px;
    border-radius: 4px;
}

.business-company-card .company-business-row .company-business-blocks .company-business-block2 {
    margin-left: 8px;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
}

.company-business-block-row {
    display: flex;
    font-size: 12px;
    color: rgba(4, 8, 20, .4);
    line-height: 18px;
    padding-top: 8px;
    overflow: hidden;
}

.company-business-block-row-label {
    width: fit-content;
    flex-shrink: 0;
}

.company-business-block-row-tag {
    background: #fff;
    border: 1px solid #d3d7e0;
    border-radius: 2px;
    margin-right: 6px;
    padding: 0 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.company-business-block-row-value {
    font-size: 12px;
    color: rgba(0,0,0,.73);
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-business-block-goods {
    width: 108px;
    position: relative;
    margin: 3px;
    overflow: hidden;
}
.company-business-block-goods img{
    width: 108px;
    height: 108px;
}
.company-business-block-goods span{
    display: -webkit-box;
    font-size: 12px;
    line-height: 18px;
    margin-top: 8px;
    max-height: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.business-company-card .company-business-keywords {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(4, 8, 20, .86);
    line-height: 22px;
    padding-left: 8px;
}

.business-company-card .company-business-keywords .business-label {
    font-weight: 600;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg,#9f58f5,#7570ff);
    background-clip: text;
    margin-right: 5px;
    white-space: nowrap;
}

.business-company-card .company-business-keywords .business-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-business-deepsearch {
    flex-shrink: 0;
    width: -moz-fit-content;
    width: fit-content;
    white-space: nowrap;
    font-size: 13px;
    color: rgba(0, 0, 0, .4);
    margin-top: 8px;
    line-height: 18px;
}

.company-business-deepsearch-dot {
    height: auto;
    width: 1px;
    color: #d8d8d8;
    margin: 10px 8px 2px;
    background: #d8d8d8;
}

/* 响应式调整（业务搜索部分） */
@media (max-width: 996px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .business-company-card .company-info-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #businessSearchInput, #businessSearchButton {
        width: 100%;
    }

    .pill-selector {
        gap: 6px;
    }

    .pill-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .quick-date-options {
        gap: 6px;
    }

    .quick-date-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

#industryCascader, #regionCascader {
    width: 90%;
    min-height: 40px;
}

.el-cascader {
    width: 100%;
}

/* 修复下拉框层级问题 */
.el-cascader__dropdown {
    z-index: 9999 !important;
}

/* 解锁列表页面特有样式 */

/* 解锁列表筛选行 */
.unlock-filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.unlock-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.unlock-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    white-space: nowrap;
    min-width: 60px;
}

.unlock-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 150px;
}

.unlock-search-input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

/* 解锁日期范围样式 */
.unlock-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.unlock-date-picker {
    flex: 1;
    padding: 10px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 120px;
}

.unlock-date-picker:focus {
    outline: none;
    border-color: #409eff;
}

.unlock-date-separator {
    color: #909399;
    font-size: 14px;
    white-space: nowrap;
}

/* 解锁按钮组 */
.unlock-button-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.unlock-secondary-btn {
    padding: 10px 24px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    color: #606266;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.unlock-secondary-btn:hover {
    border-color: #c0c4cc;
    color: #303133;
    background: #f5f7fa;
}

.unlock-search-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #409eff, #337ecc);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.unlock-search-btn:hover {
    background: linear-gradient(135deg, #66b1ff, #409eff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

/* 解锁表格样式增强 */
.unlock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.unlock-table th {
    background: #f6faff;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid #e4edfc;
}

.unlock-table td {
    padding: 16px;
    border: 1px solid #e4edfc;
    color: #606266;
    transition: all 0.2s;
}

.unlock-table tr:hover {
    background: #f8f9fa;
}

.unlock-table tr:hover td {
    color: #303133;
}

/* 解锁列表空状态 */
.unlock-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.unlock-empty-state i {
    font-size: 48px;
    color: #c0c4cc;
    margin-bottom: 20px;
}

.unlock-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.unlock-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.unlock-contact-name-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.unlock-contact-name {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px; /* 限制人名最大宽度 */
    display: flex;
    align-items: center;
    gap: 4px;
}

.unlock-contact-name i {
    color: #67c23a;
    font-size: 12px;
    flex-shrink: 0;
}

.unlock-contact-separator {
    color: #c0c4cc;
    font-size: 12px;
}

.unlock-contact-phone-container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #ecf5ff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.unlock-contact-phone-container:hover {
    background: #d9ecff;
    transform: translateY(-1px);
}

.unlock-contact-phone-container i.fa-phone-alt {
    font-size: 12px;
    color: #409eff;
    flex-shrink: 0;
}

.unlock-contact-phone-text {
    font-weight: 500;
    white-space: nowrap;
}

.unlock-contact-copy-btn {
    color: #909399;
    font-size: 11px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.unlock-contact-copy-btn:hover {
    opacity: 1;
    color: #409eff;
}

/* 当没有联系人信息时的样式 */
.unlock-no-contact {
    color: #c0c4cc;
    font-style: italic;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
}

/* 只有电话号码时的样式 */
.unlock-phone-only .unlock-contact-phone-container {
    margin-left: 0;
}

/* 解锁列表响应式设计 */
@media (max-width: 1200px) {
    .unlock-filter-row {
        gap: 15px;
    }

    .unlock-filter-group {
        min-width: 180px;
    }
}

@media (max-width: 996px) {
    .unlock-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .unlock-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .unlock-filter-label {
        min-width: auto;
    }

    .unlock-search-input,
    .unlock-date-picker {
        width: 100%;
    }

    .unlock-button-group {
        margin-left: 0;
        justify-content: flex-end;
        width: 100%;
        gap: 10px;
    }

    .unlock-secondary-btn,
    .unlock-search-btn {
        flex: 1;
        max-width: 120px;
    }

    .unlock-contact-name-phone {
        gap: 6px;
    }

    .unlock-contact-name {
        max-width: 60px;
        font-size: 13px;
    }

    .unlock-contact-phone-container {
        padding: 5px 8px;
    }

    .unlock-contact-phone-text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .unlock-table th,
    .unlock-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .unlock-table th:nth-child(1),
    .unlock-table td:nth-child(1) {
        width: 40%;
    }

    .unlock-table th:nth-child(2),
    .unlock-table td:nth-child(2) {
        width: 30%;
    }

    .unlock-table th:nth-child(3),
    .unlock-table td:nth-child(3) {
        width: 30%;
    }

    .unlock-contact-info {
        gap: 3px;
    }

    .unlock-contact-row {
        gap: 8px;
    }

    .unlock-contact-name {
        max-width: 50px;
        font-size: 12px;
    }

    .unlock-contact-separator {
        display: none; /* 在小屏幕上隐藏分隔符 */
    }

    .unlock-contact-phone-container {
        padding: 4px 6px;
        font-size: 12px;
    }
}

/* 在移动设备上，表格允许水平滚动 */
@media (max-width: 480px) {
    .unlock-list {
        overflow-x: auto;
    }

    .unlock-table {
        min-width: 400px;
    }

    .unlock-filter-label {
        font-size: 13px;
    }

    .unlock-search-input,
    .unlock-date-picker {
        font-size: 13px;
        padding: 8px 12px;
    }

    .unlock-secondary-btn,
    .unlock-search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .unlock-contact-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .unlock-contact-phone-container {
        width: 100%;
        justify-content: space-between;
    }

    .unlock-contact-name {
        max-width: 40px;
    }

    .unlock-contact-name i {
        display: none; /* 在小屏幕上隐藏图标 */
    }

    .unlock-contact-phone-text {
        font-size: 11px;
    }
}

/* ===== 首页样式 ===== */

/* 欢迎区域 */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* 概览卡片 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card-icon {
    width: 53px;
    height: 53px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 14px;
    color: #909399;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 4px;
}

.card-unit {
    font-size: 14px;
    color: #909399;
    margin: 0;
}

.card-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 8px;
    background: #f0f2f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #67c23a, #85ce61);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 12px;
    color: #67c23a;
    font-weight: 500;
}

.card-change {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.change-text {
    font-size: 14px;
    font-weight: 500;
}

.change-text.positive {
    color: #67c23a;
}

.change-text.negative {
    color: #f56c6c;
}

.card-countdown {
    margin-top: 8px;
}

.card-countdown span {
    font-size: 14px;
    color: #e6a23c;
    font-weight: 500;
}

/* 首页内容区域 */
.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 1200px) {
    .home-content {
        grid-template-columns: 1fr;
    }
}

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

.section-header h2 {
    font-size: 20px;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 套餐部分 */
.package-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.upgrade-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.current-package {
    margin-bottom: 30px;
}

.package-card {
    background: linear-gradient(135deg, #f5f7fa, #e4e7ed);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.package-card.premium {
    background: linear-gradient(135deg, #409eff, #66b1ff);
    color: white;
}

.package-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #e6a23c;
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.package-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: inherit;
}

.package-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: inherit;
}

.feature-item i {
    color: #67c23a;
}

.package-card.premium .feature-item i {
    color: white;
}

.package-price {
    display: flex;
    align-items: baseline;
    font-size: 24px;
    font-weight: 700;
    color: inherit;
}

.package-price .period {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

.package-price .contract {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
    margin-left: auto;
}

/* 充值部分 */
.recharge-card {
    background: white;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.qrcode-container {
    width: 200px;
    height: 200px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recharge-info {
    flex: 1;
}

.recharge-tip {
    font-size: 16px;
    color: #303133;
    margin-bottom: 20px;
    font-weight: 500;
}

.recharge-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 12px;
    background: white;
    border: 2px solid #e4e7ed;
    border-radius: 8px;
    color: #606266;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    border-color: #409eff;
    color: #409eff;
}

.amount-btn.active {
    background: #ecf5ff;
    border-color: #409eff;
    color: #409eff;
}

.custom-amount {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.custom-amount input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    font-size: 16px;
}

.custom-amount input:focus {
    outline: none;
    border-color: #409eff;
}

.open-qrcode-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #67c23a, #5daf34);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.open-qrcode-btn:hover {
    background: linear-gradient(135deg, #85ce61, #67c23a);
}

.pay-btn {
    padding: 12px 24px;
    background: #f99898;
    color: white;
    border: 2px solid #dcdfe6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-btn:hover {
    border-color: #c0c4cc;
    background: #f55e5e;
}

.recharge-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #909399;
    font-size: 14px;
}

.recharge-notice i {
    color: #409eff;
}

/* 统计部分 */
.stats-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.time-filter select {
    padding: 8px 16px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background: white;
    color: #606266;
    font-size: 14px;
    cursor: pointer;
}

/* 快速操作 */
.quick-actions {
    margin-top: 25px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 20px;
    background: white;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: #409eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.15);
}

.action-btn i {
    font-size: 24px;
    color: #409eff;
}

.action-btn span {
    font-size: 14px;
    color: #606266;
    font-weight: 500;
}

/* 成功通知 */
.success-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #67c23a;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 首页响应式调整 */
@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 24px;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .recharge-card {
        flex-direction: column;
        text-align: center;
    }

    .recharge-amounts {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 20px;
    }

    .overview-card {
        padding: 20px;
    }

    .card-value {
        font-size: 28px;
    }

    .package-section,
    .stats-section {
        padding: 20px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

.business-contact-number-label {
    color: #5c51e8;
    background-color: #edefff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}

.business-enterprise-scale-alg-label {
    color: #08f;
    background: rgba(0, 136, 255, .1);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}

.business-card-split {
    content: "|";
    color: #e9ebf2;
    padding: 0 12px;
    font-size: 14px;
}