/* ============================================
   信息与技术服务中心 · 全站样式表
   湖南鸟鸣涧网络科技有限公司 · 2026
   ============================================ */

/* ========== 1. 基础重置与通用样式 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: #0b1020;
  color: #f5f7ff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #4da3ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #4df2ff;
}

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

/* ========== 2. 布局容器 ========== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.max-width {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  flex: 1;
}

/* ========== 3. 头部导航 ========== */
header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at top left, rgba(77, 163, 255, 0.16), transparent 55%), rgba(8, 12, 32, 0.96);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: conic-gradient(from 160deg, #4da3ff, #8a7bff, #4df2ff, #4da3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020412;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-text-main {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.brand-text-sub {
  font-size: 12px;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  color: #d5e0ff;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #4df2ff;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4da3ff, #4df2ff);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(77, 163, 255, 0.4);
  background: radial-gradient(circle at top left, rgba(77, 163, 255, 0.22), rgba(8, 12, 32, 0.95));
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-cta span {
  font-size: 10px;
  opacity: 0.7;
}

/* ========== 4. 首页 Hero 区域 ========== */
.hero {
  padding: 64px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 28, 56, 0.9);
  border: 1px solid rgba(77, 163, 255, 0.4);
  font-size: 11px;
  color: #c6d7ff;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4df2ff;
  box-shadow: 0 0 12px rgba(77, 242, 255, 0.85);
  flex-shrink: 0;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0;
}

.hero-title span {
  background: linear-gradient(120deg, #4df2ff, #4da3ff 40%, #8a7bff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #d5e0ff;
  max-width: 480px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: #a9b7e6;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4da3ff;
  flex-shrink: 0;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, #4da3ff, #4df2ff);
  color: #020412;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 163, 255, 0.4);
  text-decoration: none;
}

.btn-primary span {
  font-size: 16px;
}

.btn-secondary {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.5);
  background: rgba(10, 15, 40, 0.9);
  color: #dbe3ff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: #4da3ff;
  background: rgba(10, 15, 40, 1);
  text-decoration: none;
}

.hero-note {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.65;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 20px;
  padding: 18px;
  background: radial-gradient(circle at top left, rgba(77, 163, 255, 0.19), rgba(4, 8, 28, 0.96));
  border: 1px solid rgba(132, 161, 255, 0.35);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hero-card-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 16, 48, 0.9);
  border: 1px solid rgba(77, 163, 255, 0.45);
}

.hero-card-badge {
  font-size: 11px;
  color: #a8ffea;
}

.hero-card-main {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.hero-card-main img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  font-size: 12px;
  color: #f5f7ff;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: #ccd6ff;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-card-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-floating {
  position: absolute;
  right: -6px;
  bottom: -14px;
  width: 150px;
  height: 150px;
  border-radius: 24px;
  border: 1px solid rgba(77, 242, 255, 0.5);
  background: radial-gradient(circle at top, rgba(77, 242, 255, 0.18), rgba(9, 14, 40, 0.96));
  backdrop-filter: blur(20px);
  padding: 10px 12px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-floating-title {
  font-weight: 600;
}

.hero-floating-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.hero-floating-footer {
  font-size: 10px;
  color: #a0b5ff;
}

/* ========== 5. 通用区块样式 ========== */
.section {
  padding: 30px 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
}

.section-title span {
  font-size: 11px;
  color: #9eb0ff;
  display: block;
  font-weight: 400;
  margin-top: 4px;
}

.section-desc {
  font-size: 13px;
  color: #c6d7ff;
  max-width: 420px;
  line-height: 1.6;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.7);
  font-size: 11px;
  color: #cfd7ff;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border-radius: 16px;
  padding: 16px;
  background: radial-gradient(circle at top, rgba(77, 163, 255, 0.14), rgba(8, 14, 36, 0.98));
  border: 1px solid rgba(120, 142, 255, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 142, 255, 0.6);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.card-tag {
  font-size: 11px;
  color: #9eb0ff;
  margin-top: 4px;
}

.card-body {
  font-size: 13px;
  color: #d5e0ff;
  line-height: 1.6;
}

.card-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca9e0;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-soft {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 48, 0.96);
  font-size: 11px;
  color: #c6d7ff;
  white-space: nowrap;
}

/* ========== 6. 产品卡片 ========== */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(111, 130, 255, 0.5);
  position: relative;
}

.product-image-wrapper a {
  display: block;
}

.product-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image-wrapper:hover img {
  transform: scale(1.05);
}

.product-image-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.85);
  font-size: 11px;
  color: #f5f7ff;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.product-card-desc {
  font-size: 13px;
  color: #d5e0ff;
  line-height: 1.6;
}

.product-card-price {
  font-size: 13px;
  color: #a8ffea;
  margin-top: 4px;
  font-weight: 500;
}

.product-card-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}

.product-card-actions a.btn-link {
  color: #4df2ff;
}

/* ========== 7. 详情页布局 ========== */
.detail-hero {
  padding-top: 40px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.detail-title {
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-subtitle {
  font-size: 13px;
  color: #c6d7ff;
  line-height: 1.7;
}

.detail-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #9eb0ff;
}

.detail-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 142, 255, 0.45);
}

.detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.detail-section p,
.detail-section ul {
  font-size: 13px;
  color: #d5e0ff;
  line-height: 1.7;
  margin: 0;
}

.detail-section ul {
  padding-left: 18px;
  margin-top: 8px;
}

.detail-section li {
  margin-bottom: 4px;
}

/* ========== 8. 下单页表单 ========== */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: flex-start;
}

.form-card {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top, rgba(77, 163, 255, 0.14), rgba(8, 14, 36, 0.98));
  border: 1px solid rgba(120, 142, 255, 0.5);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

label {
  font-size: 13px;
  color: #e3ebff;
  font-weight: 500;
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(112, 132, 255, 0.7);
  background: rgba(10, 14, 36, 0.95);
  color: #f5f7ff;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4da3ff;
  box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.5);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.form-tip {
  font-size: 11px;
  color: #9ca9e0;
  margin-top: 2px;
}

.form-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #9ca9e0;
}

.summary-card {
  border-radius: 18px;
  padding: 16px;
  background: radial-gradient(circle at top, rgba(148, 163, 255, 0.16), rgba(8, 14, 36, 0.98));
  border: 1px solid rgba(120, 142, 255, 0.6);
  position: sticky;
  top: 80px;
}

.summary-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #d5e0ff;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.summary-list span:first-child {
  opacity: 0.8;
}

.summary-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 255, 0.5);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.summary-total strong {
  color: #a8ffea;
}

.summary-note {
  margin-top: 8px;
  font-size: 11px;
  color: #9ca9e0;
  line-height: 1.5;
}

/* ========== 9. 联系卡片 ========== */
.contact-card {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  font-size: 13px;
  color: #d5e0ff;
}

.contact-item {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(12, 18, 48, 0.98);
  border: 1px solid rgba(77, 163, 255, 0.4);
}

.contact-label {
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.contact-value {
  margin-top: 4px;
  line-height: 1.6;
}

/* ========== 10. 页脚 ========== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 30px;
  padding: 16px 0 18px;
  background: radial-gradient(circle at bottom, rgba(77, 163, 255, 0.12), rgba(6, 10, 28, 0.98));
  font-size: 11px;
  color: #a8b5e6;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c6d7ff;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4df2ff;
  text-decoration: none;
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-icp span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #4df2ff;
  flex-shrink: 0;
}

/* ========== 11. 返回顶部按钮 ========== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(132, 161, 255, 0.7);
  background: radial-gradient(circle at top, rgba(77, 163, 255, 0.2), rgba(6, 10, 28, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f7ff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease-out;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: #4df2ff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(77, 163, 255, 0.4);
}

/* ========== 12. 侧边在线客服 ========== */
.side-service {
  position: fixed;
  right: 20px;
  top: 40%;
  transform: translateY(-50%);
  z-index: 35;
  display: none; /* 默认隐藏，点击图标后显示 */
}

.side-service-panel {
  border-radius: 16px;
  padding: 8px 10px 10px;
  background: rgba(6, 10, 28, 0.96);
  border: 1px solid rgba(132, 161, 255, 0.65);
  box-shadow: 0 12px 28px rgba(1, 4, 16, 0.75);
  width: 190px;
  position: relative;
}

.side-service-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(132, 161, 255, 0.3);
  color: #c6d7ff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease;
}

.side-service-close:hover {
  background: rgba(132, 161, 255, 0.5);
}

.side-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-right: 24px;
}

.side-service-title {
  font-size: 13px;
  font-weight: 600;
}

.side-service-status {
  font-size: 11px;
  color: #a8ffea;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.side-service-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4df2ff;
  box-shadow: 0 0 10px rgba(77, 242, 255, 0.9);
  flex-shrink: 0;
}

.side-service-body {
  font-size: 11px;
  color: #e3ebff;
  margin-bottom: 6px;
  line-height: 1.5;
}

.side-service-tags {
  display: none;
}

.side-service-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-service-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.side-service-actions a.primary {
  background: linear-gradient(120deg, #4da3ff, #4df2ff);
  color: #020412;
  font-weight: 500;
}

.side-service-actions a.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 163, 255, 0.4);
  text-decoration: none;
}

.side-service-actions a.secondary {
  display: none;
}

.side-service-minified {
  display: block; /* 默认显示图标按钮 */
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 36;
}

.side-service-minified button {
  border-radius: 999px;
  border: 1px solid rgba(132, 161, 255, 0.7);
  background: radial-gradient(circle at top, rgba(77, 163, 255, 0.24), rgba(6, 10, 28, 0.98));
  color: #f5f7ff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  padding: 0;
}

.side-service-minified button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(77, 163, 255, 0.4);
}

.side-service-minified span {
  font-size: 22px;
  line-height: 1;
}

/* ========== 13. 响应式适配 ========== */
@media (max-width: 768px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 30px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-visual {
    order: -1;
  }

  header {
    position: sticky;
  }

  .top-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .detail-layout,
  .order-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .side-service-minified {
    right: 14px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .summary-card {
    position: static;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-floating {
    display: none;
  }
}

@media (max-width: 480px) {
  .max-width {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 16px;
  }

  .detail-title {
    font-size: 18px;
  }
}
