/* GeoX AI Lab 公开站样式 */

:root {
    --primary-color: #2557c7;
    --primary-dark: #1e469f;
    --ink: #18212b;
    --muted: #637181;
    --page-bg: #f4f7fb;
    --surface: #ffffff;
    --line: #dce4ef;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--page-bg);
    font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.main-content {
    flex: 1;
}

.navbar {
    min-height: 60px;
    box-shadow: 0 8px 24px rgba(17, 41, 91, 0.14);
}

.navbar-brand {
    font-weight: 750;
    font-size: 1.15rem;
}

a {
    color: var(--primary-color);
}

/* 页脚 */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.site-footer h6 {
    font-weight: 700;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-color);
}

/* 首页 hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(12, 36, 71, 0.9), rgba(31, 87, 128, 0.76)),
        url('/static/images/hero-bg.png') center/cover no-repeat;
    color: #fff;
    padding: 6.5rem 0 5.5rem;
    text-align: center;
}

.hero .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(2.4rem, 2.6vw + 1.4rem, 4rem);
    line-height: 1.16;
    letter-spacing: 0.015em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 24px rgba(0, 20, 50, 0.45);
}

.hero-en {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    margin-bottom: 1.1rem;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.86);
    max-width: 44rem;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}


/* 通用页面外壳 */
.page-shell {
    padding: 2.5rem 0 1rem;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.page-hero .eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.page-hero h1 {
    font-weight: 800;
    margin: 0.25rem 0 0.5rem;
}

.page-hero p {
    color: var(--muted);
    margin-bottom: 0;
    max-width: 46rem;
}

.page-hero-icon {
    font-size: 2.4rem;
    color: var(--primary-color);
    background: #edf3ff;
    border-radius: 1rem;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* 区块 */
.section-block {
    margin-bottom: 3rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading .eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.section-heading h2 {
    font-weight: 800;
    margin: 0.25rem 0 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

/* 卡片 */
.feature-card,
.news-card,
.content-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: 0 8px 22px rgba(24, 33, 43, 0.05);
}

.feature-card {
    padding: 1.5rem;
    height: 100%;
}

.feature-card i {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.feature-card h3,
.news-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card p,
.news-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.news-card {
    padding: 1.25rem;
    height: 100%;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-meta time {
    color: var(--muted);
    font-size: 0.8rem;
}

.service-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1.5rem;
    color: var(--ink);
    text-decoration: none;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(24, 33, 43, 0.1);
    color: var(--ink);
}

.service-card i {
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* 内容面板 */
.content-panel {
    padding: 1.5rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.compact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.compact-list li {
    padding: 0.35rem 0;
    color: var(--ink);
}

.quick-link-list a {
    border-left: 0;
    border-right: 0;
}

/* 新闻筛选 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 地图 */
.map-page {
    position: relative;
    height: calc(100vh - 60px);
}

#map {
    height: 100%;
    width: 100%;
    background: #e9edf3;
}

.gnss-cluster-icon {
    background: transparent;
    border: none;
}

.map-warning {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: min(640px, calc(100% - 2rem));
    margin: 0;
}

.map-search-panel {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    width: min(360px, calc(100% - 2rem));
}

.map-search-panel .input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.map-search-results {
    display: none;
    margin-top: 6px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    max-height: 320px;
    overflow-y: auto;
}

.map-search-results.show {
    display: block;
}

.map-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    background: transparent;
    color: #172033;
    text-align: left;
}

.map-search-item:last-child {
    border-bottom: 0;
}

.map-search-item:hover {
    background: #f3f7ff;
}

.map-coords {
    position: absolute;
    left: 1rem;
    bottom: 1.5rem;
    z-index: 1000;
    padding: 5px 9px;
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: #172033;
    font-family: Consolas, "JetBrains Mono", monospace;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.map-legend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 180px;
}

.map-count {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
}

.marker-cluster {
    background-color: rgba(37, 87, 199, 0.65);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 申请页 */
.apply-template {
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 1rem;
    font-size: 0.86rem;
    white-space: pre-wrap;
}

/* 结果查看页 */
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.plot-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1rem;
}

.plot-holder {
    width: 100%;
    min-height: 320px;
}

@media (max-width: 991.98px) {
    .hero h1 {
        font-size: clamp(2rem, 1.7rem + 2.4vw, 2.6rem);
    }

    .hero {
        padding: 4.5rem 0 4rem;
    }
}

/* 关于我：项目/论文编号列表 */
.ref-list {
    padding-left: 1.4rem;
    margin-bottom: 0;
}

.ref-list li {
    padding: 0.45rem 0;
    color: var(--ink);
    line-height: 1.65;
    border-bottom: 1px dashed var(--line);
}

.ref-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
