@charset "utf-8";
/*
    Theme Name: AO3 导航官网主题
    Description: AO3（Archive of Our Own）链接入口与访问导航页
    Version: 1.0.0
*/

:root {
    --pm-c: #990000;
    --pm-d: #7a0000;
    --br-c: #eee;
    --bg-c: #f4f6f9;
    --md-c: #909399;
}

html,body {
	background-color: var(--bg-c);
	font-size: 14px;
	font-family: arial, "Microsoft YaHei", "PingFang SC", sans-serif;
	color: #303133;
}
* {
	line-height: normal;
}
/* 版心宽度按设计稿固定 750px（移动端 100vw），全部由 CSS 控制，不依赖 JS 计算 */
.c-pm {
	color: var(--pm-c) !important;
}
ul,ol {
	padding: 0;
	margin: 0;
	list-style: none;
}

a,a:hover {
	line-height: normal;
	color: #303133;
	font-size: 14px;
	text-decoration: none;
}

.line-2 {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
}
.line-3 {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	-webkit-line-clamp: 3;
}

header {
	margin: 4px 0;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
header .logo {
	display: flex;
	align-items: center;
	justify-content: center;
}
header .logo img {
	height: 75px;
	width: 75px;
	margin-right: 10px;
}
header .logo .title {
	font-size: 24px;
	font-weight: bold;
	color: var(--pm-c);
	margin: 0;
	display: inline-block;
	transform: translateY(-2px);
	text-align: left;
}
header .logo .title span {
	display: block;
	font-size: 12px;
	font-weight: normal;
	color: var(--md-c);
	letter-spacing: .5px;
	margin-top: 4px;
}

main {
	max-width: 750px;
	margin: 0 auto;
	box-sizing: border-box;
}

.mode {
	background: #fff;
	border-radius: 6px;
	padding: 25px;
	position: relative;
	margin: 20px 0;
}
.mode-title {
	font-weight: bold;
	font-size: 17px;
	margin-bottom: 20px;
}

/*简介模块*/
.mode-desc {
    border-top: 4px solid var(--pm-c);
    border-radius: 4px 4px 8px 8px;
}
.mode-desc h3 {
    font-size: 17px;
    font-weight: bold;
}
.mode-desc p {
	line-height: 28px;
    color: #4b4d51;
    font-size: 15px;
}
.mode-desc p:last-child {
	margin-bottom: 0;
}
.mode-desc .view {
	display: block;
	height: 38px;
	line-height: 40px;
	text-align: center;
	background: var(--pm-c);
	color: #fff;
	font-weight: bold;
	border-radius: 6px;
	transition: background .3s;
}
.mode-desc .view:hover {
	background: var(--pm-d);
	color: #fff;
}

/*界面展示*/
.mode-show {
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 40px, #000 calc(100% - 40px), rgba(0,0,0,0) 100%);
	mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 40px, #000 calc(100% - 40px), rgba(0,0,0,0) 100%);
}
.mode-show ul {
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	padding: 10px 0 16px;
}
.mode-show ul::-webkit-scrollbar {
	display: none;
}
.mode-show ul.dragging {
	cursor: grabbing;
}
.mode-show ul li {
	display: inline-block;
	height: 420px;
	margin-right: 16px;
	vertical-align: top;
	transition: transform .35s ease;
}
.mode-show ul li:last-child {
	margin-right: 0;
}
.mode-show ul li:hover {
	transform: translateY(-8px);
}
.mode-show ul li img {
	height: 100%;
	width: auto;
	border-radius: 12px;
	display: block;
	box-shadow: 0 4px 14px rgba(0,0,0,.10);
	transition: box-shadow .35s ease;
}
.mode-show ul li:hover img {
	box-shadow: 0 12px 26px rgba(153,0,0,.18);
}
.show-tip {
	margin: 4px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--md-c);
}

