/* ==========================================================================
   产融数字化平台 —— 首页 / 登录页 共用样式
   2026-10-21 按新设计稿重做, 替代原先依赖 cdn.tailwindcss.com 的写法。

   ⚠ 为什么不用 Tailwind CDN:
     首页/登录页是给外部业务员看的第一眼, 而 cdn.tailwindcss.com 在国内
     访问不稳定。一旦 CDN 拉不到, 页面会退化成无样式的裸 HTML ——
     比"样式有点旧"严重得多。样式全部自托管在 /static/, 与 admin 走同一套
     静态资源通道(nginx expires 30d, 见 settings._STATIC_VERSION_SOURCES)。

   版式取自设计稿: 浅蓝白底 + 主蓝 #1a6dff + 大留白 + 圆角卡片。
   ========================================================================== */

/* --- 设计变量 ---------------------------------------------------------- */
:root {
    --brand: #1a6dff;
    --brand-dark: #0b52d6;
    --brand-soft: #e8f1ff;
    --ink: #16294a;          /* 标题 */
    --ink-2: #33507e;        /* 小标题 */
    --body: #5a6b85;         /* 正文 */
    --muted: #8a99b0;        /* 辅助文字 */
    --line: #e4edfb;         /* 分隔线 / 描边 */
    --bg-soft: #f4f8ff;      /* 区块浅底 */
    --shadow-sm: 0 2px 10px rgba(22, 41, 74, .05);
    --shadow-md: 0 8px 28px rgba(22, 41, 74, .08);
    --radius: 14px;
}

/* --- 基础 -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* --- 顶部导航 ---------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
}
.nav-inner {
    display: flex; align-items: center; gap: 40px;
    height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.nav-links { display: flex; gap: 34px; margin-left: auto; }
.nav-links a {
    font-size: 14px; color: #46587a; padding: 6px 0;
    border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav-login {
    padding: 9px 26px; border-radius: 8px; font-size: 14px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, #3b8bff, var(--brand));
    box-shadow: 0 6px 16px rgba(26, 109, 255, .26);
    transition: transform .15s, box-shadow .15s;
}
.nav-login:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(26, 109, 255, .34); }

/* --- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: #eaf2fd; }
.hero-bg {
    position: absolute; inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
.hero-inner {
    position: relative;
    min-height: 470px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 56px 0 96px;
}
.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: 1px;
    color: #12213f;
    text-shadow: 0 2px 12px rgba(255, 255, 255, .6);
}
.hero h1 span { color: var(--brand); }
.hero p {
    margin: 0 0 34px;
    font-size: 15px;
    color: #4d6488;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 40px; border-radius: 9px;
    font-size: 15px; font-weight: 600;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
    color: #fff; background: linear-gradient(135deg, #3b8bff, var(--brand));
    box-shadow: 0 8px 20px rgba(26, 109, 255, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26, 109, 255, .38); }
.btn-ghost { color: var(--brand); background: rgba(255, 255, 255, .7); border-color: #9dc3ff; }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

/* --- 区块骨架 ---------------------------------------------------------- */
.section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: .5px; }
.section-head p { margin: 0; font-size: 14px; color: var(--body); }

/* --- 核心能力 ---------------------------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap {
    display: flex; flex-direction: column;      /* 让白卡能拉伸到三张等高 */
    background: linear-gradient(180deg, #eaf3ff 0%, #f8fbff 100%);
    border: 1px solid #e8f0fd;
    border-radius: var(--radius);
    padding: 18px 16px 16px;
    text-align: center;
}
.cap-title { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 14px; }
.cap-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #5aa0ff, var(--brand));
    box-shadow: 0 4px 10px rgba(26, 109, 255, .24);
}
.cap-icon svg { width: 18px; height: 18px; }
.cap-title h3 { margin: 0; font-size: 15px; font-weight: 700; color: #16305c; text-align: left; }
.cap-body {
    flex: 1;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 10px; padding: 16px 16px 0;
}
.cap-body p { margin: 0 0 10px; font-size: 13px; color: var(--body); text-align: left; }
.cap-art {
    /* 三张导出图的画布里, 3D 内容只占左下那一块, 右边和上边是**不透明**的
       近白底(alpha=255 的 #f9fdff)—— 所以导出时已经按内容裁掉, 图源本身
       就是紧凑的。这里:
       · mix-blend-mode —— 裁完仍是白底, 继续用它把白边融进卡片
       · 固定 height + object-fit: contain —— 三张图裁完比例不同
         (199x128 / 191x195 / 187x187), 不锁高会让三张卡底边参差 */
    mix-blend-mode: multiply;
    width: 100%; height: 168px;
    object-fit: contain; object-position: center;
    margin: auto auto 0;
}

/* --- 产品方案 ---------------------------------------------------------- */
.tags { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 22px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--brand);
    background: #fff; border: 1px solid #cfe1ff;
}
.tag svg { width: 16px; height: 16px; }

