/* ==========================================================================
   墨华网 - SEO现代生活门户版 (index_seo.html) 专用样式
   对标 mxchino.com 现代简约风格，移动优先与宽屏自适应，完全不污染旧版 index.css
   ========================================================================== */

:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fff7ed;
    --accent-blue: #0284c7;
    --accent-green: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-card: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --transition: all 0.25s ease-in-out;
}

body.seo-portal-body {
    background-color: var(--bg-page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.seo-container {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 顶部公用条与汇率 */
.seo-topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}
.seo-topbar .seo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seo-exchange-rate {
    display: flex;
    align-items: center;
    gap: 12px;
}
.seo-rate-badge {
    background: #1e293b;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #334155;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.seo-rate-highlight {
    color: #4ade80;
    font-weight: 700;
}
.seo-topbar-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.seo-topbar-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}
.seo-topbar-links a:hover {
    color: #ffffff;
}

/* 主头部与搜索 */
.seo-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-card);
    padding: 16px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.seo-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.seo-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.seo-logo img {
    height: 48px;
    max-width: 220px;
    object-fit: contain;
}
.seo-search-box {
    flex: 1;
    max-width: 580px;
}
.seo-search-form {
    display: flex;
    align-items: stretch;
    height: 42px;
}
.seo-search-input {
    flex: 1;
    padding: 0 18px;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    border-right: none;
    border-radius: 24px 0 0 24px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    height: 42px;
    line-height: 42px;
}
.seo-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0 24px 24px 0;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap !important;
    word-break: keep-all !important;
    height: 42px;
    line-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.seo-search-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.seo-header-actions {
    display: flex;
    gap: 12px;
}
.btn-post-info {
    background: var(--primary-color);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
    transition: var(--transition);
}
.btn-post-info:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* 现代语义导航 */
.seo-nav-bar {
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
}
.seo-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.seo-nav-list li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.seo-nav-list li a:hover,
.seo-nav-list li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.seo-nav-badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* 首屏三列 Hero 网格：高度统一 310px，无任何留白与空洞 */
.seo-hero-grid {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}
.seo-hero-catmenu {
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    height: 310px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.seo-catmenu-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seo-catmenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.seo-catmenu-item {
    font-size: 13px;
    line-height: 1.4;
}
.seo-catmenu-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.seo-catmenu-main {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
}
.seo-catmenu-main:hover {
    color: var(--primary-color);
}
.seo-catmenu-subs {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
}
.seo-catmenu-subs a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}
.seo-catmenu-subs a:hover {
    color: var(--primary-color);
}
.seo-catmenu-subs span {
    color: #cbd5e1;
    font-size: 11px;
}
.seo-catmenu-more {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    text-align: right;
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.seo-hero-center {
    height: 310px;
}
.seo-hero-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 310px;
    background: #000;
    box-shadow: var(--shadow-md);
}
.seo-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seo-hero-banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.seo-hero-news {
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    height: 310px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.seo-panel-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}
.seo-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}
.seo-panel-more {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
}
.seo-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.seo-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 2px 0;
}
.seo-news-item a {
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.seo-news-item a:hover {
    color: var(--primary-color);
}
.seo-news-time {
    color: #94a3b8;
    font-size: 11px;
}

/* 通栏 8 宫格便民直通车 (对标现代生活门户，绝对不换行溢出) */
.seo-quick-entry-bar {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    width: 100%;
}
.seo-quick-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    box-sizing: border-box;
    min-width: 0;
}
.seo-quick-tile:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.15);
    transform: translateY(-1px);
}
.seo-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.seo-tile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seo-quick-tile:hover .seo-tile-name {
    color: var(--primary-color);
}

/* 核心板块：墨西哥华人生活指南 · 精选知识宝典 (Tab 交互) */
.seo-zhishi-section {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.seo-zhishi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 14px;
}
.seo-zhishi-title-wrap h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.seo-zhishi-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.seo-zhishi-tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.seo-tab-btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}
.seo-tab-btn:hover {
    background: #e2e8f0;
}
.seo-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.25);
}

.seo-zhishi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.seo-zhishi-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.seo-zhishi-card:hover {
    border-color: #fdba74;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.seo-card-badge {
    align-self: flex-start;
    background: #ffedd5;
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.seo-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.seo-card-summary {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.seo-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px dashed #f1f5f9;
    padding-top: 8px;
}

/* 分类信息区 (招聘、房产、二手) */
.seo-feeds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}
.seo-feed-panel {
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.seo-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.seo-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
}
.seo-feed-item:last-child {
    border-bottom: none;
}
.seo-feed-link {
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
    font-weight: 500;
}
.seo-feed-link:hover {
    color: var(--primary-color);
}
.seo-feed-tag {
    font-size: 12px;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 便民热线与黄页 */
.seo-hotlines {
    margin-top: 25px;
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 20px;
}
.seo-hotline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.seo-hotline-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.seo-hotline-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.seo-hotline-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.seo-hotline-tel {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 700;
}

/* 品牌权威介绍卡片 (面向搜索引擎与实体构建) */
.seo-authority-block {
    margin-top: 30px;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 24px;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}
.seo-authority-block h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.seo-authority-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.seo-kw-chip {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
}
.seo-kw-chip:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   全新现代页脚布局与美化 (替换旧式绝对定位，全面兼容 inc_foot.html)
   ========================================================================== */
.footer_new {
    width: 100% !important;
    position: static !important;
    background-color: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 40px !important;
    padding: 36px 0 24px 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    box-sizing: border-box !important;
    clear: both !important;
    overflow: visible !important;
}
.footer_new .foot_new {
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 30px !important;
    text-align: left !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
}
.footer_new .foot_box {
    flex: 1 !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
    border-right: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.footer_new .foot_box .hd,
.footer_new .foot_wx .hd {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
    line-height: normal !important;
    text-align: left !important;
}
.footer_new .foot_box .bd ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.footer_new .foot_box .bd li {
    line-height: 28px !important;
}
.footer_new .foot_box .bd li a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}
.footer_new .foot_box .bd li a:hover {
    color: var(--primary-color) !important;
}

.footer_new .foot_wx {
    width: auto !important;
    height: auto !important;
    float: none !important;
    border-right: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}
.footer_new .foot_wx .bd img {
    margin: 0 auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    border: 1px solid #e2e8f0 !important;
}

.footer_new .foot_mobile {
    width: 220px !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    text-align: left !important;
}
.footer_new .foot_mobile .h1 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 8px !important;
}
.footer_new .foot_mobile .h2,
.footer_new .foot_mobile .h3 {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 24px !important;
}
.footer_new .foot_mobile a {
    color: #64748b !important;
    text-decoration: none !important;
}
.footer_new .foot_mobile a:hover {
    color: var(--primary-color) !important;
}

.footer_new .foot_powered {
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 24px auto 0 auto !important;
    padding-top: 18px !important;
    border-top: 1px solid #e2e8f0 !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    line-height: 1.8 !important;
}
.footer_new .foot_powered a {
    color: #94a3b8 !important;
    text-decoration: none !important;
}
.footer_new .foot_powered a:hover {
    color: var(--primary-color) !important;
}

/* 侧边悬浮服务栏 */
.mayi-rmenu {
    position: fixed !important;
    right: 18px !important;
    bottom: 40px !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.mayi-rmenu .btn {
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: var(--transition) !important;
}