/*线路选择*/
.line-entry {
	display: block;
}
.mode-line .item {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 6px;
	padding: 25px;
	transition: all .3s;
}
.mode-line .item:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,.05);
}
.mode-line .item .title {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}
.mode-line .item .title img {
	width: 18px;
	height: 18px;
	margin-right: 6px;
}
.mode-line .item .title span {
	font-size: 16px;
	font-weight: bold;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mode-line .item .delay {
	color: #67C23A;
	font-size: 12px;
}
.mode-line .item .view {
	color: #fff;
	background: var(--pm-c);
	border-radius: 20px;
	height: 30px;
	line-height: 32px;
	padding: 0 12px;
	font-size: 13px;
	margin-left: 30px;
}

/*常见问题*/
.mode-faq .item {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px dashed var(--br-c);
}
.mode-faq .item:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}
.mode-faq .faq-q {
	font-size: 16px;
	font-weight: bold;
	color: #303133;
	position: relative;
	padding-left: 22px;
}
.mode-faq .faq-q::before {
	content: "Q";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--pm-c);
	font-weight: bold;
}
.mode-faq .faq-a {
	margin-top: 12px;
}
.mode-faq .faq-a p {
	margin: 0;
	line-height: 26px;
	font-size: 14px;
	color: #606266;
}
.mode-faq.collapsible .faq-q {
	cursor: pointer;
	padding-right: 24px;
}
.mode-faq.collapsible .faq-q::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-size: 18px;
	color: var(--md-c);
	font-weight: normal;
}
.mode-faq.collapsible .item.active .faq-q::after {
	content: "-";
}
.mode-faq.collapsible .item:not(.active) .faq-a {
	display: none;
}

/*用户留言*/
.mode-comment .item {
	padding-bottom: 20px;
	margin-bottom: 20px;
    border-bottom: 1px dashed var(--br-c);
}
.mode-comment .user-info {
	display: flex;
	align-items: center;
}
.mode-comment .avatar {
	width: 40px;
	height: 40px;
	background-size: 100%;
	margin-right: 10px;
	flex: none;
}
.mode-comment .avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.mode-comment .user-info .name {
	font-size: 13px;
	line-height: normal;
	color: #333;
	margin-bottom: 10px;
}
.mode-comment .user-info .time {
	font-size: 14px;
	color: var(--md-c);
}
.mode-comment .comment-content {
	margin-top: 15px;
}
.mode-comment .comment-content p {
	margin: 0;
	line-height: 26px;
    font-size: 14px;
    color: #606266;
}
.mode-comment .more {
	margin-top: 15px;
	overflow: hidden;
	text-align: center;
	display: block;
	background: var(--pm-c);
	color: #fff;
	height: 40px;
	line-height: 42px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: bold;
	transition: background .3s;
}
.mode-comment .more:hover {
	background: var(--pm-d);
	color: #fff;
}

/*友情链接*/
.mode-link {
    margin: 0;
    padding: 0;
}
.mode-link li {
    display: inline-block;
}
.mode-link li a {
    font-size: 13px;
    color: var(--md-c);
    margin-right: 10px;
}

footer {
	margin-top: 30px;
	padding: 30px;
	text-align: center;
}
footer p {
	color: var(--md-c);
	font-size: 14px;
	margin: 10px 0;
	line-height: 22px;
}
footer p:last-child {
	margin-bottom: 0;
}
footer a {
	color: #303133;
}