.plans { display: flex; flex-direction: column; gap: 20px; }
.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cfe1ff; }
.plan-head {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 20px 28px;
    border-bottom: 1px solid #f0f5fd;
}
.plan-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: #16305c; }
.pill {
    padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--brand); background: var(--brand-soft);
}
.plan-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    border-bottom: 1px solid #f0f5fd;
}
.plan-grid > div { padding: 18px 28px; border-right: 1px solid #f0f5fd; min-width: 0; }
.plan-grid > div:last-child { border-right: none; }
.plan-grid dt { margin-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.plan-grid dd { margin: 0; font-size: 13.5px; color: #26364f; line-height: 1.55; }
.plan-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 14px 28px;
    background: #fafcff;
}
.plan-note { font-size: 12.5px; color: var(--muted); }
.plan-note b { color: #5c7093; font-weight: 600; }
.btn-sm { padding: 9px 22px; font-size: 13.5px; border-radius: 7px; }

/* --- 蓝色横幅 ---------------------------------------------------------- */
.banner {
    background: linear-gradient(100deg, #0a7bf5 0%, #2f9bff 46%, #5cc0ff 100%);
    padding: 54px 0;
}
.banner ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.banner li {
    font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: 3px;
    color: #fff; text-align: center;
    text-shadow: 0 3px 14px rgba(0, 60, 150, .28);
}

/* --- 典型场景 ---------------------------------------------------------- */
.scene { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; gap: 28px; }
.scene-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 26px 22px; box-shadow: var(--shadow-sm);
}
.scene-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #16305c; }
.scene-card h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.scene-card > p { margin: 0 0 14px; font-size: 13px; color: var(--body); }
.scene-card ul { margin: 0; padding-left: 2px; list-style: none; }
.scene-card li { position: relative; padding-left: 15px; font-size: 13px; color: #41547a; line-height: 2; }
.scene-card li::before {
    content: ""; position: absolute; left: 0; top: 11px;
    width: 5px; height: 5px; border-radius: 50%; background: #9dc3ff;
}
/* 典型场景的中间插画是**真透明**的导出图(64% 全透明 + 35% 半透明边缘),
   所以这里**不能**加 mix-blend-mode: multiply —— 半透明边缘乘上底色会发暗,
   整张图周围会浮出一圈灰边。透明图不需要任何混合模式。 */
.scene-art { width: 100%; height: auto; }

/* --- 关于我们 ---------------------------------------------------------- */
.about-card {
    display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm);
}
.about-card img { width: 100%; border-radius: 10px; }
.about-card h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #16305c; }
.about-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--body); line-height: 1.85; }

/* --- 页脚 -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 42px; text-align: center; }
.footer p { margin: 0; font-size: 12.5px; color: var(--muted); }
.footer a:hover { color: var(--brand); }

/* ==========================================================================
   登录页
   ========================================================================== */
.auth {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
    background: #eaf2fd;
}
.auth-bg {
    position: absolute; inset: 0;
    background-image: var(--hero-bg);
    background-size: cover; background-position: center bottom;
}
.auth-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(234, 242, 253, .58) 0%, rgba(226, 238, 252, .82) 100%);
}
.auth-card {
    position: relative;
    width: min(430px, 100%);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    padding: 40px 38px 32px;
    box-shadow: 0 24px 60px rgba(21, 54, 110, .16);
}
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.auth-brand img { width: 38px; height: 38px; border-radius: 8px; }
.auth-brand-name { font-size: 17px; font-weight: 700; }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #12213f; }
.auth-sub { margin: 0 0 26px; font-size: 13px; color: var(--muted); }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #3c527a; }
.auth-field input {
    width: 100%; padding: 12px 14px;
    font-size: 14px; font-family: inherit; color: var(--ink);
    background: #fff; border: 1px solid #d6e2f4; border-radius: 9px;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26, 109, 255, .13);
}
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 20px; }
.auth-row a { font-size: 13px; color: var(--brand); }
.auth-row a:hover { text-decoration: underline; }
.auth-error {
    margin-bottom: 20px; padding: 11px 14px;
    background: #fef2f2; border: 1px solid #fbcfcf; border-radius: 9px;
    color: #b42318; font-size: 13px;
}
.auth-error ul { margin: 0; padding-left: 18px; }
.auth-foot {
    margin-top: 24px; padding-top: 18px;
    border-top: 1px solid #eef3fb;
    text-align: center; font-size: 12.5px; color: var(--muted);
}
.auth-back { display: block; margin-top: 10px; font-size: 12.5px; color: #7d8ea8; }
.auth-back:hover { color: var(--brand); }

/* --- 响应式 ------------------------------------------------------------ */
@media (max-width: 1000px) {
    .caps { grid-template-columns: 1fr; }
    .cap-art { height: 200px; }
    .plan-grid { grid-template-columns: 1fr 1fr; }
    .plan-grid > div:nth-child(2n) { border-right: none; }
    .plan-grid > div:nth-child(-n+2) { border-bottom: 1px solid #f0f5fd; }
    .scene { grid-template-columns: 1fr; }
    .scene-art { max-width: 420px; margin: 0 auto; order: 2; }
    .about-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .wrap { width: min(1200px, 100% - 32px); }
    .nav-links { display: none; }
    .section { padding: 54px 0; }
    .hero-inner { min-height: 380px; padding: 40px 0 70px; }
    .plan-head, .plan-grid > div, .plan-foot { padding-left: 18px; padding-right: 18px; }
    .banner ul { grid-template-columns: 1fr; gap: 14px; }
}