/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-color: #333;
  --text-secondary: #666;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 12px;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 80px;
  z-index:30;
}
/* 导航栏 */
.topBar {
  position: fixed;
  z-index: 10;
  height:45px;
  width: 100%;
  display: grid;
  grid-template-columns:50px 6fr 90px;
  text-align: center;
  justify-content: space-between;
  align-items: center;
  input[type=radio]+label, input[type=checkbox]+label{
    background-color: #fff;
    color:black;
    box-shadow:1px 1px 0;
  }
  input[type=radio]+label:hover, input[type=checkbox]+label:hover {
    /* transform: translateY(-3px); */
    padding:0.2vh 0.5vh;
    background: #eaa;
    font-size: initial;
    color: red;
  }
}
div#Login:hover {
  background: aquamarine;
  color:red;
}
.flex-horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.MSG {
  position: fixed;
  left: 30%;
  width:40%;
  top: 30%;
  background: white;
  /* padding: 10px; */
  border-radius: 10px;
  z-index:12;
}
.navbar {
  position: fixed;
  /* top: 0; */
  /* left: 0; */
  /* right: 0; */
  top: 50%;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  z-index: 1000;
  /* height: 60px; */
  display: flex;
  flex-direction: column;
  /* float: right; */
  left: 0;
  border-radius:10px;
}
div#Login {
  padding:0.2vh 0.5vh;
  box-shadow: 1px 1px 0;
  border-radius: 10px;
  cursor: pointer;
  z-index:10;
  font-weight: 900;
}
.nav-container {
  /* max-width: 1400px; */
  margin: 0 auto;
  border-radius:10px;
  /* padding: 0 20px; */
  height: 100%;
  display: grid;
  grid-template-rows: auto;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-align:center;
  background: white;
}
.cont{
  z-index:3;
}
.content {
  padding:5px;
  margin-top: 40px;
  z-index:1;
  margin-bottom: 200px;
}
label{
  color:#FFF;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-direction: column;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 5px;
  border-radius: 8px;
  position: relative;
}
.nav-menu a:hover {
  background: var(--primary-color);
  color: white;
}
/* 主要内容区 */
.main-content {
  flex: 1;
  margin:3px 10px;
  /* padding-top: 80px; */
  padding-bottom: 40px;
}
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text-color);
  position: relative;
  padding-left: 20px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
}
/* 图片展示墙 - 瀑布流布局 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
span.dh label{
  display:block;
}
.gallery-item:hover {
  img{
    opacity: 0.9;
    filter: hue-rotate(45deg);
    transform: scale(1.2);
    transition: transform 0.3s;
  }
  img:hover{
    opacity: 0.9;
    filter: hue-rotate(280deg);
    transform: scale(1.1);
    transition: transform 0.3s;
  }
}
.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 5px 15px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}
/* 媒体卡片通用样式 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
/* 音频卡片 */
.audio-card {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px;
}
.audio-card .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audio-card .card-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}
.audio-card .card-content {
  flex: 1;
  min-width: 0;
}
.audio-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-card .card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.audio-card .card-play {
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.audio-card .card-play:hover {
  transform: scale(1.1);
  background: #27ae60;
}
.audio-card .card-play svg {
  width: 18px;
  height: 18px;
  fill: white;
  margin-left: 3px;
}
/* 视频卡片 */
.video-card {
  display: flex;
  flex-direction: column;
}
.video-card .video-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  background: #000;
  overflow: hidden;
}
.video-card .video-thumbnail video,
.video-card .video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.video-card:hover .play-btn {
  /* background: var(--primary-color); */
  box-shadow:unset;
  transform: translate(-50%, -50%) scale(1.1);
}
.video-card .play-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin-left: 4px;
}
.video-card .card-body {
  padding: 20px;
}
.video-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-card .card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active {
  display: flex;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  align-items: center;
  display: grid;
  /* grid-template-columns: 3fr 1fr; */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:10px;
}
.modal-close {
  position: absolute;
  top: -45px;
  right: -10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}
