/* ========================================
   斯朗乐企业官网 - 前台样式
   ======================================== */

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #f8f9fa; line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: #2a8fca; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar ===== */
.top-bar {
  background: #1a3a5c; color: #b0c4d8; font-size: 13px; padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #b0c4d8; }
.top-bar a:hover { color: #fff; }
.lang-switch {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  background: rgba(255,255,255,0.15); border-radius: 3px; font-weight: 600;
  color: #fff !important; font-size: 12px;
}
.lang-switch:hover { background: rgba(255,255,255,0.3); }

/* ===== Header ===== */
.header { background: #fff; padding: 20px 0; border-bottom: 3px solid #2a8fca; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo a { display: flex; align-items: baseline; gap: 6px; }
.logo-text { font-size: 28px; font-weight: 700; color: #1a5f8f; }
.logo-sub { font-size: 14px; color: #888; letter-spacing: 2px; }
.header-contact { display: flex; align-items: center; gap: 8px; }
.contact-label { font-size: 14px; color: #888; }
.contact-phone { font-size: 26px; font-weight: 700; color: #e74c3c; text-decoration: none; transition: color .2s; }
.contact-phone:hover { color: #c0392b; }
@media (max-width: 768px) {
  .header-contact .contact-phone { font-size: 20px; }
}

/* ===== Navigation ===== */
.nav { background: #2a8fca; }
.nav-list { display: flex; }
.nav-list li { flex: 1; text-align: center; position: relative; }
.nav-list li a {
  display: block; color: #fff; padding: 14px 20px; font-size: 16px; font-weight: 500;
  transition: background .2s;
}
.nav-list li:hover > a { background: rgba(255,255,255,.15); }
.nav-list li.active > a { background: #1a5f8f; }
.nav-list li::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
  background: #fff; transition: all .3s; transform: translateX(-50%);
}
.nav-list li:hover::after { width: 80%; }

/* ===== Banner ===== */
.banner { position: relative; height: 450px; overflow: hidden; background: #1a3a5c; }
.banner-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  display: flex; align-items: center; opacity: 0; transition: opacity .8s;
}
.banner-slide.active { opacity: 1; }
.banner-slide::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.3);
}
.banner-content {
  position: relative; z-index: 2; color: #fff; max-width: 600px; padding: 0 40px;
}
.banner-content h2 { font-size: 38px; margin-bottom: 16px; text-shadow: 2px 2px 4px rgba(0,0,0,.5); }
.banner-content p { font-size: 18px; margin-bottom: 24px; opacity: .9; }
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.banner-dot {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; transition: all .3s;
}
.banner-dot.active { background: #fff; width: 36px; border-radius: 6px; }

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-size: 28px; color: #1a3a5c; font-weight: 700; position: relative;
  display: inline-block; padding-bottom: 12px;
}
.section-title span {
  display: block; font-size: 14px; color: #aaa; letter-spacing: 3px;
  font-weight: 400; text-transform: uppercase; margin-top: 4px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: #2a8fca;
}
.section-more { text-align: center; margin-top: 36px; }
.section-tabs { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.section-tabs .tab { padding: 6px 16px; border-radius: 20px; background: #f0f0f0; font-size: 14px; color: #666; }
.section-tabs .tab:hover { background: #2a8fca; color: #fff; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block; padding: 10px 28px; background: #2a8fca; color: #fff;
  border-radius: 4px; font-size: 14px; border: none; cursor: pointer; transition: all .2s;
}
.btn-primary:hover { background: #1a5f8f; color: #fff; }
.btn-outline {
  display: inline-block; padding: 10px 28px; border: 2px solid #2a8fca; color: #2a8fca;
  border-radius: 4px; font-size: 14px; transition: all .2s;
}
.btn-outline:hover { background: #2a8fca; color: #fff; }

/* ===== About Section ===== */
.about-section { background: #fff; }
.about-content { display: flex; gap: 40px; align-items: center; }
.about-text { flex: 1; }
.about-text p { font-size: 15px; color: #555; margin-bottom: 20px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 400px; }
.stat-item { text-align: center; padding: 24px; background: #f8f9fa; border-radius: 8px; }
.stat-num { font-size: 36px; font-weight: 700; color: #2a8fca; }
.stat-num span { font-size: 16px; }
.stat-label { font-size: 14px; color: #888; margin-top: 4px; }

/* ===== Product Grid ===== */
.product-section { background: #f8f9fa; }
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.product-img { height: 200px; overflow: hidden; background: #f0f0f0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.08); }
.product-info { padding: 16px; }
.product-cat { display: inline-block; font-size: 12px; color: #2a8fca; background: rgba(42,143,202,.1); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.product-info h3 { font-size: 16px; color: #333; margin-bottom: 6px; }
.product-info p { font-size: 13px; color: #888; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== News Section ===== */
.news-section { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.news-img { height: 180px; overflow: hidden; background: #f0f0f0; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-img img { transform: scale(1.08); }
.news-info { padding: 16px; }
.news-date { font-size: 13px; color: #999; }
.news-info h3 { font-size: 16px; margin: 8px 0; color: #333; }
.news-info p { font-size: 13px; color: #888; line-height: 1.5; }

/* ===== Case Section ===== */
.case-section { background: #f8f9fa; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.case-img { height: 160px; overflow: hidden; background: #f0f0f0; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-info { padding: 14px; }
.case-info h3 { font-size: 15px; margin-bottom: 4px; color: #333; }
.case-info p { font-size: 13px; color: #888; }

/* ===== Page Banner ===== */
.page-banner { padding: 60px 0; text-align: center; color: #fff; }
.page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { font-size: 14px; letter-spacing: 3px; opacity: .8; }

/* ===== Breadcrumb ===== */
.breadcrumb { background: #f0f0f0; padding: 12px 0; font-size: 14px; color: #888; }
.breadcrumb a { color: #2a8fca; }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.filter-bar a { padding: 8px 20px; border-radius: 20px; background: #f0f0f0; font-size: 14px; color: #666; transition: all .2s; }
.filter-bar a:hover, .filter-bar a.active { background: #2a8fca; color: #fff; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #999; font-size: 16px; }

/* ===== Product Detail ===== */
.product-detail-section { background: #fff; }
.product-detail-top { display: flex; gap: 40px; margin-bottom: 40px; }
.product-detail-img { width: 450px; height: 450px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #f8f9fa; }
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-info { flex: 1; }
.product-detail-info h1 { font-size: 28px; color: #1a3a5c; margin-bottom: 8px; }
.product-subtitle { font-size: 16px; color: #888; margin-bottom: 20px; }
.product-desc { padding: 16px; background: #f8f9fa; border-radius: 8px; margin-bottom: 20px; }
.product-desc p { color: #555; line-height: 1.8; }
.product-meta { margin-bottom: 24px; }
.meta-item { margin-bottom: 8px; font-size: 14px; }
.meta-label { color: #888; }
.product-actions { display: flex; gap: 12px; }
.product-detail-content { margin-top: 40px; }
.content-tabs { border-bottom: 2px solid #2a8fca; margin-bottom: 24px; }
.content-tabs .tab { display: inline-block; padding: 12px 24px; background: #2a8fca; color: #fff; font-size: 15px; }
.content-body { padding: 20px 0; line-height: 1.8; }
.content-body h2 { font-size: 20px; color: #1a3a5c; margin: 20px 0 12px; }
.content-body h3 { font-size: 17px; color: #333; margin: 16px 0 8px; }
.content-body ul { padding-left: 20px; margin: 10px 0; }
.content-body li { margin-bottom: 6px; }
.content-body p { margin-bottom: 12px; }
.related-products { margin-top: 50px; }

/* ===== News List ===== */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; }
.news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.news-list-inner { display: flex; }
.news-list-img { width: 240px; height: 160px; flex-shrink: 0; overflow: hidden; background: #f0f0f0; }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-info { padding: 20px; flex: 1; }
.news-cat-tag { display: inline-block; font-size: 12px; color: #2a8fca; background: rgba(42,143,202,.1); padding: 2px 8px; border-radius: 4px; }
.news-list-info h3 { font-size: 18px; margin: 8px 0; color: #333; }
.news-list-info p { font-size: 14px; color: #888; }
.news-list-date { font-size: 13px; color: #aaa; display: block; margin-top: 8px; }

/* ===== News Detail ===== */
.news-detail-section { background: #fff; }
.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.news-detail-header h1 { font-size: 26px; color: #1a3a5c; margin-bottom: 12px; }
.news-detail-meta { font-size: 14px; color: #999; display: flex; justify-content: center; gap: 20px; }
.news-detail-img { margin-bottom: 24px; }
.news-detail-img img { width: 100%; border-radius: 8px; }
.news-detail-content { padding: 20px 0; line-height: 1.9; font-size: 15px; }
.news-detail-content h2 { font-size: 20px; color: #1a3a5c; margin: 24px 0 12px; }
.news-detail-content h3 { font-size: 17px; margin: 16px 0 8px; }
.news-detail-content ul { padding-left: 20px; margin: 10px 0; }
.news-detail-content li { margin-bottom: 6px; }
.news-detail-content p { margin-bottom: 12px; }
.news-detail-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.related-news { margin-top: 50px; }

/* ===== About Page ===== */
.about-page { background: #fff; }
.about-page-content { max-width: 900px; margin: 0 auto 50px; }
.about-page-content h2 { font-size: 24px; color: #1a3a5c; margin-bottom: 20px; text-align: center; }
.about-page-text { line-height: 2; font-size: 15px; color: #555; }
.about-page-text p { margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 30px 20px; background: #f8f9fa; border-radius: 8px; transition: all .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.feature-icon { font-size: 40px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; color: #333; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: #888; }

/* ===== Cases Page ===== */
.case-list { display: flex; flex-direction: column; gap: 30px; }
.case-list-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); display: flex; }
.case-list-img { width: 300px; height: 220px; flex-shrink: 0; overflow: hidden; background: #f0f0f0; }
.case-list-img img { width: 100%; height: 100%; object-fit: cover; }
.case-list-info { padding: 24px; flex: 1; }
.case-client { display: inline-block; font-size: 12px; color: #2a8fca; background: rgba(42,143,202,.1); padding: 2px 8px; border-radius: 4px; }
.case-list-info h3 { font-size: 20px; margin: 8px 0; color: #1a3a5c; }
.case-list-info > p { font-size: 14px; color: #888; margin-bottom: 12px; }
.case-content-preview { font-size: 14px; color: #555; line-height: 1.8; }
.case-content-preview h4 { font-size: 16px; color: #333; margin: 12px 0 6px; }
.case-content-preview h5 { font-size: 14px; color: #555; margin: 8px 0 4px; }
.case-content-preview ul { padding-left: 20px; }
.case-content-preview li { margin-bottom: 4px; }

/* ===== Contact Page ===== */
.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 24px; color: #1a3a5c; margin-bottom: 20px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon { font-size: 28px; }
.contact-item h4 { font-size: 14px; color: #888; margin-bottom: 4px; }
.contact-item p { font-size: 16px; color: #333; font-weight: 500; }
.contact-form-wrap { background: #f8f9fa; padding: 30px; border-radius: 8px; }
.form-tip { color: #888; font-size: 14px; margin-bottom: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.form-group .required { color: #e74c3c; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 14px; font-family: inherit; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #2a8fca; }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.success { color: #27ae60; }
.form-msg.error { color: #e74c3c; }

/* ===== Footer ===== */
.footer { background: #1a2a3a; color: #b0c4d8; padding: 50px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #b0c4d8; font-size: 14px; }
.footer-col a:hover { color: #2a8fca; }
.footer-about p { font-size: 14px; line-height: 1.6; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: #6a7a8a; }

/* ===== Error Page ===== */
.error-page { text-align: center; padding: 100px 20px; }
.error-code { font-size: 80px; font-weight: 700; color: #2a8fca; }
.error-page h2 { font-size: 24px; color: #333; margin: 20px 0; }
.error-page p { color: #888; margin-bottom: 24px; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-top { flex-direction: column; }
  .product-detail-img { width: 100%; }
  .case-list-item { flex-direction: column; }
  .case-list-img { width: 100%; }
}
@media (max-width: 768px) {
  /* ===== 手机端导航横向排版 (2026-08-14) ===== */
  .nav-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-list li { flex: 1 0 auto; width: auto; min-width: 0; }
  .nav-list li a { padding: 10px 6px; font-size: 13px; white-space: nowrap; }
  .nav-list::-webkit-scrollbar { display: none; }
  .header-inner { flex-direction: column; gap: 12px; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .product-grid, .news-grid, .case-grid, .about-features { grid-template-columns: 1fr; }
  .about-content { flex-direction: column; }
  .about-stats { width: 100%; }
  .footer-top { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .footer-top .footer-col { flex: 1 1 25%; min-width: 0; }
  .footer-top .footer-col h3,
  .footer-top .footer-col h4 { font-size: 14px; margin-bottom: 8px; }
  .footer-top .footer-col ul li { margin-bottom: 4px; font-size: 12px; }
  .footer-top .footer-col a,
  .footer-top .footer-col p { font-size: 12px; }
  .footer-top .footer-about { display: none; }
  .banner { height: 300px; }
  .banner-content h2 { font-size: 24px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}
