/* ============================================
   六鸿机电工程（深圳）有限公司 - 全局样式
   主题: 工业蓝 + 深灰（稳重专业风）
   ============================================ */

/* ---------- CSS 变量 & 重置 ---------- */
:root {
  --primary:       #1a3a5c;
  --primary-dark:  #0f2740;
  --primary-light: #2a5a8c;
  --accent:        #d4a843;
  --accent-light:  #e8c56a;
  --gray-100:      #f8f9fa;
  --gray-200:      #e9ecef;
  --gray-300:      #dee2e6;
  --gray-400:      #ced4da;
  --gray-500:      #adb5bd;
  --gray-600:      #6c757d;
  --gray-700:      #495057;
  --gray-800:      #2c3e50;
  --gray-900:      #1a1a2e;
  --white:         #ffffff;
  --font:          'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.12);
  --radius:        6px;
  --radius-lg:     12px;
  --transition:    0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

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

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  position: relative;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

.section-title p {
  color: var(--gray-600);
  font-size: 18px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- 顶栏 ---------- */
.top-bar {
  background: var(--primary-dark);
  color: var(--gray-400);
  font-size: 13px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--gray-400);
}

.top-bar a:hover { color: var(--accent); }

.top-bar-info span {
  margin-right: 24px;
}

.top-bar-info i {
  margin-right: 6px;
  color: var(--accent);
}

/* ---------- 导航 ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 20px;
}

.logo:hover { color: var(--primary-dark); }

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(26,58,92,0.06);
}

.nav .nav-project {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 8px 18px;
}

.nav .nav-project:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4d7a 100%);
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><g fill="rgba(255,255,255,0.03)"><circle cx="200" cy="200" r="300"/><circle cx="600" cy="500" r="250"/><circle cx="100" cy="600" r="200"/></g></svg>') center;
  background-size: cover;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content { flex: 1; }

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 19px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 380px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-image .icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-image .icon-item {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: var(--transition);
}

.hero-image .icon-item:hover {
  background: rgba(255,255,255,0.12);
}

.hero-image .icon-item i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-image .icon-item span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* ---------- 服务卡片 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  text-align: center;
  padding: 40px 28px;
}

.service-card .icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-card .icon-wrap i {
  font-size: 30px;
  color: var(--white);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 关于首页摘要 ---------- */
.about-preview {
  background: var(--gray-100);
}

.about-preview-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-preview-text { flex: 1; }

.about-preview-text h3 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.about-preview-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 17px;
}

.about-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 0 0 380px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-item .number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .number::after {
  content: '+';
  color: var(--accent);
}

.stat-item .label {
  color: var(--gray-600);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- 案例 ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  overflow: hidden;
  padding: 0;
}

.case-card .case-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 40px;
  opacity: 0.85;
}

.case-card .case-body {
  padding: 24px;
}

.case-card .case-body h4 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.case-card .case-body p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.7;
}

.case-card .case-tag {
  display: inline-block;
  background: rgba(212,168,67,0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

.case-tag-mainland {
  background: rgba(26,58,92,0.12) !important;
  color: var(--primary) !important;
}

.case-tag-taiwan {
  background: rgba(212,168,67,0.2) !important;
  color: #b8942e !important;
}

.case-client {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
  font-weight: 500;
}

/* 案例图片自动填满 */
.case-img-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 新闻图片卡片 ---------- */
.news-card .news-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 36px;
  opacity: 0.85;
  overflow: hidden;
  position: relative;
}
.news-img-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-detail-img {
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}
.news-detail-img img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* ---------- 新闻 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  padding: 0;
  overflow: hidden;
}

.news-card .news-date {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
}

.news-card .news-body {
  padding: 20px 24px 24px;
}

.news-card .news-body h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-body p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-body .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  margin-top: 10px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}
.footer p, .footer a {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}
.footer a:hover { color: var(--accent); }

/* 新版footer布局（统一用于所有页面） */
.footer-main { display:flex; justify-content:space-between; align-items:flex-start; gap:40px; }
.footer-left { display:flex; flex-direction:column; gap:24px; }
.footer-left-top { display:flex; align-items:center; }
.footer-left-qr { padding-left:60px; }
.footer-right { display:flex; flex-direction:column; align-items:flex-end; gap:20px; text-align:right; }
.footer-right-info { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; font-size:13px; color:rgba(255,255,255,0.55); }
.footer-right-info i { color:var(--accent); margin-right:3px; width:14px; }
.footer-divider { color:rgba(255,255,255,0.1); font-size:11px; }
.footer-right-bottom { display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:flex-end; }
.footer-project-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 24px; background:rgba(212,168,67,0.15); color:var(--accent); border-radius:6px; font-size:14px; font-weight:600; transition:all .3s; }
.footer-project-btn:hover { background:var(--accent); color:var(--primary-dark); }

