/**
 * 这里是uni-app内置的常用样式变量
 *
 * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量
 * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App
 *
 */

/**
 * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能
 *
 * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件
 */

@import 'uview-ui/theme.scss';

/* 颜色变量 */

/* 行为相关颜色 */
$uni-color-primary: #da2538;
$uni-color-success: #09a96a;
$uni-color-warning: #f0ad4e;
$uni-color-error: #dd524d;

/* 文字基本颜色 */
$uni-text-color: #333; //基本色
$uni-text-color-inverse: #fff; //反色
$uni-text-color-grey: #999; //辅助灰色，如加载更多的提示信息
$uni-text-color-placeholder: #808080;
$uni-text-color-disable: #c0c0c0;

/* 背景颜色 */
$uni-bg-color: #0c0c16;
$uni-bg-color-grey: #f8f8f8;
$uni-bg-color-hover: #f1f1f1; //点击状态颜色
$uni-bg-color-mask: rgba(0, 0, 0, 0.4); //遮罩颜色

/* 边框颜色 */
$uni-border-color: #c8c7cc;

/* 尺寸变量 */

/* 文字尺寸 */
$uni-font-size-sm: 12px;
$uni-font-size-base: 14px;
$uni-font-size-lg: 16px;

/* 图片尺寸 */
$uni-img-size-sm: 20px;
$uni-img-size-base: 26px;
$uni-img-size-lg: 40px;

/* Border Radius */
$uni-border-radius-sm: 2px;
$uni-border-radius-base: 3px;
$uni-border-radius-lg: 6px;
$uni-border-radius-circle: 50%;

/* 水平间距 */
$uni-spacing-row-sm: 5px;
$uni-spacing-row-base: 10px;
$uni-spacing-row-lg: 15px;

/* 垂直间距 */
$uni-spacing-col-sm: 4px;
$uni-spacing-col-base: 8px;
$uni-spacing-col-lg: 12px;

/* 透明度 */
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度

/* 文章场景相关 */
$uni-color-title: #2c405a; // 文章标题颜色
$uni-font-size-title: 20px;
$uni-color-subtitle: #555555; // 二级标题颜色
$uni-font-size-subtitle: 26px;
$uni-color-paragraph: #3f536e; // 文章段落颜色
$uni-font-size-paragraph: 15px;

