

:root {

    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --accent-green: #337ab7;
    --accent-green-dark: #2e6da4;
    --accent-red: #d9534f;
    --accent-gold: #f0ad4e;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #777777;
    --border-color: #dddddd;
    --gradient-green: linear-gradient(135deg, #337ab7 0%, #2e6da4 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(51, 122, 183, 0.15);
}

.only_mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .only_mobile {
        display: block !important;
    }
    .only_pc {
        display: none !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
}

#bottom_float a {
    cursor: pointer;
}

.preview-grid {
    text-align: center;
}

.preview-grid .capture-col {
    display: block;
    width: 100%;
    padding: 2px;
}

.preview-grid .capture-col picture {
    display: block;
    width: 100%;
}

.preview-grid .capture-col img {
    display: block;
    width: 100%;
    height: auto;
}

.prev-next-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.prev-next-row .prev-next-item {
    flex: 1 1 0;
    min-width: 0;
}

.prev-next-link {
    display: block;
    color: #337ab7;
    text-decoration: none;
    font-weight: bold;
}

.prev-next-link:hover {
    color: #23527c;
    text-decoration: none;
}

.prev-next-link .prev-next-title {
    display: block;
    font-weight: normal;
    color: #555555;
    margin-top: 4px;
    word-break: break-all;
}

.prev-next-link.disabled {
    color: #999999;
    cursor: default;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wrapper {
    position: relative;
}

.wrapper #input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -10;
}

.footer-links {
    max-width: 1050px;
    margin: 20px auto 6px;
    padding: 14px 12px 10px;
    border-top: 1px solid var(--border-color);
}

.footer-links-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
}

