/* ============================================
   坚锋国际 Topcentral - 共享样式 (shared.css)
   被所有子页面引用
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --p: #0f172a;
  --a: #64ffda;
  --a2: #3b82f6;
  --t: #e2e8f0;
  --m: #94a3b8;
  --c: #1e293b;
  --b: rgba(100,255,218,.15);
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--p);
  color: var(--t);
  line-height: 1.6;
}
a { color: var(--a); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15,23,42,.95);
  border-bottom: 1px solid var(--b);
  backdrop-filter: blur(12px);
}
.ni {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nl { font-size: 20px; font-weight: 700; color: var(--a); letter-spacing: 1px; }
.nl:hover { text-decoration: none; }
.nls { display: flex; gap: 28px; list-style: none; }
.nls a {
  color: var(--t);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.nls a:hover { color: var(--a); text-decoration: none; }
.nls a.active { color: var(--a); }

/* 页脚 */
footer {
  background: #0a0f1a;
  border-top: 1px solid var(--b);
  padding: 40px 24px;
  text-align: center;
  color: var(--m);
  font-size: 13px;
}
footer a { color: var(--a); }
footer a:hover { text-decoration: underline; }
footer p { margin-top: 12px; }

/* 通用区块 */
.sec { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.st { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.ss { color: var(--m); margin-bottom: 40px; font-size: 15px; }

/* 产品卡片网格 */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pc { background: var(--c); border: 1px solid var(--b); border-radius: 10px; padding: 24px; }
.pc h3 { color: var(--a); font-size: 16px; margin-bottom: 10px; }
.pc p { color: var(--m); font-size: 13px; }

/* 页面头部（各子页面） */
.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(100,255,218,.04) 0%, transparent 100%);
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.page-hero p {
  font-size: 16px;
  color: var(--m);
  max-width: 600px;
  margin: 0 auto;
}

/* 返回链接 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--a);
  cursor: pointer;
  margin-bottom: 32px;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .ni { padding: 0 16px; }
  .nls { gap: 16px; }
  .nls li:nth-child(n+4) { display: none; }
  .sec { padding: 60px 16px; }
  .pgrid { grid-template-columns: 1fr; }
}
/* ========== SmarTOP 智能客服 ========== */
.smartop-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: 'Inter', sans-serif; }
.smartop-panel {
  position: absolute; bottom: 72px; right: 0; width: 360px; height: 480px;
  background: white; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column; overflow: hidden; transition: all .3s;
}
.smartop-panel.hidden { display: none; }
.smartop-header {
  background: linear-gradient(135deg,#0a5e2f,#1a8a4a); color: white;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
}
.smartop-header-info { display: flex; align-items: center; gap: 12px; }
.smartop-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.smartop-name { font-size: 15px; font-weight: 700; }
.smartop-status { font-size: 12px; opacity: 0.85; }
.smartop-actions { display: flex; gap: 8px; }
.smartop-btn-icon {
  background: rgba(255,255,255,.2); border: none; color: white;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 12px;
}
.smartop-btn-icon:hover { background: rgba(255,255,255,.3); }
.smartop-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.smartop-msg { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.smartop-msg.user { background: #e8f5ec; color: #1a1a1a; align-self: flex-end; }
.smartop-msg.ai { background: #f0f0f0; color: #333; align-self: flex-start; }
.smartop-msg.loading { color: #999; font-style: italic; }
.smartop-input-row { padding: 12px 16px; border-top: 1px solid #eee; display: flex; gap: 8px; align-items: flex-end; }
.smartop-input {
  flex: 1; border: 1px solid #ddd; border-radius: 10px; padding: 10px 12px;
  font-size: 14px; resize: none; font-family: inherit; max-height: 80px; overflow-y: auto;
  outline: none; transition: border-color .2s;
}
.smartop-input:focus { border-color: #0a5e2f; }
.smartop-send {
  width: 40px; height: 40px; border: none; background: #0a5e2f; color: white;
  border-radius: 10px; cursor: pointer; font-size: 16px; transition: background .2s;
}
.smartop-send:hover { background: #1a8a4a; }
.smartop-btn {
  width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg,#0a5e2f,#1a8a4a);
  color: white; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(10,94,47,.4);
  font-size: 26px; display: flex; align-items: center; justify-content: center; transition: transform .2s,box-shadow .2s;
  position: relative;
}
.smartop-btn:hover { transform: scale(1.08); }
.online-dot {
  position: absolute; top: 4px; right: 4px; width: 12px; height: 12px;
  background: #22c55e; border-radius: 50%; border: 2px solid white; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
