/* ===== CSS Variables ===== */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #e3f2fd;
  --accent: #ff6f00;
  --text-main: #263238;
  --text-secondary: #546e7a;
  --text-light: #ffffff;
  --bg-main: #ffffff;
  --bg-section: #f5f7fa;
  --bg-card: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-content {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  font-size: 28px;
  color: var(--accent);
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav a:hover,
.nav a.active { color: #fff; }
.nav a:hover::after,
.nav a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-link {
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}
.admin-link:hover {
  background: rgba(255,255,255,0.25);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 6px;
  transition: var(--transition);
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 移动端侧边抽屉 */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: #0d47a1;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}
.mobile-nav-drawer.active {
  transform: translateX(0);
}
.mobile-nav-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-nav-title {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.mobile-nav-links {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.mobile-nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition);
  display: block;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}
.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mobile-admin-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  min-height: 320px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #42a5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Cpath d='M30 5L55 30L30 55L5 30z'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 900px;
}
.hero-content h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== Main Content ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 30px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3.5px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

/* ===== Image Grid & Card ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.image-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #90caf9;
}
.image-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #f0f4f8;
  height: 220px;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-bottom: 1px solid var(--border);
}
.image-card:hover img {
  transform: scale(1.05);
}
.zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 71, 161, 0.85);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.image-card:hover .zoom-hint {
  opacity: 1;
  transform: scale(1);
}
.image-card .card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.image-card .card-caption {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.image-card .card-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 联系我们与在线询价板块 ===== */
.contact-section {
  padding: 64px 0;
  background: #ffffff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(145deg, #f8faff, #edf4fc);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #d0e2f5;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.06);
}
.contact-info-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-details h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-details p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.inquiry-form-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
}
.inquiry-form-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.inquiry-form-card p.inquiry-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.form-col {
  flex: 1;
}
.inquiry-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.inquiry-form label .req {
  color: #d32f2f;
  margin-left: 4px;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: #fafbfc;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}
.inquiry-form textarea {
  min-height: 100px;
  resize: vertical;
}
.btn-submit-inquiry {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit-inquiry:hover {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.35);
}

/* ===== Lightbox 大图预览画廊 ===== */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 18, 30, 0.9);
  backdrop-filter: blur(8px);
}
.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
}
.lightbox-image-wrap {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.lightbox-info {
  width: 100%;
  background: #1e293b;
  padding: 16px 24px;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.lightbox-text h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}
.lightbox-text p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.4;
}
.lightbox-counter {
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

/* ===== Admin Panel Inquiries Table ===== */
.inquiries-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.inquiries-table th,
.inquiries-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.inquiries-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.inquiries-table tr:hover {
  background: #f8fafc;
}
.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.badge-unread { background: #fee2e2; color: #dc2626; }
.badge-read { background: #e0f2fe; color: #0284c7; }

.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.status-dot.offline {
  background: #facc15;
}

/* ===== Admin Login ===== */
.login-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), #42a5f5);
}
.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 400px;
  max-width: 90vw;
  text-align: center;
}
.login-card h1 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 28px;
}
.login-card input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition);
}
.login-card input:focus {
  outline: none;
  border-color: var(--primary);
}
.login-card button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}
.login-card button[type="submit"]:hover {
  background: var(--primary-dark);
}
.login-error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary);
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

/* ===== Admin Panel ===== */
.admin-panel { min-height: 100vh; background: var(--bg-section); }

.admin-topbar {
  background: var(--primary-dark);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.admin-topbar .actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-topbar .actions a,
.admin-topbar .actions button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
}
.btn-view-site {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-view-site:hover { background: rgba(255,255,255,0.25); }
.btn-reset-defaults {
  background: #f59e0b;
  color: #fff;
}
.btn-reset-defaults:hover { background: #d97706; }
.btn-logout {
  background: #d32f2f;
  color: #fff;
}
.btn-logout:hover { background: #b71c1c; }

.admin-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.admin-tab {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
}
.admin-tab:hover { color: var(--primary); }
.admin-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

/* Tab Content */
.tab-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: none;
}
.tab-content.active { display: block; }

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

/* Image count control */
.image-count-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: 8px;
  margin-bottom: 24px;
}
.image-count-control label {
  margin: 0;
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 600;
}
.image-count-control input {
  width: 80px;
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
}
.image-count-control button {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.image-count-control button:hover { background: var(--primary-dark); }

/* Image upload areas */
.image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.image-slot {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}
.image-slot:hover { border-color: var(--primary); }
.image-slot img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--bg-section);
}
.image-slot .slot-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.image-slot .upload-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.image-slot .upload-btn:hover {
  background: var(--primary);
  color: #fff;
}
.image-slot .remove-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: #fff0f0;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.image-slot .remove-btn:hover {
  background: #d32f2f;
  color: #fff;
}
.image-slot input[type="file"] { display: none; }