/* ---------- 内部页面 Banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
}

/* ---------- 关于页面 ---------- */
.about-intro {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-intro-text { flex: 1; }

.about-intro-text h3 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.about-intro-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 17px;
}

.about-intro-sidebar {
  flex: 0 0 320px;
}

.about-intro-sidebar .info-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
}

.about-intro-sidebar .info-card h4 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 17px;
}

.about-intro-sidebar .info-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-700);
}

.about-intro-sidebar .info-card li:last-child { border-bottom: none; }

.about-intro-sidebar .info-card li i {
  color: var(--accent);
  width: 22px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gray-300);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--gray-100);
}

.timeline-item .year {
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

.timeline-item h5 {
  font-size: 18px;
  color: var(--primary-dark);
  margin: 4px 0 6px;
}

.timeline-item p {
  color: var(--gray-600);
  font-size: 16px;
}

/* ---------- 服务详情页 ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-detail-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.service-detail-card .s-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.service-detail-card h4 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.service-detail-card p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.8;
}

/* 服务图片（类似案例图片） */
.service-detail-card .service-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 40px;
  opacity: 0.85;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  position: relative;
  margin: -1px -1px 0 -1px;
}
.service-img-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-detail-body {
  padding: 28px;
}
.service-detail-body h4 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.service-detail-body p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 项目系统登录页 ---------- */
.project-login-wrapper {
  padding: 40px 0;
}

.project-login-wrapper .login-info {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  font-size: 15px;
  text-align: left;
}

.project-login-wrapper .login-info i {
  color: var(--accent);
  margin-right: 4px;
  font-size: 20px;
}

/* 登录表单布局 */
.login-form-container {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  justify-content: center;
}

/* 登录框 */
.login-box {
  flex: 0 0 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 36px 28px 28px;
}

.login-header .login-logo-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.login-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-header p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.login-form {
  padding: 32px;
}

.login-form .form-group {
  margin-bottom: 22px;
}

.login-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.login-form label i {
  color: var(--primary);
  width: 16px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font);
  transition: all var(--transition);
  background: var(--gray-100);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
  background: var(--white);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.forgot-password {
  color: var(--primary-light);
  font-size: 14px;
}

.forgot-password:hover {
  color: var(--primary);
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 14px 32px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-footer {
  text-align: center;
  padding: 0 32px 24px;
  font-size: 13px;
  color: var(--gray-500);
}

.login-footer a {
  color: var(--primary-light);
}

.login-footer a:hover {
  text-decoration: underline;
}

/* 右侧说明 */
.login-side-info {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
}

.side-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.side-card i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 14px;
}

.side-card h4 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.side-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.project-login-frame {
  width: 100%;
  height: 700px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.project-login-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- 登录方式切换 ---------- */
.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.login-tab {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.login-tab i {
  font-size: 16px;
}

.login-tab:hover {
  color: var(--primary);
  background: rgba(26,58,92,0.04);
}

.login-tab.active {
  color: var(--primary);
  background: var(--white);
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
}

/* ---------- 图片验证码 ---------- */
.captcha-group {
  margin-bottom: 16px;
}

.captcha-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.captcha-input-row input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font);
  transition: all var(--transition);
  background: var(--gray-100);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.captcha-input-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
  background: var(--white);
}

.captcha-refresh {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.captcha-refresh:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.captcha-refresh:active i {
  transform: rotate(180deg);
}

.captcha-refresh i {
  transition: transform 0.4s ease;
}

.captcha-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: inline-block;
}

.captcha-image-wrap canvas {
  display: block;
  width: 280px;
  height: 70px;
}

/* ---------- 微信扫码登录 ---------- */
.wechat-qr-wrap {
  text-align: center;
  padding: 24px 20px;
}

.wechat-qr-frame {
  display: inline-block;
  padding: 12px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.wechat-qr-frame canvas {
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 4px;
}

.wechat-qr-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 12px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
}

.wechat-qr-tips i {
  font-size: 20px;
  color: #07c160;
}

.wechat-qr-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gray-100);
  border-radius: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--gray-600);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.wechat-qr-status i {
  color: #07c160;
  font-size: 14px;
}

.wechat-status-scanned {
  background: rgba(7,193,96,0.1) !important;
  border: 1px solid rgba(7,193,96,0.3);
}

.wechat-status-confirmed {
  background: rgba(7,193,96,0.15) !important;
  border: 1px solid rgba(7,193,96,0.4);
}

.wechat-frame-scanned {
  border-color: #07c160 !important;
  box-shadow: 0 0 0 3px rgba(7,193,96,0.15) !important;
}

.wechat-frame-confirmed {
  border-color: #07c160 !important;
  box-shadow: 0 0 0 3px rgba(7,193,96,0.25) !important;
  background: rgba(7,193,96,0.03);
}

