/* portal.css — 龙百AI 官网 / 查询门户 明亮科技风格 */

/* ============ 全局 ============ */
.portal-body {
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.portal-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}
.portal-section {
    padding: 80px 0;
}

/* ============ 导航 ============ */
.portal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid #e2e8f0;
}
.portal-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.portal-brand {
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .5px;
}
.portal-brand:hover { color: #4f46e5; }
.portal-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.portal-nav-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.portal-nav-links a:hover { color: #4f46e5; }

/* ============ Hero ============ */
.portal-hero {
    text-align: center;
    padding: 160px 0 100px;
    position: relative;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}
.portal-hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4f46e5 20%, #7c3aed 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.portal-hero .sub {
    color: #64748b;
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.portal-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============ 按钮 ============ */
.btn-glow {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .3);
    transition: transform .15s, box-shadow .2s;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, .4);
    color: #fff;
}
.btn-ghost {
    background: #fff;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.btn-ghost:hover {
    background: #f1f5f9;
    border-color: #c7d2fe;
    color: #4f46e5;
}

/* ============ 区块标题 ============ */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1e293b;
}
.section-sub {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============ 功能卡片 ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-grid.grid-8 {
    grid-template-columns: repeat(4, 1fr);
}
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 30px 26px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, .1);
}
.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 26px;
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}
.feature-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ============ AI 画布节点 ============ */
.canvas-nodes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.canvas-node {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.canvas-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .12);
}
.canvas-node-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.canvas-node-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.canvas-node-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ============ 客户端能力 ============ */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.client-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .1);
}
.client-card-icon {
    font-size: 32px;
    margin-bottom: 14px;
}
.client-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.client-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

/* ============ 定价 ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.price-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.price-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.price-card.featured {
    border-color: #818cf8;
    box-shadow: 0 10px 30px rgba(79, 70, 229, .15);
    transform: translateY(-6px);
}
.price-badge {
    position: absolute;
    top: -12px;
    right: 22px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 500;
}
.price-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}
.price-desc {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 22px;
}
.price-features {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.price-features li {
    color: #475569;
    font-size: 14px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-features li .ck { color: #4f46e5; font-weight: 700; }
.price-features li.off { color: #cbd5e1; }
.price-features li.off .ck { color: #cbd5e1; }
.price-card .btn-glow, .price-card .btn-ghost {
    width: 100%;
    text-align: center;
}

/* ============ 合作流程 ============ */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 60px;
}
.flow-step {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.flow-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}
.flow-step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}
.flow-step p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.arch-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.arch-layers {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}
.arch-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.arch-node {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    min-width: 110px;
    text-align: center;
}
.arch-node.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: #4f46e5;
    color: #fff;
}
.arch-node.muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}
.arch-arrow {
    color: #94a3b8;
    font-size: 20px;
    text-align: center;
}

/* ============ Footer ============ */
.portal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
    margin-top: 40px;
}
.portal-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-links {
    display: flex;
    gap: 22px;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover { color: #4f46e5; }
.footer-copy {
    color: #94a3b8;
    font-size: 13px;
}
.footer-icp {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
}

/* 全宽多列 Footer（深色对比） */
.portal-footer-full {
    background: #1e293b;
    padding: 60px 0 30px;
    margin-top: 40px;
    border-top: none;
}
.portal-footer-full .footer-col h5 {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.portal-footer-full .footer-col a {
    color: #94a3b8;
}
.portal-footer-full .footer-col a:hover {
    color: #fff;
}
.footer-columns {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.footer-about {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
.footer-bottom {
    max-width: 1120px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #c7d2fe; }

/* ============ 查询门户 ============ */
.query-page {
    padding-top: 80px;
}
.query-page .section-title {
    font-size: 26px;
}
.search-card-dark {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.search-card-dark input {
    background: transparent;
    border: none;
    outline: none;
    color: #1e293b;
    flex: 1;
    font-size: 15px;
    padding: 8px 10px;
}
.search-card-dark input::placeholder { color: #94a3b8; }
/* 授权码查询：次级描边按钮（发送验证码），与主按钮（立即查询）区分层级 */
.btn-send-code {
    flex: none;
    background: #fff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-send-code:hover { background: #eef2ff; border-color: #a5b4fc; }
.btn-send-code:disabled { opacity: .6; cursor: not-allowed; }
/* 搜索行内按钮统一尺寸，避免大小不一显得不协调 */
.search-card-dark .btn-glow {
    flex: none;
    min-width: 110px;
    padding: 10px 22px;
    font-size: 14px;
}
.result-card-dark {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-top: 14px;
    min-height: 180px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tip-dark {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}
.tip-dark .text-success { color: #4f46e5 !important; }
.tip-dark .text-danger { color: #ef4444 !important; }
.kv-dark {
    display: flex;
    padding: 11px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.kv-dark:last-child { border-bottom: none; }
.kv-dark .k {
    width: 120px;
    color: #64748b;
    flex: none;
}
.authkey-dark {
    background: #f1f5f9;
    border: 1px dashed #c7d2fe;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: Consolas, monospace;
    word-break: break-all;
    color: #3730a3;
}
.provider-item-dark {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 6px;
    border-bottom: 1px solid #e2e8f0;
}
.provider-item-dark:last-child { border-bottom: none; }
.provider-logo-dark {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex: none;
}
.provider-item-dark .hl { color: #4f46e5; font-weight: 600; }
.portal-empty {
    text-align: center;
    color: #94a3b8;
    padding: 50px 0;
    font-size: 14px;
}

/* ============ 联系商务模态 ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeModal .2s ease; }
@keyframes fadeModal { from { opacity: 0 } to { opacity: 1 } }
.modal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 30px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    position: relative;
}
.modal-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}
.modal-card .sub {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 22px;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #475569; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 9px 12px;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
textarea.form-input { resize: vertical; min-height: 72px; font-family: inherit; }
.modal-tip {
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 16px;
}
.modal-tip.ok { color: #4f46e5; }
.modal-tip.err { color: #ef4444; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .feature-grid, .pricing-grid, .flow-steps { grid-template-columns: 1fr; }
    .feature-grid.grid-8 { grid-template-columns: repeat(2, 1fr); }
    .price-card.featured { transform: none; }
    .portal-hero h1 { font-size: 34px; }
    .section-title { font-size: 24px; }
    .portal-nav-links { gap: 14px; }
    .portal-section { padding: 50px 0; }
    .canvas-nodes { grid-template-columns: repeat(3, 1fr); }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
    .portal-nav-links { gap: 10px; font-size: 12px; }
    .portal-hero { padding: 120px 0 70px; }
    .portal-hero h1 { font-size: 28px; }
    .portal-hero-cta { flex-direction: column; }
    .canvas-nodes { grid-template-columns: repeat(2, 1fr); }
    .client-grid { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; gap: 20px; }
}
