/* ============================================================
   company.css - 实体墓园栏目专属样式（完整版）
   ============================================================ */

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 12px 0 16px;
    font-size: 13px;
    color: #999;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #FF6600; }
.breadcrumb .sep { margin: 0 6px; color: #ddd; }

/* ---------- 页面标题 ---------- */
.page-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0ede8;
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}
.page-header .sub-title {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}

/* ============================================================
   搜索区域 - 独立类名，完全避免与 main.css 冲突
   ============================================================ */
.company-search {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    border: 1px solid #e8e5e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}

/* 表单 - 使用独立类名，不被 main.css 的 .search-form 影响 */
.company-search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    box-sizing: border-box;
    max-width: none !important;
    border: none;
    background: transparent;
    border-radius: 0;
}

/* 每个搜索项 */
.company-search-item {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* 关键词 - 弹性伸缩，占满剩余空间 */
.company-search-keyword {
    flex: 1 1 150px;
    min-width: 100px;
}

/* 区域 - 固定宽度自适应 */
.company-search-area {
    flex: 0 1 auto;
    min-width: 0;
}

/* 标签 */
.company-search-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 关键词输入框 - 独立类名 */
.company-search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1.5px solid #e0ddd8;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #fafafa;
    height: 34px;
    min-width: 60px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.25s;
}
.company-search-input:focus {
    border-color: #FF6600;
    background: #fff;
}

/* ---- 区域选择器（area_static.php 中的类名） ---- */
.company-area-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.company-area-select {
    padding: 5px 18px 5px 8px;
    border: 1.5px solid #e0ddd8;
    border-radius: 6px;
    font-size: 13px;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 7px 7px;
    height: 34px;
    box-sizing: border-box;
    transition: border-color 0.25s;
}

.company-area-select#area1 {
    min-width: 60px;
    max-width: 100px;
    width: auto;
}
.company-area-select#area2 {
    min-width: 60px;
    max-width: 100px;
    width: auto;
}
.company-area-select#area3 {
    min-width: 55px;
    max-width: 90px;
    width: auto;
}

.company-area-select:focus {
    border-color: #FF6600;
    background: #fff;
}

/* ---- 搜索按钮 - 独立类名 ---- */
.company-search-btn {
    padding: 6px 22px;
    background: #FF6600;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    height: 34px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
.company-search-btn:hover {
    background: #CD5403;
}

/* ---------- 布局 ---------- */
.company-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.company-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}
.company-sidebar {
    flex: 0 0 260px;
    min-width: 0;
    max-width: 100%;
}