/* 扫码步骤指引 */
.wechat-scan-steps {
  margin: 16px auto 14px;
  max-width: 280px;
  text-align: left;
}

.scan-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--gray-400);
  transition: all 0.4s ease;
}

.scan-step.active {
  color: var(--primary);
  font-weight: 500;
}

.scan-step.done {
  color: #07c160;
}

.scan-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--gray-200);
  color: var(--gray-500);
  transition: all 0.4s ease;
}

.scan-step.active .step-num {
  background: var(--primary);
  color: var(--white);
}

.scan-step.done .step-num {
  background: #07c160;
  color: var(--white);
}

.scan-step.done .step-num::after {
  display: none;
}

.wechat-refresh-btn {
  padding: 8px 24px !important;
  font-size: 14px !important;
  border-color: var(--gray-300) !important;
  color: var(--gray-600) !important;
}

.wechat-refresh-btn:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--white) !important;
}

.wechat-notice {
  padding: 14px 24px;
  background: rgba(7,193,96,0.06);
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.wechat-notice i {
  color: #07c160;
  font-size: 15px;
}

/* 微信扫码登录容器 */
#wechatLoginContainer {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wechatLoginContainer .wx-config-hint {
  text-align: center;
  padding: 40px 20px;
}

#wechatLoginContainer iframe {
  max-width: 280px !important;
}

/* ---------- 联系页面 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-method .cm-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,58,92,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-method h5 {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.contact-method p {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-dark);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

/* ---------- 地图占位 ---------- */
.map-section {
  background: var(--gray-100);
  padding: 0;
}

.map-placeholder {
  height: 400px;
  background: var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.map-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--primary);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- 企业文化（关于页面） ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.culture-card {
  text-align: center;
  padding: 40px 28px;
}

.culture-card .culture-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.culture-card .culture-icon i {
  font-size: 30px;
  color: var(--primary-dark);
}

.culture-card h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.culture-card p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image { flex: 0 0 auto; width: 100%; max-width: 400px; }
  .services-grid,
  .cases-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: repeat(3, 1fr); }
  .login-form-container { flex-direction: column; align-items: center; }
  .login-side-info { flex-direction: row; flex: none; width: 100%; max-width: 600px; }
}

@media (max-width: 768px) {
  .top-bar-info span { margin-right: 12px; display:block; }
  .top-bar-info { line-height:1.8; }
  .nav { display: none; }
  .hamburger { display: flex; }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav.active a { padding: 12px 16px; width: 100%; }

  .hero { padding: 80px 0 60px; }
  .hero-content h1 { font-size: 34px; }

  .section-title h2 { font-size: 30px; }
  .section { padding: 50px 0; }

  .services-grid,
  .cases-grid,
  .news-grid { grid-template-columns: 1fr; }

  .about-preview-content { flex-direction: column; }
  .about-preview-stats { flex: none; width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .page-banner h1 { font-size: 32px; }

  .service-detail-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }

  .project-login-frame { height: 480px; }
  .login-box { flex: none; width: 100%; max-width: 420px; }
  .login-side-info { flex-direction: column; max-width: 420px; }
  .login-header { padding: 28px 20px 22px; }
  .login-form { padding: 24px; }

  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 28px; }
  .hero { padding: 60px 0 40px; }
  .stat-item .number { font-size: 32px; }
  .about-preview-stats { grid-template-columns: 1fr; }
  .btn { padding: 10px 24px; font-size: 14px; }
  .project-login-frame { height: 360px; }
}

/* ===== 移动端：左右布局 Hero ===== */
@media (max-width: 768px) {
  .hero-split { flex-direction:column; min-height:auto; }
  .hero-split-left { width:100%; padding:50px 0; display:flex; justify-content:center; text-align:center; }
  .hero-split-left-inner { width:100%; max-width:1280px; padding:0 12px; margin:0 auto; }
  .hero-split-left-inner h1 { font-size:30px; }
  .hero-split-left-inner p { font-size:14px; }
  .hero-split-left-inner .btn-outline { margin-left:0; margin-top:8px; display:inline-block; }
  .hero-split-right { min-height:320px; width:100%; }
}

/* ===== 移动端：统一页脚 ===== */
@media (max-width: 768px) {
  .footer-main { flex-direction:column; gap:24px; }
  .footer-left { width:100%; }
  .footer-left-qr { padding-left:0; }
  .footer-right { width:100%; align-items:flex-start; text-align:left; }
  .footer-right-info { justify-content:flex-start; }
  .footer-right-bottom { justify-content:flex-start; }
}
@media (max-width: 480px) {
  .footer-right-info { flex-direction:column; align-items:flex-start; gap:6px; }
  .footer-divider { display:none; }
}
