/* ===== 长春市数据产业发展有限公司官网样式（腾讯风格） ===== */
:root {
    --blue: #0052d9;
    --blue-dark: #003da8;
    --blue-light: #e8f0fe;
    --ink: #1a1a1a;
    --gray: #666;
    --line: #eaeaea;
    --bg-gray: #f5f7fa;
    --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

/* ===== 顶部导航 ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), #2b7cff);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; letter-spacing: .5px;
}
.logo-text { font-size: 16px; }
.logo-img { height: 34px; width: auto; display: block; border-radius: 6px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 15px; color: #333; position: relative; padding: 4px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-admin {
    border: 1px solid var(--blue); color: var(--blue) !important;
    padding: 5px 14px; border-radius: 20px; font-size: 14px;
}
.nav-admin:hover { background: var(--blue); color: #fff !important; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0a2a6b 0%, #0052d9 55%, #2b7cff 100%);
    color: #fff; padding: 110px 0 120px; text-align: center;
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; }
.hero p { margin-top: 16px; font-size: 18px; opacity: .9; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; }
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 26px;
    font-size: 15px; font-weight: 600; transition: .2s; cursor: pointer; border: none;
}
.btn-primary { background: #fff; color: var(--blue); }
.btn-primary:hover { background: #eaf1ff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ===== 区块通用 ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue { background: linear-gradient(135deg, #0a2a6b, #0052d9); color: #fff; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head .section-sub { display: block; margin-top: 8px; color: var(--blue); font-size: 13px; letter-spacing: 3px; }
.section-head.light .section-sub { color: #aacbff; }
.page-banner { background: linear-gradient(135deg, #0a2a6b, #0052d9); color: #fff; padding: 70px 0; text-align: center; }
.page-banner h1 { font-size: 36px; font-weight: 800; }
.page-banner p { letter-spacing: 3px; opacity: .85; margin-top: 8px; }
.more-link { display: inline-block; margin-top: 28px; color: var(--blue); font-weight: 600; }
.more-link.light { color: #fff; }
.more-link:hover { text-decoration: underline; }

/* ===== 卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 30px 26px; transition: .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,82,217,.12); border-color: transparent; }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light);
    color: var(--blue); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 14px; }
.card-lg .prose { margin-top: 12px; }
.card-link { cursor: pointer; text-decoration: none; color: inherit; }
.card-link:hover { border-color: transparent; }
.card-more { display: inline-block; margin-top: 14px; color: var(--blue); font-size: 14px; font-weight: 600; }

/* ===== 新闻 ===== */
.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-item {
    display: flex; gap: 20px; align-items: center; padding: 22px 12px;
    border-bottom: 1px solid var(--line); transition: .2s;
}
.news-item:hover { background: var(--bg-gray); }
.news-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.news-date { color: var(--blue); font-weight: 700; min-width: 92px; }
.news-body h4 { font-size: 17px; }
.news-body p { color: var(--gray); font-size: 14px; margin-top: 4px; }

/* ===== 愿景使命 ===== */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 36px; }
.vm-card h3 { font-size: 22px; margin-bottom: 14px; color: #fff; }
.vm-card .prose { color: #fff; }
.vm-card .prose p { color: #fff; }
.vm-card .prose h1, .vm-card .prose h2, .vm-card .prose h3 { color: #fff; }
.vm-card .prose blockquote { background: rgba(255,255,255,.12); color: #fff; border-left-color: rgba(255,255,255,.6); }
.vm-card .prose a { color: #fff; text-decoration: underline; }

/* ===== 联系 CTA ===== */
.cta { text-align: center; background: var(--bg-gray); }
.cta h2 { font-size: 30px; }
.cta p { color: var(--gray); margin: 12px 0 28px; }

/* ===== 文章/正文 ===== */
.prose { font-size: 16px; color: #333; }
.prose p { margin-bottom: 14px; }
.prose.small { font-size: 14px; color: var(--gray); }
.prose.lead { font-size: 17px; line-height: 1.9; }
/* 富文本（Quill）正文元素 */
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.prose h1, .prose h2, .prose h3 { margin: 18px 0 10px; line-height: 1.4; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose blockquote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--blue); background: rgba(0,82,217,.05); color: #555; }
.prose pre { background: #1e1e2e; color: #e6e6e6; padding: 14px 16px; border-radius: 10px; overflow:auto; }
.article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; }
.contact-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; }
.contact-meta span { display: block; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.contact-meta p { color: var(--gray); }

/* ===== 页脚 ===== */
.site-footer { background: #0c1a33; color: #c7d2e3; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 14px; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; text-align: center; font-size: 13px; color: #8a99b5; }
.footer-bottom p { margin: 4px 0; }
.footer-beians a { color: #8a99b5; text-decoration: none; margin: 0 8px; transition: color .2s; }
.footer-beians a:hover { color: #fff; }
.footer-police::before { content: "·"; margin-right: 16px; color: rgba(255,255,255,.2); }

/* ===== 后台 ===== */
.admin-body { background: #f0f2f5; }
.admin-header { background: #001529; color: #fff; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .a-logo { font-weight: 700; }
.admin-wrap { display: flex; min-height: calc(100vh - 56px); }
.admin-side { width: 200px; background: #001529; color: #fff; padding: 16px 0; }
.admin-side a { display: block; padding: 12px 24px; color: #b9c2d0; }
.admin-side a:hover, .admin-side a.active { background: var(--blue); color: #fff; }
.admin-main { flex: 1; padding: 24px; }
.admin-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.admin-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table th { background: #fafafa; color: #555; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.tag-on { background: #e6f7ec; color: #18a058; }
.tag-off { background: #fdeaea; color: #d03050; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#0a2a6b,#0052d9); }
.login-box { background: #fff; border-radius: 12px; padding: 40px; width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.login-box h2 { text-align: center; margin-bottom: 24px; color: var(--blue); }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: #444; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px;
    font-size: 14px; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--blue); }
textarea.form-control { min-height: 160px; resize: vertical; }
.btn-admin { background: var(--blue); color: #fff; padding: 10px 22px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; }
.btn-admin:hover { background: var(--blue-dark); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 5px; }
.btn-danger { background: #d03050; color: #fff; }
.btn-edit { background: #e8f0fe; color: var(--blue); }
.row-actions { display: flex; gap: 8px; }

/* 验证码 */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .form-control { flex: 1; min-width: 0; }
.captcha-img {
    height: 42px; width: 120px; flex-shrink: 0;
    border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer;
}

/* 联系我们 - 虚拟地图背景 + 定位动画 */
.locate-map {
    position: relative;
    width: 100%; max-width: 680px;
    height: 340px; margin: 20px auto 28px;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line);
    /* 白模地面 */
    background: linear-gradient(135deg, #f4f7fb 0%, #eef2f7 100%);
    box-shadow: 0 12px 32px rgba(0,82,217,.10);
}
/* 白模建筑：地图四角浅色方块，模拟城市白模 */
.locate-building {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(15,23,42,.06);
}
.locate-building.b1 { left: 4%;  top: 6%;  width: 22%; height: 26%; }
.locate-building.b2 { right: 5%; top: 8%;  width: 26%; height: 30%; }
.locate-building.b3 { left: 6%;  bottom: 7%; width: 25%; height: 28%; }
.locate-building.b4 { right: 6%; bottom: 6%; width: 22%; height: 24%; }
.locate-building.b5 { left: 30%; top: 4%;  width: 14%; height: 16%; opacity: .9; }
.locate-building.b6 { right: 32%; bottom: 5%; width: 15%; height: 18%; opacity: .9; }
/* 两条交汇道路（蓝色统一风格） */
.locate-road {
    position: absolute;
    background: linear-gradient(180deg, #2f6bff, #0052d9);
    box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset;
}
/* 横向道路 */
.locate-road.h {
    left: 0; right: 0; top: 50%;
    height: 46px; transform: translateY(-50%);
}
/* 纵向道路 */
.locate-road.v {
    top: 0; bottom: 0; left: 50%;
    width: 46px; transform: translateX(-50%);
}
/* 道路中心虚线 */
.locate-road::after {
    content: "";
    position: absolute;
    background: repeating-linear-gradient(90deg, #ffffff 0 10px, transparent 10px 22px);
    opacity: .85;
}
.locate-road.h::after { left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, #fff 0 10px, transparent 10px 22px); }
.locate-road.v::after { top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, #fff 0 10px, transparent 10px 22px); }
/* 道路名称 */
.road-name {
    position: absolute;
    font-size: 13px; font-weight: 700; color: #fff;
    letter-spacing: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.45);
    white-space: nowrap;
}
.road-h { left: 14px; top: 50%; transform: translateY(-50%); }
.road-v {
    top: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.road-v b {
    font-weight: 700; font-style: normal;
    display: block;
}
/* 道路交汇处的浅色环岛/广场 */
.locate-junction {
    position: absolute; left: 50%; top: 50%;
    width: 70px; height: 70px; border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,82,217,.12);
    border: 2px solid rgba(0,82,217,.25);
    z-index: 2;
}
.locate-animation {
    position: absolute; left: 50%; top: 50%;
    width: 160px; height: 160px;
    /* 置于东西向道路上方、南北向道路左侧（左上象限汇合处） */
    transform: translate(-100%, -100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
}
.locate-dot {
    position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(0,82,217,.15);
    z-index: 3;
    animation: locate-pulse 1.8s ease-in-out infinite;
}
.locate-pin {
    position: absolute;
    font-size: 28px; z-index: 4;
    transform: translateY(-26px);
    animation: locate-bob 2.4s ease-in-out infinite;
}
.locate-ring {
    position: absolute;
    width: 160px; height: 160px; border-radius: 50%;
    border: 2px solid var(--blue);
    opacity: 0;
    animation: locate-ripple 2.4s ease-out infinite;
}
.locate-ring-2 { animation-delay: 1.2s; }
@keyframes locate-ripple {
    0%   { transform: scale(.2); opacity: .7; }
    100% { transform: scale(1); opacity: 0; }
}
@keyframes locate-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(0,82,217,.15); }
    50%      { box-shadow: 0 0 0 12px rgba(0,82,217,.28); }
}
@keyframes locate-bob {
    0%, 100% { transform: translateY(-26px); }
    50%      { transform: translateY(-34px); }
}
/* 标题签名小图标 */
.sub-icon { display: inline-block; margin-right: 4px; color: var(--blue); }
/* 地址 / 电话 / 邮箱 卡片（蓝色统一风格） */
.contact-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px; margin-top: 4px;
}
.contact-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 20px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    box-shadow: 0 8px 22px rgba(0,82,217,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,82,217,.12); }
.cc-icon {
    font-size: 24px; width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,82,217,.08); color: var(--blue);
}
/* 地址图标：与电话/邮箱一致的浅蓝底 + 蓝色图标 */
.contact-card:first-child .cc-icon svg { display: block; }
.cc-label { font-size: 13px; color: var(--gray); }
.cc-value { font-size: 15px; color: #222; font-weight: 600; word-break: break-all; }
@media (max-width: 760px) {
    .contact-cards { grid-template-columns: 1fr; }
    .locate-map { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .locate-dot, .locate-pin, .locate-ring { animation: none; }
    .locate-ring { opacity: .35; }
}

/* 提示 */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash.success { background: #e6f7ec; color: #18a058; }
.flash.danger { background: #fdeaea; color: #d03050; }
.flash.warning { background: #fff7e6; color: #d48806; }

.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat .num { font-size: 30px; font-weight: 800; color: var(--blue); }
.stat .lab { color: #888; font-size: 14px; margin-top: 6px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .card-grid, .vm-grid, .contact-meta, .stat-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .main-nav { gap: 14px; font-size: 13px; }
    .hero h1 { font-size: 30px; }
    .admin-wrap { flex-direction: column; }
    .admin-side { width: 100%; display: flex; flex-wrap: wrap; }
    .admin-side a { padding: 10px 14px; }
}
