/* ==========================================================================
   Flyfox 主题样式 — 科技感风格 v5
   ========================================================================== */

:root {
	--ff-text:        #1a1a2e;
	--ff-text-soft:   #3d3d5c;
	--ff-text-muted:  #8888a0;
	--ff-text-invert: #ffffff;

	--ff-accent:      #0066ff;
	--ff-accent-hover:#0052cc;
	--ff-accent-soft: rgba(0, 102, 255, 0.1);
	--ff-cyan:        #00d4ff;
	--ff-purple:      #7c3aed;
	--ff-gradient:    linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
	--ff-gradient-purple: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
	--ff-hot:         #ff3b30;
	--ff-warm:        #ff9500;

	--ff-bg:          #f0f2f5;
	--ff-surface:     #ffffff;
	--ff-surface-2:   #f8f9fc;
	--ff-dark:        #0f1623;
	--ff-dark-2:      #1a2332;
	--ff-dark-3:      #2a3548;
	--ff-border:      #d0d5dd;
	--ff-border-soft: #e4e7ec;

	--ff-radius-sm:   8px;
	--ff-radius:      12px;
	--ff-radius-lg:   16px;
	--ff-radius-pill: 980px;

	--ff-gap:     16px;
	--ff-container: 1200px;

	--ff-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
		"Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
		"Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--ff-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--ff-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
	--ff-shadow:     0 4px 16px rgba(0, 0, 0, 0.08);
	--ff-shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0 !important;
	font-family: var(--ff-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ff-text) !important;
	background: var(--ff-bg) !important;
	background-image:
		radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.04) 0%, transparent 50%),
		radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ff-accent); text-decoration: none; }
a:hover { color: var(--ff-accent-hover); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.4em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ff-text);
}

p { margin: 0 0 1em; color: var(--ff-text-soft); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

/* 顶部工具栏 - 深色科技风 */
.topbar {
	background: var(--ff-dark) !important;
	color: rgba(255,255,255,0.85) !important;
	border-bottom: 1px solid rgba(0, 102, 255, 0.2);
	font-size: 12px;
}
.topbar-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 36px;
}
.topbar-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-menu a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.topbar-menu a:hover { color: var(--ff-cyan); }
.topbar-meta { display: flex; align-items: center; gap: 14px; }
.topbar-user { display: flex; gap: 6px; align-items: center; }
.topbar-user a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.topbar-user a:hover { color: var(--ff-cyan); }

