/* portal.css — 龙百AI 官网 / 查询门户 深色科技风格 */

/* ============ 全局 ============ */
.portal-body {
    background: #0b1020;
    color: #e8eef9;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-image:
        radial-gradient(circle at 15% 10%, rgba(79,124,255,.18), transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(124,92,255,.14), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(34,211,238,.10), transparent 45%);
}
.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(11, 16, 32, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.portal-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.portal-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .5px;
}
.portal-brand:hover { color: #fff; }
.portal-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.portal-nav-links a {
    color: #9ba8c0;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.portal-nav-links a:hover { color: #fff; }
.portal-nav-cta {
    background: rgba(79, 124, 255, .15);
    color: #4f7cff !important;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(79, 124, 255, .3);
}
.portal-nav-cta:hover {
    background: rgba(79, 124, 255, .25) !important;
    color: #fff !important;
}

/* ============ Hero ============ */
.portal-hero {
    text-align: center;
    padding: 160px 0 100px;
    position: relative;
}
.portal-hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fff 20%, #9ba8c0 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.portal-hero .sub {
    color: #9ba8c0;
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.portal-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============ 按钮 ============ */
.btn-glow {
    background: linear-gradient(135deg, #4f7cff, #7c5cff);
    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 6px 22px rgba(79, 124, 255, .35);
    transition: transform .15s, box-shadow .2s;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 124, 255, .5);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: #e8eef9;
    border: 1px solid rgba(255, 255, 255, .18);
    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;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

/* ============ 区块标题 ============ */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 14px;
}
.section-sub {
    text-align: center;
    color: #9ba8c0;
    font-size: 15px;
    margin-bottom: 50px;
}

/* ============ 功能卡片 ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 30px 26px;
    backdrop-filter: blur(8px);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 124, 255, .35);
    box-shadow: 0 12px 40px rgba(79, 124, 255, .1);
}
.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79,124,255,.25), rgba(124,92,255,.15));
    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: #fff;
}
.feature-card p {
    color: #9ba8c0;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

/* ============ 定价 ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.price-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 36px 28px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    position: relative;
}
.price-card.featured {
    border-color: rgba(79, 124, 255, .5);
    box-shadow: 0 10px 40px rgba(79, 124, 255, .2);
    transform: translateY(-6px);
}
.price-badge {
    position: absolute;
    top: -12px;
    right: 22px;
    background: linear-gradient(135deg, #4f7cff, #7c5cff);
    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;
}
.price-desc {
    color: #9ba8c0;
    font-size: 13px;
    margin-bottom: 22px;
}
.price-nums {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(255, 255, 255, .1);
}
.price-num {
    flex: 1;
}
.price-num .n {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}
.price-num .l {
    font-size: 12px;
    color: #9ba8c0;
    margin-top: 2px;
}
.price-features {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.price-features li {
    color: #c5d0e6;
    font-size: 14px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-features li .ck { color: #22d3ee; font-weight: 700; }
.price-features li.off { color: #5a6784; }
.price-features li.off .ck { color: #5a6784; }
.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: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    position: relative;
}
.flow-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f7cff, #7c5cff);
    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;
}
.flow-step p {
    color: #9ba8c0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.arch-box {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 40px 30px;
    text-align: center;
}
.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: rgba(79, 124, 255, .1);
    border: 1px solid rgba(79, 124, 255, .3);
    color: #e8eef9;
    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, rgba(79,124,255,.3), rgba(124,92,255,.2));
    border-color: rgba(79, 124, 255, .5);
}
.arch-node.muted {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
    color: #9ba8c0;
}
.arch-arrow {
    color: #5a6784;
    font-size: 20px;
    text-align: center;
}

/* ============ Footer ============ */
.portal-footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
    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: #9ba8c0;
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    color: #5a6784;
    font-size: 13px;
}

/* ============ 查询门户 ============ */
.query-page {
    padding-top: 80px;
}
.query-page .section-title {
    font-size: 26px;
}
.search-card-dark {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    backdrop-filter: blur(8px);
}
.search-card-dark input {
    background: transparent;
    border: none;
    outline: none;
    color: #e8eef9;
    flex: 1;
    font-size: 15px;
    padding: 8px 10px;
}
.search-card-dark input::placeholder { color: #5a6784; }
.result-card-dark {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 22px;
    margin-top: 14px;
    min-height: 180px;
    backdrop-filter: blur(8px);
}
.tip-dark {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}
.tip-dark .text-success { color: #22d3ee !important; }
.tip-dark .text-danger { color: #ff6b8a !important; }
.kv-dark {
    display: flex;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
    font-size: 14px;
}
.kv-dark:last-child { border-bottom: none; }
.kv-dark .k {
    width: 120px;
    color: #9ba8c0;
    flex: none;
}
.authkey-dark {
    background: rgba(79, 124, 255, .08);
    border: 1px dashed rgba(79, 124, 255, .3);
    border-radius: 6px;
    padding: 5px 10px;
    font-family: Consolas, monospace;
    word-break: break-all;
    color: #e8eef9;
}
.provider-item-dark {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.provider-item-dark:last-child { border-bottom: none; }
.provider-logo-dark {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(79,124,255,.25), rgba(124,92,255,.15));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex: none;
}
.provider-item-dark .hl { color: #22d3ee; }
.portal-empty {
    text-align: center;
    color: #5a6784;
    padding: 50px 0;
    font-size: 14px;
}

/* ============ 响应式 ============ */

/* ============ 联系商务模态 ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 16, 32, .78);
    backdrop-filter: blur(6px);
    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: rgba(22, 28, 48, .95);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 32px 30px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(12px);
    position: relative;
}
.modal-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}
.modal-card .sub {
    color: #9ba8c0;
    font-size: 13px;
    margin-bottom: 22px;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #9ba8c0;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #fff; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    color: #9ba8c0;
    font-size: 13px;
    margin-bottom: 5px;
}
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    padding: 9px 12px;
    color: #e8eef9;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: rgba(79, 124, 255, .5);
}
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='%239ba8c0'/%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: #22d3ee; }
.modal-tip.err { color: #ff6b8a; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .feature-grid, .pricing-grid, .flow-steps { grid-template-columns: 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; }
}
@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; }
}
