:root {
  --brand: #0e76bc;
  --brand-dark: #0a5b91;
  --brand-light: #2e9bd6;
  --accent: #8cc63f;
  --accent-dark: #6fa72c;
  --ink: #1d2733;
  --muted: #5b6b7b;
  --line: #e6ebf0;
  --bg-soft: #f5f8fb;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(14, 118, 188, .10);
  --shadow-sm: 0 4px 14px rgba(20, 40, 60, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 40px; font-weight: 600;
  cursor: pointer; border: none; transition: all .25s; font-size: 15px;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(14,118,188,.3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--brand); }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Topbar */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.9); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 0; }
.topbar i { color: var(--accent); margin-right: 5px; }
.topbar-right span { margin-left: 22px; }

/* Header */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 30px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 22px; color: var(--brand); letter-spacing: 1px; }
.brand-text em { font-size: 12px; color: var(--muted); font-style: normal; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav > a, .nav-dropdown > a {
  display: block; padding: 14px 18px; font-size: 16px; font-weight: 500;
  color: var(--ink); position: relative;
}
.nav > a:hover, .nav-dropdown > a:hover { color: var(--brand); }
.nav > a::after, .nav-dropdown > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 3px;
  background: var(--accent); border-radius: 3px; transform: scaleX(0); transition: transform .25s;
}
.nav > a:hover::after, .nav-dropdown:hover > a::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-menu {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15); border-radius: 12px; padding: 12px 0;
  opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .3s cubic-bezier(.4,0,.2,1);
  margin-top: 8px; z-index: 200;
}
.nav-menu::before {
  content: ""; position: absolute; top: -6px; left: 24px;
  width: 12px; height: 12px; background: #fff;
  transform: rotate(45deg); border-radius: 2px;
}
.nav-dropdown:hover .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 12px 24px; color: var(--ink); font-size: 15px; font-weight: 500; transition: all .2s; }
.nav-menu a:hover { background: linear-gradient(135deg, var(--bg-soft), #eef4f9); color: var(--brand); padding-left: 30px; }
.nav-menu a:first-child { border-radius: 12px 12px 0 0; }
.nav-menu a:last-child { border-radius: 0 0 12px 12px; }

.header-phone { display: flex; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); }
.header-phone i { font-size: 30px; color: var(--brand); }
.header-phone small { display: block; font-size: 12px; color: var(--muted); }
.header-phone strong { font-size: 20px; color: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--brand); cursor: pointer; margin-left: auto; }

/* Hero / banner */
.hero { position: relative; overflow: hidden; }
.slides { position: relative; }
.slide {
  position: relative; height: 540px; display: none;
  background-size: cover; background-position: center;
}
.slide.active { display: block; animation: fade .8s; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
.slide::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,60,98,.78) 0%, rgba(8,60,98,.35) 55%, rgba(8,60,98,.1) 100%); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.slide-content h2 { font-size: 46px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.slide-content p { font-size: 20px; max-width: 600px; margin-bottom: 28px; color: rgba(255,255,255,.92); }
.slide-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.slide-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.slide-dots button.active { background: var(--accent); width: 30px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.18); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: background .2s; }
.hero-arrow:hover { background: var(--accent); }
.hero-arrow.prev { left: 24px; } .hero-arrow.next { right: 24px; }

/* Section */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en { color: var(--accent); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; }
.section-head h2 { font-size: 34px; color: var(--ink); margin: 6px 0 14px; font-weight: 800; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--brand); margin: 14px auto 0; border-radius: 4px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Category / service cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.cat-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all .3s; text-align: center;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cat-card .img { height: 200px; overflow: hidden; background: var(--bg-soft); }
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .img img { transform: scale(1.08); }
.cat-card .body { padding: 22px; }
.cat-card .icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: -54px auto 14px; position: relative; box-shadow: var(--shadow); border: 4px solid #fff; }
.cat-card h3 { font-size: 20px; margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: 14px; min-height: 44px; }
.cat-card .more { color: var(--brand); font-weight: 600; font-size: 14px; margin-top: 12px; display: inline-block; }

