/*
Theme Name: 职优成职业培训学校
Theme URI: https://zyc521.com/
Author: Genspark
Author URI: https://genspark.ai/
Description: 轻量型中国职业培训学校官网主题，适用于民办职业培训学校、企业内训与社区技能培训展示。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zyc521
Tags: custom-background, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, threaded-comments
*/

:root {
  --zn-primary: #b12a34;
  --zn-secondary: #11456e;
  --zn-accent: #d39c3f;
  --zn-bg: #f7f3eb;
  --zn-surface: #ffffff;
  --zn-border: #d8dee6;
  --zn-text: #203040;
  --zn-muted: #667381;
  --zn-shadow: 0 14px 36px rgba(17, 69, 110, 0.10);
  --zn-radius: 18px;
  --zn-radius-sm: 12px;
  --zn-gap: 24px;
  --zn-container: min(1200px, calc(100% - 32px));
  --zn-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans CJK SC", sans-serif;
  --zn-title-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--zn-text);
  background: var(--zn-bg);
  font-family: var(--zn-font);
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--zn-secondary); text-decoration: none; transition: color .25s ease, opacity .25s ease, transform .25s ease; }
a:hover, a:focus { color: var(--zn-primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
button, .button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer;
  background: linear-gradient(135deg, var(--zn-primary), #d84e59); color: #fff; font-weight: 700;
  box-shadow: 0 10px 24px rgba(177, 42, 52, .18);
}
.button--ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.button--line { background: transparent; color: var(--zn-primary); border: 1px solid rgba(177, 42, 52, .18); box-shadow: none; }
.container { width: var(--zn-container); margin: 0 auto; }
.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section-title { margin: 0 0 12px; font: 700 34px/1.25 var(--zn-title-font); color: var(--zn-secondary); }
.section-lead { margin: 0 0 28px; color: var(--zn-muted); max-width: 760px; }
.grid { display: grid; gap: var(--zn-gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--zn-surface); border: 1px solid rgba(15, 59, 99, .08); border-radius: var(--zn-radius);
  box-shadow: var(--zn-shadow); overflow: hidden;
}
.card__body { padding: 24px; }
.card__tag { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(177, 42, 52, .08); color: var(--zn-primary); font-size: 13px; font-weight: 700; }
.card__title { margin: 14px 0 10px; font-size: 22px; line-height: 1.35; }
.card__meta { color: var(--zn-muted); font-size: 14px; }
.card__excerpt { color: var(--zn-muted); }
.card:hover { transform: translateY(-4px); }
.site-skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 1000; background: #fff; padding: 12px 16px; border-radius: 10px;
}
.site-skip-link:focus { left: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 59, 99, .08);
}
.site-topbar { background: var(--zn-secondary); color: rgba(255,255,255,.84); font-size: 14px; }
.site-topbar__inner, .site-header__inner, .site-footer__top, .site-footer__bottom, .hero__inner {
  width: var(--zn-container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
}
.site-topbar__inner { min-height: 42px; gap: 16px; }
.site-header__inner { min-height: 86px; gap: 20px; }
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-logo {
  width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--zn-secondary), #1c5c97);
  color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--zn-shadow);
}
.site-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--zn-secondary); }
.site-description { margin: 4px 0 0; color: var(--zn-muted); font-size: 13px; }
.main-navigation { display: flex; align-items: center; gap: 14px; }
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; color: var(--zn-text); font-weight: 700;
}
.main-navigation .current-menu-item > a, .main-navigation a:hover { background: rgba(177, 42, 52, .08); color: var(--zn-primary); }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--zn-secondary);
  border: 1px solid rgba(15,59,99,.12); box-shadow: none;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle__bars::before { transform: translateY(-6px); }
