/*
Theme Name: Study Abroad Theme
Theme URI: https://example.com/
Description: 日本留学中介平台主题。落地页转化导向，PC + H5 响应式，多语言就绪，SEO 与埋点集成。市场验证阶段专用。
Author: Study Abroad Team
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sa-theme
*/

/* =========================================================
   设计变量
   ========================================================= */
:root {
	--sa-primary: #d4372c;      /* 日式朱红，信任 + 行动感 */
	--sa-primary-dark: #a82a22;
	--sa-accent: #1f6feb;       /* 强调蓝 */
	--sa-ink: #1a1a2e;
	--sa-text: #33333a;
	--sa-muted: #6b7280;
	--sa-bg: #ffffff;
	--sa-bg-soft: #f7f8fa;
	--sa-border: #e5e7eb;
	--sa-success: #16a34a;
	--sa-radius: 12px;
	--sa-shadow: 0 8px 30px rgba(0,0,0,.08);
	--sa-max: 1180px;
	--sa-font: "Noto Sans JP","Noto Sans SC","Hiragino Sans",-apple-system,"Segoe UI",Roboto,sans-serif;
}

* { box-sizing: border-box; }

/* 抽屉收起时位于视口右侧外，禁止其撑出横向滚动条。
   body 用 overflow-x:clip（不会像 hidden 那样破坏 position:sticky 头部） */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: clip; }

body {
	margin: 0;
	font-family: var(--sa-font);
	color: var(--sa-text);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	/* 和风底：极淡的暖色→冷色纵向渐变，全站统一基调 */
	background-color: #fdf9f8;
	background-image:
		radial-gradient(1200px 600px at 85% -8%, rgba(212,55,44,.06), transparent 60%),
		radial-gradient(1000px 520px at 0% 8%, rgba(31,111,235,.05), transparent 55%),
		linear-gradient(180deg, #fdf9f8 0%, #f8fafc 42%, #ffffff 100%);
	background-attachment: fixed;
}

/* 极淡的樱花点缀纹样，铺在内容下方（纯 SVG data-URI，无外链） */
body::before {
	content: "";
	position: fixed; inset: 0; z-index: -1; pointer-events: none;
	opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23d4372c' fill-opacity='0.05'%3E%3Cpath d='M30 20c4-6 10-6 12 0 6-2 10 3 7 8 5 3 3 10-3 10 1 6-5 9-9 5-4 4-10 1-9-5-6 0-8-7-3-10-3-5 1-10 7-8 2-6 8-6 12 0z' transform='translate(-6 -6) scale(0.9)'/%3E%3Cpath d='M100 80c3-5 8-5 10 0 5-2 8 2 6 6 4 3 2 8-3 8 1 5-4 7-7 4-3 3-8 1-7-4-5 0-7-5-3-8-2-4 1-8 6-6 1-5 6-5 8 0z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 260px 260px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sa-accent); text-decoration: none; }

.sa-container { max-width: var(--sa-max); margin: 0 auto; padding: 0 20px; }

/* =========================================================
   Header
   ========================================================= */
.sa-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--sa-border);
}
.sa-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.sa-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--sa-ink); }
.sa-logo__mark { color: var(--sa-primary); }
.sa-nav > ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.sa-nav li { position: relative; }
.sa-nav a { color: var(--sa-text); font-size: 15px; white-space: nowrap; display: block; }
.sa-nav a:hover { color: var(--sa-primary); }

