* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #0ea5e9; --primary-dark: #0284c7; --secondary: #10b981; --dark: #0f172a; --light: #f0f9ff; --gray: #64748b; --font: 'Segoe UI','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header - transparent with bottom border */
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: .3s; }
header.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(20px); }
header .container { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.2); }
header.scrolled .container { border-bottom-color: rgba(14,165,233,.2); }
.logo { font-size: 1.4rem; font-weight: 800; color: #fff; transition: .3s; }
header.scrolled .logo { color: var(--dark); }
.logo span { color: var(--secondary); }
nav a { color: rgba(255,255,255,.8); margin-left: 30px; font-size: .95rem; font-weight: 500; transition: .3s; }
header.scrolled nav a { color: var(--dark); }
nav a:hover { color: var(--secondary); }
nav a.active { color: var(--secondary); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 28px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
header.scrolled .hamburger span { background: var(--dark); }

/* Hero - horizontal slider */
.hero { height: 100vh; display: flex; overflow: hidden; position: relative; }
.hero-slide { min-width: 100vw; height: 100vh; display: flex; align-items: center; padding: 0 8%; position: relative; flex-shrink: 0; background: #0f172a; }
.hero-slide .bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(15,23,42,.65) 0%, rgba(15,23,42,.28) 55%, rgba(15,23,42,.05) 100%); }
.hero-slide .content { position: relative; z-index: 3; max-width: 600px; }
.hero-slide h1 { font-size: 3.8rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero-slide h1 span { color: var(--secondary); }
.hero-slide p { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 30px; }
.btn { display: inline-block; padding: 16px 40px; border-radius: 8px; font-weight: 700; font-size: 1rem; transition: .3s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 30px rgba(14,165,233,.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(14,165,233,.5); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 12px; }
.scroll-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: .3s; border: none; }
.scroll-dot.active { background: #fff; width: 30px; border-radius: 6px; }

/* Section */
.section { padding: 120px 0; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; text-align: center; }
.section-title span { color: var(--primary); }
.section-subtitle { text-align: center; color: var(--gray); font-size: 1.1rem; margin-bottom: 60px; }
.section.white { background: #fff; }
.section.light { background: var(--light); }
.section.dark { background: #0f172a; color: #fff; }
.section.dark .section-subtitle { color: rgba(255,255,255,.5); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.service-card { background: #fff; border-radius: 16px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.06); transition: .5s; overflow: hidden; position: relative; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.service-card:hover { transform: translateY(-10px) rotateX(5deg); box-shadow: 0 25px 50px rgba(14,165,233,.15); }
.service-icon { width: 80px; height: 80px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 2rem; color: #fff; }
.service-icon img { width: 44px; height: 44px; object-fit: contain; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: .95rem; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.project-item { position: relative; border-radius: 16px; overflow: hidden; height: 300px; cursor: pointer; display: block; }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.project-item:hover img { transform: scale(1.1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.85), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: #fff; }
.project-overlay h3 { font-size: 1.3rem; }

/* Horizontal scroll section */
.h-scroll-wrap { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 30px; padding-bottom: 20px; cursor: grab; }
.h-scroll-wrap::-webkit-scrollbar { height: 8px; }
.h-scroll-wrap::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.h-scroll-wrap::-webkit-scrollbar-track { background: rgba(14,165,233,.1); border-radius: 4px; }
.h-scroll-item { min-width: 400px; scroll-snap-align: start; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.06); flex-shrink: 0; }
.h-scroll-item img { width: 100%; height: 250px; object-fit: cover; }
.h-scroll-item-body { padding: 25px; }
.h-scroll-item-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.h-scroll-item-body p { color: var(--gray); font-size: .9rem; }

/* Advantage */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.adv-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 40px 25px; text-align: center; transition: .3s; }
.adv-card:hover { background: rgba(255,255,255,.1); transform: translateY(-8px); }
.adv-card .num { font-size: 2.8rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.adv-card h4 { font-size: 1.1rem; margin: 10px 0 8px; color: #fff; }
.adv-card p { color: rgba(255,255,255,.5); font-size: .9rem; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.06); transition: .4s; display: block; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-body { padding: 25px; }
.news-date { color: var(--primary); font-size: .85rem; }
.news-body h3 { font-size: 1.1rem; margin: 10px 0; }
.news-body p { color: var(--gray); font-size: .9rem; }

/* Footer */
footer { background: #0f172a; color: rgba(255,255,255,.6); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand h3 { color: #fff; font-size: 1.5rem; margin-bottom: 15px; }
.footer-brand h3 span { color: var(--secondary); }
.footer-brand p { font-size: .9rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,.5); margin-bottom: 12px; font-size: .9rem; transition: .3s; }
.footer-col a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 25px; text-align: center; font-size: .85rem; }

/* Page Banner (img + overlay + content structure) */
.page-banner { position: relative; min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--primary-dark); }
.page-banner img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner .overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); pointer-events: none; z-index: 1; }
.page-banner .content { position: relative; z-index: 2; padding: 100px 20px 80px; }
.page-banner-sm { min-height: 40vh; }
.page-banner h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.page-banner p { font-size: 1.2rem; opacity: .9; }
.page-banner .breadcrumb { margin-top: 16px; font-size: .9rem; opacity: .85; }
.page-banner .breadcrumb a { color: #fff; }
.page-banner .breadcrumb a:hover { color: var(--secondary); }

/* About */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: 16px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: var(--gray); margin-bottom: 15px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-item { text-align: center; padding: 20px; background: var(--light); border-radius: 12px; }
.stat-item .num { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-item p { color: var(--gray); font-size: .85rem; margin: 0; }
.stat-item.dark { background: rgba(255,255,255,.05); color: #fff; }
.stat-item.dark p { color: rgba(255,255,255,.5); }

/* Timeline (milestone) */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.tl-item { background: #fff; border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.tl-item .tl-year { display: inline-block; font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.tl-item h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.tl-item p { color: var(--gray); font-size: .9rem; }

/* Products */
.product-card-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.06); margin-bottom: 40px; }
.product-card-wide .product-img { height: 350px; background-size: cover; background-position: center; }
.product-card-wide img { width: 100%; height: 350px; object-fit: cover; }
.product-body { padding: 50px; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.8rem; margin-bottom: 15px; }
.product-body p { color: var(--gray); margin-bottom: 15px; }
.product-tag { display: inline-block; padding: 5px 15px; background: var(--primary); color: #fff; border-radius: 20px; font-size: .8rem; font-weight: 600; margin-bottom: 15px; align-self: flex-start; }

/* News page */
.news-list { max-width: 900px; margin: 0 auto; }
.news-article { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.06); margin-bottom: 30px; }
.news-article:hover { transform: translateX(5px); }
.news-article .news-img { min-height: 200px; background-size: cover; background-position: center; }
.news-article img { width: 100%; height: 100%; object-fit: cover; }
.news-article-body { padding: 30px; }
.news-article-body .tag { display: inline-block; padding: 4px 12px; background: rgba(14,165,233,.1); color: var(--primary); border-radius: 20px; font-size: .8rem; margin-bottom: 10px; }
.news-article-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.news-article-body p { color: var(--gray); font-size: .9rem; }

/* Contact */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-detail { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-detail .icon { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 1.2rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: .95rem; margin-bottom: 15px; transition: .3s; outline: none; font-family: inherit; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { height: 140px; resize: vertical; }
.map-placeholder { width: 100%; height: 400px; border-radius: 16px; overflow: hidden; }
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }
.form-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 15px; font-size: .9rem; }
.form-alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-alert-err ul { list-style: none; margin: 0; padding: 0; }

/* CMS detail */
.cms-section { padding: 80px 0; }
.cms-detail { max-width: 900px; margin: 0 auto; }
.cms-detail img { border-radius: 12px; margin: 20px auto; }
.cms-detail h1 { font-size: 2rem; margin: 20px 0; color: var(--dark); }
.cms-detail .lead { color: var(--gray); margin-bottom: 20px; font-size: 1.05rem; }
.cms-detail .cms-content h2 { font-size: 1.6rem; margin: 24px 0 12px; color: var(--dark); }
.cms-detail .cms-content h3 { font-size: 1.3rem; margin: 20px 0 10px; color: var(--dark); }
.cms-detail .cms-content p { color: var(--gray); margin-bottom: 15px; line-height: 1.9; }
.cms-detail .cms-content ul { color: var(--gray); margin: 0 0 15px 20px; line-height: 1.9; }
.cms-back { display: inline-block; color: var(--primary); font-size: .9rem; margin-bottom: 20px; }
.cms-back:hover { text-decoration: underline; }
.cms-pager { padding: 30px 0; text-align: center; }
.cms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cms-card { display: block; background: #fff; border: 1px solid #e8f0fb; border-radius: 12px; padding: 20px; transition: .3s; }
.cms-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.cms-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); }
.cms-card p { color: var(--gray); font-size: .9rem; }

@media (max-width: 992px) {
  .hero-slide h1 { font-size: 2.8rem; }
  .about-wrap, .contact-page-grid { grid-template-columns: 1fr; }
  .product-card-wide { grid-template-columns: 1fr; }
  .product-card-wide .product-img, .product-card-wide img { height: 250px; }
  .news-article { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .h-scroll-item { min-width: 300px; }
  .cms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
  nav.active a { color: var(--dark); }
  nav a { margin: 10px 0; }
  .hamburger { display: flex; }
  .hero-slide h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 2rem; }
  .h-scroll-item { min-width: 280px; }
}