/* ---------- 商家卡片 ---------- */
.company-card {
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px;
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    gap: 16px;
    border: 1px solid #f0ede8;
    position: relative;
}
.company-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
.company-card .card-left {
    flex-shrink: 0;
    text-align: center;
    width: 110px;
}
.company-card .card-left a {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f0ede8;
    transition: border-color 0.3s;
    margin: 0 auto;
}
.company-card:hover .card-left a {
    border-color: #FF6600;
}
.company-card .card-left a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.company-card:hover .card-left a img {
    transform: scale(1.05);
}
.company-card .card-left .card-follow {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.company-card .card-body {
    flex: 1;
    min-width: 0;
}
.company-card .card-title {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.company-card .card-title a {
    color: #1a1a1a;
    transition: color 0.2s;
}
.company-card .card-title a:hover {
    color: #FF6600;
}
.company-card .card-title img {
    vertical-align: middle;
}
.company-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 6px 0 8px;
}
.company-card .card-tags .tag {
    display: inline-block;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 22px;
    font-weight: 500;
    background: #f5f4f2;
    color: #666;
}
.company-card .card-tags .tag-phone { background: #E3F2FD; color: #1565C0; }
.company-card .card-tags .tag-email { background: #E8F5E9; color: #2E7D32; }
.company-card .card-tags .tag-id { background: #F3E5F5; color: #6A1B9A; }
.company-card .card-tags .tag-bond { background: #FFF3E0; color: #E65100; }
.company-card .card-tags .tag-memorial { background: #FCE4EC; color: #C62828; }
.company-card .card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.company-card .card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.company-card .card-actions a {
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    text-decoration: none;
}
.company-card .card-actions .btn-contact {
    background: #FF6600;
    color: #fff;
}
.company-card .card-actions .btn-contact:hover {
    background: #CD5403;
    color: #fff;
    transform: translateY(-1px);
}
.company-card .card-actions .btn-visit {
    background: #f0f0f0;
    color: #666;
}
.company-card .card-actions .btn-visit:hover {
    background: #e0e0e0;
    color: #333;
}
.company-card .card-actions .btn-review {
    background: #f0f0f0;
    color: #666;
}
.company-card .card-actions .btn-review:hover {
    background: #FFF3E0;
    color: #E65100;
}
.company-card .card-score {
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-left: 2px solid #f0ede8;
    padding-left: 16px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.company-card .card-score .score-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.7;
}
.company-card .card-score .score-item span {
    color: #FF6600;
    font-weight: 600;
}
.company-card .card-score .score-total {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f0ede8;
    font-size: 13px;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.company-card .card-score .score-total strong {
    color: #FF6600;
    font-size: 18px;
}

/* ---------- 侧边栏 ---------- */
.company-sidebar > * {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #f0ede8;
}
.sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0ede8;
    margin-bottom: 10px;
}
.sidebar-title .more {
    font-weight: 400;
    font-size: 12px;
    color: #999;
}
.sidebar-title .more:hover {
    color: #FF6600;
}

/* 排行列表 */
.rank-list .rank-header {
    display: flex;
    font-size: 12px;
    color: #999;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0ede8;
    margin-bottom: 4px;
    font-weight: 500;
}
.rank-list .rank-header span:first-child { width: 32px; }
.rank-list .rank-header span:nth-child(2) { flex: 1; }
.rank-list .rank-header span:last-child { width: 36px; text-align: right; }
.rank-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #f5f4f2;
}
.rank-list li:last-child {
    border-bottom: none;
}
.rank-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a1a1a;
}
.rank-list li a:hover {
    color: #FF6600;
}
.rank-list .rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    background: #f5f4f2;
    color: #666;
}
.rank-list .rank-num.rank-1 { background: #FF6B35; color: #fff; }
.rank-list .rank-num.rank-2 { background: #FFA94D; color: #fff; }
.rank-list .rank-num.rank-3 { background: #FFD93D; color: #333; }
.rank-list .rank-score {
    flex-shrink: 0;
    font-size: 12px;
    color: #FF6600;
    font-weight: 600;
    width: 36px;
    text-align: right;
}

/* 最新资讯 */
.news-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #f5f4f2;
    font-size: 13px;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a1a1a;
}
.news-list li a:hover {
    color: #FF6600;
}
.news-list li .rank-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    border-radius: 4px;
    background: #f5f4f2;
    color: #666;
}
.news-list li .rank-num.rank-1 { background: #FF6B35; color: #fff; }
.news-list li .rank-num.rank-2 { background: #FFA94D; color: #fff; }
.news-list li .rank-num.rank-3 { background: #FFD93D; color: #333; }

/* ---------- 分页 ---------- */
.pagination-wrapper {
    padding: 16px 0;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.pagination a,
.pagination .current,
.pagination .ellipsis {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.25s;
    min-width: 36px;
    text-align: center;
}
.pagination a {
    background: #f5f4f2;
    color: #666;
    text-decoration: none;
}
.pagination a:hover {
    background: #e8e5e0;
    color: #333;
}
.pagination .current {
    background: #FF6600;
    color: #fff;
    font-weight: 700;
}
.pagination .ellipsis {
    background: transparent;
    color: #999;
    padding: 6px 4px;
}
.pagination .first,
.pagination .last,
.pagination .prev,
.pagination .next {
    font-size: 15px;
    padding: 6px 10px;
}

/* ============================================================
   详情页样式
   ============================================================ */
.company-detail-header {
    display: flex;
    gap: 24px;
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    border: 1px solid #f0ede8;
}
.detail-slider {
    flex: 0 0 380px;
    position: relative;
}
.detail-slider .Homeslide_bigpicdiv img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
}
.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.detail-actions a,
.detail-actions span a {
    font-size: 13px;
    color: #666;
    padding: 4px 14px;
    border-radius: 6px;
    background: #f5f4f2;
    transition: all 0.25s;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.detail-actions a:hover,
.detail-actions span a:hover {
    background: #e8e5e0;
    color: #333;
}
.detail-info {
    flex: 1;
    min-width: 0;
}
.detail-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.detail-title img {
    vertical-align: middle;
}
.detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 12px;
    flex-wrap: wrap;
}
.detail-rating .stars {
    display: inline-flex;
    gap: 2px;
}
.detail-rating .star {
    font-size: 18px;
    color: #ddd;
}
.detail-rating .star.active {
    color: #FFB800;
}
.detail-rating .rating-score {
    font-size: 18px;
    font-weight: 700;
    color: #FF6600;
}
.detail-rating .rating-count {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    text-decoration: none;
}
.detail-rating .rating-count:hover {
    color: #FF6600;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
}
.info-list li {
    display: flex;
    padding: 3px 0;
    font-size: 13px;
}
.info-list .label {
    color: #999;
    width: 70px;
    flex-shrink: 0;
}
.info-list .value {
    color: #1a1a1a;
}
.detail-seller {
    flex: 0 0 160px;
}
.detail-seller .seller-card {
    text-align: center;
}
.detail-seller .seller-card img {
    max-width: 100%;
    border-radius: 6px;
}

/* 详情下方 */
.company-detail-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.detail-left {
    flex: 0 0 240px;
}
.detail-right {
    flex: 1;
    min-width: 0;
}

/* 侧边小卡片 */
.side-block {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    border: 1px solid #f0ede8;
}
.side-title {
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ede8;
    margin-bottom: 8px;
}
.side-list li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f4f2;
    align-items: center;
}
.side-list li:last-child {
    border-bottom: none;
}
.side-list .side-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.side-list .side-info {
    flex: 1;
    min-width: 0;
    font-size: 13px;
}
.side-list .side-info a {
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.side-list .side-info a:hover {
    color: #FF6600;
}
.side-list .side-info img {
    vertical-align: middle;
}

/* Tab切换 */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0ede8;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.detail-tabs li {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    margin-bottom: -2px;
    list-style: none;
}
.detail-tabs li:hover {
    color: #FF6600;
}
.detail-tabs li.active {
    color: #FF6600;
    border-bottom-color: #FF6600;
}
.detail-tab-content {
    display: none;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0ede8;
}
.detail-tab-content.active {
    display: block;
}
.detail-text {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    word-wrap: break-word;
    overflow: hidden;
}
.detail-text img {
    max-width: 100%;
    height: auto;
}

/* 评价汇总 */
.rating-summary {
    display: flex;
    gap: 12px;
    background: #f8f7f5;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.rating-summary .rating-item {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 0 8px;
    min-width: 60px;
}
.rating-summary .rating-item strong {
    display: block;
    font-size: 22px;
    color: #FF6600;
}
.rating-summary .rating-item:first-child {
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    min-width: 40px;
}
.rating-summary .rating-item:last-child {
    display: flex;
    align-items: center;
    min-width: auto;
}
.rating-summary .rating-item:last-child a {
    color: #FF6600;
    font-weight: 600;
    text-decoration: none;
}
.rating-summary .rating-item:last-child a:hover {
    text-decoration: underline;
}

/* 评价列表 */
.review-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0ede8;
}
.review-item:last-child {
    border-bottom: none;
}
.review-avatar {
    flex-shrink: 0;
    text-align: center;
    width: 56px;
}
.review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0ede8;
}
.review-avatar span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-body {
    flex: 1;
    min-width: 0;
}
.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.review-stars .star {
    font-size: 16px;
    color: #ddd;
}
.review-stars .star.active {
    color: #FFB800;
}
.review-stars .review-score {
    font-size: 13px;
    font-weight: 600;
    color: #FF6600;
    margin-left: 4px;
}
.review-stars .review-time {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    font-weight: 400;
}
.review-text {
    font-size: 14px;
    color: #333;
    margin: 4px 0;
    word-break: break-word;
    line-height: 1.7;
}
.review-img {
    border-radius: 6px;
    margin: 2px 2px 0 0;
    border: 1px solid #f0ede8;
}
.review-reply {
    font-size: 13px;
    color: #666;
    background: #f8f7f5;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 4px;
}
.review-all {
    text-align: center;
    padding: 16px 0;
}
.review-all a {
    color: #FF6600;
    font-weight: 600;
    text-decoration: none;
}
.review-all a:hover {
    text-decoration: underline;
}

/* 评价列表标题 */
.review-list-header {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0 12px;
    border-bottom: 2px solid #f0ede8;
    margin-bottom: 4px;
}
.review-list-header span {
    color: #FF6600;
}

/* 查看墓园详情按钮 */
.btn-visit-muyuan {
    display: inline-block;
    padding: 6px 20px;
    background: #FF6600;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s;
}
.btn-visit-muyuan:hover {
    background: #CD5403;
    color: #fff;
}

/* 评价列表页 */
.review-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.review-sidebar {
    flex: 0 0 200px;
}
.review-main {
    flex: 1;
    min-width: 0;
}
.review-company {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #f0ede8;
}
.review-company-title {
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ede8;
    margin-bottom: 10px;
}
.review-company img {
    width: 178px;
    height: 178px;
    object-fit: cover;
    border-radius: 6px;
}
.review-company .company-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0 4px;
    color: #1a1a1a;
    text-decoration: none;
}
.review-company .company-name:hover {
    color: #FF6600;
}
.review-company .company-stats {
    font-size: 13px;
    color: #666;
}
.review-company .company-stats strong {
    color: #FF6600;
}

/* ---------- 原生弹窗样式 ---------- */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.custom-popup-overlay.active {
    display: flex;
}
.custom-popup {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}
.custom-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0ede8;
    background: #fafafa;
}
.custom-popup-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}
.custom-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    border-radius: 50%;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.custom-popup-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}
.custom-popup-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.custom-popup-body iframe {
    width: 100%;
    min-height: 320px;
    border: none;
}
.custom-popup-body .popup-content {
    text-align: center;
    padding: 20px 0;
}
.custom-popup-body .popup-content .icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.custom-popup-body .popup-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}
.custom-popup-body .popup-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}
.custom-popup-body .popup-content .btn-primary {
    padding: 8px 32px;
    background: #FF6600;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.custom-popup-body .popup-content .btn-primary:hover {
    background: #CD5403;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .company-sidebar {
        flex: 0 0 220px;
    }
    .detail-slider {
        flex: 0 0 300px;
    }
    .detail-left {
        flex: 0 0 190px;
    }
    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 搜索区域 - 手机堆叠 */
    .company-search {
        padding: 12px 14px;
    }
    .company-search-form {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        max-width: none !important;
    }
    .company-search-item {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        width: 100%;
    }
    .company-search-keyword {
        flex: 1 1 auto;
        min-width: 100%;
    }
    .company-search-area {
        flex: 1 1 auto;
        min-width: 100%;
    }
    .company-search-label {
        font-size: 13px;
        font-weight: 600;
        color: #444;
    }
    .company-search-input {
        width: 100%;
        min-width: 100%;
        padding: 8px 12px;
        height: 38px;
        font-size: 14px;
        background: #fff;
    }
    .company-area-group {
        flex-wrap: wrap;
        width: 100%;
        gap: 4px;
    }
    .company-area-select {
        width: 100%;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 38px;
        padding: 7px 22px 7px 12px;
        font-size: 14px;
        background: #fff;
    }
    .company-search-btn {
        width: 100%;
        height: 40px;
        font-size: 15px;
        padding: 8px 12px;
        margin-left: 0;
    }

    /* 布局切换 - 列表页 */
    .company-layout {
        flex-direction: column;
    }
    .company-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .company-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
    }
    .company-card .card-left {
        width: auto;
    }
    .company-card .card-left a {
        width: 80px;
        height: 80px;
    }
    .company-card .card-tags {
        justify-content: center;
    }
    .company-card .card-actions {
        justify-content: center;
    }
    .company-card .card-score {
        border-left: none;
        border-top: 2px solid #f0ede8;
        padding-left: 0;
        padding-top: 10px;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 16px;
    }
    .company-card .card-score .score-total {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    /* ★★★ 详情页 - 手机模式修复 ★★★ */
    .company-detail-header {
        flex-direction: column;
        padding: 16px;
    }
    .detail-slider {
        flex: 0 0 auto;
        width: 100%;
    }
    .detail-slider .Homeslide_bigpicdiv img {
        height: 200px;
    }
    .detail-seller {
        flex: 0 0 auto;
        display: none;
    }

    .company-detail-body {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    /* 左侧边栏 - 两列网格 */
    .detail-left {
        flex: 0 0 auto !important;
        width: 100% !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0;
        box-sizing: border-box;
    }
    .detail-left .side-block {
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* ★★★ 右侧主内容 - 撑满宽度 ★★★ */
    .detail-right {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Tab 内容卡片全宽 */
    .detail-tab-content {
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px !important;
        overflow: hidden;
        word-wrap: break-word;
    }

    /* 详情文本 */
    .detail-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.8;
    }
    .detail-text img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 评价汇总 */
    .rating-summary {
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        padding: 12px;
    }
    .rating-summary .rating-item {
        min-width: 50px;
        padding: 0 4px;
    }
    .rating-summary .rating-item strong {
        font-size: 18px;
    }

    /* 评价列表 */
    .review-item {
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 0;
    }
    .review-body {
        width: 100%;
    }
    .review-stars {
        justify-content: center;
    }
    .review-stars .review-time {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    .review-text {
        text-align: left;
        word-break: break-word;
    }

    /* info-list 手机模式 */
    .info-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Tab 切换 - 横向滚动 */
    .detail-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 12px;
        border-bottom: 2px solid #f0ede8;
    }
    .detail-tabs li {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 评价列表页 */
    .review-layout {
        flex-direction: column;
    }
    .review-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    .review-company img {
        width: 120px;
        height: 120px;
    }

    .pagination a,
    .pagination .current,
    .pagination .ellipsis {
        padding: 4px 10px;
        font-size: 12px;
        min-width: 30px;
    }

    .custom-popup {
        max-width: 96%;
        border-radius: 10px;
    }
    .custom-popup-header {
        padding: 10px 16px;
    }
    .custom-popup-header h3 {
        font-size: 14px;
    }
    .custom-popup-body {
        padding: 14px;
        max-height: calc(90vh - 70px);
    }
    .custom-popup-body iframe {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .company-search {
        padding: 10px 10px;
    }
    .company-search-input {
        height: 34px;
        font-size: 13px;
        padding: 6px 10px;
    }
    .company-area-select {
        height: 34px;
        font-size: 13px;
        padding: 5px 18px 5px 10px;
    }
    .company-search-btn {
        height: 36px;
        font-size: 14px;
        padding: 6px 10px;
    }

    .company-card .card-title {
        font-size: 15px;
    }
    .company-card .card-tags .tag {
        font-size: 10px;
        line-height: 18px;
        padding: 0 6px;
    }
    .company-card .card-actions a {
        font-size: 11px;
        padding: 3px 10px;
    }
    .company-card .card-score {
        gap: 2px 10px;
        font-size: 11px;
    }
    .company-card .card-score .score-total strong {
        font-size: 15px;
    }

    /* ★ 详情页 - 小手机优化 */
    .detail-left {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .detail-right {
        padding: 0 !important;
        width: 100% !important;
    }
    .detail-tab-content {
        padding: 10px !important;
    }
    .detail-text {
        font-size: 13px;
        line-height: 1.7;
    }
    .rating-summary {
        padding: 10px;
        gap: 4px;
    }
    .rating-summary .rating-item {
        min-width: 40px;
        font-size: 12px;
    }
    .rating-summary .rating-item strong {
        font-size: 16px;
    }
    .review-text {
        font-size: 13px;
        text-align: left;
    }

    .detail-slider .Homeslide_bigpicdiv img {
        height: 150px;
    }

    .detail-tabs li {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pagination a,
    .pagination .current,
    .pagination .ellipsis {
        padding: 3px 7px;
        font-size: 11px;
        min-width: 24px;
    }
    .pagination .first,
    .pagination .last,
    .pagination .prev,
    .pagination .next {
        font-size: 12px;
        padding: 3px 6px;
    }

    .custom-popup {
        max-width: 98%;
        border-radius: 8px;
    }
    .custom-popup-header {
        padding: 8px 12px;
    }
    .custom-popup-header h3 {
        font-size: 13px;
    }
    .custom-popup-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    .custom-popup-body {
        padding: 10px;
        max-height: calc(90vh - 60px);
    }
    .custom-popup-body iframe {
        min-height: 240px;
    }
}