/* Advantages */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.adv-item { text-align: center; padding: 30px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: .3s; }
.adv-item:hover { background: var(--brand); color: #fff; transform: translateY(-6px); }
.adv-item:hover p, .adv-item:hover .adv-icon { color: #fff; }
.adv-icon { font-size: 42px; color: var(--brand); margin-bottom: 16px; transition: .3s; }
.adv-item h3 { font-size: 19px; margin-bottom: 8px; }
.adv-item p { color: var(--muted); font-size: 14px; }

/* Products */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .img { height: 220px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .img img { transform: scale(1.08); }
.product-card .img .placeholder { color: var(--brand-light); font-size: 56px; }
.product-card .body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .tag { font-size: 12px; color: var(--accent-dark); font-weight: 600; }
.product-card h3 { font-size: 17px; margin: 4px 0 6px; }
.product-card .desc { color: var(--muted); font-size: 13px; flex: 1; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { color: #e8521e; font-weight: 800; font-size: 20px; }
.price small { font-size: 13px; font-weight: 500; }
.price-note { color: var(--muted); font-weight: 600; }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; align-self: start; }
.sidebar h3 { background: var(--brand); color: #fff; padding: 18px 22px; font-size: 18px; }
.sidebar ul li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.sidebar ul li a:hover, .sidebar ul li a.active { background: var(--bg-soft); color: var(--brand); padding-left: 28px; }
.sidebar-contact { padding: 22px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.sidebar-contact h4 { font-size: 16px; margin-bottom: 10px; }
.sidebar-contact .tel { font-size: 24px; font-weight: 800; }

/* Page banner */
.page-banner { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; padding: 56px 0; }
.page-banner h1 { font-size: 34px; }
.breadcrumb { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

/* Product detail */
.pd-top { display: grid; grid-template-columns: 460px 1fr; gap: 40px; }
.pd-gallery .main-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); height: 380px; display: flex; align-items: center; justify-content: center; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img { width: 76px; height: 76px; object-fit: cover; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; }
.pd-thumbs img:hover { border-color: var(--brand); }
.pd-info h1 { font-size: 28px; margin-bottom: 14px; }
.pd-meta { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.pd-meta .row { display: flex; padding: 7px 0; font-size: 15px; }
.pd-meta .row .k { width: 90px; color: var(--muted); }
.pd-price { font-size: 34px; color: #e8521e; font-weight: 800; }
.pd-actions { display: flex; gap: 14px; margin-top: 22px; }
.pd-body { margin-top: 44px; }
.pd-body .tab-head { border-bottom: 2px solid var(--brand); }
.pd-body .tab-head span { display: inline-block; background: var(--brand); color: #fff; padding: 12px 30px; border-radius: 8px 8px 0 0; font-weight: 600; }
.pd-body .tab-content { padding: 26px 4px; white-space: pre-line; color: #33414f; font-size: 15px; }
.pd-body .tab-content.rte { white-space: normal; line-height: 1.9; }
.rte img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.rte p { margin: 0 0 14px; }
.rte h1, .rte h2, .rte h3, .rte h4 { margin: 22px 0 12px; line-height: 1.4; }
.rte ul, .rte ol { margin: 0 0 14px; padding-left: 24px; }
.rte li { margin: 4px 0; }
.rte table { border-collapse: collapse; max-width: 100%; margin: 14px 0; }
.rte table td, .rte table th { border: 1px solid var(--line); padding: 8px 12px; }
.rte blockquote { border-left: 3px solid var(--brand); margin: 14px 0; padding: 6px 16px; color: var(--muted); background: var(--bg-soft); }
.rte a { color: var(--brand); text-decoration: underline; }

/* Forms */
.form-grid { display: grid; gap: 16px; }
.form-input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.form-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,118,188,.12); }
.alert { padding: 14px 18px; border-radius: 8px; margin: 18px 0; font-weight: 500; }
.alert-success { background: #e7f6ec; color: #1f8b46; border: 1px solid #b6e3c5; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

.errorlist { color: #c0392b; font-size: 13px; list-style: none; margin: -8px 0 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.contact-info .item i { font-size: 22px; color: var(--brand); width: 46px; height: 46px; background: var(--bg-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contact-info .item h4 { font-size: 16px; } .contact-info .item p { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-light)); color: #fff; padding: 50px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; } .cta-band p { opacity: .9; }

/* Cases */
.case-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; transition: .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card .img { height: 220px; overflow: hidden; }
.case-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .img img { transform: scale(1.08); }
.case-card .body { padding: 18px 20px; }
.case-card h3 { font-size: 18px; margin-bottom: 6px; }
.case-card .loc { color: var(--brand); font-size: 13px; } .case-card .loc i { margin-right: 4px; }
.case-card { display: block; color: inherit; text-decoration: none; }
.case-card .case-more { display: inline-block; margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 600; }
.case-card .case-more i { margin-left: 4px; transition: transform .3s; }
.case-card:hover .case-more i { transform: translateX(4px); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 30px; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; white-space: pre-line; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 40px; }
.stat { text-align: center; padding: 26px 10px; background: var(--bg-soft); border-radius: var(--radius); }
.stat b { font-size: 38px; color: var(--brand); display: block; }
.stat span { color: var(--muted); }

/* Float contact */
.float-contact { position: fixed; right: 22px; bottom: 30px; background: var(--accent); color: #fff; border-radius: 40px; padding: 14px 20px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(140,198,63,.5); z-index: 90; font-weight: 600; }
.float-contact:hover { background: var(--accent-dark); }

/* Footer */
.footer { background: #14202b; color: #aebccb; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { height: 50px; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--accent); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-contact p { margin-bottom: 10px; } .footer-contact i { color: var(--accent); width: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a:hover { color: #fff; }

/* Responsive */
@media (max-width: 992px) {
  .grid-4, .adv-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .layout, .pd-top, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .adv-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 70%; background: #fff; flex-direction: column; padding: 70px 20px; box-shadow: -4px 0 20px rgba(0,0,0,.15); transition: right .3s; align-items: stretch; }
  .nav.open { right: 0; }
  .nav-toggle { display: block; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .slide { height: 380px; } .slide-content h2 { font-size: 28px; } .slide-content p { font-size: 16px; }
  .section { padding: 48px 0; } .section-head h2 { font-size: 26px; }
  .topbar-right span:first-child { display: none; }
}
