:root {
  --navy: #102d5b;
  --navy-deep: #081d3c;
  --orange: #e9711b;
  --orange-soft: #fff0e5;
  --ink: #172235;
  --muted: #64748b;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --line: #dce3eb;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(16, 45, 91, 0.1);
  --shadow-card: 0 14px 34px rgba(16, 45, 91, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.page-shell { min-width: 320px; overflow-x: clip; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(220,227,235,.8); backdrop-filter: blur(14px); }
.topline { background: var(--navy-deep); color: #d7e4f5; font-size: 12px; }
.topline-inner { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 195px; }
.brand img { width: 172px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: #3d4b60; }
.nav-links a { padding: 28px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); border-color: var(--orange); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; color: white; background: var(--orange); border-radius: 3px; font-size: 14px; font-weight: 700; }
.nav-cta:hover { background: #cf5d10; }
.hero { background: var(--navy-deep); color: white; position: relative; overflow: hidden; }
.home-page .hero { background-image: linear-gradient(90deg, rgba(8,29,60,.94) 0%, rgba(8,29,60,.88) 48%, rgba(8,29,60,.76) 100%), url("../public/assets/company/gpt-image2_20260818_014058_1.png"); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -220px; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 120px rgba(255,255,255,.025); }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #ffb275; font-size: 13px; letter-spacing: .08em; font-weight: 700; }
.eyebrow::before { content: ""; display: block; width: 36px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 650px; margin: 25px 0 20px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.1; letter-spacing: 0; }
.hero h1 em { color: #ff974d; font-style: normal; }
.hero-copy { max-width: 510px; color: #bdcce0; line-height: 1.9; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 700; }
.button-primary { color: white; background: var(--orange); }
.button-secondary { color: white; background: transparent; border-color: rgba(255,255,255,.35); }
.button:focus-visible, .admin-nav button:focus-visible, .nav-links a:focus-visible { outline: 3px solid #ffb275; outline-offset: 3px; }
.button:hover { transform: translateY(-1px); }
.button-primary:hover { background: #cf5d10; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 13px; }
.button-status { color: var(--navy); background: #e7eef8; border-color: #b9c9dc; }
.button-status:hover { color: white; background: var(--navy); border-color: var(--navy); }
.button-danger { color: #a52c24; background: #fff0ef; border-color: #e7aaa5; }
.button-danger:hover { color: white; background: #b33a31; border-color: #b33a31; }
.admin .button-secondary { color: var(--navy); background: white; border-color: #9aaac0; }
.admin .button-secondary:hover { color: white; background: var(--navy); border-color: var(--navy); }
.admin .row-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 255px; }
.admin .row-actions .button { box-shadow: none; font-weight: 700; }
.admin .button-status { color: #9b4800; background: #fff4e8; border-color: #efbb8d; }
.admin .button-status:hover { color: white; background: var(--orange); border-color: var(--orange); }
.admin .button-danger { border-color: #e7aaa5; }
.admin .admin-table td { vertical-align: middle; }
.admin .admin-table td:first-child { min-width: 220px; }
.admin .admin-table small { display: inline-block; margin-top: 4px; color: var(--muted); }
.hero-visual { position: relative; min-height: 405px; display: flex; align-items: center; justify-content: center; }
.visual-panel { width: min(100%, 500px); padding: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); box-shadow: 0 25px 60px rgba(0,0,0,.18); }
.visual-panel img { width: 100%; height: auto; display: block; object-fit: contain; object-position: center; background: white; filter: saturate(.9) contrast(1.02); }
.visual-label { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding-top: 16px; }
.visual-label strong { font-size: 22px; }
.visual-label span { color: #a9bed8; font-size: 12px; }
.section { padding: 98px 0; }
.section-white { background: white; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading h2 { margin: 12px 0 14px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.17; }
.section-heading p { color: var(--muted); line-height: 1.85; margin: 0; }
.section-heading .eyebrow { color: var(--orange); }
.section-heading .eyebrow::before { background: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: white; padding: 28px 24px; }
.stat strong { color: var(--navy); font-size: 42px; line-height: 1; }
.stat strong span { color: var(--orange); font-size: 24px; }
.stat p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.content-card, .service-card { min-height: 220px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.content-card:hover, .service-card:hover { transform: translateY(-4px); border-color: #f1b189; box-shadow: var(--shadow-card); }
.content-card:focus-within, .service-card:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,113,27,.13); }
.card-meta { min-height: 1.7em; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy); font-weight: 700; }
.content-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 20px; border: 1px solid var(--line); }
.service-card .index { color: var(--orange); font-size: 13px; font-weight: 800; }
.service-card h3 { margin: 34px 0 12px; color: var(--navy); font-size: 22px; }
.service-card p { color: var(--muted); line-height: 1.75; margin: 0; white-space: pre-wrap; }
.consultant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consultant-card { position: relative; }
.consultant-avatar, .consultant-photo { width: 116px; height: 142px; display: block; margin-bottom: 18px; border: 1px solid var(--line); object-fit: cover; object-position: center top; }
.consultant-avatar { display: grid; place-items: center; border-color: var(--orange); color: var(--orange); font-family: Georgia, serif; font-size: 30px; }
.consultant-card h3 small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.consultant-card .consultant-title { min-height: 3.5em; color: var(--navy); font-weight: 700; }
.consultant-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; color: var(--orange); font-size: 13px; font-weight: 700; }
.consultant-focus { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.consultant-focus span { padding: 5px 8px; color: var(--navy); background: var(--orange-soft); font-size: 12px; }
.content-status { display: inline-block; margin-top: 16px; color: var(--orange); font-size: 12px; }
.course-summary { min-height: 5.25em; }
.course-highlights { min-height: 3.5em; }
.course-detail-button { width: 100%; margin-top: 20px; }
.modal-open { overflow: hidden; }
.course-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(8,29,60,.72); }
.course-modal[hidden] { display: none; }
.course-modal-panel { width: min(900px, 100%); max-height: min(900px, calc(100vh - 48px)); overflow: auto; padding: 30px; background: white; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.course-modal-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.course-modal-header h2 { margin: 12px 0 0; color: var(--navy); font-size: clamp(26px, 4vw, 42px); line-height: 1.2; }
.modal-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid #9aaac0; color: var(--navy); background: white; font-size: 28px; line-height: 1; }
.modal-close:hover { color: white; background: var(--navy); }
.course-modal-summary { margin: 20px 0; color: var(--muted); font-size: 16px; line-height: 1.8; white-space: pre-wrap; }
.news-modal-body p { margin: 0 0 16px; color: var(--ink); line-height: 1.9; white-space: pre-wrap; }
.news-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-gallery-item { margin: 0; border: 1px solid var(--line); background: var(--surface-muted); }
.news-gallery-item img { display: block; width: 100%; height: auto; background: #e9eef4; }
.news-gallery-item figcaption { display: grid; gap: 4px; padding: 12px 14px; line-height: 1.5; }
.news-gallery-item figcaption strong { color: var(--navy); font-size: 15px; }
.news-gallery-item figcaption span { color: var(--muted); font-size: 13px; }
.course-modal-image { display: block; width: 180px; height: 180px; margin: 0 0 24px; object-fit: cover; border: 1px solid var(--line); }
.course-modal-panel section { margin-top: 26px; }
.course-modal-panel section h3 { margin: 0 0 12px; color: var(--navy); font-size: 20px; }
.detail-table { width: 100%; border-collapse: collapse; background: #fbfcfe; }
.course-modal-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.course-modal-table-wrap .detail-table { min-width: 620px; border: 0; }
.detail-table th, .detail-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; white-space: pre-wrap; }
.detail-table th { width: 150px; color: var(--navy); background: #f1f5f9; font-weight: 700; }
.detail-table-wide th { width: 170px; white-space: nowrap; }
.curriculum-table { table-layout: fixed; }
.curriculum-table th:nth-child(1), .curriculum-table .curriculum-category { width: 24%; }
.curriculum-table th:nth-child(2), .curriculum-table .curriculum-number { width: 10%; text-align: center; }
.curriculum-table th:nth-child(3), .curriculum-table .curriculum-title { width: 66%; }
.curriculum-table .curriculum-category { vertical-align: middle; font-weight: 600; background: #f7f9fc; }
.course-modal-footer { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.course-modal-footer .button-secondary { color: var(--navy); background: white; border-color: #9aaac0; }
.course-modal-footer .button-secondary:hover { color: white; background: var(--navy); }
.course-modal-footer .modal-close { width: auto; height: auto; min-height: 48px; padding: 0 20px; font-size: 14px; line-height: inherit; }
.case-modal-panel { width: min(1080px, 100%); }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-gallery-item { margin: 0; border: 1px solid var(--line); background: var(--surface-muted); }
.case-gallery-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9eef4; }
.case-gallery-item figcaption { display: grid; gap: 4px; padding: 14px 16px 16px; line-height: 1.5; }
.case-gallery-item figcaption strong { color: var(--navy); font-size: 15px; }
.case-gallery-item figcaption span { color: var(--muted); font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 235px; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-published { color: #176b3a; background: #e8f6ee; }
.status-draft { color: #875b00; background: #fff5d8; }
.status-offline { color: #667085; background: #eef1f5; }
@media (max-width: 720px) { .consultant-grid { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: center; }
.split img { display: block; width: 100%; border: 12px solid #edf2f7; }
.list { display: grid; gap: 18px; padding: 0; margin: 26px 0 0; list-style: none; }
.list li { display: flex; gap: 14px; line-height: 1.7; color: #445268; }
.list li::before { content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-top: 9px; background: var(--orange); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process-step { position: relative; padding: 30px 24px 10px 0; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: 18px; width: 34px; height: 1px; background: var(--orange); }
.process-step strong { color: var(--orange); font-size: 13px; }
.process-step h3 { color: var(--navy); margin: 15px 0 10px; }
.process-step p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.cta-band { background: var(--orange); color: white; padding: 64px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0 0 10px; font-size: 32px; }
.cta-band p { margin: 0; color: #fff1e6; }
.cta-band .button { background: var(--navy-deep); }
.site-footer { background-image: linear-gradient(rgba(8,29,60,.94), rgba(8,29,60,.96)), url("../public/assets/company/gpt-image2_20260818_014058_1.png"); background-size: cover; background-position: center; color: white; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 40px; }
.footer-brand img { width: 180px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 340px; color: #9eb2cc; line-height: 1.8; }
.footer-title { margin: 0 0 18px; color: #ffab6e; font-size: 13px; letter-spacing: .08em; }
.footer-links { display: grid; gap: 12px; color: #b4c4d8; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #8195af; font-size: 12px; }
.page-hero { padding: 90px 0 74px; background-image: linear-gradient(90deg, rgba(8,29,60,.93), rgba(8,29,60,.79)), url("../public/assets/company/gpt-image2_20260818_014058_1.png"); background-size: cover; background-position: center; color: white; }
.page-hero h1 { margin: 18px 0 12px; font-size: clamp(40px, 6vw, 66px); }
.page-hero p { max-width: 650px; color: #b8c9de; line-height: 1.8; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-panel h2 { color: var(--navy); margin-top: 0; }
.contact-item { display: flex; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); color: #4d5a6c; }
.contact-item svg { color: var(--orange); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px; background: #fbfcfd; outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,113,27,.13); }
.field label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-muted); color: var(--ink); line-height: 1.65; font-weight: 500; cursor: pointer; }
.field label:has(input[type="checkbox"]):focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,113,27,.13); }
.field label:has(input[type="checkbox"]) input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--orange); box-shadow: none; cursor: pointer; }
#form-feedback { min-height: 1.8em; margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid var(--orange); background: var(--surface-muted); color: var(--navy); line-height: 1.7; }
#form-feedback:empty { display: none; }
.muted { color: var(--muted); }
@media (max-width: 900px) {
  .topline-inner { justify-content: center; }
  .topline-inner span:last-child { display: none; }
  .nav-row { min-height: 68px; flex-wrap: wrap; column-gap: 16px; padding-top: 10px; }
  .nav-links { order: 3; flex: 0 0 100%; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: 13px; }
  .nav-links a { padding: 12px 0; white-space: nowrap; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid { padding: 70px 0 88px; }
  .hero-visual { min-height: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .process-step:not(:last-child)::after { display: none; }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand img { width: 150px; }
  .nav-cta { padding: 10px 12px; font-size: 12px; }
  .nav-links { gap: 0 12px; font-size: 12px; }
  .hero h1 { font-size: 42px; }
  .service-grid, .stats, .process, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .footer-bottom { flex-direction: column; }
  .course-modal { padding: 12px; }
  .course-modal-panel { max-height: calc(100vh - 24px); padding: 20px 16px; }
  .course-modal-header h2 { font-size: 27px; }
  .case-gallery { grid-template-columns: 1fr; }
  .news-gallery { grid-template-columns: 1fr; }
  .detail-table th { width: 112px; }
  .detail-table-wide th { width: 105px; white-space: normal; }
}
