/* ============================================================
   卡片列表通用样式（导游 + 旅行社）
   继承主题宽度，居中显示
   ============================================================ */

/* ---------- 容器 ---------- */
.guide-card-list-wrapper,
.company-card-list-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ---------- 网格 ---------- */
.guide-card-grid,
.company-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 20px 0;
    width: 100%;
}

/* ---------- 卡片 ---------- */
.guide-card-item,
.company-card-item {
    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: 380px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.guide-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* 占位 */
.guide-card-avatar-placeholder,
.company-card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #354574;
    color: #ffffff;
}

.guide-card-avatar-initials,
.company-card-logo-initials {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

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

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

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

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

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

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

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

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

.guide-card-profile-btn,
.company-card-profile-btn {
    display: inline-block;
    text-align: center;
    font-size: 14px;
    padding: 10px 28px;
    width: auto;
    min-width: 110px;
    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;
}

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

/* ---------- "更多"按钮 ---------- */
.guide-card-more-wrapper,
.company-card-more-wrapper {
    text-align: left;
    margin-top: 40px;
}

/* 居左对齐 */
.guide-card-more-wrapper-left,
.company-card-more-wrapper-left {
    text-align: left;
    margin-top: 40px;
}

.guide-card-more-btn,
.company-card-more-btn {
    display: inline-block;
    font-size: 16px;
    padding: 12px 40px;
    background: #354574;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
}

.guide-card-more-btn:hover,
.company-card-more-btn:hover {
    text-decoration: none;
    background: #5F77B8;
    color: #ffffff;
}

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

/* ============================================================
   卡片列表标题样式
   ============================================================ */
.card-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ============================================================
   响应式
   ============================================================ */
@media screen and (max-width: 1024px) {
    .guide-card-grid,
    .company-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .guide-card-grid,
    .company-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .guide-card-details,
    .company-card-details {
        padding: 14px 16px 16px;
    }
    
    .guide-card-name,
    .company-card-name {
        font-size: 17px;
        margin: 0 0 10px 0;
    }
    
    .guide-card-info-text,
    .company-card-info-text {
        font-size: 14px;
    }
    
    .guide-card-profile-btn,
    .company-card-profile-btn {
        font-size: 13px;
        padding: 8px 20px;
        min-width: 90px;
    }
    
    .guide-card-avatar-initials,
    .company-card-logo-initials {
        font-size: 32px;
    }
    
    .card-section-title {
        font-size: 26px;
        margin: 0 0 30px 0;
    }
}

@media screen and (max-width: 480px) {
    .guide-card-grid,
    .company-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .guide-card-details,
    .company-card-details {
        padding: 12px 14px 14px;
    }
    
    .guide-card-name,
    .company-card-name {
        font-size: 16px;
        margin: 0 0 8px 0;
    }
    
    .guide-card-info-text,
    .company-card-info-text {
        font-size: 14px;
    }
    
    .guide-card-info-row,
    .company-card-info-row {
        margin-bottom: 4px;
    }
    
    .guide-card-icon,
    .company-card-icon {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        font-size: 14px;
        margin-right: 6px;
    }
    
    .guide-card-profile-btn,
    .company-card-profile-btn {
        font-size: 13px;
        padding: 8px 20px;
        min-width: 80px;
    }
    
    .guide-card-avatar-initials,
    .company-card-logo-initials {
        font-size: 28px;
    }
    
    .guide-card-more-btn,
    .company-card-more-btn {
        font-size: 14px;
        padding: 10px 30px;
    }
    
    /* 移动端也居左 */
    .guide-card-more-wrapper-left,
    .company-card-more-wrapper-left {
        text-align: left;
    }
    
    .card-section-title {
        font-size: 22px;
        margin: 0 0 24px 0;
    }
}