/* ===== 外贸前台 GDPR（P1-6a）独立样式 ===== */
.ft-gdpr { max-width: 620px; margin: 0 auto; padding: 40px 16px 60px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a2e; }
.ft-gdpr-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; box-shadow: 0 2px 12px rgba(15,23,42,.05); }
.ft-gdpr h1 { font-size: 24px; margin: 0 0 12px; }
.ft-gdpr-lead { font-size: 15px; color: #475569; line-height: 1.65; margin: 0 0 18px; }
.ft-gdpr-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.ft-gdpr-form { display: flex; flex-direction: column; gap: 14px; }
.ft-gdpr-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.ft-gdpr-field input, .ft-gdpr-field select { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.ft-gdpr-field input:focus, .ft-gdpr-field select:focus { outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30,58,138,.1); }
.ft-gdpr-note { font-size: 13px; color: #64748b; line-height: 1.6; margin: 14px 0 0; }
.ft-gdpr-link { background: #f1f5f9; border-radius: 8px; padding: 10px 14px; margin-top: 10px; word-break: break-all; }
.ft-gdpr-link a { color: #1e3a8a; font-size: 14px; }
.ft-gdpr-result { margin: 12px 0; padding-left: 20px; font-size: 14px; color: #334155; line-height: 1.8; }
.ft-btn--ghost { display: inline-block; margin-top: 12px; padding: 8px 18px; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; text-decoration: none; font-size: 14px; }

/* ===== 2.6.20 Cookie 同意横幅（拒绝默认：未同意隐藏像素；默认不显示横幅）===== */
#ft-gdpr-banner.ft-gdpr-banner,
.ft-gdpr-banner {
    display: none;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
    background: #0f172a; color: #e2e8f0; border-radius: 12px;
    padding: 16px 20px; align-items: center; gap: 14px; flex-wrap: wrap;
    box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 13px; line-height: 1.5;
    max-width: 720px; margin: 0 auto;
}
#ft-gdpr-banner.ft-gdpr-banner.is-visible,
.ft-gdpr-banner.is-visible { display: flex; }
.ft-gdpr-banner__text { margin: 0; flex: 1; min-width: 260px; }
.ft-gdpr-banner__text a { color: #93c5fd; }
.ft-gdpr-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Cookie 按钮 ===== */
.ft-gdpr-btn {
    border: 0; border-radius: 8px; padding: 8px 16px;
    font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .2s;
}
.ft-gdpr-btn--primary { background: #2563eb; color: #fff; }
.ft-gdpr-btn--primary:hover { background: #1d4ed8; }
.ft-gdpr-btn--ghost { background: transparent; color: #cbd5e1; border: 1px solid #475569; }
.ft-gdpr-btn--ghost:hover { background: #1e293b; color: #fff; }

/* ===== 页脚 Cookie 偏好入口 ===== */
.ft-footer__cookie-btn {
    background: none; border: 0; color: inherit; font-size: 12px;
    text-decoration: underline; cursor: pointer; padding: 2px 4px; opacity: .8;
}
.ft-footer__cookie-btn:hover { opacity: 1; }

/* ===== Cookie 偏好中心 modal ===== */
.ft-gdpr-modal {
    display: none;
    position: fixed; inset: 0; z-index: 10000;
    align-items: center; justify-content: center; padding: 16px;
}
.ft-gdpr-modal.is-open { display: flex; }
.ft-gdpr-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.ft-gdpr-modal__panel {
    position: relative; background: #fff; color: #1a1a2e;
    border-radius: 14px; padding: 24px; width: 100%; max-width: 520px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35); max-height: 90vh; overflow-y: auto;
}
.ft-gdpr-modal__panel h3 { margin: 0 0 6px; font-size: 20px; }
.ft-gdpr-modal__lead { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0 0 16px; }
.ft-gdpr-opt { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ft-gdpr-opt__row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.ft-gdpr-opt__row span { display: flex; flex-direction: column; gap: 2px; }
.ft-gdpr-opt__row strong { font-size: 14px; color: #1e293b; }
.ft-gdpr-opt__row small { font-size: 12px; color: #64748b; line-height: 1.45; }
.ft-gdpr-opt__row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2563eb; flex-shrink: 0; }
.ft-gdpr-opt__row input[type="checkbox"]:disabled { opacity: .5; }
.ft-gdpr-modal__actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 640px) {
    .ft-gdpr-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
    .ft-gdpr-btn { padding: 8px 12px; }
}
