:root {
    --navy: #092a47;
    --blue: #0d5f8f;
    --cyan: #19a9c4;
    --sky: #e9f8fb;
    --coral: #ff786b;
    --ink: #173044;
    --muted: #627789;
    --line: #dbe8ee;
    --white: #fff;
    --shadow: 0 20px 55px rgba(15, 64, 91, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-site-lang="en"] [data-lang="zh"], html[data-site-lang="zh"] [data-lang="en"] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f7fbfd; font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 90px 0; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(9,42,71,.08); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { width: 42px; height: 42px; border-radius: 14px 5px 14px 5px; display: grid; place-items: center; color: white; font-size: 22px; font-weight: 800; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 8px 20px rgba(13,95,143,.25); }
.brand strong { display: block; font-size: 18px; letter-spacing: .03em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.main-nav a { color: #28485e; transition: color .2s; }
.main-nav a:hover { color: var(--cyan); }
.main-nav small { display: block; font-size: 9px; color: #8aa0ad; font-weight: 500; }
.main-nav .nav-cta { padding: 10px 17px; color: white; border-radius: 9px; background: var(--blue); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 25px; color: var(--navy); }
.language-switch { flex: 0 0 auto; min-width: 76px; padding: 9px 13px; color: var(--blue); border: 1px solid #a9cbd8; border-radius: 20px; background: #f4fbfc; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.language-switch:hover { color: white; border-color: var(--blue); background: var(--blue); }

.hero { min-height: 760px; position: relative; display: flex; align-items: center; overflow: hidden; background: #75cddd url('/static/images/main_backgroud.jpg') center bottom / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,37,64,.9) 0%, rgba(4,50,80,.67) 45%, rgba(7,76,103,.12) 76%); }
.hero-content { position: relative; z-index: 1; padding-top: 25px; padding-bottom: 180px; color: white; }
.hero-badge { display: inline-flex; padding: 7px 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 50px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero-kicker { margin: 25px 0 8px; max-width: 720px; font-size: 18px; letter-spacing: .03em; }
.hero h1 { max-width: 850px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6vw, 82px); line-height: 1.03; letter-spacing: -.035em; }
.hero-subtitle { max-width: 720px; margin: 18px 0 20px; font-size: 21px; color: #d9f7fb; }
.hero-cn { display: flex; flex-direction: column; padding-left: 18px; border-left: 4px solid var(--coral); }
.hero-cn strong { font-size: 24px; }
.hero-cn span { color: #d9f7fb; }
.hero-copy { max-width: 720px; margin: 24px 0; color: rgba(255,255,255,.88); font-size: 15px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: linear-gradient(135deg, var(--coral), #ff5f71); box-shadow: 0 12px 26px rgba(255,95,113,.25); }
.button.dark { color: white; background: var(--navy); }
.button.ghost { color: white; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.1); }
.button.ghost-dark { color: var(--navy); border: 1px solid #bcd0dc; background: white; }
.button.small { min-height: 38px; padding: 8px 14px; font-size: 12px; }
.button.full { width: 100%; }

.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 55px); line-height: 1.16; }
.section-heading .en-title { margin: 12px 0; color: var(--muted); font-size: 19px; }
.section-heading.centered { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-heading.compact h2 { font-size: 32px; }
.two-column { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.intro-section { background: white; }
.intro-copy { max-height: 510px; overflow: hidden; position: relative; }
.intro-copy::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, white); }
.rich-content { color: #354f61; font-size: 16px; }
.rich-content p { margin: 0 0 18px; }
.rich-content h2 { margin: 34px 0 12px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.rich-content h2:first-child { margin-top: 0; }

.tracks-section { background: linear-gradient(180deg, #f4fbfd, #e8f7fa); }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.track-card { min-height: 190px; padding: 25px; border: 1px solid rgba(19,110,143,.12); border-radius: 17px; background: rgba(255,255,255,.86); box-shadow: 0 14px 32px rgba(26,107,135,.07); transition: transform .25s, box-shadow .25s; }
.track-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.track-card span { color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.track-card h3 { margin: 13px 0 8px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.3; }
.track-card p { margin: 0; color: var(--muted); }
.center-actions { margin-top: 38px; text-align: center; }

.cta-section { padding: 70px 0; background: white; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 50px 56px; color: white; border-radius: 24px; background: linear-gradient(115deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.cta-card h2 { max-width: 740px; margin: 5px 0; font-size: 31px; }
.cta-card p { margin: 5px 0; color: #c9edf5; }

.page-hero { padding: 95px 0 75px; color: white; background: linear-gradient(115deg, rgba(5,44,72,.96), rgba(12,104,141,.88)), url('/static/images/main_backgroud.jpg') center 48% / cover; }
.page-hero h1 { margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 65px); }
.page-hero p:last-child { margin: 0; color: #cef2f7; font-size: 21px; }
.page-section { background: white; }
.single-language-content { max-width: 920px; }
.bilingual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.english-content { color: #536b7a; }
.language-label { display: inline-flex; margin-bottom: 28px; padding: 6px 12px; color: var(--blue); border-radius: 30px; background: var(--sky); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.page-tracks { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--line); }
.page-tracks > h2 { margin-bottom: 30px; color: var(--navy); font-size: 32px; text-align: center; }

.partners-section { padding: 60px 0; background: #f3f8fa; border-top: 1px solid var(--line); }
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 28px; }
.logo-item { height: 100px; padding: 14px; display: grid; place-items: center; border: 1px solid #83949f; border-radius: 11px; background: #71838f; }
.logo-item img { max-width: 100%; max-height: 70px; object-fit: contain; }
.site-footer { padding: 45px 0; color: #c8d9e2; background: #071f33; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1.5fr 1fr; gap: 35px; }
.footer-grid strong { color: white; font-size: 17px; }
.footer-grid p { margin: 5px 0; }
.footer-grid a { display: block; color: #7ed7e5; }

.form-page { min-height: 640px; padding: 75px 20px; display: grid; place-items: start center; background: linear-gradient(145deg, #edf9fb, #f8fbfd); }
.form-card { width: min(520px, 100%); padding: 42px; border: 1px solid rgba(13,95,143,.12); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.form-card h1 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 38px; }
.form-intro { margin: 8px 0 28px; color: var(--muted); }
.form-card form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; color: #29485c; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid #cddde4; border-radius: 8px; outline: none; background: white; font: inherit; font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,169,196,.12); }
textarea { resize: vertical; }
label small { color: var(--muted); font-weight: 400; }
.form-link { margin: 22px 0 0; text-align: center; color: var(--muted); }
.form-link a { color: var(--blue); font-weight: 750; }
.wide-form-card { width: min(880px, 100%); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.file-field { padding: 18px; border: 1px dashed #a9c8d5; border-radius: 10px; background: #f7fbfc; }
.agreement { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; padding: 15px; border-radius: 9px; background: #f5fafb; }
.agreement input { width: 18px; margin-top: 4px; }
.agreement a { color: var(--blue); }
.accepted-box { margin: 22px 0; padding: 18px; border-left: 4px solid var(--cyan); background: var(--sky); }
.accepted-box p { margin: 6px 0 0; }
.payment-amount { display: flex; align-items: center; justify-content: space-between; margin: 24px 0; padding: 20px; color: white; border-radius: 12px; background: var(--navy); }
.payment-amount strong { font-size: 24px; }
.payment-instructions { margin-bottom: 24px; padding: 18px; color: #405a6b; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; }

.dashboard-page { min-height: 650px; background: #f6fafc; }
.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.page-title-row h1 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 45px; }
.page-title-row p { margin: 2px 0; color: var(--muted); }
.submission-list { display: grid; gap: 17px; }
.submission-card { display: flex; justify-content: space-between; gap: 30px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 25px rgba(19,64,86,.05); }
.submission-main h2 { margin: 8px 0 2px; color: var(--navy); font-size: 21px; }
.submission-main > p { margin: 3px 0; color: var(--muted); }
.submission-no { display: inline; margin-left: 10px !important; font-size: 12px; font-weight: 800; }
.submission-actions { min-width: 170px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 9px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 30px; font-size: 11px; font-weight: 800; }
.status-pending { color: #956000; background: #fff2c8; }
.status-accepted { color: #087087; background: #dff7fa; }
.status-rejected { color: #a13e48; background: #ffe3e6; }
.status-paid { color: #197443; background: #dcf6e8; }
.paid-mark, .pending-mark { padding: 7px; text-align: center; border-radius: 6px; font-size: 12px; font-weight: 750; }
.paid-mark { color: #197443; background: #dcf6e8; }
.pending-mark { color: #956000; background: #fff2c8; }
.review-note { margin-top: 14px; padding: 12px; border-radius: 8px; background: #f2f7f9; font-size: 13px; }
.empty-state { padding: 80px 30px; text-align: center; border: 1px dashed #bdd1da; border-radius: 18px; background: white; }

.alert { padding: 13px 16px; border-radius: 9px; font-size: 14px; }
.alert.success { color: #17623d; background: #dff5e8; border: 1px solid #b7e2c9; }
.alert.error { color: #913a44; background: #ffe8ea; border: 1px solid #f2c5ca; }
.global-alert { margin-top: 16px; }
.auth-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; background: linear-gradient(145deg, #dff6fa, #f7fbfc); }
.auth-card { width: min(460px, 100%); padding: 40px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.auth-card h1 { margin-top: 0; color: var(--navy); }
.auth-card form { display: grid; gap: 18px; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 76px; left: 20px; right: 20px; padding: 18px; display: none; align-items: stretch; flex-direction: column; gap: 12px; border-radius: 12px; background: white; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .language-switch { margin-left: auto; }
    .main-nav small { display: inline; margin-left: 5px; }
    .hero { min-height: 720px; }
    .hero-content { padding-bottom: 120px; }
    .two-column, .bilingual-grid { grid-template-columns: 1fr; gap: 35px; }
    .track-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 26px, 1180px); }
    .section { padding: 60px 0; }
    .brand small { display: none; }
    .nav-wrap { gap: 10px; }
    .language-switch { min-width: 68px; padding: 8px 10px; }
    .hero { min-height: 700px; background-position: 57% bottom; }
    .hero-overlay { background: linear-gradient(90deg, rgba(4,37,64,.94), rgba(4,50,80,.72)); }
    .hero-content { padding-bottom: 95px; }
    .hero-kicker { font-size: 14px; }
    .hero h1 { font-size: 44px; }
    .hero-subtitle { font-size: 17px; }
    .hero-cn strong { font-size: 20px; }
    .hero-copy { font-size: 13px; }
    .track-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .track-card { min-height: auto; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-card { padding: 35px 25px; }
    .cta-card h2 { font-size: 25px; }
    .form-card { padding: 28px 20px; }
    .page-title-row, .submission-card { align-items: stretch; flex-direction: column; }
    .submission-actions { min-width: 0; }
}

.admin-body { min-height: 100vh; background: #f1f6f8; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 235px; padding: 28px 18px; color: #d8e8ef; background: #071f33; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--cyan); color: white; font-weight: 800; }
.admin-brand strong { color: white; }
.admin-brand small { display: block; color: #87a9b9; font-size: 10px; font-weight: 500; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 24px; }
.admin-sidebar nav a { padding: 11px 13px; border-radius: 8px; font-size: 14px; }
.admin-sidebar nav a:hover { color: white; background: rgba(255,255,255,.08); }
.admin-sidebar nav a.active { color: white; background: linear-gradient(135deg, rgba(25,169,196,.34), rgba(13,95,143,.55)); box-shadow: inset 3px 0 0 #55d8e9; }
.admin-main { min-height: 100vh; margin-left: 235px; padding: 38px; }
.admin-topbar { min-height: 42px; margin: -12px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-user-menu { position: relative; }
.admin-user-menu summary { padding: 7px 10px; display: flex; align-items: center; gap: 8px; color: var(--navy); border: 1px solid var(--line); border-radius: 22px; background: white; cursor: pointer; list-style: none; font-size: 13px; box-shadow: 0 6px 16px rgba(18,65,88,.06); }
.admin-user-menu summary::-webkit-details-marker { display: none; }
.admin-user-avatar { width: 27px; height: 27px; display: grid; place-items: center; color: white; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 12px; font-weight: 850; }
.admin-user-arrow { color: var(--muted); font-size: 10px; }
.admin-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 130px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); }
.admin-user-dropdown a { display: block; padding: 8px 10px; color: #a13e48; border-radius: 6px; font-size: 13px; font-weight: 700; }
.admin-user-dropdown a:hover { background: #fff0f1; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.admin-heading h1 { margin: 0; color: var(--navy); font-size: 38px; }
.admin-heading p { margin: 3px 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { color: var(--navy); font-size: 35px; }
.admin-panel { margin-bottom: 24px; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-heading h2, .admin-panel > h2 { margin: 0; color: var(--navy); font-size: 20px; }
.panel-heading a, .table-link { color: var(--blue); font-size: 13px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
td { padding: 13px 11px; border-bottom: 1px solid #edf2f4; vertical-align: top; }
td small { display: block; color: var(--muted); }
.admin-form-stack { display: grid; gap: 0; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code-textarea { min-height: 250px; font-family: Consolas, monospace; font-size: 12px; }
.topic-editor { display: grid; gap: 10px; }
.topic-row { display: grid; grid-template-columns: 35px 1fr 1.3fr 80px 75px; align-items: center; gap: 9px; }
.sort-input { text-align: center; }
.inline-check { display: flex; align-items: center; gap: 6px; }
.inline-check input { width: auto; }
.logo-upload-form { display: grid; grid-template-columns: 1fr 1fr 90px 1fr auto; align-items: end; gap: 12px; }
.admin-logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 25px; }
.admin-logo-item { min-width: 0; padding: 10px; display: grid; place-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; }
.admin-logo-item img { width: 100%; height: 70px; padding: 8px 10px; box-sizing: border-box; border-radius: 7px; background: #71838f; object-fit: contain; }
.admin-logo-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.admin-logo-item button { color: #a13e48; border: 0; background: none; cursor: pointer; }
.filter-form { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; margin-bottom: 20px; }
.admin-detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.detail-panel dl { display: grid; grid-template-columns: 115px 1fr; margin: 20px 0; }
.detail-panel dt, .detail-panel dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #edf2f4; }
.detail-panel dt { color: var(--muted); font-size: 12px; }
.detail-panel dd small { display: block; color: var(--muted); }
.long-text { white-space: normal; }
.current-status { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; padding: 15px; border-radius: 9px; background: #f3f8fa; }
.review-panel form { display: grid; gap: 17px; }
.payment-summary { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

.content-section-nav { position: sticky; top: 14px; z-index: 20; margin-bottom: 24px; padding: 12px; display: flex; gap: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 9px 25px rgba(18,65,88,.08); }
.content-section-nav a { flex: 0 0 auto; padding: 8px 13px; color: var(--blue); border-radius: 7px; background: #edf7fa; font-size: 12px; font-weight: 750; }
.content-section-nav a:hover { color: white; background: var(--blue); }
.content-edit-section { scroll-margin-top: 25px; }
.content-edit-section .panel-heading > div { display: flex; align-items: center; gap: 11px; }
.content-edit-section .panel-heading > span { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.section-number { min-width: 35px; padding: 5px 7px; color: white; border-radius: 6px; background: var(--blue); font-size: 10px; font-weight: 850; text-align: center; }
.section-save-row { margin-top: 20px; display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }
.page-title-fields { margin-bottom: 22px; }
.language-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor-field { min-width: 0; border: 1px solid #cbdde4; border-radius: 11px; overflow: hidden; background: #f8fbfc; }
.editor-field-title { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: white; }
.editor-field-title strong { color: var(--navy); font-size: 13px; }
.editor-field-title span { color: var(--muted); font-size: 10px; }
.rich-editor-toolbar { padding: 8px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #edf5f8; }
.rich-editor-toolbar button, .rich-editor-toolbar select { width: auto; min-height: 32px; padding: 5px 9px; color: #315166; border: 1px solid #bfd2db; border-radius: 5px; background: white; font: inherit; font-size: 11px; cursor: pointer; }
.rich-editor-toolbar button:hover { color: white; border-color: var(--blue); background: var(--blue); }
.rich-page-editor { min-height: 360px; max-height: 620px; padding: 18px; overflow: auto; outline: none; background: white; color: #304c5e; font-size: 14px; }
.rich-page-editor:focus { box-shadow: inset 0 0 0 2px rgba(25,169,196,.25); }
.rich-page-editor h2 { margin: 25px 0 10px; color: var(--navy); font-size: 23px; }
.rich-page-editor h3 { margin: 20px 0 8px; color: var(--blue); font-size: 18px; }
.rich-page-editor p { margin: 0 0 12px; }
.editor-source { display: none; }
.content-columns { margin: 22px 0; display: grid; gap: 18px; }
.content-columns > div { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f7fbfc; }
.content-columns.cols-1 { grid-template-columns: 1fr; }
.content-columns.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-columns.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-columns.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-logo-grid { grid-template-columns: repeat(4, 1fr); }
    .logo-upload-form { grid-template-columns: 1fr 1fr; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .language-editor-grid { grid-template-columns: 1fr; }
    .content-columns.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .admin-sidebar { position: static; width: 100%; }
    .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
    .admin-main { margin-left: 0; padding: 20px 13px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-heading { align-items: stretch; flex-direction: column; }
    .admin-form-grid, .filter-form, .logo-upload-form { grid-template-columns: 1fr; }
    .topic-row { grid-template-columns: 30px 1fr; }
    .topic-row input:nth-of-type(2) { grid-column: 2; }
    .admin-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .content-columns.cols-2, .content-columns.cols-3, .content-columns.cols-4 { grid-template-columns: 1fr; }
    .editor-field-title { align-items: flex-start; flex-direction: column; }
}
