/* ========================================
   中而科技 - 企业官网样式表
   主色调：红色系 #C41230 / #E8192C
   辅助色：深灰 #1A1A2E / 浅灰 #F5F5F7
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Variables ---------- */
:root {
  --red: #C41230;
  --red-light: #E8192C;
  --red-dark: #9E0E26;
  --red-bg: #FFF1F2;
  --dark: #1A1A2E;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6C757D;
  --gray-300: #DEE2E6;
  --gray-100: #F5F5F7;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --max-width: 1200px;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }
.section-red { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: var(--white); }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--gray-900); }
.section-title.light { color: var(--white); }
.section-subtitle { font-size: 18px; text-align: center; color: var(--gray-500); margin-bottom: 48px; }
.section-subtitle.light { color: rgba(255,255,255,.8); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; outline: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,18,48,.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-outline-dark { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline-dark:hover { background: var(--red); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.header.scrolled { border-bottom-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--red); }
.logo-icon { width: 36px; height: 36px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 15px; color: var(--gray-700); position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--red); border-radius: 2px; transition: width var(--transition); }
.nav a:hover, .nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { margin-left: 8px; padding: 8px 24px; font-size: 14px; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero / Banner ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--dark) 100%);
  background-image: linear-gradient(135deg, rgba(196,18,48,.88) 0%, rgba(158,14,38,.92) 60%, rgba(26,26,46,.95) 100%), url('../images/hero/hero-bg.jpg');
  background-size: cover; background-position: center;
  color: var(--white); position: relative; overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  padding: 6px 16px; border-radius: 50px; font-size: 14px; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -.5px; }
.hero h1 span { color: #FFD700; }
.hero p { font-size: 20px; line-height: 1.7; opacity: .9; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 380px; z-index: 1;
}
.hero-mockup {
  width: 100%; height: 100%;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hero-mockup img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Stats ---------- */
.stats { background: var(--white); padding: 48px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 24px; }
.stat-number { font-size: 42px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat-number span { font-size: 20px; font-weight: 400; }
.stat-label { font-size: 15px; color: var(--gray-500); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid var(--gray-300); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--red); transform: scaleX(0); transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--red-bg); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.feature-card p { font-size: 15px; color: var(--gray-500); line-height: 1.7; }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: var(--white); border-radius: var(--radius); padding: 0;
  border: 1px solid var(--gray-300); transition: all var(--transition);
  display: flex; flex-direction: column; overflow: hidden;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); }
.product-card-img {
  height: 180px; overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); }
.product-tag {
  display: inline-block; background: var(--red-bg); color: var(--red);
  padding: 4px 12px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 16px; width: fit-content;
}
.product-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.product-card p { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; }
.product-features span {
  background: var(--gray-100); padding: 4px 12px; border-radius: 4px;
  font-size: 13px; color: var(--gray-700);
}

/* ---------- Industry Solutions ---------- */
.solutions-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.solutions-tabs .tab {
  padding: 8px 24px; border-radius: 50px; cursor: pointer;
  font-size: 15px; border: 1px solid var(--gray-300); background: var(--white);
  color: var(--gray-700); transition: all var(--transition);
}
.solutions-tabs .tab:hover, .solutions-tabs .tab.active {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.solution-content { display: none; }
.solution-content.active { display: block; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.solution-item {
  background: var(--white); border-radius: var(--radius-sm); padding: 28px 20px;
  text-align: center; border: 1px solid var(--gray-300); transition: var(--transition);
}
.solution-item:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.solution-item .icon { font-size: 36px; margin-bottom: 12px; }
.solution-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }
.solution-item p { font-size: 13px; color: var(--gray-500); }

/* ---------- CTA ---------- */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: .85; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- About Page ---------- */
.about-hero {
  padding: 160px 0 80px; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  background-image: linear-gradient(135deg, rgba(196,18,48,.92) 0%, rgba(158,14,38,.95) 100%), url('../images/hero/hero-bg.jpg');
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
}
.about-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; }
.about-hero p { font-size: 18px; opacity: .85; max-width: 560px; margin: 0 auto; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: var(--gray-900); }
.about-text p { font-size: 16px; color: var(--gray-500); line-height: 1.8; margin-bottom: 16px; }
.about-image {
  border-radius: var(--radius); height: 400px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gray-300); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -38px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--red); border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--red-bg);
}
.timeline-item .year { font-size: 14px; color: var(--red); font-weight: 700; margin-bottom: 4px; }
.timeline-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--gray-900); }
.timeline-item p { font-size: 14px; color: var(--gray-500); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 24px;
  text-align: center; border: 1px solid var(--gray-300); transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); }
.value-card .icon { font-size: 40px; margin-bottom: 16px; }
.value-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.value-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ---------- Product Page ---------- */
.product-hero {
  padding: 160px 0 80px; background: linear-gradient(135deg, var(--red) 0%, var(--dark) 100%);
  background-image: linear-gradient(135deg, rgba(196,18,48,.9) 0%, rgba(26,26,46,.95) 100%), url('../images/hero/hero-bg.jpg');
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
}
.product-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; }
.product-hero p { font-size: 18px; opacity: .85; max-width: 560px; margin: 0 auto; }
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 60px 0;
}
.product-detail:nth-child(even) { direction: rtl; }
.product-detail:nth-child(even) > * { direction: ltr; }
.product-detail-visual {
  border-radius: var(--radius); height: 340px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-detail-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-detail-info h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; color: var(--gray-900); }
.product-detail-info p { font-size: 16px; color: var(--gray-500); line-height: 1.8; margin-bottom: 20px; }
.product-detail-info ul { margin-bottom: 24px; }
.product-detail-info li {
  padding: 6px 0; font-size: 15px; color: var(--gray-700);
  display: flex; align-items: center; gap: 8px;
}
.product-detail-info li::before { content: '✓'; color: var(--red); font-weight: 700; font-size: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pricing-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 28px;
  border: 2px solid var(--gray-300); text-align: center; transition: var(--transition);
  position: relative;
}
.pricing-card.featured { border-color: var(--red); transform: scale(1.04); }
.pricing-card.featured::before {
  content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 4px 20px; border-radius: 50px; font-size: 13px; font-weight: 600;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.pricing-card .price { font-size: 40px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--gray-500); }
.pricing-card .price-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.pricing-card ul { text-align: left; margin-bottom: 28px; }
.pricing-card li { padding: 8px 0; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 8px; }
.pricing-card li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ---------- Contact Page ---------- */
.contact-hero {
  padding: 160px 0 80px; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  background-image: linear-gradient(135deg, rgba(196,18,48,.92) 0%, rgba(158,14,38,.95) 100%), url('../images/contact/contact-bg.jpg');
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
}
.contact-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; }
.contact-hero p { font-size: 18px; opacity: .85; max-width: 560px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-size: 28px; font-weight: 700; margin-bottom: 24px; color: var(--gray-900); }
.contact-info p { font-size: 16px; color: var(--gray-500); line-height: 1.8; margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--red-bg); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.contact-item h4 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--gray-500); }
.contact-form {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--gray-300); box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--gray-900); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--gray-900); transition: border-color var(--transition);
  font-family: inherit; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-container {
  border-radius: var(--radius); height: 320px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer h4 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer ul a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
  flex-wrap: wrap; gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail:nth-child(even) { direction: ltr; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 24px; box-shadow: var(--shadow-md); gap: 16px;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .solution-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Page-specific breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0; font-size: 14px; color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 8px; }
