/* ============================================================
   旅行社用户列表样式
   ============================================================ */

/* ---------- 容器 ---------- */
.company-list-wrapper {
    padding: 40px 0 60px;
}

.company-list-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.company-list-subtitle {
    font-size: 16px;
    color: #6b6b6b;
    text-align: center;
    margin: 0 0 40px 0;
}

/* ---------- 网格 ---------- */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ---------- 卡片 ---------- */
.company-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    height: auto;
    min-height: 400px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* ---------- Logo 区域 ---------- */
.company-logo-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f2f5;
    flex-shrink: 0;
}

.company-logo {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
    padding: 20px;
    box-sizing: border-box;
}

.company-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #354574;
    color: #ffffff;
}

.company-logo-initials {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- 箭头装饰 ---------- */
.company-arrow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.company-arrow svg {
    display: block;
    width: auto;
    height: 100%;
    fill: #ffffff;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: none;
}

/* ---------- 信息区域 ---------- */
.company-details {
    padding: 18px 30px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.company-text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ---------- 公司名称 ---------- */
.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* ---------- 信息行 ---------- */
.company-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.4;
}

.company-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 1;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #354574;
}

.company-info-text {
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    font-size: 15px;
    color: #333;
}

/* ---------- 分隔线 ---------- */
.company-divider {
    border: 0;
    border-top: 1px solid #e8ecf1;
    margin: 16px 0;
    width: 100%;
    flex-shrink: 0;
}

/* ---------- 按钮 ---------- */
.company-button-area {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.company-profile-btn {
    display: inline-block;
    text-align: center;
    font-size: 14px;
    padding: 10px 28px;
    width: auto;
    min-width: 130px;
    max-width: 100%;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 6px;
    background: #354574;
    color: #ffffff;
    border: none;
    box-sizing: border-box;
    margin: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.company-profile-btn:hover {
    text-decoration: none;
    background: #5F77B8;
    color: #ffffff;
}

/* ---------- 统计信息 ---------- */
.company-list-info {
    text-align: center;
    color: #6b6b6b;
    font-size: 14px;
    margin: -10px 0 20px 0;
}

/* ---------- 空状态 ---------- */
.company-empty {
    text-align: center;
    color: #6b6b6b;
    font-size: 16px;
    padding: 60px 20px;
    background: #f7f7f8;
    border-radius: 12px;
}

/* ============================================================
   分页样式
   ============================================================ */
.company-pagination {
    margin-top: 40px;
    text-align: center;
}

.company-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.company-pagination li {
    display: inline-block;
    margin: 0;
}

.company-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f7f7f8;
    color: #333;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.company-pagination .page-numbers:hover {
    background: #354574;
    color: #ffffff;
    border-color: #354574;
    text-decoration: none;
}

.company-pagination .page-numbers.current {
    background: #354574;
    color: #ffffff;
    border-color: #354574;
    cursor: default;
}

.company-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
    color: #999;
}

.company-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #999;
}

/* ============================================================
   响应式
   ============================================================ */
@media screen and (max-width: 768px) {
    .company-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .company-details {
        padding: 14px 20px 16px;
    }
    
    .company-name {
        font-size: 18px;
        margin: 0 0 10px 0;
    }
    
    .company-info-text {
        font-size: 14px;
    }
    
    .company-profile-btn {
        font-size: 13px;
        padding: 8px 20px;
        min-width: 100px;
    }
    
    .company-logo-initials {
        font-size: 36px;
    }
    
    .company-list-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .company-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .company-list-title {
        font-size: 24px;
    }
    
    .company-list-subtitle {
        font-size: 14px;
        margin: 0 0 24px 0;
    }
    
    .company-details {
        padding: 12px 16px 14px;
    }
    
    .company-name {
        font-size: 16px;
        margin: 0 0 8px 0;
    }
    
    .company-info-text {
        font-size: 13px;
    }
    
    .company-profile-btn {
        font-size: 12px;
        padding: 6px 16px;
        min-width: 80px;
    }
    
    .company-logo-initials {
        font-size: 28px;
    }
    
    .company-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .company-pagination ul {
        gap: 3px;
    }
}

/* ---------- 编辑器内容区域 ---------- */
.company-editor-content {
    margin-bottom: 0;
}

.company-editor-content .wp-block-group__inner-container {
    padding-top: 20px;
}