/* ================= 页面基础 ================= */
.dt-photo-page { background-color: #f5f5f5; padding-bottom: 40px; padding-top: 20px; }

/* ================= 顶部筛选与分类 ================= */
.dt-filter-wrap { background: #fff; width: 1300px; max-width: 100%; margin: 0 auto 20px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); overflow: hidden; }
/* 一级导航条 */
.dt-nav-bar { border-bottom: 1px solid #f0f0f0; }
.dt-nav-inner { display: flex; align-items: center; height: 60px; padding: 0 20px; box-sizing: border-box; overflow-x: auto; white-space: nowrap; }
/* 隐藏滚动条但保留滚动功能 */
.dt-nav-inner::-webkit-scrollbar { display: none; }

/* 一级分类项 */
.dt-nav-item { color: #333; font-size: 16px; text-decoration: none; margin-right: 30px; display: flex; align-items: center; height: 100%; position: relative; transition: color 0.3s; }
.dt-nav-item:hover { color: #feae34; }
.dt-nav-item.on { color: #feae34; font-weight: bold; }
.dt-nav-item.on::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #feae34; }

/* 二级分类区域外层 */
.dt-sub-nav-wrap { background: #fafafa; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
/* 二级分类面板 */
.dt-sub-nav { display: flex; flex-wrap: wrap; gap: 10px; }
/* 二级分类的胶囊按钮 */
.dt-sub-item { display: inline-block; padding: 6px 16px; background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; color: #555; font-size: 14px; text-decoration: none; transition: all 0.3s; }
.dt-sub-item:hover { border-color: #feae34; color: #feae34; background: #fff5f0; }
.dt-sub-item.on { background: #feae34; border-color: #feae34; color: #fff; }

/* ================= 两栏主布局 ================= */
.dt-photo-container { 
    width: 1300px; 
    max-width: 100%; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 20px; 
    box-sizing: border-box; 
}

.dt-photo-main { 
    flex: 1; 
    min-width: 0;
}
.dt-photo-side { 
    width: 320px; 
    flex-shrink: 0; 
}
/* ================= 左侧内容区 ================= */
.dt-photo-box { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.dt-photo-box-head { border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; margin-bottom: 20px; }
.dt-photo-box-head h3 { margin: 0; font-size: 20px; color: #333; display: flex; align-items: center; font-weight: bold; }
.dt-photo-box-head h3 i { color: #feae34; margin-right: 10px; font-size: 22px; }

/* 图库网格 (支持自适应) */
.dt-photo-rec-grid, .dt-photo-all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* 图库卡片 */
.dt-photo-card { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: all 0.3s; }
.dt-photo-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #feae34; }
.dt-photo-card a { display: block; text-decoration: none; }
.dt-photo-card-img { position: relative; padding-top: 75%; overflow: hidden; background: #f9f9f9; }
.dt-photo-card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dt-photo-card:hover .dt-photo-card-img img { transform: scale(1.05); }
.dt-photo-card-title { padding: 12px; font-size: 15px; color: #333; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 右侧侧边栏 ================= */
.dt-photo-side-box { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.dt-photo-side-head { font-size: 18px; font-weight: bold; color: #333; border-left: 4px solid #feae34; padding-left: 10px; margin-bottom: 15px; line-height: 1.2; }

/* 排行榜 */
.dt-photo-rank-list { display: flex; flex-direction: column; }
.dt-side-rank-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.dt-side-rank-item:last-child { border-bottom: none; }
.dt-rank-num { width: 20px; height: 20px; line-height: 20px; text-align: center; background: #f0f0f0; color: #999; border-radius: 4px; font-size: 12px; margin-right: 10px; flex-shrink: 0; }
.dt-rank-top { background: #feae34; color: #fff; }
.dt-rank-title { color: #333; text-decoration: none; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.dt-rank-title:hover { color: #feae34; }
.dt-rank-hits { color: #999; font-size: 12px; flex-shrink: 0; }

/* 热门分类 */
.dt-photo-cat-list { list-style: none; padding: 0; margin: 0; }
.dt-photo-cat-list li { margin-bottom: 10px; }
.dt-photo-cat-list li:last-child { margin-bottom: 0; }
.dt-photo-cat-list a { display: flex; align-items: center; background: #f8f8f8; padding: 12px 15px; border-radius: 6px; color: #555; text-decoration: none; transition: all 0.3s; font-size: 14px; }
.dt-photo-cat-list a:hover { background: #fff5f0; color: #feae34; }
.dt-photo-cat-list a i { display: inline-block; width: 6px; height: 6px; border-top: 2px solid #ccc; border-right: 2px solid #ccc; transform: rotate(45deg); margin-right: 10px; }

/* ================= 响应式适配 ================= */
@media (max-width: 1024px) {
    .dt-photo-main { width: 100%; }
    .dt-photo-side { display: none; }
    .dt-photo-rec-grid, .dt-photo-all-grid { grid-template-columns: repeat(3, 1fr); }
    .dt-filter-wrap { border-radius: 0; }
}

@media (max-width: 768px) {
    .dt-photo-container { flex-direction: column; }
    .dt-nav-inner { height: 50px; padding: 0 10px; }
    .dt-nav-item { font-size: 15px; margin-right: 20px; }
    .dt-photo-box { padding: 15px; }
    .dt-photo-box-head h3 { font-size: 18px; }
    .dt-photo-rec-grid, .dt-photo-all-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dt-photo-card-title { font-size: 14px; padding: 10px; }
    /* 手机端二级分类滑动 */
    .dt-sub-nav-wrap { padding: 10px; }
    .dt-sub-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .dt-sub-item { flex-shrink: 0; padding: 4px 12px; font-size: 13px; }
}

/* ================= 列表页面包屑 ================= */
.dt-breadcrumb-bar { background: #fff; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.dt-breadcrumb-inner { width: 1300px; max-width: 100%; margin: 0 auto; padding: 15px 10px; box-sizing: border-box; font-size: 14px; color: #666; }
.dt-breadcrumb-inner a { color: #666; text-decoration: none; transition: color 0.3s; }
.dt-breadcrumb-inner a:hover { color: #feae34; }
.dt-breadcrumb-inner .dt-sep { margin: 0 8px; color: #ccc; font-family: simsun; }

/* ================= 列表页属性筛选区 ================= */
.dt-filter-box { padding: 15px 20px; margin-bottom: 20px; }
/* 适配 Destoon 原生属性筛选样式 */
.dt-filter-box .property { border: none; padding: 0; background: none; }
.dt-filter-box dl { margin: 0; padding: 8px 0; border-bottom: 1px dashed #eee; display: flex; }
.dt-filter-box dl:last-child { border-bottom: none; }
.dt-filter-box dt { width: 80px; color: #999; font-weight: normal; flex-shrink: 0; }
.dt-filter-box dd { flex-grow: 1; margin: 0; }
.dt-filter-box dd a { display: inline-block; padding: 2px 10px; margin-right: 10px; border-radius: 4px; color: #555; text-decoration: none; font-size: 13px; transition: all 0.2s; }
.dt-filter-box dd a:hover { background: #fff5f0; color: #feae34; }
.dt-filter-box dd a.on { background: #feae34; color: #fff; }

/* ================= 右侧侧边栏分类导航 ================= */
.dt-side-cat-nav { list-style: none; padding: 0; margin: 0; }
.dt-side-cat-nav li { margin-bottom: 8px; }
.dt-side-cat-nav li:last-child { margin-bottom: 0; }
.dt-side-cat-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-radius: 6px; color: #555; text-decoration: none; font-size: 14px; transition: all 0.3s; background: #f8f8f8; }
.dt-side-cat-nav a span { color: #999; font-size: 12px; }
/* 悬浮与选中状态 */
.dt-side-cat-nav a:hover { background: #fff5f0; color: #feae34; }
.dt-side-cat-nav li.on a { background: #feae34; color: #fff; font-weight: bold; }
.dt-side-cat-nav li.on a span { color: #fff; }

/* 分页样式微调 (覆盖掉原生难看的样式) */
.dt-photo-all-grid .pages { grid-column: 1 / -1; margin-top: 20px; text-align: center; padding: 10px 0; }








/* ================= 图库详情页（轮播版） ================= */
.dt-crumb-cur { color: #999; }
.dt-breadcrumb-inner i { margin-right: 4px; color: #bbb; }
.dt-photo-side.dt-side-sticky { position: sticky; top: 20px; align-self: flex-start; }

/* ---------- 画廊卡片 ---------- */
.dt-gallery-card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.dt-gallery-stage { position: relative; }

/* 轮播器 */
.dt-slider { position: relative; overflow: hidden; border-radius: 8px; background: #fafafa; }
.dt-slider-track { display: flex; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.dt-slide { 
	flex: 0 0 100%; 
	width: 100%; 
	height: 70vh; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	padding: 0; 
}

.dt-slide img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
	display: block; 
	user-select: none; 
	-webkit-user-drag: none; 
}
/* 悬浮圆形箭头 */
.dt-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; line-height: 48px; text-align: center; border-radius: 50%; background: rgba(0,0,0,0.30); color: #fff !important; font-size: 26px; text-decoration: none; opacity: 0; transition: all 0.3s; }
.dt-slider:hover .dt-slider-arrow { opacity: 1; }
.dt-slider-arrow:hover { background: #feae34; }
.dt-arrow-prev { left: 14px; }
.dt-arrow-next { right: 14px; }

/* 计数徽章 */
.dt-slider-counter { position: absolute; right: 16px; bottom: 14px; z-index: 3; padding: 4px 14px; border-radius: 20px; background: rgba(0,0,0,0.55); color: #fff; font-size: 13px; line-height: 1.6; }
.dt-slider-counter b { color: #feae34; font-size: 15px; }

/* 缩略图导航条 */
.dt-slider-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.dt-slider-thumbs::-webkit-scrollbar { height: 4px; }
.dt-slider-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.dt-slider-thumb { flex: 0 0 68px; height: 52px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.3s; background: #f5f5f5; }
.dt-slider-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-slider-thumb.on, .dt-slider-thumb:hover { border-color: #feae34; opacity: 1; }

/* 工具栏 */
.dt-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dt-tools-left, .dt-tools-right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dt-tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 20px; background: #f7f7f7; border: 1px solid #eee; color: #555; font-size: 14px; text-decoration: none; cursor: pointer; transition: all 0.3s; }
.dt-tool-btn:hover { background: #feae34; border-color: #feae34; color: #fff; }
.dt-tool-origin { color: #feae34; border-color: #fde3bf; background: #fff8ef; }

/* 简介 */
.dt-gallery-intro { margin-top: 18px; padding: 14px 18px; background: #fafafa; border-left: 3px solid #feae34; border-radius: 0 6px 6px 0; font-size: 14px; color: #666; line-height: 1.9; }

/* ---------- 通用内容卡片 ---------- */
.dt-photo-card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.dt-card-head { display: flex; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.dt-card-head h2 { margin: 0; font-size: 18px; font-weight: bold; color: #333; display: flex; align-items: center; }
.dt-card-head h2 i { color: #feae34; margin-right: 8px; font-size: 18px; }
.dt-head-flex { justify-content: space-between; }
.dt-more { font-size: 13px; color: #999; text-decoration: none; transition: color 0.3s; }
.dt-more:hover { color: #feae34; }

/* 详情正文 */
.dt-photo-content { font-size: 15px; color: #555; line-height: 2; word-break: break-word; }
.dt-photo-content img { max-width: 100%; height: auto; border-radius: 4px; }
.dt-photo-content p { margin: 0 0 12px; }

/* ---------- 右侧信息卡 ---------- */
.dt-info-card { background: #fff; border-radius: 10px; padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.dt-info-title { margin: 0 0 18px; font-size: 20px; font-weight: bold; color: #222; line-height: 1.45; }
.dt-info-stats { display: flex; align-items: stretch; padding: 14px 0; margin-bottom: 6px; border-top: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5; }
.dt-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; border-right: 1px solid #f2f2f2; }
.dt-stat:last-child { border-right: none; }
.dt-stat-num { color: #feae34; font-size: 20px; font-weight: bold; line-height: 1.2; }
.dt-stat-num.dt-stat-date { color: #666; font-size: 12px; font-weight: normal; }
.dt-stat-label { color: #999; font-size: 12px; }
a.dt-stat:hover .dt-stat-num { color: #f59e0b; }
.dt-info-row { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.dt-info-row:last-of-type { border-bottom: none; }
.dt-info-label { width: 56px; flex-shrink: 0; color: #999; line-height: 1.8; }
.dt-info-value { flex: 1; min-width: 0; color: #333; line-height: 1.8; }
.dt-tag { display: inline-block; padding: 3px 12px; background: #fff5f0; color: #feae34; border-radius: 4px; font-size: 13px; text-decoration: none; transition: all 0.3s; }
.dt-tag:hover { background: #feae34; color: #fff; }
.dt-info-property .property { border: none; background: none; padding: 0; }
.dt-info-property dl { margin: 0 0 6px; display: flex; font-size: 13px; }
.dt-info-property dl:last-child { margin-bottom: 0; }
.dt-info-property dt { width: 64px; flex-shrink: 0; color: #999; font-weight: normal; }
.dt-info-property dd { margin: 0; color: #333; }
.dt-info-actions { display: flex; gap: 10px; margin-top: 20px; }
.dt-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; border-radius: 8px; font-size: 15px; cursor: pointer; text-decoration: none; transition: all 0.3s; }
.dt-btn-award { background: linear-gradient(135deg, #feae34, #f59e0b); color: #fff; box-shadow: 0 4px 12px rgba(254,174,52,0.35); }
.dt-btn-award:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(254,174,52,0.5); }
.dt-btn-ghost { background: #fff; border: 1px solid #eee; color: #555; }
.dt-btn-ghost:hover { border-color: #feae34; color: #feae34; background: #fff8ef; }

/* ---------- 侧栏卡片 ---------- */
.dt-side-card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.dt-side-head { display: flex; align-items: center; font-size: 16px; font-weight: bold; color: #333; border-left: 4px solid #feae34; padding-left: 10px; margin-bottom: 15px; line-height: 1.2; }
.dt-side-head i { color: #feae34; margin-right: 6px; }
.dt-photo-side-action { font-size: 14px; color: #666; line-height: 1.9; }
.dt-photo-side-action a { color: #feae34; text-decoration: none; }
.dt-photo-side-action a:hover { text-decoration: underline; }
.dt-photo-side-action img { max-width: 100%; height: auto; }
.dt-photo-side-action .b20 { display: none; }

/* ---------- 浏览完毕浮层 ---------- */
.dt-photo-finish { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 9999; background: rgba(0,0,0,0.6); }
.dt-photo-finish-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 300px; padding: 32px 40px; box-sizing: border-box; background: #fff; border-radius: 12px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.dt-photo-finish-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 22px; }
.dt-photo-finish-title i { color: #feae34; margin-right: 6px; }
.dt-photo-finish-btns { display: flex; gap: 12px; justify-content: center; }
.dt-photo-finish-btn { padding: 9px 24px; border-radius: 20px; background: #f5f5f5; color: #555; font-size: 14px; cursor: pointer; transition: all 0.3s; }
.dt-photo-finish-btn:hover { background: #feae34; color: #fff; }
.dt-photo-finish-btn.dt-primary { background: #feae34; color: #fff; }
.dt-photo-finish-btn.dt-primary:hover { background: #f59e0b; }

/* ---------- 详情页响应式 ---------- */
@media (max-width: 1024px) {
	.dt-photo-side.dt-side-sticky { position: static; width: 100%; }
	.dt-info-card, .dt-side-card { margin-bottom: 15px; }
}
@media (max-width: 768px) {
	.dt-gallery-card, .dt-photo-card, .dt-info-card, .dt-side-card { padding: 15px; border-radius: 8px; }
	.dt-slide { min-height: 180px; padding: 10px; }
		.dt-slide { height: 50vh; }
	.dt-slide img { max-height: 60vh; }
	.dt-slider-arrow { width: 36px; height: 36px; line-height: 36px; font-size: 18px; opacity: 1; background: rgba(0,0,0,0.22); }
	.dt-arrow-prev { left: 6px; }
	.dt-arrow-next { right: 6px; }
	.dt-slider-counter { right: 10px; bottom: 10px; font-size: 12px; padding: 3px 10px; }
	.dt-slider-thumb { flex: 0 0 54px; height: 42px; }
	.dt-gallery-toolbar { flex-direction: column; align-items: stretch; }
	.dt-tools-left, .dt-tools-right { justify-content: center; }
	.dt-tool-btn { padding: 7px 14px; font-size: 13px; }
	.dt-info-title { font-size: 17px; }
	.dt-stat-num { font-size: 17px; }
	.dt-card-head h2 { font-size: 16px; }
	.dt-info-actions { gap: 8px; }
	.dt-btn { padding: 10px 6px; font-size: 14px; }
	.dt-photo-finish-box { min-width: 260px; padding: 24px 20px; }
}