:root {
	--atm-bg: #f3f0ea;
	--atm-ink: #1f2430;
	--atm-muted: #667085;
	--atm-accent: #0f6b5c;
	--atm-accent-2: #c45c26;
	--atm-panel: rgba(255, 255, 255, 0.88);
	--atm-line: rgba(31, 36, 48, 0.12);
	--atm-shadow: 0 18px 50px rgba(31, 36, 48, 0.08);
}

body.all-to-md-direct {
	margin: 0;
	min-height: 100vh;
	color: var(--atm-ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(15, 107, 92, 0.18), transparent 60%),
		radial-gradient(900px 420px at 90% 0%, rgba(196, 92, 38, 0.16), transparent 55%),
		linear-gradient(180deg, #f7f4ee 0%, #efe8dc 100%);
	font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.atm-page__main,
.atm-page__footer {
	width: min(920px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}

body.all-to-md-direct .atm-page__header {
	width: 100%;
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.72);
	border-bottom: 1px solid var(--atm-line);
	backdrop-filter: blur(10px);
}

body.all-to-md-direct .atm-page__header-inner {
	width: min(920px, calc(100% - 32px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 20px;
	min-height: 64px;
	padding: 10px 0;
}

body.all-to-md-direct .atm-page__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	grid-column: 1;
	justify-self: start;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

body.all-to-md-direct .atm-page__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	grid-column: 2;
	justify-self: start;
	min-width: 0;
}

body.all-to-md-direct .atm-page__nav a {
	color: var(--atm-muted);
	text-decoration: none;
	font-size: 0.95rem;
}

body.all-to-md-direct .atm-page__nav a:hover,
body.all-to-md-direct .atm-page__nav a.is-active {
	color: var(--atm-accent);
}

body.all-to-md-direct .atm-page__logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	flex: 0 0 auto;
}

body.all-to-md-direct .atm-page__name {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

body.all-to-md-direct .atm-page__account {
	display: flex;
	align-items: center;
	gap: 10px;
	grid-column: 3;
	justify-self: end;
}

.atm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.atm-btn:hover {
	transform: translateY(-1px);
}

.atm-btn--ghost {
	color: var(--atm-accent);
	background: rgba(255, 255, 255, 0.72);
	border-color: rgba(15, 107, 92, 0.22);
}

.atm-btn--ghost:hover {
	color: #0b5247;
	background: #fff;
	border-color: rgba(15, 107, 92, 0.4);
}

.atm-btn--primary {
	color: #fff;
	background: var(--atm-accent);
	border-color: var(--atm-accent);
}

.atm-btn--primary:hover {
	color: #fff;
	background: #0c574b;
	border-color: #0c574b;
}

.atm-page__main {
	padding: 12px 0 48px;
}

.atm-page__footer {
	padding: 24px 0 48px;
	color: var(--atm-muted);
	font-size: 0.92rem;
	border-top: 1px solid var(--atm-line);
}

.atm {
	background: var(--atm-panel);
	backdrop-filter: blur(10px);
	border: 1px solid var(--atm-line);
	box-shadow: var(--atm-shadow);
	border-radius: 18px;
	padding: 28px 24px 24px;
}

.atm__hero {
	text-align: center;
	margin-bottom: 22px;
}

.atm__title {
	margin: 0;
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	line-height: 1.25;
}

.atm__subtitle {
	margin: 8px 0 0;
	color: var(--atm-muted);
	font-size: clamp(0.98rem, 1.6vw, 1.12rem);
	line-height: 1.45;
}

.atm__lead,
.atm__quota {
	margin: 0;
	color: var(--atm-muted);
}

.atm__quota {
	margin-top: 10px;
	font-size: 0.92rem;
}

.atm__dropzone {
	position: relative;
	border: 1.5px dashed rgba(15, 107, 92, 0.35);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(15, 107, 92, 0.04), rgba(255, 255, 255, 0.4));
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.atm__dropzone.is-dragover {
	border-color: var(--atm-accent);
	transform: translateY(-2px);
	background: rgba(15, 107, 92, 0.08);
}

.atm__dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	font-size: 0;
	color: transparent;
}

.atm__dropzone-inner {
	text-align: center;
	pointer-events: none;
	padding: 24px;
}

.atm__dropzone-title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 600;
}

.atm__dropzone-hint {
	margin: 0;
	color: var(--atm-muted);
	font-size: 0.9rem;
}

.atm__url-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.atm__url-form .layui-input {
	flex: 1 1 280px;
}

.atm__tasks {
	margin-top: 22px;
	display: grid;
	gap: 12px;
}

.atm-task {
	border: 1px solid var(--atm-line);
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	animation: atm-fade-up 0.35s ease both;
}

.atm-task__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	margin-bottom: 10px;
}

.atm-task__name {
	font-weight: 600;
	word-break: break-all;
}

.atm-task__status {
	color: var(--atm-muted);
	font-size: 0.9rem;
	white-space: nowrap;
}

.atm-task__stages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.atm-task__stage {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f2f4f7;
	color: var(--atm-muted);
}

.atm-task__stage.is-active {
	background: rgba(15, 107, 92, 0.12);
	color: var(--atm-accent);
	font-weight: 600;
}