.menu-toggle__bars::after { transform: translateY(4px); }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(0) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-2px) rotate(-45deg); }
.hero {
  position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, rgba(15,59,99,.95), rgba(14,31,55,.74)), url('assets/images/img2.jpg') center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(198,161,91,.22), transparent 26%), linear-gradient(180deg, rgba(177,42,52,.12), transparent 30%);
}
.hero__inner { position: relative; z-index: 2; min-height: 640px; gap: 32px; padding: 88px 0; align-items: center; }
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12);
  margin-bottom: 18px; font-size: 14px; font-weight: 700; letter-spacing: .06em;
}
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.12; }
.hero p { margin: 0 0 28px; color: rgba(255,255,255,.82); font-size: 18px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__panel {
  width: min(420px, 100%); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: 26px;
  backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(5, 16, 28, .25);
}
.hero__panel h2 { margin: 0 0 10px; font-size: 22px; }
.hero__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero__panel li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(255,255,255,.16); padding-bottom: 12px; }
.hero__panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: -56px; position: relative; z-index: 3; }
.kpi { padding: 24px; text-align: center; }
.kpi strong { display: block; font-size: 34px; line-height: 1; color: var(--zn-primary); }
.kpi span { color: var(--zn-muted); font-size: 14px; }
.cn-divider {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px; color: var(--zn-primary); font-weight: 700;
}
.cn-divider::before, .cn-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(177,42,52,.35), transparent); }
.media-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.service-list .card__body, .case-list .card__body, .news-list .card__body { padding: 22px; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(177,42,52,.10), rgba(15,59,99,.12));
  color: var(--zn-primary); margin-bottom: 18px;
}
.timeline { display: grid; gap: 20px; }
.timeline__item {
  position: relative; padding: 22px 22px 22px 78px; background: #fff; border-radius: var(--zn-radius); border: 1px solid rgba(15,59,99,.08); box-shadow: var(--zn-shadow);
}
.timeline__item::before {
  content: attr(data-year); position: absolute; left: 22px; top: 22px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--zn-secondary); color: #fff; font-size: 13px; font-weight: 800;
}
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid rgba(15,59,99,.08); }
.breadcrumb { width: var(--zn-container); margin: 0 auto; padding: 16px 0; color: var(--zn-muted); font-size: 14px; }
.breadcrumb a { color: var(--zn-muted); }
.page-hero {
  position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(15,59,99,.94), rgba(178,32,44,.88)); color: #fff;
}
.page-hero__inner { width: var(--zn-container); margin: 0 auto; padding: 74px 0; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 48px); }
.page-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.84); }
.feature-list, .contact-list, .seo-list, .faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li, .contact-list li {
  padding: 18px 20px; border-radius: var(--zn-radius-sm); background: rgba(255,255,255,.76); border: 1px solid rgba(15,59,99,.08);
}
.contact-panel { padding: 28px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(15,59,99,.14); background: #fff;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .grid { gap: 16px; }
.notice-box {
  padding: 22px; border-radius: var(--zn-radius); background: linear-gradient(135deg, rgba(198,161,91,.16), rgba(255,255,255,.98)); border: 1px solid rgba(198,161,91,.34);
}
.faq-item {
  border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(15,59,99,.08); box-shadow: var(--zn-shadow);
}
.faq-question {
  width: 100%; text-align: left; padding: 18px 22px; background: transparent; color: var(--zn-secondary); box-shadow: none; border-radius: 0;
}
.faq-answer { display: none; padding: 0 22px 20px; color: var(--zn-muted); }
.faq-item.is-open .faq-answer { display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--zn-radius); overflow: hidden; }
th, td { padding: 15px 16px; border-bottom: 1px solid rgba(15,59,99,.08); text-align: left; }
th { background: rgba(15,59,99,.04); color: var(--zn-secondary); }
.badge-group { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(15,59,99,.06); color: var(--zn-secondary); }
.site-footer {
  margin-top: 56px; color: rgba(255,255,255,.82); background: linear-gradient(135deg, #152536, #0b1a29 58%);
}
.site-footer__top { align-items: flex-start; gap: 24px; padding: 56px 0 26px; }
.site-footer__brand { max-width: 340px; }
.site-footer__title { color: #fff; margin: 16px 0 10px; font-size: 24px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; flex: 1; }
.site-footer h3 { color: #fff; margin: 0 0 14px; font-size: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { min-height: 66px; border-top: 1px solid rgba(255,255,255,.08); gap: 14px; }
.footer-widget-area { margin-top: 22px; }
.footer-widget-area .widget { background: rgba(255,255,255,.04); padding: 16px; border-radius: 16px; }
.entry-content, .entry-summary, .post-content { color: var(--zn-text); }
.entry-content > *:first-child, .post-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child, .post-content > *:last-child { margin-bottom: 0; }
.post-navigation, .posts-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.archive-grid article { height: 100%; }
.widget ul { padding-left: 18px; }
.site-loading {
  position: fixed; inset: 0; display: grid; place-items: center; background: rgba(246,244,239,.88); z-index: 80; transition: opacity .35s ease, visibility .35s ease;
}
.site-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loading__dot {
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(177,42,52,.14); border-top-color: var(--zn-primary); animation: znSpin 1s linear infinite;
}
@keyframes znSpin { to { transform: rotate(360deg); } }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; width: auto; height: auto; background: #fff; color: var(--zn-primary); padding: 12px 16px; z-index: 100000;
}
.alignwide { width: min(1100px, calc(100% - 24px)); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.comment-respond, .comments-area { margin-top: 32px; background: #fff; padding: 24px; border-radius: var(--zn-radius); box-shadow: var(--zn-shadow); }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner, .site-footer__top { flex-direction: column; align-items: stretch; }
  .hero__panel { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 10px); background: #fff; border-radius: 20px; box-shadow: var(--zn-shadow); border: 1px solid rgba(15,59,99,.08);
    padding: 14px; display: none;
  }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation a { justify-content: space-between; }
  .menu-open .main-navigation { display: block; }
  .grid-3, .grid-2, .site-footer__grid { grid-template-columns: 1fr; }
  .site-topbar__inner, .site-header__inner, .site-footer__bottom { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .hero__inner { min-height: auto; }
  .section { padding: 62px 0; }
}
@media (max-width: 560px) {
  .grid-4, .kpis { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
}