.modal-close:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: scale(1.1);
}
.modal-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--border-radius);
  object-fit: contain;
}
.modal-info {
  word-break: break-word;
  margin-top: 20px;
  color: white;
  text-align: center;
  table{
    color:black;
  }
}
.modal-info h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.modal-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 5px 0;
  color:white;
}
.exif-desc {
  color: #ffeb3b !important;
  font-style: italic;
  margin-bottom: 10px !important;
}
.Tmenu label{
  cursor:pointer;
}
/* 底部信息 */
.footer {
  background: black;
  color: white;
  padding: 30px 20px;
  margin-top: auto;
  .copyright{
    color:#aaa;
  }
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.icp-info {
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-indent:0;
}
.icp-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}
.icp-info a:hover {
  color: var(--primary-color);
}
.copyright {
  font-size: 0.85rem;
  opacity: 0.7;
}
/* 空状态提示 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state svg {
  width: 80px;
  height: 80px;
  fill: #ddd;
  margin-bottom: 20px;
}
/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
  .nav-toggle {
    /* display: flex; */
  }
  .MSG {
    position: fixed;
    left: 0%;
    width: 100%;
    top: 15%;
    background: white;
    /* padding: 10px; */
    border-radius: 10px;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li {
    text-align: center;
  }
  .section {
    padding: 30px 15px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .gallery-item img {
    height: 150px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .audio-card {
    padding: 15px;
  }
  .audio-card .card-icon {
    width: 50px;
    height: 50px;
  }
  .audio-card .card-play {
    width: 40px;
    height: 40px;
  }
  .video-card .video-thumbnail {
    height: 200px;
  }
  .modal-content {
    max-width: 100%;
  }
  .modal-info h3 {
    font-size: 1rem;
  }
  .modal-info p {
    font-size: 0.8rem;
  }
}
/* 小屏移动端 */
@media screen and (max-width: 480px) {
  .nav-logo {
    font-size: 1.2rem;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gallery-item img {
    height: 120px;
  }
  .section-title {
    font-size: 1.3rem;
  }
}
/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.exif-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.exif-section h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #ffeb3b;
}
.exif-section p {
  margin: 5px 0;
  font-size: 0.85rem;
  opacity: 0.9;
  color:white;
}
.footer{
  padding:3px 2px 30px 2px;
}
.card, .gallery-item {
  animation: fadeIn 0.5s ease forwards;
}
.card:nth-child(1), .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2), .gallery-item:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3), .gallery-item:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4), .gallery-item:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5), .gallery-item:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6), .gallery-item:nth-child(6) { animation-delay: 0.35s; }
.card:nth-child(7), .gallery-item:nth-child(7) { animation-delay: 0.4s; }
.card:nth-child(8), .gallery-item:nth-child(8) { animation-delay: 0.45s; }
.form-row label{
  color:#111;
}
.boxB {
  padding: 10px;
}
.HH{
  display:flex;
  justify-content: space-around;
}
button.CLOSE{
  background:red;
}
.boxB {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}
.hn60,.h3,.h4,.h5,.h6,.h7,.h8{
  display:grid;
  gap:10px;
  label{
    text-align:center;
    justify-content:center;
  }
}
.hn60{
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}
.h3{
  grid-template-columns:1fr 1fr 1fr;
}
.h4{
  grid-template-columns:1fr 1fr 1fr 1fr;
}
.h5{
  grid-template-columns:1fr 1fr 1fr 1fr 1fr;
}
.h6{
  grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;
}
.h7{
  grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
.h8{
  grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
input#otJE {
  width: 80px;
}
span.otE {
  display: flex;
  align-items: center;
}
.success{
  border:1px solid #b7eb8f;
  border-radius:6px;
  padding:14px;
  background:#f6ffed;
}
