/* ===================================================
   星河云科官网 - 全局样式
   技术栈: Bootstrap 4 + 自定义 CSS 变量
   配色: 蓝紫主题
   =================================================== */

/* --- CSS 变量 --- */
:root {
  --color-primary:    #3b4dbe;
  --color-accent:     #5b6cf9;
  --color-highlight:  #7c3aed;
  --color-dark-bg:    #1a2035;
  --color-text:       #1e293b;
  --color-muted:      #64748b;
  --color-card-bg:    #f8fafc;
  --color-border:     #e2e8f0;
  --navbar-height:    64px;
  --footer-bg:        #0f172a;
  --footer-text:      #94a3b8;
}

/* --- 全局基础 --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  padding-top: var(--navbar-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  transition: color .2s;
}
a:hover {
  color: var(--color-highlight);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- 通用工具类 --- */
.section-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .5rem;
}

.section-desc {
  color: var(--color-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* --- 导航栏 --- */
.site-navbar {
  background: var(--color-dark-bg);
  min-height: var(--navbar-height);
  box-shadow: none;
  transition: background .3s, box-shadow .3s;
  z-index: 1030;
}
.site-navbar.scrolled {
  background: rgba(26, 32, 53, .97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .15);
}

.site-navbar .brand-mark {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-navbar .brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  padding: .5rem .85rem !important;
  transition: color .2s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff;
}
.site-navbar .nav-link.active {
  position: relative;
}
.site-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: .85rem;
  right: .85rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
}
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- 面包屑 --- */
.site-breadcrumb {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  padding: .5rem 0;
}
.site-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
}
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--color-muted);
}
.site-breadcrumb .breadcrumb-item a {
  color: var(--color-primary);
  font-size: .875rem;
}
.site-breadcrumb .breadcrumb-item.active {
  color: var(--color-muted);
  font-size: .875rem;
}

/* --- 页脚 --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer .footer-company {
  color: #fff;
  font-size: 1rem;
}

.site-footer .footer-info {
  color: var(--footer-text);
  font-size: .875rem;
}

.site-footer .friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.site-footer .friend-links-label {
  color: #cbd5e1;
  font-size: .875rem;
  font-weight: 600;
  margin-right: .25rem;
}
.site-footer .friend-links a {
  color: var(--footer-text);
  font-size: .8125rem;
  transition: color .2s;
}
.site-footer .friend-links a:hover {
  color: var(--color-accent);
}

.site-footer .footer-meta {
  border-top: 1px solid rgba(148, 163, 184, .15);
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
  color: #64748b;
}

/* --- 卡片通用 --- */
.card-hover {
  transition: transform .2s, box-shadow .2s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 77, 190, .12);
}