/* 主头部 - 渐变深色 */
.site-header {
	background: linear-gradient(180deg, var(--ff-dark) 0%, var(--ff-dark-2) 100%) !important;
	border-bottom: 1px solid rgba(0, 102, 255, 0.3);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	position: sticky; top: 0; z-index: 100;
}
.header-inner {
	display: flex; align-items: center; gap: 24px;
	padding: 14px 20px;
}
.site-branding { flex: 0 0 auto; }
.site-logo-text {
	display: flex; align-items: center; gap: 8px;
	font-size: 26px; font-weight: 800;
	color: #ffffff;
	text-decoration: none;
}
.logo-mark {
	background: var(--ff-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.site-description { margin: 2px 0 0; font-size: 12px; color: rgba(255,255,255,0.6); }

.header-search { flex: 1 1 auto; max-width: 420px; margin-left: auto; }
.search-form {
	display: flex; align-items: center;
	padding: 0 14px; height: 38px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: var(--ff-radius-pill);
	transition: all 0.2s;
}
.search-form:focus-within {
	background: rgba(255,255,255,0.15);
	border-color: var(--ff-cyan);
	box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.search-field {
	flex: 1; border: 0; background: transparent; outline: none;
	font-size: 14px; color: #ffffff;
}
.search-field::placeholder { color: rgba(255,255,255,0.5); }
.search-icon { color: rgba(255,255,255,0.5); display: flex; }

.menu-toggle {
	display: none;
	flex-direction: column; gap: 5px;
	width: 38px; height: 38px;
	justify-content: center; align-items: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* 主导航 - 深色科技风 */
.main-navigation {
	background: var(--ff-dark-2) !important;
	border-top: 1px solid rgba(0, 102, 255, 0.2);
	border-bottom: 1px solid rgba(0, 102, 255, 0.15);
}
.nav-inner {
	display: flex; align-items: center; gap: 0;
	padding: 6px 20px;
}
.primary-menu {
	display: flex !important; flex-direction: row !important; flex-wrap: wrap;
	gap: 2px; padding: 2px 0; margin: 0; list-style: none;
	flex: 1;
}
.nav-user {
	display: flex; align-items: center; gap: 12px;
	flex-shrink: 0;
	font-size: 13px;
	color: rgba(255,255,255,0.7);
}
.nav-date { color: rgba(255,255,255,0.55); }
.nav-user-logged { display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.85); }
.nav-user-logged a { color: var(--ff-cyan); text-decoration: none; }
.nav-user-logged a:hover { color: #fff; }
.nav-user-guest { display: flex; align-items: center; gap: 8px; }
.nav-user-guest a {
	color: rgba(255,255,255,0.8); text-decoration: none;
	padding: 5px 14px; border-radius: var(--ff-radius-pill);
	transition: all 0.2s;
}
.nav-user-guest a:hover { color: #fff; background: rgba(0, 102, 255, 0.2); }
.nav-user-guest .flyfox-login-btn {
	background: var(--ff-gradient);
	color: #fff !important;
}
.nav-user-guest .flyfox-login-btn:hover { opacity: 0.9; }
.primary-menu > li { position: relative; display: block; }
.primary-menu a {
	display: block; padding: 9px 15px;
	color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500;
	border-radius: var(--ff-radius-pill);
	text-decoration: none;
	transition: all 0.2s var(--ff-ease);
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	background: rgba(0, 102, 255, 0.2);
	color: var(--ff-cyan);
}
.primary-menu .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 180px; padding: 6px;
	background: var(--ff-dark-3); border: 1px solid rgba(0, 102, 255, 0.2);
	border-radius: var(--ff-radius-sm);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: all 0.15s var(--ff-ease);
	list-style: none; margin: 0;
}
.primary-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { padding: 7px 12px; font-size: 14px; border-radius: 6px; color: rgba(255,255,255,0.8); }
.primary-menu .sub-menu a:hover { background: rgba(0, 102, 255, 0.2); color: var(--ff-cyan); }

/* 公告栏 - 科技风 */
.announcement-bar { max-width: var(--ff-container); margin: 12px auto; padding: 0 20px; }
.announcement-inner {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 18px !important;
	background: #fff !important;
	border: 1px solid var(--ff-border-soft) !important;
	border-radius: var(--ff-radius) !important;
	box-shadow: var(--ff-shadow-sm) !important;
	color: var(--ff-text) !important;
}
.announcement-label {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 14px !important;
	background: var(--ff-gradient) !important;
	color: #fff !important;
	font-size: 13px !important; font-weight: 700 !important;
	border-radius: var(--ff-radius-pill);
}
.announcement-track {
	flex: 1; overflow: hidden; white-space: nowrap;
}
.announcement-item {
	color: var(--ff-text) !important;
	font-size: 14px; font-weight: 500;
	text-decoration: none;
}
.announcement-item:hover { color: var(--ff-accent) !important; }

/* 通用卡片/区块 - 科技风 */
.block, .widget, .cat-section, .hero-carousel, .hero-headlines,
.hero-rank, .rank-block, .topic-block, .headline-block,
.news-list-block, .sidebar-carousel-wrap {
	background: var(--ff-surface) !important;
	border: 1px solid var(--ff-border-soft) !important;
	border-radius: var(--ff-radius) !important;
	box-shadow: var(--ff-shadow-sm) !important;
	color: var(--ff-text) !important;
	transition: box-shadow 0.2s, transform 0.2s;
}
.block:hover, .widget:hover {
	box-shadow: var(--ff-shadow) !important;
}

/* 布局 */
.site-main { padding: 16px 0 40px; }
.two-col-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 300px !important;
	gap: var(--ff-gap);
	align-items: start;
}
.col-main { display: flex; flex-direction: column; gap: var(--ff-gap); min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: var(--ff-gap); min-width: 0; }

.content-wrap {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--ff-gap);
	align-items: start;
}

/* 区块头部 */
.block-head, .cat-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--ff-border-soft);
	background: var(--ff-surface-2);
	border-radius: var(--ff-radius) var(--ff-radius) 0 0;
}
.block-title, .cat-title {
	margin: 0; font-size: 17px; font-weight: 700; color: var(--ff-text);
}
.block-title a { color: var(--ff-text); }
.block-title a:hover { color: var(--ff-accent); }

