/* GEO AI System - Frontend Styles */
.geo-city-intro { margin-bottom: 30px; }
.geo-city-categories { margin-bottom: 30px; }
.geo-city-categories ul { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.geo-city-categories li { }
.geo-city-categories a {
    display: inline-block; padding: 10px 24px;
    background: #2271b1; color: #fff; border-radius: 6px;
    text-decoration: none; font-weight: 600;
}
.geo-city-categories a:hover { background: #135e96; }

.geo-business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.geo-business-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 10px;
    padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.geo-business-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.geo-biz-header h2 { margin: 0 0 6px; font-size: 1.2em; }
.geo-biz-rating { color: #f0a500; font-weight: 600; }
.geo-biz-info { margin: 12px 0; font-size: .9em; color: #555; }
.geo-biz-info p { margin: 4px 0; }
.geo-biz-desc { margin: 12px 0; }
.geo-biz-list { list-style: none; padding: 0; margin: 20px 0; }
.geo-biz-list li { margin: 8px 0; }
.geo-biz-list a { color: #2271b1; text-decoration: none; font-weight: 500; }
.geo-biz-list a:hover { text-decoration: underline; }

/* Breadcrumb */
.geo-breadcrumb { margin: 0 0 20px; font-size: .9em; color: #666; }
.geo-breadcrumb a { color: #2271b1; text-decoration: none; }
.geo-breadcrumb span { margin: 0 6px; }
.geo-city-page { padding: 20px 0; }
.geo-city-page h1, .geo-city-page .geo-city-title { font-size: 1.8em; margin: 0 0 16px; color: #222; }

/* FAQ Section */
.geo-faq { margin: 30px 0; }
.geo-faq h3 { margin-bottom: 16px; }
.geo-faq-item { margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.geo-faq-q { font-weight: 700; color: #333; cursor: pointer; }
.geo-faq-a { margin-top: 6px; color: #555; }

/* Multi-column bottom business link grid */
.geo-biz-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 30px;
    margin: 20px 0;
}
.geo-biz-link-item {
    padding: 10px 14px;
    border-bottom: 1px dashed #e8e8e8;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    break-inside: avoid;
}
.geo-biz-link-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
}
.geo-biz-link-name {
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    font-size: 0.95em;
    max-width: 14em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.geo-biz-link-name:hover {
    color: #135e96;
    text-decoration: underline;
}
.geo-biz-link-district {
    font-size: 0.78em;
    color: #888;
}
.geo-biz-link-rating {
    font-size: 0.8em;
    color: #f0a500;
    margin-left: auto;
    white-space: nowrap;
}

/* City intro styles */
.geo-city-intro {
    padding: 30px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}
.geo-city-intro h2 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #222;
}
.geo-city-categories h3,
.geo-city-businesses h3 {
    font-size: 1.2em;
    margin: 20px 0 12px;
    color: #333;
}
.geo-city-businesses {
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .geo-biz-link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 16px;
    }
}
@media (max-width: 480px) {
    .geo-biz-link-grid {
        grid-template-columns: 1fr;
    }
}

.geo-biz-features { margin:30px 0; padding:24px 28px; background:#f8fdf8; border-left:4px solid #00a32a; border-radius:8px; }
.geo-biz-features h3 { margin:0 0 16px; font-size:1.15em; color:#1a6e2a; }
.geo-features-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,1fr); gap:10px 24px; }
.geo-features-list li { padding:6px 0; font-size:.95em; color:#333; }
.geo-feature-icon { color:#00a32a; font-weight:700; margin-right:8px; }
.geo-biz-area { margin:30px 0; padding:24px 28px; background:#f0f6fc; border-left:4px solid #2271b1; border-radius:8px; }
.geo-biz-area h3 { margin:0 0 12px; font-size:1.15em; color:#135e96; }
.geo-biz-area p { margin:0; font-size:.95em; line-height:1.7; color:#444; }
.geo-biz-why-us { margin:30px 0; padding:28px; background:linear-gradient(135deg,#fef9f0,#fff8e8); border:1px solid #f0d78c; border-radius:10px; }
.geo-biz-why-us h3 { margin:0 0 14px; font-size:1.2em; color:#b85c00; }
.geo-biz-why-us p { margin:8px 0; font-size:.95em; line-height:1.8; color:#555; }
@media(max-width:768px){.geo-features-list{grid-template-columns:1fr;gap:6px}.geo-biz-features,.geo-biz-area,.geo-biz-why-us{padding:18px 16px;margin:20px 0}}


.geo-city-page .geo-biz-link-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 20px !important;
    width: 100% !important;
}

/* 3-column on geo-business-grid inside city content */
.geo-city-page .geo-city-businesses .geo-business-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 20px !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}
.geo-city-page .geo-city-businesses .geo-business-grid .geo-biz-link-grid {
    display: contents !important;
}
@media (max-width: 768px) {
    .geo-city-page .geo-city-businesses .geo-business-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .geo-city-page .geo-city-businesses .geo-business-grid {
        grid-template-columns: 1fr !important;
    }
}
/* === Business Detail Page Layout === */
.geo-business-page { padding: 20px 0; }
.geo-biz-title { font-size: 1.8em; margin: 0 0 20px; color: #222; padding-bottom: 12px; border-bottom: 2px solid #2271b1; }
.geo-biz-image { margin: 0 0 24px; border-radius: 10px; overflow: hidden; }
.geo-biz-image img { width: 100%; height: auto; display: block; }
.geo-biz-details { margin: 0 0 28px; }
.geo-biz-rating-large { font-size: 1.3em; color: #f0a500; margin-bottom: 16px; font-weight: 700; }
.geo-biz-info-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.geo-biz-info-table th, .geo-biz-info-table td { padding: 10px 14px; border-bottom: 1px solid #eee; text-align: left; }
.geo-biz-info-table th { width: 120px; color: #666; font-weight: 600; background: #f8f9fa; }
.geo-biz-info-table td { color: #333; }
.geo-biz-content { line-height: 1.85; font-size: 16px; color: #333; }
.geo-biz-content p { margin: 0 0 16px; }
.geo-biz-content .geo-biz-description { margin-bottom: 24px; }
.geo-biz-back { margin: 32px 0 16px; text-align: center; }
.geo-btn-back { display: inline-block; padding: 10px 28px; background: #2271b1; color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; transition: background .2s; }
.geo-btn-back:hover { background: #135e96; color: #fff; text-decoration: none; }

/* City page hero */
.geo-city-hero { text-align: center; padding: 40px 20px 30px; background: linear-gradient(135deg, #2271b1, #135e96); color: #fff; border-radius: 10px; margin: 0 0 24px; }
.geo-city-hero h1 { font-size: 2em; margin: 0 0 8px; color: #fff; }
.geo-city-subtitle { font-size: 1em; opacity: .9; margin: 0; }
.geo-section-title { font-size: 1.3em; margin: 20px 0 12px; color: #333; }
.geo-section-title small { font-weight: 400; color: #888; }

/* Category filter pills */
.geo-category-nav { margin: 0 0 20px; }
.geo-cat-pills { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.geo-cat-pills li a { display: inline-block; padding: 8px 20px; border-radius: 20px; background: #f0f0f1; color: #555; text-decoration: none; font-size: .9em; transition: all .2s; }
.geo-cat-pills li a:hover { background: #e0e0e0; }
.geo-cat-pills li a.active { background: #2271b1; color: #fff; }
.geo-cat-icon { margin-right: 4px; }

/* Business card grid on city page */
.geo-business-card { display: flex; flex-direction: column; }
.geo-biz-thumb { position: relative; height: 180px; overflow: hidden; border-radius: 8px 8px 0 0; background: #f0f0f1; }
.geo-biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.geo-biz-badge { position: absolute; top: 10px; right: 10px; background: #f0a500; color: #fff; padding: 4px 10px; border-radius: 12px; font-size: .85em; font-weight: 700; }
.geo-biz-body { padding: 14px 0; flex: 1; }
.geo-biz-body h3 { margin: 0 0 6px; font-size: 1.1em; }
.geo-biz-body h3 a { color: #2271b1; text-decoration: none; }
.geo-biz-body h3 a:hover { color: #135e96; text-decoration: underline; }
.geo-biz-meta { font-size: .85em; color: #777; margin: 4px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.geo-biz-excerpt { font-size: .9em; color: #555; margin-top: 8px; line-height: 1.6; }
.geo-biz-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #eee; }
.geo-btn-more { color: #2271b1; text-decoration: none; font-weight: 600; font-size: .9em; }
.geo-btn-more:hover { text-decoration: underline; }

/* Pagination */
.geo-pagination { text-align: center; margin: 30px 0; }
.geo-pagination .page-numbers { display: inline-block; padding: 6px 14px; margin: 0 3px; border-radius: 4px; background: #f0f0f1; color: #555; text-decoration: none; }
.geo-pagination .page-numbers.current { background: #2271b1; color: #fff; }

/* Related businesses */
.geo-related { margin: 30px 0; padding: 20px 24px; background: #f8f9fa; border-radius: 10px; }
.geo-related h3 { margin: 0 0 12px; font-size: 1.1em; color: #333; }
.geo-related-list { list-style: none; padding: 0; }
.geo-related-list li { padding: 8px 0; border-bottom: 1px dashed #e0e0e0; }
.geo-related-list li:last-child { border-bottom: none; }
.geo-related-list li a { color: #2271b1; text-decoration: none; display: flex; justify-content: space-between; }
.geo-related-list li a:hover { text-decoration: underline; }

/* ========================================
   Mobile Responsive Styles
   ======================================== */

/* Price table - horizontal scroll on mobile */
.geo-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95em;
}
.geo-price-table th {
    background: #2271b1;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
.geo-price-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
.geo-price-table tr:nth-child(even) td {
    background: #f8f9fa;
}

/* Rich section content */
.geo-rich-section {
    margin-bottom: 28px;
}
.geo-rich-section h3 {
    font-size: 1.15em;
    color: #2271b1;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

/* FAQ inside content */
.geo-faq-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.geo-faq-item h4 {
    font-size: 1em;
    color: #333;
    margin: 0 0 6px;
}
.geo-faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* CTA button */
.geo-cta {
    text-align: center;
    margin: 24px 0;
    font-size: 1.1em;
}
.geo-cta a {
    color: #d63638;
    text-decoration: none;
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    /* General */
    .geo-city-page,
    .geo-business-page {
        padding: 12px 0;
    }
    
    /* Title */
    .geo-biz-title {
        font-size: 1.35em;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    /* Content area */
    .geo-biz-content {
        font-size: 15px;
        line-height: 1.75;
    }
    
    /* Price table - scrollable */
    .geo-price-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    .geo-price-table {
        font-size: 0.85em;
        min-width: 400px;
    }
    .geo-price-table th,
    .geo-price-table td {
        padding: 8px 10px;
    }
    
    /* Rich sections */
    .geo-rich-section {
        margin-bottom: 20px;
    }
    .geo-rich-section h3 {
        font-size: 1.05em;
    }
    
    /* Info table */
    .geo-biz-info-table th {
        width: 85px;
        font-size: 0.9em;
        padding: 8px 10px;
    }
    .geo-biz-info-table td {
        font-size: 0.9em;
        padding: 8px 10px;
    }
    
    /* Features list */
    .geo-features-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .geo-biz-features,
    .geo-biz-area,
    .geo-biz-why-us {
        padding: 16px 14px;
        margin: 18px 0;
    }
    
    /* Business link grid */
    .geo-biz-link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
    }
    .geo-biz-link-item {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    /* Image */
    .geo-biz-image {
        margin-bottom: 16px;
    }
    
    /* Category pills */
    .geo-cat-pills {
        gap: 6px;
    }
    .geo-cat-pills li a {
        padding: 6px 14px;
        font-size: 0.85em;
    }
    
    /* Hero */
    .geo-city-hero {
        padding: 28px 16px 22px;
    }
    .geo-city-hero h1 {
        font-size: 1.5em;
    }
    
    /* Cards */
    .geo-business-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .geo-business-card {
        padding: 16px;
    }
    
    /* FAQ */
    .geo-faq-item h4 {
        font-size: 0.95em;
    }
    .geo-faq-item p {
        font-size: 0.9em;
    }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
    .geo-biz-title {
        font-size: 1.2em;
    }
    
    .geo-biz-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Single column everything */
    .geo-biz-link-grid {
        grid-template-columns: 1fr;
    }
    
    .geo-biz-info-table th {
        width: 70px;
        font-size: 0.85em;
    }
    .geo-biz-info-table td {
        font-size: 0.85em;
    }
    
    .geo-price-table {
        font-size: 0.8em;
    }
    
    .geo-city-hero {
        padding: 22px 12px 18px;
        border-radius: 6px;
    }
    .geo-city-hero h1 {
        font-size: 1.3em;
    }
    
    .geo-cta {
        font-size: 1em;
    }
    
    .geo-btn-back {
        padding: 8px 20px;
        font-size: 0.95em;
    }
}



/* ========================================
   移动端响应式 - 实际 HTML 类名适配
   ======================================== */
@media screen and (max-width: 768px) {
    /* 整体容器 */
    #content.container {
        padding: 0 10px !important;
    }
    #primary.content-area {
        width: 100% !important;
        float: none !important;
    }

    /* 商家详情页 - 侧边栏信息块改为全宽 */
    .geo-biz-detail-sidebar {
        width: 100% !important;
        float: none !important;
        margin: 0 0 16px !important;
        padding: 12px !important;
    }
    .geo-biz-detail-sidebar-inner {
        padding: 0 !important;
    }

    /* 商家信息表格 */
    .geo-biz-info-table {
        width: 100% !important;
        font-size: 14px !important;
    }
    .geo-biz-info-table th {
        width: 70px !important;
        padding: 8px 6px !important;
    }
    .geo-biz-info-table td {
        padding: 8px 6px !important;
    }

    /* 返回按钮 */
    .geo-back-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
        font-size: 14px !important;
    }

    /* 价格表格 - 可横向滚动 */
    .geo-price-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        font-size: 13px !important;
        max-width: 100% !important;
    }
    .geo-price-table th,
    .geo-price-table td {
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }

    /* 商家网格 - 单列 */
    .geo-business-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* 城市分类按钮 - 两列 */
    .geo-city-categories ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    .geo-city-categories a {
        display: block !important;
        text-align: center !important;
        font-size: 14px !important;
        padding: 10px 8px !important;
    }

    /* 商家卡片 */
    .geo-business-card {
        padding: 14px !important;
    }
    .geo-biz-header h2 {
        font-size: 1.05em !important;
    }

    /* 富文本内容区 */
    .geo-rich-section {
        margin-bottom: 18px !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    .geo-rich-section h3 {
        font-size: 1em !important;
    }

    /* 面包屑 */
    .breadcrumbs {
        font-size: 13px !important;
        padding: 6px 0 !important;
    }

    /* 标题 */
    .geo-biz-title {
        font-size: 1.2em !important;
        margin-bottom: 12px !important;
    }

    /* 图片 */
    .geo-biz-image img,
    .geo-business-detail img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* FAQ */
    .geo-faq-item h4 {
        font-size: 0.95em !important;
    }

    /* 隐藏主题侧边栏 */
    #secondary,
    .sidebar,
    aside {
        display: none !important;
    }
}

/* 小屏手机: 480px */
@media screen and (max-width: 480px) {
    .geo-biz-title {
        font-size: 1.1em !important;
    }
    .geo-biz-info-table th {
        width: 60px !important;
        font-size: 13px !important;
    }
    .geo-biz-info-table td {
        font-size: 13px !important;
    }
    .geo-city-categories a {
        font-size: 13px !important;
        padding: 8px 6px !important;
    }
    .geo-business-card {
        padding: 10px !important;
    }
    .geo-biz-header h2 {
        font-size: 1em !important;
    }
}

/* Article featured image (inline in post content) */
.geo-article-featured-img {
    margin-bottom: 20px;
}
.geo-article-featured-img img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