/* #ifndef APP-PLUS-NVUE */
/* 公共样式 */
.flex-col {
	display: flex;
	flex-direction: column;
}
.flex-row {
	display: flex;
	flex-direction: row;
}
.justify-start {
	display: flex;
	justify-content: flex-start;
}
.justify-center {
	display: flex;
	justify-content: center;
}
.justify-end {
	display: flex;
	justify-content: flex-end;
}
.justify-evenly {
	display: flex;
	justify-content: space-evenly;
}
.justify-around {
	display: flex;
	justify-content: space-around;
}
.justify-between {
	display: flex;
	justify-content: space-between;
}
.align-start {
	display: flex;
	align-items: flex-start;
}
.align-center {
	display: flex;
	align-items: center;
}
.align-end {
	display: flex;
	align-items: flex-end;
}
.card {
	background-color: #fff;
	border-radius: 8px;
	.card-title {
		height: 50px;
		line-height: 50px;
		padding: 0 15px;
		font-size: 16px;
		font-weight: 500;
		color: #1a1a2a;
		border-bottom: 1px solid #f0f0f0;
	}
	.card-content {
		padding: 15px;
	}
}
.u-safe-area-inset-top {
	padding-top: 0;
	padding-top: constant(safe-area-inset-top);
	padding-top: env(safe-area-inset-top);
}
.u-safe-area-inset-right {
	padding-right: 0;
	padding-right: constant(safe-area-inset-right);
	padding-right: env(safe-area-inset-right);
}
.u-safe-area-inset-bottom {
	padding-bottom: 0;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
}
.u-safe-area-inset-left {
	padding-left: 0;
	padding-left: constant(safe-area-inset-left);
	padding-left: env(safe-area-inset-left);
}
::-webkit-scrollbar {
	display: none;
	width: 0 !important;
	height: 0 !important;
	-webkit-appearance: none;
	background: transparent;
}
:root {
	--safe-area-inset-top: 0px;
	--safe-area-inset-right: 0px;
	--safe-area-inset-bottom: 0px;
	--safe-area-inset-left: 0px;
	/*  #ifdef H5  */
	--safe-top: max(var(--safe-area-inset-top), 0px);
	/*  #endif  */
	/*  #ifndef H5  */
	--safe-top: var(--status-bar-height);
	/*  #endif  */
}
@supports (top: constant(safe-area-inset-top)) {
	:root {
		--safe-area-inset-top: constant(safe-area-inset-top);
		--safe-area-inset-right: constant(safe-area-inset-right);
		--safe-area-inset-bottom: constant(safe-area-inset-bottom);
		--safe-area-inset-left: constant(safe-area-inset-left);
	}
}
@supports (top: env(safe-area-inset-top)) {
	:root {
		--safe-area-inset-top: env(safe-area-inset-top);
		--safe-area-inset-right: env(safe-area-inset-right);
		--safe-area-inset-bottom: env(safe-area-inset-bottom);
		--safe-area-inset-left: env(safe-area-inset-left);
	}
}
* {
	box-sizing: border-box;
}
body {
	/*  #ifdef H5  */
	height: calc(100% + var(--safe-top));
	/*  #endif  */
	/*  #ifndef H5  */
	height: 100%;
	/*  #endif  */
}
uni-page-body {
	height: 100%;
}
uni-button {
	&::after {
		border: none;
	}
}
uni-checkbox:not([disabled]) {
	.uni-checkbox-input:hover {
		border-color: #d1d1d1;
	}
}
.status-bar {
	width: 100%;
	height: var(--safe-top);
}
.page-container {
	min-height: 100%;
	background-color: $uni-bg-color-grey;
}
.page-head {
	height: 44px;
	padding: 7px 3px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	.page-head-btn {
		margin: 0 2px;
		.text-btn {
			margin: 0 8px;
			font-size: 16px;
			color: #fff;
		}
	}
	.page-head-title {
		font-weight: 700;
		font-size: 18px;
		color: #fff;
		line-height: 30px;
		text-align: center;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		position: absolute;
		left: 70px;
		right: 70px;
	}
}
.header-bg {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	height: 173px;
	background: #da2538;
	opacity: 0.1;
	filter: blur(50px);
	.header-bg-upper {
		position: absolute;
		bottom: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(180deg, rgba(248, 250, 254, 0.1), #fff);
	}
}
.header-navs,
.condition-box,
.filter-day,
.video-episodes-url {
	.u-tabs__wrapper__nav__item:first-child {
		padding-left: 15px !important;
	}
	.u-tabs__wrapper__nav__item:nth-last-child(2) {
		padding-right: 15px !important;
	}
}
.vod-container {
	padding: 15px;
	align-content: center;
	display: grid;
	grid-template-columns: repeat(2, 49%);
	column-gap: 10px;
	row-gap: 10px;
	justify-content: space-between;
	.vod-item {
		width: 100%;
		max-width: 210px;
	}
	.vod-title {
		width: 100%;
		margin-top: 5px;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.6;
		overflow: hidden;
		text-overflow: ellipsis;
		// white-space: nowrap;
	}
}
.vod-image {
	width: 100%;
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	uni-image {
		width: 100%;
		height: 100%;
	}
	.vod-tag-hot {
		border-radius: 50%;
		uni-image {
			width: 25px;
			height: 25px;
		}
		position: absolute;
		left: 5px;
		top: 6px;
	}
	.vod-tag-hd {
		padding: 2px 4px;
		color: #421901;
		font-size: 9px;
		border-radius: 2px;
		background-image: linear-gradient(270deg, #fde39e, #fff3d4);
		position: absolute;
		right: 5px;
		top: 5px;
		uni-image {
			width: 15px;
			height: 15px;
		}
	}
	.vod-tag-score {
		font-size: 12px;
		color: #f57a50;
		position: absolute;
		right: 8px;
		bottom: 5px;
	}
	.vod-tag-episode {
		font-size: 12px;
		color: #fff;
		position: absolute;
		right: 8px;
		bottom: 5px;
	}
}
.video-episodes-url {
	.u-tabs {
		.u-tabs__wrapper__nav__item {
			position: relative;
			.u-badge {
				border-radius: 0 7px 0 7px;
				position: absolute;
				right: 5px;
				top: 0;
			}
			&:nth-last-child(2) .u-badge {
				right: 15px;
			}
		}
	}
}
.load-more {
	padding: 0 0 15px;
}
.progress {
	.uni-progress-bar,
	.uni-progress-inner-bar {
		border-radius: 4px;
	}
}
.login-header-bg {
	padding: 0 30px;
	.logo {
		margin-bottom: 35px;
		width: 60px;
		height: 60px;
	}
	.flex-row {
		.bgleft {
			width: 50%;
			height: 125px;
			// background: #F7B500;
			opacity: 0.1;
			filter: blur(30px);
		}
		.bgright {
			width: 50%;
			height: 173px;
			// background: #FB5666;
			opacity: 0.25;
			filter: blur(30px);
		}
	}
}
.login-input {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	padding: 0 30px;
	.input-box {
		height: 44px;
		background: #f2f5fa;
		border-radius: 22px;
		font-weight: 400;
		color: #1a1a2a;
		margin: 12px auto 0;
		font-size: 15px;
		padding: 0 15px;
		margin-bottom: 25px;
		.code {
			margin-right: 8px;
		}
		uni-input {
			flex: 1 1 0%;
			height: 44px;
			line-height: 44px;
			font-size: 15px;
		}
		.code-tip {
			margin-left: 8px;
			font-size: 15px;
			color: $uni-color-primary;
		}
	}
}
.login-button {
	width: 100%;
	max-width: 400px;
	margin: 40px auto 0;
	padding: 0 34px;
}
.login-bottom {
	max-width: 400px;
	margin: 30px auto;
	font-size: 15px;
	font-weight: 400;
	color: #a7a8b0;
	align-items: center;
	justify-content: center;
	.link-button {
		color: $uni-color-primary;
	}
	.line {
		width: 1px;
		height: 13px;
		margin: 0 10px;
		background-color: #d8d8d8;
	}
}
@media (min-width: 480px) {
	.vod-container {
		grid-template-columns: repeat(3, 140px);
	}
} /* #endif */
