* { box-sizing: border-box; }
html, body { 
  margin: 0; 
  padding: 0; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; 
  color: #222; 
  background: #f5f6f8; 
  line-height: 1.5;
}

.topbar { 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  height: 56px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0 16px; 
  background: linear-gradient(90deg, #1e7bf2, #3ba3ff); 
  color: #fff; 
  box-shadow: 0 2px 12px rgba(0,0,0,0.12); 
}
.brand { 
  font-weight: 700; 
  letter-spacing: .5px; 
  font-size: 18px;
}
.nav { 
  display: flex; 
  gap: 8px; 
}
.nav-item { 
  color: #eaf3ff; 
  text-decoration: none; 
  font-size: 14px; 
  padding: 8px 12px; 
  border-radius: 8px; 
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-item.active, .nav-item:hover { 
  background: rgba(255,255,255,.2); 
  color: #fff; 
  transform: translateY(-1px);
}

.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 16px 12px; 
}

.banner { 
  border-radius: 12px; 
  background: linear-gradient(135deg, #3ba3ff, #5bb5ff, #7bc5ff); 
  color: #fff; 
  min-height: 100px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 16px; 
  box-shadow: 0 4px 16px rgba(59, 163, 255, 0.3); 
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}
.banner-inner { 
  font-weight: 700; 
  letter-spacing: .8px; 
  font-size: 24px;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes shimmer {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
  50% { transform: translate(-50%, -50%) rotate(180deg); opacity: 1; }
}

/* 滚动图片展示 */
.scroll-gallery { 
  background: #fff; 
  border: 1px solid #e6e8eb; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
  margin-bottom: 16px; 
  min-height: 160px; 
  position: relative; 
}
.scroll-track { 
  display: inline-flex; 
  align-items: center; 
  gap: 16px; 
  padding: 16px; 
  white-space: nowrap; 
  animation: scroll-x 45s linear infinite; 
}
.scroll-gallery:hover .scroll-track { 
  animation-play-state: paused; 
}
.scroll-img { 
  height: 128px; 
  width: auto; 
  border-radius: 10px; 
  object-fit: cover; 
  border: 2px solid #f0f2f5; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* 增加手型光标，提示可点击 */
}
.scroll-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.scroll-empty { 
  position: absolute; 
  inset: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #8a94a6; 
  font-size: 14px; 
  text-align: center;
  padding: 20px;
}

@keyframes scroll-x { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* Lightbox 样式 */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.show {
  display: flex;
  opacity: 1;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox.show .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #bbb;
}

.table-card { 
  background: #fff; 
  border: 1px solid #e6e8eb; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
  margin-bottom: 16px;
}
.table-head, .table-row { 
  display: grid; 
  grid-template-columns: 45px 1fr 70px 40px 50px 45px 40px 40px 50px; 
  gap: 8px;
  align-items: center;
}
.table-head { 
  padding: 14px 16px; 
  background: linear-gradient(135deg, #f8f9fb, #f0f2f5); 
  color: #4c5565; 
  font-weight: 700; 
  border-bottom: 2px solid #e6e8eb; 
  font-size: 13px;
}
.table-row { 
  padding: 16px; 
  border-bottom: 1px solid #f0f2f5; 
  transition: all 0.2s ease;
  font-size: 14px;
}
.table-row:nth-child(odd) { 
  background: #fcfdff; 
}
.table-row:hover, .table-row:active { 
  background: #f0f8ff; 
  transform: translateX(2px);
}
.table-row > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-row > div:nth-child(1) {
  font-weight: 600;
  color: #1e7bf2;
}
.table-row > div:nth-child(2) {
  font-weight: 600;
  color: #2c3e50;
}
.table-row > div:nth-child(3) {
  font-weight: 700;
  color: #e74c3c;
}

/* 列对齐规则 */
.table-head > div:nth-child(1), .table-row > div:nth-child(1) { text-align: center; }
.table-head > div:nth-child(2), .table-row > div:nth-child(2) { text-align: left; padding-left: 4px; }
.table-head > div:nth-child(3), .table-row > div:nth-child(3) { text-align: center; }
.table-head > div:nth-child(4), .table-row > div:nth-child(4) { text-align: center; }
.table-head > div:nth-child(5), .table-row > div:nth-child(5),
.table-head > div:nth-child(6), .table-row > div:nth-child(6),
.table-head > div:nth-child(7), .table-row > div:nth-child(7),
.table-head > div:nth-child(8), .table-row > div:nth-child(8),
.table-head > div:nth-child(9), .table-row > div:nth-child(9) { text-align: right; padding-right: 4px; }

/* 移动端优化 */
@media (max-width: 768px) {
  .topbar {
    height: 52px;
    padding: 0 12px;
  }
  .brand {
    font-size: 16px;
  }
  .nav {
    gap: 4px;
  }
  .nav-item {
    font-size: 13px;
    padding: 6px 8px;
    min-height: 40px;
  }
  
  .container {
    padding: 12px 8px;
  }
  
  .banner {
    min-height: 80px;
    margin-bottom: 12px;
    border-radius: 10px;
  }
  .banner-inner {
    font-size: 18px;
    padding: 0 12px;
  }
  
  .scroll-gallery {
    min-height: 140px;
    margin-bottom: 12px;
    border-radius: 10px;
  }
  .scroll-track {
    padding: 12px;
    gap: 12px;
  }
  .scroll-img {
    height: 110px;
  }
  
  .table-card {
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .table-head, .table-row { 
    grid-template-columns: 40px 1fr 60px 35px 40px 35px 35px 35px 45px; 
    gap: 4px;
  }
  .table-head {
    padding: 12px 12px;
    font-size: 12px;
  }
  .table-row {
    padding: 14px 12px;
    font-size: 13px;
  }
  .table-row > div {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 48px;
    padding: 0 8px;
  }
  .brand {
    font-size: 15px;
  }
  .nav-item {
    font-size: 12px;
    padding: 5px 6px;
  }
  
  .container {
    padding: 8px 6px;
  }
  
  .banner {
    min-height: 70px;
    border-radius: 8px;
  }
  .banner-inner {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .scroll-gallery {
    min-height: 120px;
    border-radius: 8px;
  }
  .scroll-track {
    padding: 10px;
    gap: 10px;
  }
  .scroll-img {
    height: 95px;
    border-radius: 6px;
  }
  
  .table-card {
    border-radius: 8px;
  }
  .table-head, .table-row { 
    grid-template-columns: 30px 1fr 50px 30px 35px 30px 30px 30px 40px; 
    gap: 2px;
  }
  .table-head {
    padding: 10px 8px;
    font-size: 11px;
  }
  .table-row {
    padding: 12px 8px;
    font-size: 12px;
  }
  .table-row > div {
    font-size: 12px;
  }
}

/* 子导航优化 */
#my-subnav {
  margin: 12px 0 !important;
}
#my-subnav > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#my-subnav a {
  padding: 8px 16px !important;
  border: 2px solid #e6e8eb !important;
  border-radius: 20px !important;
  color: #4c5565 !important;
  text-decoration: none !important;
  background: #fff !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
#my-subnav a:hover, #my-subnav a.active {
  background: #1e7bf2 !important;
  color: #fff !important;
  border-color: #1e7bf2 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 123, 242, 0.3);
}

/* 画布优化 */
#curve-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  background: #fff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
}

/* 登录弹窗移动端优化 */
@media (max-width: 768px) {
  #my-subnav {
    margin: 8px 0 !important;
  }
  #my-subnav a {
    padding: 6px 12px !important;
    font-size: 13px;
    min-height: 40px;
    border-radius: 16px !important;
  }
  
  #curve-canvas {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  #my-subnav a {
    padding: 5px 10px !important;
    font-size: 12px;
    min-height: 36px;
    border-radius: 14px !important;
  }
  
  #curve-canvas {
    height: 140px !important;
  }
}
