/* 通用 Footer：复刻参考站 .footer_99715 实测规格（1300px 容器、#f0f0f0 底、三列 + 版权条）。
   列宽 300 / 自适应 / 400；列标题 #505050 20px/700；链接 #646464 16px 项距 12 hover 青；
   联系图标 24px 主色圆底 + 白色图标（对齐参考站）；社交图标 28px 间距 13px；订阅按钮主色 150x36 圆角 8。
   本站增强：≤1024 收窄、≤640 单列堆叠（参考站无响应式断点）；RTL 由 flex 自然镜像。 */
.site-footer { background: #f0f0f0; color: #646464; font-size: 14px; line-height: 1.6; }
.sf-wrap { width: min(1300px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }

/* 三列 */
.sf-col--links { width: 300px; flex: 0 0 auto; }
.sf-col--contact { width: 436px; flex: 0 1 auto; min-width: 0; }
.sf-col--form { width: 400px; flex: 0 0 auto; }

/* 列标题与链接（实测：标题 #505050 20px/700 行高 24；链接 #646464 16px 项距 12 hover 青） */
.sf-title { color: #505050; font-size: 20px; font-weight: 700; line-height: 24px; }
.sf-col--contact .sf-title { margin-bottom: 24px; }
.sf-links { margin-top: 24px; }
.sf-links a { display: block; color: #646464; font-size: 16px; line-height: 24px; margin-bottom: 12px; text-decoration: none; transition: color .2s ease; }
.sf-links a:hover { color: var(--site-primary); }

/* 联系条目（对齐参考站：图标为 24px 主色实心圆底 + 白色图标，右距 12；label #505050 16px/700；value #646464 14px；项距 14） */
.sf-info { display: flex; margin-bottom: 14px; }
/* 图标间距用逻辑属性：RTL 下自动镜像到文字另一侧。
   曾用 [dir=rtl] 叠加 flex-direction:row-reverse 修正，反而把已正确镜像的 flex 又反一次，
   导致阿语下图标跑到文字左侧（2026-10-24 审查修复）。 */
.sf-info__icon { width: 24px; height: 24px; flex: 0 0 24px; margin-inline-end: 12px; border-radius: 50%; background: var(--site-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sf-info__icon svg { width: 12px; height: 12px; display: block; flex: 0 0 auto; }
.sf-info__label { color: #505050; font-size: 16px; font-weight: 700; line-height: 24px; }
.sf-info__value { color: #646464; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.sf-info__value a { color: #646464; text-decoration: none; transition: color .2s ease; }
.sf-info__value a:hover { color: var(--site-primary); }

/* 社交图标行（实测：28px、间距 13、#646464、hover 青） */
.sf-social { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 13px; }
.sf-social a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; color: #646464; transition: color .2s ease; position: relative; }
.sf-social a:hover { color: var(--site-primary); }
.sf-social img { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; }

/* 微信条目：无跳转，hover 弹层展示 QR 图或提示文本（与悬浮栏弹层同风格）。 */
.sf-social__wechat { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; cursor: pointer; }
.sf-social__pop { display: none; position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 20; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.14); padding: 8px; text-align: center; }
.sf-social__pop img { width: 90px; height: 90px; display: block; }
.sf-social__pop span { display: block; font-size: 12px; color: #323232; padding-top: 4px; white-space: nowrap; }
.sf-social__wechat:hover .sf-social__pop { display: block; }

/* WhatsApp 条目：hover 气泡显示号码（与悬浮栏气泡同风格）。 */
.sf-social__bubble { display: none; position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 20; background: #fff; color: #323232; border: 1px solid var(--site-primary); border-radius: 12px; padding: 3px 10px; font-size: 12px; white-space: nowrap; }
.sf-social a:hover .sf-social__bubble { display: block; }

/* 订阅留言：提交落 site_inquiry（sourceType=FOOTER_SUBSCRIPTION），交互见 site-footer.js；
   文案由后台 ui_copy 维护（footer.subscribe.*），表单 data-* 注入。 */
.sf-desc { color: #646464; font-size: 14px; line-height: 22px; margin: 24px 0; }
/* font-family:inherit 修正 textarea 浏览器默认等宽字体（参考站为正文同款 sans）；
   占位符统一浅灰，与参考站观感一致。 */
.sf-input { width: 100%; height: 40px; background: #fff; border: 1px solid #fff; border-radius: 8px; margin-bottom: 12px; padding: 0 14px; font-size: 14px; font-family: inherit; color: #505050; }
.sf-input:focus { outline: none; border-color: var(--site-primary); }
.sf-textarea { width: 100%; height: 100px; background: #fff; border: 1px solid #fff; border-radius: 8px; margin-bottom: 24px; padding: 10px 14px; font-size: 14px; font-family: inherit; color: #505050; resize: vertical; }
.sf-textarea:focus { outline: none; border-color: var(--site-primary); }
.sf-input::placeholder, .sf-textarea::placeholder { color: #b9b9b9; opacity: 1; }
.sf-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 150px; padding: 0 20px; background: var(--site-primary); color: #fff; border: 0; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background .2s ease; }
.sf-btn:hover { background: var(--site-primary-hover); }
.sf-form__notice { margin-top: 14px; color: #8f8f8f; font-size: 13px; line-height: 20px; }
.sf-form__notice[hidden] { display: none; }
.sf-form__notice--ok { color: var(--site-primary-hover); }
.sf-form__notice--error { color: #b42318; }

/* 反垃圾隐藏域：视觉隐藏且不可被 Tab 聚焦，保留表单提交字段。 */
.sf-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 版权条（与参考站一致：单行排版，13px，链接 | 分隔，tagline 后为空格；窄屏自然折行） */
.sf-copyright { padding: 10px 24px; text-align: center; color: #8f8f8f; font-size: 13px; line-height: 24px; }
.sf-copyright__line { display: inline; }
.sf-copyright__line a { color: #646464; text-decoration: none; transition: color .2s ease; }
.sf-copyright__line a:hover { color: var(--site-primary); }
.sf-copyright__sep { margin: 0 8px; color: #c8c8c8; }

/* 平板：收窄联系与订阅列，链接列保持 300px */
@media (max-width: 1180px) {
    .sf-wrap { gap: 28px; }
    .sf-col--contact { width: 360px; }
    .sf-col--form { width: 340px; }
}

@media (max-width: 1024px) {
    .sf-wrap { flex-wrap: wrap; padding: 64px 0; }
    .sf-col--links { width: 280px; }
    .sf-col--contact { width: calc(100% - 340px); }
    .sf-col--form { width: 340px; }
}

/* 移动：单列堆叠（本站增强版式，参考站无断点） */
@media (max-width: 640px) {
    .sf-wrap { display: block; padding: 44px 0; }
    .sf-col--links, .sf-col--contact, .sf-col--form { width: 100%; }
    .sf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 20px; }
    .sf-col--contact { margin-top: 28px; }
    .sf-col--form { margin-top: 28px; }
    .sf-btn { width: 100%; }
    .sf-copyright { font-size: 12px; line-height: 20px; padding: 18px 16px 20px; }
    .sf-copyright__sep { margin: 0 6px; }
}

/* RTL：文字方向与输入对齐镜像；联系条目图标由逻辑属性自动处理，无需再翻 flex 方向。 */
[dir="rtl"] .sf-title, [dir="rtl"] .sf-links a, [dir="rtl"] .sf-info__label,
[dir="rtl"] .sf-info__value, [dir="rtl"] .sf-desc { direction: rtl; text-align: right; }
[dir="rtl"] .sf-input, [dir="rtl"] .sf-textarea { text-align: right; }