.footer-link-item {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.footer-link-item:hover,
.footer-link-item:focus {
    color: #fff;
    background: var(--accent-green);
    border-color: var(--accent-green);
    text-decoration: none;
}

.footer-contact {
    margin: 4px 0 16px;
    font-size: 13px;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: var(--accent-green);
    text-decoration: none;
}

@media (max-width: 767px) {
    .footer-links {
        margin-top: 14px;
        padding: 10px 8px 6px;
    }
    .footer-links-list {
        gap: 6px 6px;
    }
    .footer-link-item {
        padding: 3px 10px;
        font-size: 12px;
        line-height: 16px;
    }
}

.toast-notification {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2147483647;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.torrent-list > tbody > tr > td {
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 603px;
}

table.torrent-list thead th {
	position: relative;
	background-image: none !important;
}

table.torrent-list thead th a {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	text-decoration: none;
	z-index: 10;

	background-color: white;
	opacity: 0;
	filter: alpha(opacity=1);
}

.category-icon {
	width: 80px;
	height: 28px;
}

table.torrent-list tbody tr td a:visited {
	color: #1d4568;
}

table.torrent-list tbody td:first-child {
	padding: 10px 8px;
	color: var(--text-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
table.torrent-list td:nth-child(6) {
	color: green;
}
table.torrent-list td:nth-child(7) {
	color: red;
}

#torrent-description img {
	max-width: 100%;
}

.search-container {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.search-container > .search-bar {
	border-left: 0;
}

.form-control.search-bar {
	-webkit-box-ordinal-group: 4;
	-ms-flex-order: 3;
	order: 3;
	width: 99%;
	padding-right: 1em;
	border-left: 0;
}

.search-btn {
	-webkit-box-ordinal-group: 5;
	-ms-flex-order: 4;
	order: 4;
	-ms-flex-item-align: end;
	align-self: flex-end;
	top: -34px;
	height: 0;
	width: auto;
	z-index: 3;
}

.navbar-collapse.in {
	overflow-y: visible;
}

.center {
	float: none;
	margin: 0 auto;
	text-align: center;
}

@media (max-width: 991px) {
	.panel-body .col-md-5 {
		margin-left: 20px;
		margin-bottom: 10px;
	}

	.search-container > .search-bar {
		margin-top: 15px;
	}

	.table-responsive > .table > tbody > tr > td:nth-of-type(2) {
		white-space: unset;
		word-break: break-all;
	}

	.container {
		width: unset;
	}

	.container > .row {
		margin: unset;
	}
}

/* PC端(index/list/movie页面)容器统一宽度1050px，移动端不受影响 */
@media (min-width: 992px) {
	body.pc-1050 .container {
		width: 1050px;
		max-width: 100%;
	}
}

@media (min-width: 992px) {
	.panel-body .col-md-5 {
		word-wrap: break-word;
	}

	.search-btn {
		top: 0;
		width: auto;
	}

	.bootstrap-select > button {
		margin-top: auto;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {

	.search-container {
		width: 400px;
	}

	.table-responsive > .table > tbody > tr > td:nth-of-type(2) {
		white-space: unset;
	}
}

blockquote {
	font-size: inherit;
}

@media (max-width: 767px) {
	.hdr-date, .hdr-downloads,
	table.torrent-list > tbody > tr > td:nth-child(4),
	table.torrent-list > tbody > tr > td:nth-child(5),
	table.torrent-list > tbody > tr > td:nth-child(8) {
		display: none;
	}

	table.torrent-list > tbody > tr > td:nth-child(7) {
		border-right: 0;
	}

	.table thead > tr > th {
		border-right: none;
	}

	table.torrent-list > tbody > tr > td:nth-child(3) > a {
		display: block;
	}

	.hdr-link {
		width: 32px !important;
	}

	.hdr-seeders, .hdr-leechers {
		width: 48px !important;
	}

	.hdr-category {
		width: 20px !important;
		overflow: hidden;
		text-indent: -9999px;
	}

	table.torrent-list > tbody > tr > td:first-child {
		overflow: hidden;
	}

	table.torrent-list > tbody > tr > td:first-child img {
		width: 50px;
		height: auto;
	}
}

#icon-container{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:5px 10px}
#icon-container:before,#icon-container:after{content:none;display:none}
#icon-container a{display:block;min-height:1px}
#icon-container a:hover{opacity:.7}
#icon-container img{display:block;width:100%;height:auto;border-radius:6px}
@media (max-width:767px){#icon-container{padding:3px}}
@media (min-width:768px){#icon-container{grid-template-columns:repeat(10,1fr)}}

/* 影片信息卡片：名称与值内联在同一行，长值(hash)允许断行防止撑破容器 */
.movie-info-grid .info-label {
    font-weight: bold;
}

.movie-info-grid .col-md-6 {
    word-break: break-all;
}

/* 增加信息项之间的上下间距 */
.movie-info-grid > .col-md-6 {
    margin-bottom: 10px;
}

/* 信息标签弱化为辅助色，值保持主色，层次更清晰 */
.movie-info-grid .info-label {
    color: var(--text-muted);
}

.movie-info-grid > .col-md-6:last-child {
    margin-bottom: 0;
}

/* 移除点击链接/按钮时出现的黑色聚焦边框 */
a,
button,
.btn,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}
a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible,
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn.active:focus,
.btn:active:focus,
input[type="button"]:focus,
input[type="button"]:active,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="reset"]:focus,
input[type="reset"]:active,
[role="button"]:focus,
[role="button"]:active {
    outline: none;
    outline: 0;
    outline-offset: 0;
    box-shadow: none;
}

/* ============================================================
   现代细节打磨：只做视觉细节微调，不改变页面结构与主体配色
   ============================================================ */
:root {
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --border-soft: #e8ebee;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-float: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

/* 系统原生字体栈，中文回退苹方/微软雅黑，观感更现代 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.65;
}

/* 文本选中色与主题蓝呼应 */
::selection {
    background: rgba(51, 122, 183, 0.18);
}

/* 链接颜色平滑过渡 */
a {
    transition: color 0.15s ease;
}

/* ---------- 导航条 ---------- */
.navbar-static-top {
    box-shadow: var(--shadow-soft);
}

.navbar-inverse {
    background-color: #1e2530;
    border-color: transparent;
}

.navbar-inverse .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.15s ease;
}

/* 当前栏目：仅底部细线 + 文字提亮，去掉大块深色背景 */
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
    color: #fff;
}

/* 导航内搜索框与深色底更协调 */
.navbar-inverse .navbar-form .form-control {
    border-color: transparent;
    box-shadow: none;
}

.navbar-inverse .navbar-nav > li > a {
    transition: color 0.15s ease, background-color 0.15s ease;
}

/* 当前栏目底部细线高亮，替代大块深色背景，更轻盈 */
.navbar-inverse .navbar-nav > .active > a {
    box-shadow: inset 0 -2px 0 var(--accent-green);
}

/* ---------- 面板/卡片 ---------- */
.panel {
    border-radius: var(--radius-md);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.panel > .panel-heading {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    font-weight: 600;
    background-color: #fafbfc;
    border-bottom-color: var(--border-soft);
}

.panel > .panel-body:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* ---------- 列表表格 ---------- */
.torrent-list > thead > tr > th {
    background-color: #fafbfc;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid var(--border-soft);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border-color: var(--border-soft);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafbfc;
}

.table-hover > tbody > tr:hover {
    background-color: #f4f8fc;
}

/* 行悬浮背景色平滑过渡 */
.torrent-list > tbody > tr {
    transition: background-color 0.15s ease;
}

/* 标题链接字重稍加，日期列弱化为辅助信息 */
.torrent-list > tbody > tr > td:nth-child(2) > a {
    font-weight: 500;
}

/* 列表标题链接：默认继承链接色，悬浮加下划线 */
.table.torrent-list > tbody > tr > td > a:hover {
    text-decoration: underline;
}

/* ---------- 按钮 ---------- */
.btn {
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

/* 主题蓝按钮：微渐变 + 悬浮投影，观感更现代 */
.btn-primary,
.btn-primary:active,
.btn-primary:focus {
    background-image: var(--gradient-green);
    border-color: rgba(0, 0, 0, 0.05);
}

.btn-primary:hover,
.btn-primary:focus {
    background-image: linear-gradient(135deg, var(--accent-green-dark) 0%, var(--accent-green-dark) 100%);
    box-shadow: 0 2px 8px rgba(51, 122, 183, 0.3);
}

/* 详情页下载/磁力主按钮稍微加大，强化主操作 */
.download .btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
}

/* ---------- 表单 ---------- */
.form-control {
    border-radius: var(--radius-sm);
    border-color: #d6dbe0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: #7badde;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.1);
}

/* ---------- 提示条 ---------- */
.alert {
    border-radius: var(--radius-md);
}

.alert-info {
    border-color: #d9eaf7;
    background-color: #f2f8fd;
    color: #31708f;
    border-left: 3px solid var(--accent-green);
}

/* ---------- 分页 ---------- */
.pagination > li > a,
.pagination > li > span {
    margin-bottom: 6px;
    border-color: var(--border-soft);
    color: var(--accent-green);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: #f0f6fc;
    border-color: #c5dbf1;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

/* ---------- 其他小细节 ---------- */
kbd {
    border-radius: var(--radius-sm);
    box-shadow: none;
}

/* ---------- 可访问性与交互细节 ---------- */
/* 键盘聚焦时给出可见环（不影响鼠标点击外观，覆盖前面去 outline 的规则） */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid rgba(51, 122, 183, 0.45);
    outline-offset: 2px;
}

/* 永久域名提示中的红色域名，替代过时的 font 标签 */
.domain-accent {
    color: var(--accent-red);
    font-weight: 600;
}

/* 内联 SVG 图标(替代 Font Awesome) */
.fa-svg{width:1.28571429em;height:1em;fill:currentColor;display:inline-block;vertical-align:-0.125em}