.atm-task__stage.is-done {
	background: rgba(15, 107, 92, 0.18);
	color: var(--atm-accent);
}

.atm-task__bar {
	height: 8px;
	border-radius: 999px;
	background: #ece7df;
	overflow: hidden;
}

.atm-task__bar > span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--atm-accent), #1f9b86);
	transition: width 0.35s ease;
}

.atm-task__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.atm-task__error {
	margin-top: 8px;
	color: #b42318;
	font-size: 0.9rem;
}

.atm--login {
	text-align: center;
	padding: 48px 24px;
}

.atm__login-panel h2 {
	margin-top: 0;
}

@keyframes atm-fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.atm-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 18px;
	color: var(--atm-muted);
	font-size: 0.9rem;
}

.atm-breadcrumbs a {
	color: var(--atm-accent);
	text-decoration: none;
}

.atm-breadcrumbs span {
	opacity: 0.45;
}

.atm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.atm-tags--index {
	margin-top: 8px;
}

.atm-tags a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--atm-line);
	border-radius: 999px;
	color: var(--atm-muted);
	text-decoration: none;
	font-size: 0.88rem;
	background: rgba(255, 255, 255, 0.55);
}

.atm-tags a:hover,
.atm-tags a.is-active {
	color: #fff;
	background: var(--atm-accent);
	border-color: var(--atm-accent);
}

.atm-tags__all {
	border-style: dashed !important;
	color: var(--atm-accent) !important;
}

.atm-content {
	margin-top: 28px;
}

.atm-content__heading {
	margin-bottom: 18px;
}

.atm-content__heading h1 {
	margin: 0 0 8px;
	font-size: 1.7rem;
}

.atm-content__eyebrow {
	margin: 0 0 6px;
	color: var(--atm-accent);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.atm-content__list {
	display: grid;
	gap: 14px;
}

.atm-content__item {
	padding: 18px 20px;
	border: 1px solid var(--atm-line);
	border-radius: 14px;
	background: var(--atm-panel);
	box-shadow: var(--atm-shadow);
}

.atm-content--archive .atm-content__item:hover {
	border-color: rgba(15, 107, 92, 0.28);
}

.atm-content__item h1,
.atm-content__item h2 {
	margin: 8px 0 10px;
	font-size: 1.35rem;
	line-height: 1.35;
}

.atm-content__item h2 a {
	color: inherit;
	text-decoration: none;
}

.atm-content__item h2 a:hover {
	color: var(--atm-accent);
}

.atm-content__meta,
.atm-content__excerpt,
.atm-content__heading p,
.atm-content__empty {
	color: var(--atm-muted);
	font-size: 0.92rem;
}

.atm-content__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.atm-content__readmore {
	display: inline-block;
	margin-top: 8px;
	color: var(--atm-accent);
	text-decoration: none;
	font-weight: 600;
}

.atm-content--single .atm-content__item {
	padding: 28px;
}

.atm-content__featured {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 18px;
}

.atm-content__body {
	line-height: 1.75;
	font-size: 1.02rem;
}

.atm-content__body p {
	margin: 0 0 1em;
}

.atm-content__pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--atm-line);
}

.atm-content__pager a {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--atm-line);
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.65);
}

.atm-content__pager a:last-child {
	text-align: right;
}

.atm-content__pager a span {
	display: block;
	margin-bottom: 4px;
	color: var(--atm-muted);
	font-size: 0.82rem;
}

.atm-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	font-size: 0.8rem;
	line-height: 1.2;
}

.atm-pagination__summary {
	margin-right: 6px;
	color: var(--atm-muted);
	font-size: 0.78rem;
}

.atm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border: 1px solid var(--atm-line);
	border-radius: 5px;
	color: var(--atm-muted);
	text-decoration: none;
	font-size: 0.78rem;
	background: rgba(255, 255, 255, 0.65);
}

.atm-pagination .page-numbers.prev,
.atm-pagination .page-numbers.next {
	min-width: 0;
	padding: 0 8px;
}

.atm-pagination .current,
.atm-pagination .page-numbers:hover {
	color: #fff;
	background: var(--atm-accent);
	border-color: var(--atm-accent);
}

.atm-pagination .dots {
	min-width: 18px;
	padding: 0 2px;
	border-color: transparent;
	background: transparent;
	color: var(--atm-muted);
}

@media (max-width: 640px) {
	.atm {
		padding: 20px 14px;
		border-radius: 14px;
	}

	body.all-to-md-direct .atm-page__header-inner {
		grid-template-columns: auto 1fr;
		gap: 10px 12px;
	}

	body.all-to-md-direct .atm-page__brand {
		grid-column: 1;
	}

	body.all-to-md-direct .atm-page__account {
		grid-column: 2;
		justify-self: end;
	}

	body.all-to-md-direct .atm-page__nav {
		grid-column: 1 / -1;
	}

	body.all-to-md-direct .atm-page__name {
		font-size: 1.05rem;
	}

	.atm-content__pager {
		grid-template-columns: 1fr;
	}

	.atm-content__pager a:last-child {
		text-align: left;
	}
}
