:root {
  --blue: #333399;
  --blue-dark: #26266F;
  --blue-light: #4B4BB8;
  --red: #ED2C2C;
  --red-dark: #C81E1E;
  --bg: #F5F7FB;
  --text: #2B2F3A;
  --muted: #6B7280;
  --white: #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(51,51,153,.10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 46px; display: block; }
nav ul { display: flex; gap: 6px; list-style: none; }
nav a {
  display: block; padding: 10px 16px;
  font-weight: 600; font-size: 15px; color: var(--blue);
  border-radius: 6px; transition: all .2s;
}
nav a:hover { background: rgba(51,51,153,.08); }
nav a.active { color: var(--white); background: var(--blue); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--blue); border-radius: 2px; transition: .3s; }

/* ===== Page banner (inner pages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 65%, var(--blue-light) 100%);
  color: var(--white); padding: 54px 0; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%; background: rgba(237,44,44,.22);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 34px; }
.breadcrumb { margin-top: 8px; font-size: 14px; opacity: .85; }
.breadcrumb a:hover { color: #FF8A8A; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: var(--white); padding: 110px 0 120px; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(237,44,44,.25); }
.hero::before { content: ""; position: absolute; left: -80px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 44px; line-height: 1.25; max-width: 800px; }
.hero h1 em { color: #FF8A8A; font-style: normal; }
.hero p { margin: 20px 0 34px; font-size: 18px; max-width: 620px; opacity: .92; }
.btn { display: inline-block; padding: 13px 34px; border-radius: 8px; font-weight: 700; font-size: 16px; transition: all .2s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 14px; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--blue); }
.section-title h2 span { color: var(--red); }
.section-title .bar { width: 64px; height: 4px; margin: 14px auto 0; background: var(--red); border-radius: 2px; }
.section-title p { color: var(--muted); margin-top: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-card { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); border-radius: 14px; color: var(--white); padding: 46px 40px; }
.about-card .num { font-size: 40px; font-weight: 800; color: #FF8A8A; }
.about-card h3 { margin: 6px 0 14px; font-size: 22px; }
.about-card p { opacity: .9; }
.about-text p { margin-bottom: 16px; color: var(--muted); }
.about-text h3 { color: var(--blue); font-size: 24px; margin-bottom: 14px; }
.about-list { list-style: none; margin-top: 18px; }
.about-list li { padding: 7px 0 7px 30px; position: relative; color: var(--text); font-weight: 600; }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 12px; text-align: center; line-height: 20px;
}

/* Services */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: var(--bg); border-radius: 12px; padding: 34px 28px; border-top: 4px solid var(--blue); transition: all .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(51,51,153,.15); border-top-color: var(--red); }
.service-icon { width: 58px; height: 58px; border-radius: 12px; margin-bottom: 20px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.service-card h3 { color: var(--blue); font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ===== Knowledge list (list-page style) ===== */
.knowledge-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* Category tabs */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-tabs a {
  padding: 8px 18px; border-radius: 30px; font-size: 14px; font-weight: 600;
  background: var(--white); color: var(--blue); border: 1px solid #DDE1EC; transition: all .2s;
}
.cat-tabs a:hover { border-color: var(--blue); }
.cat-tabs a.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Article row item */
.k-list { display: flex; flex-direction: column; gap: 18px; }
.k-item {
  display: grid; grid-template-columns: 168px 1fr; gap: 22px;
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.05); transition: all .25s;
}
.k-item:hover { transform: translateX(5px); box-shadow: 0 10px 26px rgba(51,51,153,.14); }
.k-thumb { display: flex; align-items: center; justify-content: center; font-size: 46px; color: var(--white); min-height: 168px; }
.t-blue { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.t-red { background: linear-gradient(135deg, var(--red), #FF7A5C); }
.t-dark { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.t-teal { background: linear-gradient(135deg, #0E7C86, #16A9A0); }
.k-body { padding: 22px 26px 22px 0; }
.k-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.k-meta .cat { color: var(--red); font-weight: 700; }
.k-body h3 { font-size: 19px; color: var(--text); margin-bottom: 8px; }
.k-body h3 a:hover { color: var(--blue); }
.k-body p { font-size: 14.5px; color: var(--muted); }
.k-more { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 700; font-size: 14px; }
.k-more:hover { color: var(--red); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; background: var(--white);
  border: 1px solid #DDE1EC; color: var(--blue); font-weight: 600; font-size: 14px;
}
.pagination a.active, .pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--white); border-radius: 12px; padding: 26px 24px; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.widget h4 { color: var(--blue); font-size: 17px; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.widget h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--red); }
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px dashed #E3E6EF; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14.5px; color: var(--text); font-weight: 600; }
.cat-list a:hover { color: var(--red); }
.cat-list .cnt { color: var(--muted); font-weight: 400; }
.recent-list { list-style: none; }
.recent-list li { padding: 10px 0; border-bottom: 1px dashed #E3E6EF; }
.recent-list li:last-child { border-bottom: none; }
.recent-list a { font-size: 14.5px; color: var(--text); font-weight: 600; display: block; }
.recent-list a:hover { color: var(--blue); }
.recent-list span { font-size: 12.5px; color: var(--muted); }
.widget-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: var(--white); text-align: center; }
.widget-cta h4 { color: var(--white); }
.widget-cta h4::after { left: 50%; transform: translateX(-50%); }
.widget-cta p { font-size: 14px; opacity: .9; margin-bottom: 18px; }
.widget-cta .btn { padding: 11px 26px; font-size: 15px; background: var(--red); color: #fff; }
.widget-cta .btn:hover { background: var(--red-dark); }

/* ===== Article detail ===== */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article { background: var(--white); border-radius: 12px; padding: 44px 46px; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.article h1 { font-size: 30px; color: var(--blue); line-height: 1.35; margin-bottom: 14px; }
.article-meta { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid #EDEFF5; margin-bottom: 26px; flex-wrap: wrap; }
.article-meta .cat { color: var(--red); font-weight: 700; }
.article h2 { font-size: 21px; color: var(--blue); margin: 30px 0 12px; }
.article h3 { font-size: 17.5px; color: var(--text); margin: 22px 0 10px; }
.article p { margin-bottom: 15px; color: #444A57; }
.article ul, .article ol { margin: 0 0 16px 22px; color: #444A57; }
.article li { margin-bottom: 7px; }
.article strong { color: var(--text); }
.note {
  background: rgba(51,51,153,.06); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 22px 0; font-size: 14.5px;
}
.note.red { background: rgba(237,44,44,.06); border-left-color: var(--red); }
.article-tags { margin-top: 32px; padding-top: 22px; border-top: 1px solid #EDEFF5; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-tags span { font-size: 13px; color: var(--muted); font-weight: 700; }
.article-tags a { font-size: 13px; padding: 5px 14px; border-radius: 20px; background: var(--bg); color: var(--blue); font-weight: 600; }
.article-tags a:hover { background: var(--blue); color: #fff; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.article-nav a { background: var(--white); border-radius: 10px; padding: 16px 20px; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.article-nav a:hover { box-shadow: 0 8px 22px rgba(51,51,153,.15); }
.article-nav small { color: var(--muted); font-size: 12.5px; display: block; }
.article-nav b { color: var(--blue); font-size: 15px; }
.article-nav .next { text-align: right; }

/* ===== Contact form ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info h3 { color: var(--blue); font-size: 22px; margin-bottom: 20px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px; background: var(--blue); color: var(--white); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.contact-item h4 { color: var(--text); font-size: 16px; }
.contact-item p { color: var(--muted); font-size: 14px; }
.contact-form { background: var(--white); border-radius: 14px; padding: 34px; box-shadow: 0 8px 28px rgba(51,51,153,.10); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: 13px; font-weight: 700; color: var(--text); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 11px 14px; margin-bottom: 16px; border: 1px solid #D6DAE6; border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--bg); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.contact-form button { width: 100%; padding: 14px; border: none; border-radius: 8px; background: var(--red); color: var(--white); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.contact-form button:hover { background: var(--red-dark); }

/* ===== Footer ===== */
footer { background: var(--blue-dark); color: rgba(255,255,255,.85); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--red); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #FF8A8A; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .knowledge-wrap, .article-wrap { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1 1 260px; }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 18px rgba(0,0,0,.1); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  nav.open { max-height: 400px; }
  nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .services-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .section-title h2 { font-size: 26px; }
  .page-banner h1 { font-size: 26px; }
  .k-item { grid-template-columns: 1fr; gap: 0; }
  .k-thumb { min-height: 110px; }
  .k-body { padding: 20px 22px; }
  .article { padding: 28px 22px; }
  .article h1 { font-size: 23px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
  .sidebar { flex-direction: column; }
}
