﻿/* RiskNet 网站样式文件 - 版本 v1.0 */

/* CSS 变量定义 */
:root {
    --container: 1200px;
    --primary: #1F4ED3;
    --text: #243647;
    --muted: #333;
    --gray-100: #EEF3FF;
    --card-bg: #fff;
    --card-radius: 12px;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.06);
    --border: #E9EDF5;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

/* 通用样式 */
.container { width: var(--container); margin: 0 auto; padding: 0 20px; }
.card { background: var(--card-bg); border-radius: var(--card-radius); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.btn { height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid #D9DEE8; color: #3A3A3A; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: #F5F7FB; border-color: var(--primary); }
.btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.h1 { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.2; }
.lead { font-size: 14px; line-height: 24px; color: var(--muted); }

/* 主内容区域：不为旧 header 预留空间 */
.main { margin-top: 0; }

/* 保险隐藏任何残留的旧 header */
.header { display: none !important; }

/* 统一 data 风格导航栏 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2c3e50;
    color: white;
    padding: 0 40px;
    height: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.logo-circle { width: 40px; height: 40px; background: #3498db; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; color: white; }
.logo-text { font-size: 14px; line-height: 1.2; }
.logo-text div:first-child { font-weight: bold; }
.navbar-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.navbar-menu li { cursor: pointer; font-size: 16px; color: white; transition: color 0.2s; padding: 8px 0; }
.navbar-menu li:hover { color: #3498db; }
.navbar-menu li.active { color: #3498db; border-bottom: 2px solid #3498db; }
.navbar-auth { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.auth-icon { font-style: normal; font-size: 16px; }

/* 保持之前的 navbar 显示 */

/* Hero 首屏样式 */
.hero { position: relative; height: 50vh; min-height: 500px; display: flex; align-items: center; overflow: hidden; }
.hero__background { position: absolute; inset: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.hero .container { position: relative; z-index: 1; }
.hero__title { color: #fff; font-size: 42px; font-weight: 800; line-height: 1.2; letter-spacing: 0.5px; }
.hero__title-line1 { display: block; }
.hero__title-line2 { display: inline-block; margin-top: 8px; }
.hero__subtitle { display: block; margin-top: 12px; max-width: 640px; font-size: 18px; line-height: 1.6; color: #f5f8ff; font-weight: 500; }
.hero__support { margin-top: 8px; transform: translate(800px, -100px); }
.hero__support-line { display: block; font-size: 24px; font-weight: 700; color: #fff; line-height: 1.4; }
.hero__btn { margin-top: 24px; }

/* 追加 data 页导航样式 */
.navbar { display: flex; align-items: center; justify-content: space-between; background: #2c3e50; color: white; padding: 0 40px; height: 70px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.logo-circle { width: 40px; height: 40px; background: #3498db; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; color: white; }
.logo-text { font-size: 14px; line-height: 1.2; }
.logo-text div:first-child { font-weight: bold; }
.navbar-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.navbar-menu li { cursor: pointer; font-size: 16px; color: white; transition: color 0.2s; padding: 8px 0; }
.navbar-menu li:hover { color: #3498db; }
.navbar-menu li.active { color: #3498db; border-bottom: 2px solid #3498db; }
.navbar-auth { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.auth-icon { font-style: normal; font-size: 16px; }

/* 指标分析样式 */
.indicators {
    padding: 40px 0;
    background: var(--white);
    min-height: 400px;
}

.indicators__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: 100%;
}

.indicators__img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.indicators__text {
    padding-left: 20px;
}

.indicators__title {
    margin-bottom: 20px;
}

.indicators__desc {
    margin-bottom: 30px;
    max-width: 400px;
}

/* 区域热力图样式 */
.heatmap {
    padding: 120px 0;
    min-height: 600px;
}

.heatmap__background {
    background: var(--gray-100);
}

.heatmap__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.heatmap__card {
    padding: 40px;
    max-width: 400px;
}

.heatmap__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.heatmap__card-desc {
    font-size: 14px;
    line-height: 24px;
    color: var(--muted);
    margin-bottom: 30px;
}

.heatmap__card-stats {
    display: flex;
    gap: 30px;
}

.heatmap__stat {
    text-align: center;
}

.heatmap__stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.heatmap__stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.heatmap__map-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--card-radius);
}

/* 行业分析样式 */
.industry {
    padding: 60px 0;
    background: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.industry__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.industry__image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 400px;
}

.industry__img {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.industry__img--large {
    grid-row: 1 / -1;
    grid-column: 1;
}

.industry__img--small:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.industry__img--medium {
    grid-column: 2;
    grid-row: 2;
}

.industry__img--small:nth-of-type(4) {
    display: none;
}

.industry__img-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry__text {
    padding-left: 20px;
}

.industry__title {
    margin-bottom: 20px;
}

.industry__desc {
    margin-bottom: 30px;
    font-size: 18px;
    max-width: 400px;
}

/* 实时数据样式 */
.realtime {
    padding: 120px 0;
    min-height: 600px;
}

.realtime__background {
    background: var(--gray-100);
}

.realtime__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.realtime__card {
    padding: 40px;
    max-width: 400px;
}

.realtime__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.realtime__card-desc {
    font-size: 18px;
    line-height: 24px;
    color: var(--muted);
    margin-bottom: 30px;
}

.realtime__card-metrics {
    display: flex;
    gap: 30px;
}

.realtime__metric {
    text-align: center;
}

.realtime__metric-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.realtime__metric-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.realtime__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--card-radius);
}

/* 数据面板样式 */
.dashboard {
    padding: 30px 0;
    background: var(--white);
    min-height: 350px;
}

.dashboard__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: 100%;
}

.dashboard__image-container {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.dashboard__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dashboard__img:hover {
    transform: scale(1.02);
}

.dashboard__text {
    padding-left: 20px;
}

.dashboard__title {
    margin-bottom: 20px;
}

.dashboard__desc {
    margin-bottom: 30px;
    max-width: 400px;
}

/* 页脚样式 */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer__logo-text {
    font-size: 18px;
    font-weight: 700;
}

.footer__desc {
    font-size: 14px;
    line-height: 24px;
    color: var(--gray-300);
    max-width: 300px;
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer__link-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer__link-list {
    list-style: none;
}

.footer__link-list li {
    margin-bottom: 8px;
}

.footer__link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--primary);
}

.footer__bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
}

.footer__copyright {
    font-size: 12px;
    color: var(--gray-400);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header__nav-list {
        gap: 20px;
    }
    
    .header__nav-link {
        font-size: 13px;
    }
    
    .hero__title-line1 {
        font-size: 36px;
    }
    
    .hero__title-line2 {
        font-size: 28px;
    }
    
    .hero__subtitle {
        font-size: 16px;
        max-width: 520px;
    }
    
    .hero__support-line {
        font-size: 22px;
    }
    
    .indicators__content,
    .heatmap__content,
    .industry__content,
    .realtime__content,
    .dashboard__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .indicators__text,
    .industry__text,
    .dashboard__text {
        padding-left: 0;
    }
    
    .indicators__img,
    .heatmap__map-img,
    .realtime__img,
    .dashboard__img {
        height: 400px;
    }
    
    .industry__image-grid {
        height: 500px;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr 1fr 1fr;
    }
    
    .industry__img--large {
        grid-row: 1;
        grid-column: 1;
    }
    
    .industry__img--small:nth-of-type(2) {
        grid-row: 2;
        grid-column: 1;
    }
    
    .industry__img--medium {
        grid-row: 3;
        grid-column: 1;
    }
    
    .industry__img--small:nth-of-type(4) {
        grid-row: 4;
        grid-column: 1;
        display: block;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header__nav-list {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero__title-line1 {
        font-size: 28px;
    }
    
    .hero__title-line2 {
        font-size: 24px;
    }
    
    .hero__subtitle {
        font-size: 15px;
        max-width: 100%;
    }
    
    .hero__support-line {
        font-size: 18px;
    }
    
    .h1 {
        font-size: 24px;
    }
    
    .heatmap__card-stats,
    .realtime__card-metrics {
        flex-direction: column;
        gap: 20px;
    }
}
/* 导航栏居中排版：logo 左侧，菜单整体居中 */
.navbar { justify-content: center; gap: 32px; }
.navbar-logo { flex: 0 0 auto; margin-right: 24px; }
.navbar-menu { flex: 1 1 auto; justify-content: center; gap: 32px; }
.navbar-auth { flex: 0 0 auto; }
/* Hero 标题放大 */
.hero__title { font-size: 5px; }
.hero__title-line1 { font-size: 60px; }
.hero__title-line2 { font-size: 40px; }
.hero__support-line { font-size: 24px; }
/* 应用实例与声明卡片统一居中样式 */
.indicators { padding: 60px 0; }
.indicators__content { display: flex; justify-content: center; }
.indicators__text { max-width: 880px; width: 100%; background: #fff; padding: 28px 32px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.indicators__text h2 { margin-bottom: 12px; text-align: center; }
/* .indicators__desc { text-align: left; line-height: 1.7; } */

.dashboard { padding: 60px 0; }
.dashboard__content { display: flex; justify-content: center; }
.dashboard__text { max-width: 720px; width: 100%; background: #fff; padding: 24px 28px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); text-align: center; }
.dashboard__title { margin-bottom: 12px; }
/* .dashboard__desc { margin: 0; line-height: 1.7; text-align: left; } */

@media (max-width: 720px) {
  .indicators__text, .dashboard__text { padding: 20px; }
}
/* 应用实例/声明 卡片微调：加宽、居中、分段 */
.indicators__text { max-width: 1500px; text-align: center; }
.indicators__desc { text-align: center; }
.indicators__desc h4 { margin: 14px 0 8px; }
.indicators__desc p { margin: 6px 0 8px; }
.indicators__list { max-width: 900px; margin: 4px auto 12px; padding-left: 18px; text-align: left; line-height: 1.7; }
.dashboard__text { max-width: 1000px; text-align: center; }
.dashboard__desc { text-align: center; }