/*投诉举报悬浮按钮*/
.complaint-float {
	position: fixed;
	right: 20px;
	bottom: 80px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px 0 12px;
	background: linear-gradient(135deg, #c62828 0%, #8c0000 100%);
	color: #fff !important;
	border-radius: 22px;
	border: none;
	box-shadow: 0 4px 16px rgba(153,0,0,.45);
	text-decoration: none !important;
	transition: transform .2s, box-shadow .2s;
}
.complaint-float:hover {
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(153,0,0,.55);
}
.complaint-float-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	line-height: 1;
	color: #ffc53d;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.complaint-float-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}
.complaint-float-icon.icon-mb {
	display: none;
}
.complaint-float:hover .complaint-float-icon {
	color: #ffe58f;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.complaint-float-text {
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
}

/*提示条*/
.notify {
	position: fixed;
	left: 50%;
	top: 30px;
	z-index: 999;
	transform: translate(-50%, -20px);
	background: rgba(48,49,51,.92);
	color: #fff;
	font-size: 14px;
	padding: 10px 20px;
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transition: all .25s;
	max-width: 90%;
	text-align: center;
}
.notify.show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/*移动端样式*/
@media (max-width: 760px) {

	a,a:hover {
		font-size: 3.73vw;
	}
	address, dl, fieldset, figure, ol, p, pre, ul {
	    margin: 0 0 4vw 0;
	}
	*+address, *+dl, *+fieldset, *+figure, *+ol, *+p, *+pre, *+ul {
	    margin-top: 4vw;
	}
	header {
		margin: 0;
	}
	header .logo img {
		height: 65px;
		width: 65px;
		margin-right: 2.67vw;
	}
	header .logo .title {
		font-size: 5.33vw;
	}
	header .logo .title span {
		font-size: 2.93vw;
		margin-top: 0.8vw;
	}

	main {
		max-width: 100vw;
		margin: 0 auto;
		padding: 0 1.6vw;
	}

	.mode {
		border-radius: 1.6vw;
		padding: 4.8vw;
		margin: 2.67vw 0;
	}
	.mode-title {
		font-size: 4.27vw;
		margin-bottom: 4vw;
	}

	.mode-desc {
	    border-top: 1.07vw solid var(--pm-c);
	    border-radius: 1.07vw;
	}
	.mode-desc p {
		line-height: 6.93vw;
	    font-size: 3.73vw;
	}
	.mode-desc .view {
		height: 10.67vw;
		line-height: 10.93vw;
		border-radius: 1.6vw;
	}

	.mode-show {
		-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 2.13vw, #000 calc(100% - 2.13vw), rgba(0,0,0,0) 100%);
		mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 2.13vw, #000 calc(100% - 2.13vw), rgba(0,0,0,0) 100%);
	}
	.mode-show ul {
		padding: 2.67vw 0 4vw;
	}
	.mode-show ul li {
		height: 61.33vw;
		margin-right: 3.2vw;
	}
	.mode-show ul li:hover {
		transform: none;
	}
	.mode-show ul li img {
		border-radius: 2.13vw;
	}
	.show-tip {
		margin-top: 1.33vw;
		font-size: 3.2vw;
	}

	.mode-line .uk-width-1-2 {
		width: 100%;
	}
	.mode-line .item {
		border-radius: 1.6vw;
		padding: 4.8vw;
	}
	.mode-line .item .title {
		margin-bottom: 4vw;
	}
	.mode-line .item .title img {
		width: 4.8vw;
		height: 4.8vw;
		margin-right: 1.6vw;
	}
	.mode-line .item .title span {
		font-size: 4vw;
	}
	.mode-line .item .delay {
		font-size: 3.2vw;
	}
	.mode-line .item .view {
		border-radius: 5.33vw;
		height: 8vw;
		line-height: 8.53vw;
		padding: 0 3.2vw;
		font-size: 3.47vw;
		margin-left: 8vw;
	}

	.mode-faq .item {
		padding-bottom: 4vw;
		margin-bottom: 4vw;
	}
	.mode-faq .faq-q {
		font-size: 4vw;
		padding-left: 5.33vw;
	}
	.mode-faq .faq-a {
		margin-top: 2.67vw;
	}
	.mode-faq .faq-a p {
		line-height: 6.13vw;
		font-size: 3.47vw;
	}

	.mode-comment .item {
		padding-bottom: 4vw;
		margin-bottom: 4vw;
	}
	.mode-comment .avatar {
		width: 9.33vw;
		height: 9.33vw;
		margin-right: 2.67vw;
	}
	.mode-comment .user-info .name {
		font-size: 3.47vw;
		margin-bottom: 1.33vw;
	}
	.mode-comment .user-info .time {
		font-size: 3.2vw;
	}
	.mode-comment .comment-content {
		margin-top: 4vw;
	}
	.mode-comment .comment-content p {
		line-height: 6.13vw;
	    font-size: 3.47vw;
	}
	.mode-comment .more {
		margin-top: 4vw;
		height: 9.07vw;
		line-height: 9.33vw;
		border-radius: 1.07vw;
		font-size: 3.47vw;
	}

	footer {
		margin-top: 2.67vw;
		padding: 2.67vw;
	}
	footer p {
		font-size: 3.47vw;
		margin: 2.67vw 0;
		line-height: 5.87vw;
	}

	.complaint-float {
		right: 12px;
		bottom: 60px;
		width: 44px;
		height: 44px;
		padding: 0;
		gap: 0;
		border-radius: 50%;
	}
	.complaint-float-icon.icon-pc {
		display: none;
	}
	.complaint-float-icon.icon-mb {
		display: flex;
	}
	.complaint-float-icon,
	.complaint-float-icon svg {
		width: 22px;
		height: 22px;
	}
	.complaint-float-text {
		display: none;
	}

	.notify {
		top: 4vw;
		font-size: 3.47vw;
		padding: 2.67vw 4vw;
		border-radius: 1.6vw;
	}
}