/* 二级菜单（下拉） */
.sa-nav .sub-menu {
	position: absolute; left: 0; top: 100%;
	background: #fff; border: 1px solid var(--sa-border); border-radius: 8px;
	box-shadow: var(--sa-shadow); list-style: none; margin: 0; padding: 6px;
	min-width: 180px; display: none; flex-direction: column; gap: 0; z-index: 120;
}
.sa-nav li:hover > .sub-menu { display: block; }
.sa-nav .sub-menu li { margin: 0; }
.sa-nav .sub-menu a { padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.sa-nav .sub-menu a:hover { background: var(--sa-bg-soft); }
/* 有子菜单的父项加箭头提示 */
.sa-nav .menu-item-has-children > a::after { content: "▾"; margin-left: 4px; font-size: 11px; opacity: .6; }

/* Drawer 容器：桌面端为普通行内布局（导航 + 语言 + CTA） */
.sa-drawer { display: flex; align-items: center; gap: 24px; }
.sa-drawer__head,
.sa-drawer__close { display: none; }
.sa-drawer__foot { display: flex; align-items: center; gap: 12px; }
.sa-drawer__overlay { display: none; }

/* 语言切换 */
.sa-lang { position: relative; }
.sa-lang__btn { background: none; border: 1px solid var(--sa-border); border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.sa-lang__menu { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--sa-border); border-radius: 8px; box-shadow: var(--sa-shadow); list-style: none; margin: 0; padding: 6px; min-width: 120px; display: none; }
.sa-lang:hover .sa-lang__menu { display: block; }
.sa-lang__menu li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--sa-text); font-size: 14px; }
.sa-lang__menu li a:hover { background: var(--sa-bg-soft); }

/* =========================================================
   Buttons
   ========================================================= */
.sa-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 15px;
	cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease;
}
.sa-btn--primary { background: var(--sa-primary); color: #fff; box-shadow: 0 6px 18px rgba(212,55,44,.3); }
.sa-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212,55,44,.4); }
.sa-btn--ghost { background: transparent; color: var(--sa-ink); border: 1px solid var(--sa-border); }
.sa-btn--block { width: 100%; }
.sa-btn--lg { padding: 16px 32px; font-size: 17px; }
.sa-btn--sm { padding: 8px 18px; font-size: 14px; }
.sa-btn:disabled,
.sa-btn[disabled] {
	background: #c4c8cf !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: not-allowed !important;
	transform: none !important;
	opacity: .85;
}

/* =========================================================
   Hero（落地页首屏）
   ========================================================= */
.sa-hero {
	position: relative;
	/* 渐变遮罩叠加背景图；图片加载失败时渐变兜底，保证文字对比度 */
	background:
		linear-gradient(135deg, rgba(255,245,244,.92) 0%, rgba(238,244,255,.92) 100%),
		url("assets/images/hero-bg.jpg") center/cover no-repeat;
	background-color: #fff5f4;
	overflow: hidden;
}
/* 首屏光晕：左右两团柔和光斑，增强层次与特色 */
.sa-hero::before,
.sa-hero::after {
	content: "";
	position: absolute; z-index: 0; border-radius: 50%;
	filter: blur(60px); pointer-events: none;
}
.sa-hero::before {
	width: 480px; height: 480px; top: -160px; right: -120px;
	background: radial-gradient(circle, rgba(212,55,44,.28), transparent 70%);
}
.sa-hero::after {
	width: 420px; height: 420px; bottom: -180px; left: -120px;
	background: radial-gradient(circle, rgba(31,111,235,.22), transparent 70%);
}
.sa-hero__inner { position: relative; z-index: 1; }
.sa-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 20px; }
.sa-hero__badge { display: inline-block; background: rgba(212,55,44,.1); color: var(--sa-primary); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; }
.sa-hero__title { font-size: 44px; line-height: 1.25; color: var(--sa-ink); margin: 0 0 20px; font-weight: 800; }
.sa-hero__title em { color: var(--sa-primary); font-style: normal; }
.sa-hero__sub { font-size: 18px; color: var(--sa-muted); margin: 0 0 28px; }
.sa-hero__points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.sa-hero__points li { font-size: 15px; color: var(--sa-text); position: relative; padding-left: 26px; }
.sa-hero__points li::before { content: "✓"; position: absolute; left: 0; color: var(--sa-success); font-weight: 700; }

/* =========================================================
   落地页表单卡
   ========================================================= */
.sa-form-card {
	background: #fff; border-radius: var(--sa-radius); box-shadow: var(--sa-shadow);
	padding: 28px; border: 1px solid var(--sa-border);
}
.sa-form-card__title { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--sa-ink); }
.sa-form-card__sub { font-size: 14px; color: var(--sa-muted); margin: 0 0 20px; }
.sa-field { margin-bottom: 16px; }
.sa-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--sa-text); }
.sa-field input, .sa-field select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--sa-border); border-radius: 8px;
	font-size: 15px; font-family: inherit; background: #fff;
}
.sa-field input:focus, .sa-field select:focus { outline: none; border-color: var(--sa-primary); box-shadow: 0 0 0 3px rgba(212,55,44,.12); }
.sa-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sa-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--sa-muted); margin-bottom: 16px; }
.sa-consent input { margin-top: 3px; }
.sa-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.sa-form-msg { margin-top: 12px; font-size: 14px; }
.sa-form-msg--ok { color: var(--sa-success); }
.sa-form-msg--err { color: var(--sa-primary); }

