/* ===== 长沙港强科技官网 全站样式 ===== */
:root {
  --primary: #0d3b66;
  --primary-dark: #082b4b;
  --accent: #2f80ed;
  --text: #22303f;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e3e9f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  padding-top: 64px;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); font-size: 19px; }
.logo-badge {
  width: 36px; height: 36px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
}
.logo small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 2px; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--accent); }
.nav-auth { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-auth .whoami { color: var(--muted); }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 8px;
  font-size: 15px; cursor: pointer; border: 1px solid transparent;
  background: var(--primary); color: #fff; transition: all 0.2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef4ff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #14528c 100%);
  color: #fff; text-align: center; padding: 110px 24px 120px;
}
.hero h1 { font-size: 42px; letter-spacing: 2px; margin-bottom: 18px; }
.hero p { font-size: 18px; opacity: 0.88; max-width: 640px; margin: 0 auto 36px; }
.hero .btn-light { font-size: 16px; padding: 13px 38px; }

/* ===== 统计条 ===== */
.stats-band { background: var(--primary-dark); color: #fff; padding: 30px 0; }
.stats-band .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat-value { font-size: 30px; font-weight: 700; }
.stat-label { font-size: 13px; opacity: 0.75; }

/* ===== 区块 ===== */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 30px; color: var(--primary); letter-spacing: 1px; }
.section-head .sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.section-head .bar { width: 46px; height: 4px; background: var(--accent); border-radius: 2px; margin: 16px auto 0; }

/* ===== 卡片 ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all 0.25s; position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card h3 { color: var(--primary); font-size: 18px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-tag {
  position: absolute; top: 18px; right: 18px; font-size: 12px;
  background: #eaf2fd; color: var(--accent); padding: 3px 10px; border-radius: 20px;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, #eaf2fd, #f3f7fc);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card ul { list-style: none; margin-top: 14px; }
.card ul li { padding-left: 20px; position: relative; color: var(--muted); font-size: 14px; margin: 6px 0; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== 关于我们 ===== */
.about-text { font-size: 16px; color: var(--text); max-width: 820px; margin: 0 auto; text-align: justify; }
.value-card { text-align: center; }
.value-card h3 { margin-top: 10px; }

.timeline { max-width: 720px; margin: 0 auto; border-left: 2px solid var(--border); padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid #dcebfc;
}
.timeline-year { font-weight: 700; color: var(--accent); margin-right: 10px; }

/* ===== 联系我们 ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.info-list .k { color: var(--muted); flex: none; width: 76px; }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field label span { color: #e5484d; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none; transition: border 0.2s; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: #e5484d; }

/* ===== 登录页 ===== */
.auth-page { background: var(--bg-soft); min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 48px 16px; }
.auth-card {
  width: 100%; max-width: 420px; margin: 0 auto; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 38px 34px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; color: var(--primary); text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.auth-tabs button {
  flex: 1; background: none; border: none; padding: 10px 0; font-size: 15px;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit;
}
.auth-tabs button.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--accent); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { flex: none; padding: 10px 14px; font-size: 13px; white-space: nowrap; }
.auth-tip { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }

/* ===== 页脚 ===== */
footer { background: var(--primary-dark); color: rgba(255, 255, 255, 0.8); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.footer-main h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-main a { color: rgba(255, 255, 255, 0.75); display: block; padding: 4px 0; font-size: 14px; }
.footer-main a:hover { color: #fff; }
.footer-main p { font-size: 14px; margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 13px; text-align: center; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ===== 内页横幅 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 64px 24px;
}
.page-hero h1 { font-size: 32px; letter-spacing: 2px; }
.page-hero p { opacity: 0.8; margin-top: 10px; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .hero h1 { font-size: 30px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.keep) { display: none; }
  .hero { padding: 70px 20px 80px; }
  .section { padding: 56px 0; }
}