/* ===== 图片裁剪弹窗 ===== */
.crop-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.crop-overlay.active { display: flex; }
.crop-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.crop-modal h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.crop-modal .crop-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.crop-image-container {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
}
.crop-image-container img {
  max-width: 100%;
  display: block;
}
.crop-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}
.crop-toolbar button {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.crop-btn-cancel {
  background: #f5f5f5;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}
.crop-btn-cancel:hover { background: #e0e0e0; }
.crop-btn-confirm {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.crop-btn-confirm:hover { background: var(--primary-dark); }
.crop-aspect-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.crop-aspect-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: #f5f5f5;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.crop-aspect-btn:hover { border-color: var(--primary); color: var(--primary); }
.crop-aspect-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Save bar */
.save-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 24px -28px -28px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.btn-save {
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-save:hover { background: var(--primary-dark); }
.btn-export {
  padding: 10px 28px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-export:hover { background: var(--primary-light); }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2e7d32;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10005;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Responsive Media Queries ===== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { min-height: 260px; padding: 30px 0; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .image-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 24px; }
  .admin-tabs { flex-direction: column; }
  .admin-tab { text-align: center; }
  .image-manager { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .inquiry-form-card { padding: 24px 20px; }
  .contact-info-card { padding: 24px 20px; }
  .lightbox-arrow { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-close { top: 10px; right: 10px; }
}


/* ===== 2026 精英赛硬核科技视觉增强系统 ===== */

/* Hero 结构 */
.hero {
  min-height: 520px;
  background: linear-gradient(135deg, #07152b 0%, #0c274c 50%, #0a1f3d 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 30px;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(21, 101, 192, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-pre-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #38bdf8;
  font-weight: 600;
  width: fit-content;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.hero-main-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.gradient-text {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub-title {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  color: #fff;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}
.btn-outline:hover {
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
  color: #38bdf8;
}

/* Hero 右侧展示卡片 */
.hero-right {
  display: flex;
  justify-content: center;
}
.hero-card-showcase {
  position: relative;
  background: rgba(13, 39, 76, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.35s ease;
  width: 100%;
  max-width: 420px;
}
.hero-card-showcase:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 16px 50px rgba(2, 132, 199, 0.35);
}
.hero-card-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pump-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}
.hero-floating-tag {
  position: absolute;
  background: rgba(10, 25, 47, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #e0f2fe;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.hero-floating-tag.tag-top {
  top: 14px; right: -12px;
}
.hero-floating-tag.tag-bottom {
  bottom: 14px; left: -12px;
}

/* 五大关键指标数据看板 */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: rgba(7, 21, 43, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.stat-unit {
  font-size: 16px;
  font-weight: 600;
  color: #93c5fd;
  margin-left: 2px;
}
.stat-label {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 4px;
}
.stat-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 板块顶部小标签 */
.section-tag {
  display: inline-block;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* 卡片角标 */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.3px;
}
.badge-hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}
.badge-patent {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
}
.badge-safe {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}
.badge-advantage {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
}
.badge-pain {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #fff;
}
.badge-deal {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}

/* 参数对标表格样式 */
.compare-table-container {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}
.compare-table-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.compare-table-header h3 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 4px;
}
.compare-table-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.compare-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
  font-size: 14px;
}
.compare-table tbody tr:hover {
  background: #f8fafc;
}
.compare-table th.highlight-col,
.compare-table td.highlight-col {
  background: #eff6ff;
  color: #1e3a8a;
}
.table-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* 按钮提交样式 */
.btn-submit-inquiry {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  margin-top: 10px;
  transition: all 0.25s ease;
}
.btn-submit-inquiry:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}
.contact-logo-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px;
}
.license-preview-box {
  margin-top: 20px;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.license-preview-box:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.license-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.license-text-block {
  flex: 1;
}
.license-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.license-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.license-zoom-icon {
  font-size: 16px;
  color: #0284c7;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3)::after { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 20px; }
  .hero-main-title { font-size: 26px; }
  .hero-stats-strip { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-val { font-size: 26px; }
  .hero-floating-tag.tag-top { top: 8px; right: 8px; }
  .hero-floating-tag.tag-bottom { bottom: 8px; left: 8px; }
}

/* ===== 客户实绩与产学研体系展示 ===== */
.client-team-showcase {
  margin-top: 48px;
}
.showcase-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.showcase-title {
  text-align: center;
  margin-bottom: 24px;
}
.showcase-title h3 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 6px;
  font-weight: 700;
}
.showcase-title p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}
.client-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.client-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.client-stat-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}
.client-logo-wrap {
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.client-logo-wrap img {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
}
.client-stat-info h4 {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 6px;
  font-weight: 700;
}
.client-badge {
  display: inline-block;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.client-stat-info p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* 产学研三柱 */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pillar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}
.pillar-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.pillar-card h4 {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 4px;
  font-weight: 700;
}
.pillar-card h5 {
  font-size: 13px;
  color: #0284c7;
  margin-bottom: 8px;
  font-weight: 600;
}
.pillar-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