/* =========================================================
   Sections
   ========================================================= */
.sa-section { padding: 72px 0; position: relative; }
/* soft 区块用半透明白，让底层和风渐变/樱花纹样若隐若现 */
.sa-section--soft { background: rgba(247,248,250,.72); backdrop-filter: blur(2px); }
.sa-section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sa-section__tag { color: var(--sa-primary); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.sa-section__title { font-size: 34px; font-weight: 800; color: var(--sa-ink); margin: 8px 0 12px; }
.sa-section__desc { color: var(--sa-muted); font-size: 16px; }

.sa-grid { display: grid; gap: 24px; }
.sa-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sa-grid--4 { grid-template-columns: repeat(4, 1fr); }

.sa-card { background: #fff; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); padding: 28px; transition: box-shadow .2s ease, transform .2s ease; }
.sa-card:hover { box-shadow: var(--sa-shadow); transform: translateY(-3px); }
.sa-card__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(212,55,44,.1); color: var(--sa-primary); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.sa-card__title { font-size: 18px; font-weight: 700; color: var(--sa-ink); margin: 0 0 8px; }
.sa-card__text { font-size: 15px; color: var(--sa-muted); margin: 0; }

/* 流程 */
.sa-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.sa-step { text-align: center; position: relative; }
.sa-step__num { width: 52px; height: 52px; border-radius: 50%; background: var(--sa-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin: 0 auto 16px; }
.sa-step__title { font-weight: 700; color: var(--sa-ink); margin: 0 0 6px; }
.sa-step__text { font-size: 14px; color: var(--sa-muted); }

/* FAQ */
.sa-faq { max-width: 820px; margin: 0 auto; }
.sa-faq__item { border-bottom: 1px solid var(--sa-border); padding: 20px 0; }
.sa-faq__q { font-weight: 700; color: var(--sa-ink); margin: 0 0 8px; font-size: 17px; }
.sa-faq__a { color: var(--sa-muted); margin: 0; font-size: 15px; }

/* CTA band */
.sa-cta-band { background: linear-gradient(135deg, var(--sa-primary) 0%, var(--sa-primary-dark) 100%); color: #fff; text-align: center; padding: 64px 20px; }
.sa-cta-band h2 { font-size: 30px; margin: 0 0 12px; font-weight: 800; }
.sa-cta-band p { opacity: .9; margin: 0 0 24px; }
.sa-cta-band .sa-btn--primary { background: #fff; color: var(--sa-primary); box-shadow: none; }

/* trust logos */
.sa-logos { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; opacity: .7; }
.sa-logos span { font-weight: 700; color: var(--sa-muted); font-size: 18px; }

/* =========================================================
   面包屑
   ========================================================= */
.sa-breadcrumb { padding: 16px 0 0; }
.sa-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--sa-muted); }
.sa-breadcrumb li:not(:last-child)::after { content: "／"; margin-left: 6px; color: var(--sa-border); }
.sa-breadcrumb a { color: var(--sa-muted); }
.sa-breadcrumb a:hover { color: var(--sa-primary); }
.sa-breadcrumb [aria-current="page"] { color: var(--sa-text); font-weight: 600; }

/* =========================================================
   站点页统一页头
   ========================================================= */
.sa-page-head { background: var(--sa-bg-soft); border-bottom: 1px solid var(--sa-border); padding: 24px 0 36px; }
.sa-page-head__title { font-size: 34px; font-weight: 800; color: var(--sa-ink); margin: 12px 0 8px; }
.sa-page-head__sub { font-size: 16px; color: var(--sa-muted); margin: 0; max-width: 720px; }
@media (max-width: 600px) {
	.sa-page-head__title { font-size: 26px; }
}

/* =========================================================
   感谢页 / 转化确认
   ========================================================= */
.sa-thanks { padding: 80px 0; background: linear-gradient(135deg, #fff5f4 0%, #eef4ff 100%); min-height: 60vh; }
.sa-thanks__inner { max-width: 680px; text-align: center; }
.sa-thanks__icon { color: var(--sa-success); margin: 0 auto 20px; width: 56px; height: 56px; }
.sa-thanks__title { font-size: 32px; font-weight: 800; color: var(--sa-ink); margin: 0 0 16px; }
.sa-thanks__lead { font-size: 17px; color: var(--sa-muted); margin: 0 0 36px; }
.sa-thanks__steps { background: #fff; border: 1px solid var(--sa-border); border-radius: var(--sa-radius); padding: 28px; text-align: left; box-shadow: var(--sa-shadow); margin-bottom: 32px; }
.sa-thanks__subtitle { font-size: 18px; font-weight: 700; color: var(--sa-ink); margin: 0 0 16px; }
.sa-thanks__steps ol { margin: 0; padding-left: 22px; color: var(--sa-text); }
.sa-thanks__steps li { margin-bottom: 10px; font-size: 15px; }
.sa-thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sa-thanks__extra { margin-top: 32px; text-align: left; color: var(--sa-muted); }

@media (max-width: 600px) {
	.sa-thanks { padding: 48px 0; }
	.sa-thanks__title { font-size: 26px; }
	.sa-thanks__actions .sa-btn { width: 100%; }
}

/* =========================================================
   Footer
   ========================================================= */
.sa-footer { background: var(--sa-ink); color: #cbd5e1; padding: 48px 0 24px; }
.sa-footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.sa-footer__brand { max-width: 320px; }
.sa-footer__brand .sa-logo { color: #fff; }
.sa-footer a { color: #cbd5e1; }
.sa-footer a:hover { color: #fff; }
.sa-footer__col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.sa-footer__col ul { list-style: none; padding: 0; margin: 0; }
.sa-footer__col li { margin-bottom: 8px; font-size: 14px; }
.sa-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #94a3b8; }

/* =========================================================
   移动端固定 CTA 条（H5）
   ========================================================= */
.sa-mobile-cta { display: none; }

/* 移动菜单按钮 */
.sa-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.sa-menu-btn span { width: 22px; height: 2px; background: var(--sa-ink); display: block; }

/* =========================================================
   响应式 H5
   ========================================================= */
@media (max-width: 900px) {
	.sa-hero__inner { grid-template-columns: 1fr; padding: 40px 20px; }
	.sa-hero__title { font-size: 32px; }
	.sa-grid--3, .sa-grid--4, .sa-steps { grid-template-columns: 1fr 1fr; }

	/* 汉堡按钮显示 */
	.sa-menu-btn { display: flex; }

	/* Drawer 变为全屏抽屉 */
	.sa-drawer {
		position: fixed; top: 0; right: 0; left: 0; bottom: 0;
		height: 100vh; height: 100dvh;
		width: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; z-index: 200;
		transform: translateX(100%);
		transition: transform .32s cubic-bezier(.4,0,.2,1);
		overflow-y: auto;
		padding: 0 0 24px;
	}
	.sa-drawer.is-open { transform: translateX(0); }

	.sa-drawer__head {
		display: flex; align-items: center; justify-content: space-between;
		padding: 16px 20px; border-bottom: 1px solid var(--sa-border);
		position: sticky; top: 0; background: #fff; z-index: 1;
	}
	.sa-drawer__close {
		display: block; background: none; border: none; cursor: pointer;
		font-size: 30px; line-height: 1; color: var(--sa-ink); padding: 0 4px;
	}

	/* 导航在抽屉里纵向排列 */
	.sa-drawer .sa-nav { display: block; }
	.sa-nav > ul { flex-direction: column; gap: 0; }
	.sa-nav > ul > li { border-bottom: 1px solid var(--sa-bg-soft); }
	.sa-nav a { padding: 15px 20px; font-size: 16px; }
	.sa-nav .menu-item-has-children > a::after { float: right; }

	/* 抽屉里的二级菜单常驻展开（去掉 hover 依赖） */
	.sa-nav .sub-menu {
		position: static; display: block; box-shadow: none; border: none;
		border-radius: 0; padding: 0; min-width: 0; background: var(--sa-bg-soft);
	}
	.sa-nav .sub-menu a { padding: 12px 20px 12px 36px; font-size: 15px; }

	/* 抽屉底部：语言 + 無料相談 */
	.sa-drawer__foot {
		flex-direction: column; align-items: stretch; gap: 14px;
		padding: 20px; margin-top: 4px;
	}
	.sa-drawer__foot .sa-lang { width: 100%; }
	/* 抽屉里语言列表已常驻展开，隐藏多余的「日本語 ▾」切换按钮 */
	.sa-drawer__foot .sa-lang__btn { display: none; }
	.sa-drawer__foot .sa-lang__menu {
		position: static; display: block; box-shadow: none; border: none;
		padding: 0; min-width: 0; background: transparent;
	}
	.sa-drawer__foot .sa-lang__menu li a { padding: 12px 16px; border-radius: 10px; font-size: 15px; }
	.sa-drawer__foot .sa-btn--primary { width: 100%; padding: 14px; }

	/* 遮罩（hidden 属性时不显示、不拦截点击） */
	.sa-drawer__overlay {
		position: fixed; inset: 0; z-index: 190;
		background: rgba(20,20,35,.5); opacity: 0; transition: opacity .3s ease;
	}
	.sa-drawer__overlay:not([hidden]) { display: block; }
	.sa-drawer__overlay.is-open { opacity: 1; }

	/* 抽屉打开时锁滚动 */
	body.sa-drawer-open { overflow: hidden; }
}

/* 全局：隐藏属性优先，防止遮罩在关闭态拦截点击 */
.sa-drawer__overlay[hidden] { display: none !important; }

@media (max-width: 600px) {
	.sa-hero__title { font-size: 27px; }
	.sa-section { padding: 48px 0; }
	.sa-section__title { font-size: 26px; }
	.sa-grid--3, .sa-grid--4, .sa-steps { grid-template-columns: 1fr; }
	.sa-field--row { grid-template-columns: 1fr; }
	.sa-footer__top { flex-direction: column; }

	/* H5 底部固定 CTA */
	.sa-mobile-cta {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
		background: #fff; border-top: 1px solid var(--sa-border); padding: 10px 16px;
		gap: 10px; box-shadow: 0 -4px 20px rgba(0,0,0,.08);
	}
	.sa-mobile-cta .sa-btn { flex: 1; }
	body { padding-bottom: 72px; }
}

/* =========================================================
   AI 诊断结果（同页即时弹出）
   ========================================================= */
.sa-diagnose-result { margin-top: 20px; border-top: 1px dashed var(--sa-border); padding-top: 20px; }
.sa-diag-title { font-size: 16px; font-weight: 800; color: var(--sa-ink); margin: 0 0 14px; letter-spacing: .5px; }
.sa-diag-empty { color: var(--sa-muted); font-size: 14px; margin: 0; }
.sa-diag-card {
	background: #fff; border: 1px solid var(--sa-border); border-radius: 10px;
	padding: 16px; margin-bottom: 12px; transition: box-shadow .2s ease;
}
.sa-diag-card:hover { box-shadow: var(--sa-shadow); }
.sa-diag-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sa-diag-card__name { font-weight: 700; color: var(--sa-ink); font-size: 15px; }
.sa-diag-card__pct {
	flex: none; background: rgba(212,55,44,.1); color: var(--sa-primary);
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 14px; white-space: nowrap;
}
.sa-diag-card__meta { font-size: 13px; color: var(--sa-muted); margin: 6px 0 10px; }
.sa-diag-bar { height: 6px; background: var(--sa-bg-soft); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.sa-diag-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sa-primary), var(--sa-primary-dark)); border-radius: 4px; transition: width .5s ease; }
.sa-diag-card__btn { width: 100%; font-size: 14px; padding: 10px 16px; }

/* =========================================================
   轮播（信任背书区）
   ========================================================= */
.sa-carousel { position: relative; max-width: 960px; margin: 0 auto; border-radius: var(--sa-radius); overflow: hidden; box-shadow: var(--sa-shadow); }
.sa-carousel__viewport { overflow: hidden; }
.sa-carousel__track { display: flex; transition: transform .5s ease; }
.sa-carousel__slide { flex: 0 0 100%; }
.sa-carousel__slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.sa-carousel__prev, .sa-carousel__next {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,.85); border: none; width: 40px; height: 40px; border-radius: 50%;
	cursor: pointer; font-size: 20px; color: var(--sa-ink); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.sa-carousel__prev { left: 12px; }
.sa-carousel__next { right: 12px; }
.sa-carousel__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.sa-carousel__dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.sa-carousel__dot.is-active { background: #fff; }
@media (max-width: 600px) {
	.sa-carousel__slide img { height: 220px; }
}

/* =========================================================
   资料上传页
   ========================================================= */
.sa-upload-wrap { max-width: 760px; margin: 0 auto; padding: 40px 0; }
.sa-upload-intro { color: var(--sa-muted); margin: 0 0 24px; }
.sa-upload-school { font-size: 18px; font-weight: 700; color: var(--sa-ink); margin: 24px 0 12px; }
.sa-upload-item {
	background: #fff; border: 1px solid var(--sa-border); border-radius: 10px;
	padding: 16px; margin-bottom: 12px;
}
.sa-upload-item.is-uploaded { border-color: var(--sa-success); }
.sa-upload-item__label { font-weight: 600; color: var(--sa-ink); margin: 0 0 8px; font-size: 15px; }
.sa-upload-item__req { color: var(--sa-primary); margin-left: 4px; }
.sa-upload-item textarea,
.sa-upload-final textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--sa-border); border-radius: 8px;
	font-family: inherit; font-size: 14px; margin-bottom: 10px; background: #fff;
	box-sizing: border-box; color: var(--sa-ink);
	min-height: 100px; resize: vertical;
}

/* 自定义附件上传区（隐藏原生 input，样式化 dropzone） */
.sa-dropzone {
	display: flex; align-items: center; gap: 14px;
	padding: 16px 18px; border: 1.5px dashed var(--sa-border); border-radius: 10px;
	background: #fafbfc; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s;
	position: relative;
}
.sa-dropzone:hover { border-color: var(--sa-primary); background: #fff; }
.sa-dropzone.is-dragover { border-color: var(--sa-primary); background: #fff5f4; box-shadow: 0 0 0 3px rgba(212,55,44,.08); }
.sa-dropzone input[type="file"] {
	position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: 0;
}
.sa-dropzone__icon {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(212,55,44,.08); color: var(--sa-primary); transition: background .18s, color .18s;
}
.sa-dropzone:hover .sa-dropzone__icon { background: var(--sa-primary); color: #fff; }
.sa-dropzone__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-dropzone__title {
	font-weight: 600; color: var(--sa-ink); font-size: 14px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.sa-dropzone__hint { font-size: 12px; color: var(--sa-muted); }
/* 上传中 / 已完成状态 */
.sa-dropzone.is-loading { pointer-events: none; opacity: .75; }
.sa-dropzone.is-uploaded {
	border-style: solid; border-color: var(--sa-success);
	background: rgba(46,160,67,.06); cursor: default;
}
.sa-dropzone.is-uploaded .sa-dropzone__icon { background: var(--sa-success); color: #fff; }
.sa-dropzone.is-uploaded:hover { border-color: var(--sa-success); background: rgba(46,160,67,.06); }
.sa-dropzone.is-uploaded:hover .sa-dropzone__icon { background: var(--sa-success); color: #fff; }
.sa-upload-item__actions { min-height: 20px; margin-top: 8px; }
.sa-upload-status { font-size: 13px; margin-left: 10px; }
.sa-upload-status--ok { color: var(--sa-success); font-weight: 600; }
.sa-upload-status--err { color: var(--sa-primary); }
.sa-upload-final {
	background: #fff; border: 1px solid var(--sa-border); border-radius: 10px;
	padding: 20px; margin-top: 24px;
}
.sa-upload-final__hint { color: var(--sa-muted); font-size: 13px; margin: 0 0 14px; }
.sa-upload-final .sa-btn { width: 100%; }
.sa-upload-expired { text-align: center; padding: 60px 20px; }
.sa-upload-expired h1 { font-size: 24px; color: var(--sa-ink); margin: 0 0 12px; }
.sa-upload-expired p { color: var(--sa-muted); margin: 0 0 24px; }
