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

/* ========== Header ========== */
.top-bar {
  background: #f8f9fa; border-bottom: 1px solid #e9ecef;
  padding: 8px 0; font-size: 13px; color: #666;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar .welcome { color: #888; }
.top-bar .links a { margin-left: 15px; color: #0066cc; }
.top-bar .links a:hover { color: #e74c3c; }

.header-main {
  padding: 15px 0; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-main .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px; background: linear-gradient(135deg, #0066cc, #00a8ff);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold; font-size: 18px;
}
.logo-text h1 { font-size: 20px; color: #0066cc; line-height: 1.3; }
.logo-text p { font-size: 12px; color: #888; }

.contact-info { display: flex; gap: 25px; align-items: center; }
.phone-box {
  display: flex; align-items: center; gap: 8px;
}
.phone-box .icon {
  width: 36px; height: 36px; background: #e74c3c; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
}
.phone-box .number { font-size: 20px; font-weight: bold; color: #e74c3c; }
.phone-box .label { font-size: 11px; color: #999; }

/* ========== Navigation ========== */
.nav-bar {
  background: linear-gradient(135deg, #0055b3, #0077dd);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,85,179,0.3);
}
.nav-bar ul {
  display: flex; justify-content: center; align-items: center;
}
.nav-bar li { position: relative; }
.nav-bar a {
  display: block; padding: 14px 28px; color: #fff; font-size: 15px;
  letter-spacing: 1px; transition: background .2s;
}
.nav-bar a:hover, .nav-bar a.active {
  background: rgba(255,255,255,0.15);
}
.mobile-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 24px; cursor: pointer; padding: 12px 20px;
}

/* ========== Hero Banner ========== */
.hero {
  position: relative; min-height: 520px;
  background: linear-gradient(135deg, rgba(0,51,102,0.85), rgba(0,102,204,0.7)),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex; align-items: center; text-align: center; color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero-content { position: relative; z-index: 2; }
.hero h2 {
  font-size: 42px; font-weight: 700; margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 20px; margin-bottom: 30px; opacity: 0.95;
}
.hero .btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 6px;
  font-size: 16px; font-weight: 600; transition: all .3s; cursor: pointer; border: none;
}
.btn-primary { background: #e74c3c; color: #fff; }
.btn-primary:hover { background: #c0392b; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(231,76,60,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #0055b3; }

/* ========== Section Common ========== */
.section { padding: 70px 0; }
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px; color: #333; margin-bottom: 10px; position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: #0066cc; border-radius: 2px;
}
.section-title p { color: #888; font-size: 15px; margin-top: 15px; }

/* ========== Products ========== */
.products-section { background: #f8fafc; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.product-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all .3s;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-card .img-wrap {
  height: 220px; overflow: hidden;
  background: linear-gradient(135deg, #e8f4f8, #d6eaf8);
  display: flex; align-items: center; justify-content: center;
}
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .img-wrap .placeholder-icon { font-size: 60px; opacity: 0.3; }
.product-card .info { padding: 20px; }
.product-card h3 { font-size: 17px; margin-bottom: 8px; color: #333; }
.product-card p { font-size: 13px; color: #888; line-height: 1.6; }
.product-card .more {
  display: inline-block; margin-top: 12px; color: #0066cc; font-size: 13px;
}
.product-card .more:hover { color: #e74c3c; }

.section-footer { text-align: center; margin-top: 40px; }
.btn-more {
  display: inline-block; padding: 12px 40px; border: 2px solid #0066cc;
  color: #0066cc; border-radius: 6px; font-size: 14px; transition: all .3s;
}
.btn-more:hover { background: #0066cc; color: #fff; }

/* ========== Advantages ========== */
.advantages-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.advantage-card {
  text-align: center; padding: 35px 20px; border-radius: 10px;
  background: #fff; border: 1px solid #eef2f7; transition: all .3s;
}
.advantage-card:hover {
  border-color: #0066cc; box-shadow: 0 4px 20px rgba(0,102,204,0.1);
}
.advantage-icon {
  width: 70px; height: 70px; margin: 0 auto 18px;
  background: linear-gradient(135deg, #0066cc, #00a8ff);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff;
}
.advantage-card h3 { font-size: 18px; margin-bottom: 10px; color: #333; }
.advantage-card p { font-size: 13px; color: #888; line-height: 1.7; }

/* ========== Cases ========== */
.cases-section { background: #f8fafc; }
.case-tabs {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap;
}
.case-tab {
  padding: 8px 24px; border-radius: 20px; border: 1px solid #ddd;
  font-size: 14px; cursor: pointer; transition: all .3s; background: #fff;
}
.case-tab:hover, .case-tab.active {
  background: #0066cc; color: #fff; border-color: #0066cc;
}
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.case-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all .3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 6px 25px rgba(0,0,0,0.1); }
.case-card .img-wrap {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #fef9e7, #fdebd0);
  display: flex; align-items: center; justify-content: center;
}
.case-card .img-wrap .placeholder-icon { font-size: 50px; opacity: 0.25; }
.case-card .info { padding: 18px; }
.case-card h3 { font-size: 16px; margin-bottom: 6px; }
.case-card p { font-size: 13px; color: #888; }

/* ========== About Preview ========== */
.about-preview {
  background: linear-gradient(135deg, #003366, #0066cc);
  color: #fff; padding: 70px 0;
}
.about-preview .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.about-preview h2 { font-size: 28px; margin-bottom: 20px; }
.about-preview p { opacity: 0.9; line-height: 1.8; margin-bottom: 15px; }
.about-preview .stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 25px;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: bold; }
.stat-item .label { font-size: 13px; opacity: 0.8; }
.about-img {
  height: 350px; background: rgba(255,255,255,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: 0.2;
}

/* ========== News ========== */
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px;
}
.news-card {
  display: flex; gap: 20px; padding: 20px; background: #fff;
  border-radius: 10px; border: 1px solid #eef2f7; transition: all .3s;
}
.news-card:hover { border-color: #0066cc; box-shadow: 0 4px 15px rgba(0,102,204,0.1); }
.news-date {
  flex-shrink: 0; width: 65px; text-align: center;
  background: #f0f6ff; border-radius: 8px; padding: 10px 8px;
}
.news-date .day { font-size: 28px; font-weight: bold; color: #0066cc; line-height: 1; }
.news-date .month { font-size: 11px; color: #888; margin-top: 4px; }
.news-info h3 { font-size: 16px; margin-bottom: 8px; color: #333; line-height: 1.5; }
.news-info h3:hover { color: #0066cc; }
.news-info p { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  padding: 50px 0; text-align: center; color: #fff;
}
.cta-section h2 { font-size: 28px; margin-bottom: 10px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }
.btn-white {
  display: inline-block; padding: 14px 45px; background: #fff;
  color: #e74c3c; border-radius: 6px; font-size: 16px; font-weight: 600;
  transition: all .3s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* ========== Footer ========== */
.footer { background: #1a2332; color: #a0aec0; padding-top: 50px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 30px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #a0aec0; font-size: 13px; transition: color .2s; }
.footer ul a:hover { color: #00a8ff; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-contact .phone { font-size: 22px; color: #fff; font-weight: bold; margin: 10px 0; }
.footer-bottom {
  padding: 20px 0; text-align: center; font-size: 12px; color: #5a6a7a;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 15px 0; background: #f8f9fa; font-size: 13px; color: #888;
}
.breadcrumb a { color: #0066cc; }
.breadcrumb a:hover { color: #e74c3c; }

/* ========== Page Content ========== */
.page-content { padding: 50px 0; }
.page-sidebar {
  display: grid; grid-template-columns: 250px 1fr; gap: 30px;
}
.sidebar-nav {
  background: #fff; border-radius: 10px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); height: fit-content;
  position: sticky; top: 80px;
}
.sidebar-nav h3 {
  font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid #0066cc;
  margin-bottom: 12px; color: #0066cc;
}
.sidebar-nav li { border-bottom: 1px solid #f0f0f0; }
.sidebar-nav a {
  display: block; padding: 10px 15px; font-size: 14px; color: #555; transition: all .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: #0066cc; background: #f0f6ff; padding-left: 20px;
}
.content-main {
  background: #fff; border-radius: 10px; padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.content-main h2 { font-size: 24px; margin-bottom: 20px; color: #333; }
.content-main p { margin-bottom: 15px; line-height: 1.8; color: #555; }

/* ========== Contact Page ========== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.contact-card {
  background: #fff; border-radius: 10px; padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-card h3 { font-size: 20px; margin-bottom: 20px; color: #333; }
.contact-item {
  display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start;
}
.contact-item .icon {
  width: 45px; height: 45px; background: #f0f6ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #0066cc; flex-shrink: 0;
}
.contact-item .info h4 { font-size: 14px; color: #333; margin-bottom: 4px; }
.contact-item .info p { font-size: 13px; color: #888; }

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero h2 { font-size: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview .container { grid-template-columns: 1fr; }
  .about-img { height: 250px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-sidebar { grid-template-columns: 1fr; }
  .sidebar-nav { position: static; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-main .container { flex-direction: column; text-align: center; }
  .contact-info { flex-direction: column; }
  .nav-bar ul { display: none; flex-direction: column; }
  .nav-bar ul.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero { min-height: 400px; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