/* --- 服务图标（首页 / 服务页 共用） --- */
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.service-icon.cloud   { background: rgba(59, 77, 190, .12); color: var(--color-primary); }
.service-icon.shield  { background: rgba(124, 58, 237, .12); color: var(--color-highlight); }
.service-icon.data    { background: rgba(16, 185, 129, .12); color: #10b981; }
.service-icon.ops     { background: rgba(245, 158, 11, .12); color: #f59e0b; }
.service-icon.app     { background: rgba(91, 108, 249, .12); color: var(--color-accent); }
.service-icon.consult { background: rgba(239, 68, 68, .12); color: #ef4444; }
.service-icon.server  { background: rgba(99, 102, 241, .12); color: #6366f1; }
.service-icon.network { background: rgba(14, 165, 233, .12); color: #0ea5e9; }
.service-icon.monitor { background: rgba(20, 184, 166, .12); color: #14b8a6; }

/* SVG 图标（内联在卡片中） */
.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- 首页 Hero 轮播 --- */
.hero-slide {
  min-height: 420px;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .5rem;
}

/* --- 按钮扩展 --- */
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* --- 响应式微调 --- */
@media (max-width: 991.98px) {
  .site-navbar .nav-link.active::after {
    display: none;
  }
  .site-navbar .navbar-collapse {
    background: var(--color-dark-bg);
    padding: .5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .site-navbar .nav-link {
    padding: .6rem 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .site-footer .friend-links {
    margin-top: .5rem;
  }
  .site-footer .footer-meta {
    flex-direction: column;
    gap: .25rem;
  }
}

/* ==========================
   关于我们页面
   ========================== */

/* 核心数据条 */
.stat-strip {
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

/* 发展历程 Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: .3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.timeline-year {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: .25rem;
}

/* ==========================
   新闻中心页面
   ========================== */

/* 新闻标签 */
.news-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 3px;
  margin-bottom: .35rem;
}
.news-tag.tag-company   { background: rgba(59, 77, 190, .1); color: var(--color-primary); }
.news-tag.tag-industry  { background: rgba(16, 185, 129, .1); color: #10b981; }
.news-tag.tag-tech      { background: rgba(245, 158, 11, .1); color: #f59e0b; }
.news-tag.tag-case      { background: rgba(124, 58, 237, .1); color: var(--color-highlight); }

/* 新闻缩略图 */
.news-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: .3rem;
  border: 1px solid var(--color-border);
  transition: transform .2s, box-shadow .2s;
}
.news-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(59, 77, 190, .15);
}

/* 精华新闻卡 */
.featured-news {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: .5rem;
}
.featured-date {
  text-align: center;
  min-width: 64px;
}
.featured-date strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.featured-date span {
  font-size: .75rem;
  color: var(--color-muted);
}

/* 侧边栏卡片 */
.sidebar-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-card .hot-list {
  padding-left: 1.25rem;
  margin: 0;
}
.sidebar-card .hot-list li {
  margin-bottom: .5rem;
}
.sidebar-card .hot-list li a {
  font-size: .875rem;
  color: var(--color-text);
}
.sidebar-card .hot-list li a:hover {
  color: var(--color-primary);
}
.sidebar-card .notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-card .notice-list li {
  margin-bottom: .75rem;
}
.sidebar-card .notice-list li strong {
  display: block;
  font-size: .8rem;
  color: var(--color-text);
}
.sidebar-card .notice-list li span {
  font-size: .8rem;
  color: var(--color-muted);
}

/* ==========================
   服务项目页面
   ========================== */

/* 服务详情卡片 */
.service-detail-card {
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow .2s;
}
.service-detail-card:hover {
  box-shadow: 0 4px 16px rgba(59, 77, 190, .1);
}
.service-detail-card ul {
  padding-left: 1rem;
  margin: .75rem 0 0;
}
.service-detail-card ul li {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: .25rem;
}

/* 交付步骤 */
.delivery-step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.delivery-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.delivery-step h6 {
  font-weight: 700;
  margin-bottom: .5rem;
}
.delivery-step p {
  font-size: .85rem;
  color: var(--color-muted);
}

/* 服务 CTA */
.service-cta {
  background: linear-gradient(135deg, #1a2035, #3b4dbe);
  border-radius: .5rem;
  padding: 3rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.service-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.service-cta p {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
}

/* ==========================
   联系我们页面
   ========================== */

/* 联系表单 */
.contact-form .form-control,
.contact-form .custom-select {
  border-radius: .3rem;
  border-color: var(--color-border);
  font-size: .9rem;
}
.contact-form .form-control:focus,
.contact-form .custom-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 .15rem rgba(91, 108, 249, .2);
}

/* 验证码行 */
.captcha-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.captcha-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.captcha-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: .3rem;
  padding: .35rem .6rem;
  user-select: none;
}
#captchaImg {
  border-radius: .25rem;
  vertical-align: middle;
}
.captcha-refresh {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-muted);
  transition: color .2s;
}
.captcha-refresh:hover {
  color: var(--color-accent);
}
.captcha-refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* 联系信息卡 */
.contact-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.contact-card dl {
  margin: 0;
}
.contact-card dt {
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.contact-card dd {
  font-size: .9rem;
  margin-bottom: .75rem;
}
.contact-card dd:last-child {
  margin-bottom: 0;
}

/* 响应承诺列表 */
.response-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.response-list li {
  margin-bottom: .75rem;
}
.response-list li strong {
  display: block;
  font-size: .9rem;
  color: var(--color-text);
}
.response-list li span {
  font-size: .8rem;
  color: var(--color-muted);
}

/* 地图占位 */
.map-placeholder {
  height: 280px;
  border-radius: .5rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a2035 0%, #2d3a5a 100%);
}
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.04) 39px, rgba(255,255,255,.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.04) 39px, rgba(255,255,255,.04) 40px);
}
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}
.map-pin::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91, 108, 249, .3);
  animation: mapPulse 2s ease-in-out infinite;
}
.map-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91, 108, 249, .08);
  animation: mapPulse 2s ease-in-out infinite .5s;
}
@keyframes mapPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.3); opacity: .5; }
}
.map-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(26, 32, 53, .85);
  backdrop-filter: blur(4px);
  border-radius: .3rem;
  padding: .6rem 1rem;
  color: #fff;
}
.map-caption strong {
  display: block;
  font-size: .85rem;
}
.map-caption span {
  font-size: .75rem;
  color: rgba(255, 255, 255, .7);
}

/* 来访说明 */
.visit-panel {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  padding: 1.5rem;
}
.visit-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}
.visit-list li {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: .4rem;
  padding-left: 1.25rem;
  position: relative;
}
.visit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* 服务窗口卡片 */
.channel-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  padding: 1.25rem;
  height: 100%;
  transition: box-shadow .2s;
}
.channel-card:hover {
  box-shadow: 0 4px 16px rgba(59, 77, 190, .1);
}
.channel-card strong {
  display: block;
  font-size: .95rem;
  color: var(--color-text);
  margin-bottom: .35rem;
}
.channel-card span {
  font-size: .85rem;
  color: var(--color-muted);
}

/* ==========================
   Markdown 正文排版
   ========================== */
.article-content {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--color-text);
  word-wrap: break-word;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}
.article-content h2 { font-size: 1.4rem; border-bottom: 1px solid var(--color-border); padding-bottom: .35rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content h4 { font-size: 1.05rem; }
.article-content p {
  margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-content li {
  margin-bottom: .35rem;
}
.article-content blockquote {
  margin: 1.25rem 0;
  padding: .75rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(59, 77, 190, .04);
  color: var(--color-muted);
  border-radius: 0 .3rem .3rem 0;
}
.article-content blockquote p {
  margin-bottom: .25rem;
  font-style: italic;
}
.article-content blockquote p:last-child {
  margin-bottom: 0;
}
.article-content strong {
  color: var(--color-text);
  font-weight: 700;
}
.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
}
.article-content a:hover {
  color: var(--color-primary);
}
.article-content code {
  background: rgba(59, 77, 190, .06);
  padding: .15rem .35rem;
  border-radius: 3px;
  font-size: .875em;
  color: var(--color-highlight);
}
.article-content pre {
  background: #1a2035;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: .3rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: .85rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.article-content th,
.article-content td {
  border: 1px solid var(--color-border);
  padding: .5rem .75rem;
  text-align: left;
  font-size: .9rem;
}
.article-content th {
  background: var(--color-card-bg);
  font-weight: 600;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: .3rem;
  margin: .5rem 0;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}