.rank-bar, .cat-title-bar {
	display: inline-block; width: 4px; height: 18px;
	background: var(--ff-gradient);
	border-radius: 2px; margin-right: 8px;
}
.block-more, .cat-more { font-size: 13px; color: var(--ff-text-muted); text-decoration: none; }
.block-more:hover, .cat-more:hover { color: var(--ff-accent); }

/* 分类子标签 */
.cat-sub-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 10px; }
.cat-sub-tag {
	display: inline-block; padding: 2px 10px;
	font-size: 12px;
	background: var(--ff-accent-soft);
	color: var(--ff-accent);
	border-radius: var(--ff-radius-pill);
	text-decoration: none;
}
.cat-sub-tag:hover { background: var(--ff-accent); color: #fff; }

/* 文章列表 - 科技风卡片 */
.article-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.article-row {
	display: flex; align-items: stretch; gap: 14px;
	padding: 14px; border-radius: var(--ff-radius);
	background: var(--ff-surface-2) !important;
	border: 1px solid var(--ff-border-soft) !important;
	text-decoration: none; color: inherit;
	transition: all 0.2s var(--ff-ease);
	position: relative;
	overflow: hidden;
}
.article-row::before {
	content: '';
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 3px; background: var(--ff-gradient);
	opacity: 0; transition: opacity 0.2s;
}
.article-row:hover {
	background: #ffffff !important;
	box-shadow: var(--ff-shadow) !important;
	transform: translateY(-2px);
	border-color: rgba(0, 102, 255, 0.3) !important;
}
.article-row:hover::before { opacity: 1; }
.article-row-thumb {
	flex: 0 0 140px; height: 100px;
	border-radius: var(--ff-radius-sm); overflow: hidden;
	background: var(--ff-border-soft);
}
.article-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-row-thumb-text {
	background: linear-gradient(135deg, var(--ff-accent-soft) 0%, rgba(0, 212, 255, 0.1) 100%);
	display: flex; align-items: center; justify-content: center;
	color: var(--ff-accent); font-size: 22px; font-weight: 700;
}
.article-row-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.article-row-title {
	font-size: 16px; font-weight: 600; line-height: 1.45;
	color: var(--ff-text); margin: 0;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.article-row:hover .article-row-title { color: var(--ff-accent); }
.article-row-excerpt {
	font-size: 13px; line-height: 1.6; color: var(--ff-text-soft); margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-row-meta { display: flex; gap: 8px; font-size: 12px; color: var(--ff-text-muted); }
.article-row-meta .cat-link { color: var(--ff-accent); text-decoration: none; }
.article-row-meta .dot { opacity: 0.5; }

/* 轮播 */
.hero-carousel { position: relative; overflow: hidden; min-height: 360px; }
.carousel { position: relative; height: 100%; min-height: 360px; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.carousel-slide.is-active { opacity: 1; position: relative; }
.slide-img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.slide-caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 40px 20px 16px;
	background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
	color: #fff;
}
.slide-title { margin: 0; font-size: 22px; color: #fff; line-height: 1.3; }
.slide-tag {
	display: inline-block; padding: 2px 10px; margin-bottom: 8px;
	background: var(--ff-accent); color: #fff; font-size: 12px; font-weight: 700;
	border-radius: var(--ff-radius-pill);
}
.carousel-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,0.9); color: var(--ff-text);
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--ff-border-soft);
}
.carousel-arrow:hover { background: #fff; color: var(--ff-accent); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 5px; z-index: 2; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.carousel-dot.is-active { background: #fff; width: 20px; border-radius: 4px; }

/* 头条 */
.hero-headlines { padding: 18px 20px; }
.headline-top { padding-bottom: 12px; border-bottom: 1px solid var(--ff-border-soft); margin-bottom: 12px; }
.headline-title { font-size: 19px; margin: 0 0 6px; line-height: 1.3; font-weight: 700; }
.headline-title a { color: var(--ff-text); }
.headline-title a:hover { color: var(--ff-accent); }
.headline-excerpt { margin: 0; font-size: 13px; color: var(--ff-text-soft); }
.headline-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.headline-list li {
	display: flex; align-items: baseline; gap: 8px;
	padding: 7px 0; border-bottom: 1px dashed var(--ff-border-soft);
}
.headline-list li::before { content: "·"; color: var(--ff-accent); font-weight: 700; }
.headline-list a { flex: 1; color: var(--ff-text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.headline-list a:hover { color: var(--ff-accent); }

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.rank-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--ff-border-soft); }
.rank-item:last-child { border-bottom: 0; }
.rank-no {
	flex: 0 0 auto; width: 20px; height: 20px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; border-radius: 4px;
	background: var(--ff-border-soft); color: var(--ff-text-soft);
}
.rank-item.is-hot .rank-no { background: var(--ff-hot); color: #fff; }
.rank-item a { flex: 1; color: var(--ff-text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item a:hover { color: var(--ff-accent); }

/* 热点专题 */
.topic-list { display: flex; flex-direction: column; gap: 12px; }
.topic-item { display: flex; gap: 10px; align-items: center; }
.topic-no {
	flex: 0 0 22px; width: 22px; height: 22px;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700;
	border-radius: 50%;
	background: var(--ff-surface-2); color: var(--ff-text-muted);
}
.topic-no.is-hot {
	background: var(--ff-gradient); color: #fff;
	box-shadow: 0 2px 6px rgba(0, 102, 255, 0.3);
}
.topic-thumb { flex: 0 0 90px; aspect-ratio: 16/10; border-radius: var(--ff-radius-sm); overflow: hidden; background: var(--ff-border-soft); }
.topic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.topic-link { flex: 1; font-size: 13px; line-height: 1.5; color: var(--ff-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-link:hover { color: var(--ff-accent); }

/* 侧边栏轮播 */
.sidebar-carousel-head { padding: 10px 16px; border-bottom: 1px solid var(--ff-border-soft); }
.sidebar-carousel-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ff-text); }
.sidebar-carousel .carousel-track { padding: 12px; }
.sidebar-carousel .carousel-slide { position: absolute; inset: 12px; }
.sidebar-carousel .carousel-slide.is-active { position: relative; inset: 0; }
.sidebar-carousel-img { width: 100%; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--ff-border-soft); }
.sidebar-carousel-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-carousel-caption { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ff-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-carousel-caption:hover { color: var(--ff-accent); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px; padding: 0 10px;
	border-radius: var(--ff-radius-pill);
	font-size: 14px; color: var(--ff-text);
	text-decoration: none;
	transition: all 0.2s;
}
.pagination a:hover { background: var(--ff-accent-soft); color: var(--ff-accent); }
.pagination .current {
	background: var(--ff-gradient);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

/* 页脚 - 科技风 */
.site-footer { margin-top: 40px; }
.footer-widgets {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: var(--ff-gap); padding: 28px 20px 20px;
	background: var(--ff-dark);
	border-top: 1px solid rgba(0, 102, 255, 0.2);
}
.footer-col { min-width: 0; }
.footer-col .widget-title { font-size: 14px; margin-bottom: 10px; color: #fff; }
.footer-col p, .footer-col ul { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-nav {
	max-width: var(--ff-container); margin: 0 auto;
	padding: 12px 20px;
	border-top: 1px solid rgba(255,255,255,0.1);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	background: var(--ff-dark-2);
}
.footer-nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-menu a:hover { color: var(--ff-cyan); }
.footer-meta { font-size: 13px; color: rgba(255,255,255,0.6); }
.site-info { background: var(--ff-dark); padding: 14px 0; color: rgba(255,255,255,0.6); }
.site-info p { margin: 0; font-size: 13px; text-align: center; color: rgba(255,255,255,0.6); }
.site-info a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.site-info a:hover { color: var(--ff-cyan); }

/* 侧边栏粘性 */
.sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; gap: var(--ff-gap); }
.widget { padding: 16px 18px; }
.widget-title {
	margin: 0 0 12px; font-size: 15px; font-weight: 700;
	padding-left: 10px; border-left: 3px solid;
	border-image: var(--ff-gradient) 1;
	color: var(--ff-text);
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { padding: 6px 0; border-bottom: 1px dashed var(--ff-border-soft); display: flex; justify-content: space-between; font-size: 13px; }
.cat-list a { color: var(--ff-text); text-decoration: none; transition: color 0.2s; }
.cat-list a:hover { color: var(--ff-accent); }

/* 登录弹窗 - 科技风 */
.auth-modal-overlay {
	position: fixed; inset: 0; z-index: 10000;
	background: rgba(15, 22, 35, 0.7);
	backdrop-filter: blur(8px);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}
.auth-modal-overlay.is-open { opacity: 1; visibility: visible; }
.auth-modal {
	position: relative; width: 100%; max-width: 420px; margin: 20px;
	padding: 32px 30px 28px;
	background: #fff; border: 1px solid var(--ff-border-soft);
	border-radius: var(--ff-radius-lg);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(16px) scale(0.97);
	transition: transform 0.25s var(--ff-ease);
	color: var(--ff-text);
}
.auth-modal-overlay.is-open .auth-modal { transform: translateY(0) scale(1); }
.auth-modal-close {
	position: absolute; top: 12px; right: 12px;
	width: 32px; height: 32px; border-radius: 50%;
	background: var(--ff-surface-2); color: var(--ff-text-muted);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; border: 0;
}
.auth-modal-close:hover { background: var(--ff-border-soft); color: var(--ff-text); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 22px; background: var(--ff-surface-2); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; padding: 9px 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--ff-text-muted); cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.auth-tab.is-active {
	background: var(--ff-gradient);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}
.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.is-active { display: flex; }
.auth-form-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--ff-text); }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--ff-text-soft); }
.auth-field input {
	width: 100%; padding: 11px 14px;
	border: 1.5px solid var(--ff-border); border-radius: 10px;
	font-size: 15px; color: var(--ff-text); background: #fff;
	box-sizing: border-box;
	transition: all 0.2s;
}
.auth-field input:focus { outline: none; border-color: var(--ff-accent); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ff-text-soft); cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; }
.auth-submit {
	width: 100%; padding: 12px; border: 0; border-radius: 10px;
	font-size: 16px; font-weight: 700; color: #fff;
	background: var(--ff-gradient);
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-message { margin-top: 10px; font-size: 14px; text-align: center; min-height: 20px; }
.auth-message.is-error { color: var(--ff-hot); }
.auth-message.is-success { color: #10b981; }

/* 验证码 */
.captcha-field { display: flex; gap: 10px; align-items: center; }
.captcha-field input { flex: 1; }
.captcha-img {
	width: 120px; height: 40px; border-radius: 8px;
	border: 1.5px solid var(--ff-border);
	cursor: pointer; transition: border-color 0.2s;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; font-weight: 700;
	letter-spacing: 4px; user-select: none;
}
.captcha-img:hover { border-color: var(--ff-accent); }
.captcha-refresh {
	font-size: 12px; color: var(--ff-text-muted);
	text-decoration: none; cursor: pointer;
}
.captcha-refresh:hover { color: var(--ff-accent); }

/* 返回顶部按钮 */
.back-to-top {
	position: fixed; right: 24px; bottom: 80px;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 0; cursor: pointer;
	background: var(--ff-gradient);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
	opacity: 0; visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.2s;
	z-index: 9999;
}
.back-to-top.is-visible {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
	box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
	transform: translateY(-2px);
}
.back-to-top:active {
	transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1080px) {
	.two-col-wrap { grid-template-columns: 1fr 260px !important; }
	.content-wrap { grid-template-columns: 1fr 280px; }
}
@media (max-width: 860px) {
	.header-search { display: none; }
	.menu-toggle { display: flex; }
	.main-navigation {
		position: fixed; top: 0; right: -100%;
		width: 80%; max-width: 300px; height: 100vh;
		background: #fff; border-left: 1px solid var(--ff-border);
		transition: right 0.3s var(--ff-ease);
		z-index: 200; padding-top: 50px; overflow-y: auto;
	}
	.main-navigation.is-open { right: 0; }
	.primary-menu { flex-direction: column !important; padding: 0 14px; gap: 0; }
	.primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding-left: 10px; }

	.two-col-wrap { grid-template-columns: 1fr !important; }
	.col-side { order: 2; }
	.content-wrap { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.container { padding: 0 14px; }
	.article-row { flex-direction: column; gap: 10px; padding: 10px; }
	.article-row-thumb { flex: none; width: 100%; height: auto; aspect-ratio: 16/9; }
	.footer-widgets { grid-template-columns: 1fr; }
	.auth-modal { margin: 10px; padding: 22px 18px 18px; }
}
