/* =============================================
   无锡和黄科技 - 公共样式表
   暖色调企业官网框架
   ============================================= */

/* CSS Variables - 蓝色调配色方案（统一品牌风格） */
:root {
  /* 品牌主色 */
  --brand:      #1a7ac8;
  --brand-dark: #0f5a9e;
  --brand-light:#ebf4fd;
  
  /* 产品线配色（统一蓝色系） */
  --eco:        #1a7ac8;
  --eco-light:  #ebf4fd;
  --elder:      #1a7ac8;
  --elder-light:#ebf4fd;
  --ai:         #1a7ac8;
  --ai-light:   #ebf4fd;
  --ops:        #1a7ac8;
  --ops-light:  #ebf4fd;
  
  /* 通用变量 */
  --text:       #1e2d3d;
  --muted:      #64748b;
  --border:     #dde6f0;
  --bg:         #f6f9fc;
  --white:      #ffffff;
  --radius:     12px;
  --shadow:     0 2px 16px rgba(26,122,200,.10);
  --shadow-lg:  0 4px 24px rgba(26,122,200,.15);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* =============================================
   Header 导航栏
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}

.logo-text span {
  font-size: 11px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
}

nav a:hover, nav a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--brand);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* =============================================
   Page Banner 页面横幅 - 轮播样式
   ============================================= */
.banner-slider {
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5%;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,42,74,0.5) 0%, rgba(26,122,200,0.35) 60%, rgba(42,154,232,0.25) 100%);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content h1 {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 18px;
  color: rgba(255,255,255,.9);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
  border: 2px solid transparent;
}

.banner-dot:hover {
  background: rgba(255,255,255,.7);
}

.banner-dot.active {
  background: white;
  transform: scale(1.2);
}

/* 轮播箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all .3s;
}

.banner-arrow:hover {
  background: rgba(255,255,255,.4);
}

.banner-arrow.prev { left: 30px; }
.banner-arrow.next { right: 30px; }

/* 兼容旧版page-banner样式 */
.page-banner {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.page-banner.eco {
  background: linear-gradient(135deg, #0a4a35 0%, #0f7a55 60%, #1a9a6a 100%);
}

.page-banner.elder {
  background: linear-gradient(135deg, #4a2068 0%, #8b4fc8 60%, #a86fd4 100%);
}

.page-banner.ai {
  background: linear-gradient(135deg, #0a4a35 0%, #0f7a55 60%, #1a9a6a 100%);
}

.page-banner.ops {
  background: linear-gradient(135deg, #0a3a5a 0%, #1a7ac8 60%, #2a9ae8 100%);
}

.page-banner.about {
  background: linear-gradient(135deg, #0a2a4a 0%, #1a7ac8 60%, #2a9ae8 100%);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,.08) 0%, transparent 70%);
}

.banner-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* =============================================
   Section 通用区块
   ============================================= */
.section {
  padding: 80px 5%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-tag.eco { background: var(--eco-light); color: var(--eco); }
.section-tag.elder { background: var(--elder-light); color: var(--elder); }
.section-tag.ai { background: var(--ai-light); color: var(--ai); }
.section-tag.ops { background: var(--ops-light); color: var(--ops); }

.section-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 50px;
}

.section-bg {
  background: var(--bg);
}

/* =============================================
   Card 卡片组件
   ============================================= */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-icon.eco { background: var(--eco-light); }
.card-icon.elder { background: var(--elder-light); }
.card-icon.ai { background: var(--ai-light); }
.card-icon.ops { background: var(--ops-light); }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* =============================================
   Feature 特性展示
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 14px;
  color: var(--muted);
}

/* =============================================
   Case 案例展示
   ============================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all .3s;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.case-image {
  height: 180px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 20px;
}

.case-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 10px;
}

.case-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* =============================================
   Button 按钮
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand-light);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================
   CTA 行动召唤
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 80px 5%;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: white;
  color: var(--brand);
}

.cta-section .btn-primary:hover {
  background: var(--brand-light);
}

/* =============================================
   Footer 页脚
   ============================================= */
.footer {
  background: #1a1510;
  color: rgba(255,255,255,.85);
  padding: 60px 5% 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

.footer-bottom a {
  color: rgba(255,255,255,.65);
}

.footer-bottom a:hover {
  color: var(--brand);
}

/* =============================================
   Responsive 响应式
   ============================================= */
@media (max-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { display: none; }
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .section { padding: 60px 5%; }
}

/* =============================================
   Admin 后台管理样式
   ============================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #1a1510;
  color: white;
  padding: 24px 0;
  flex-shrink: 0;
}

.admin-sidebar h2 {
  padding: 0 20px 24px;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  transition: all .2s;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(255,255,255,.1);
  color: white;
}

.admin-main {
  flex: 1;
  padding: 24px;
  background: var(--bg);
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.admin-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.data-table th {
  background: var(--bg);
  font-weight: 600;
}

.data-table tr:hover td {
  background: var(--brand-light);
}

.data-table .actions {
  display: flex;
  gap: 8px;
}

.data-table .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Image Upload */
.image-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}

.image-upload:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.image-upload input {
  display: none;
}

.image-preview {
  max-width: 200px;
  max-height: 200px;
  margin-top: 16px;
}

/* Status Badge */
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status.success { background: #e6f4ef; color: #0f7a55; }
.status.warning { background: #fef3cd; color: #856404; }
.status.danger { background: #f8d7da; color: #721c24; }

/* =============================================
   Utility Classes
   ============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
