/* putao_new v2 - full visual rewrite (light card theme) */

:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --text: #23314f;
  --text-soft: #64739a;
  --line: #dde5f2;
  --primary: #1266f1;
  --primary-strong: #0f55c9;
  --accent: #ff8a00;
  --danger: #e65757;
  --shadow: 0 10px 24px rgba(29, 55, 104, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 480px at 12% -6%, #e7f0ff 0, rgba(231, 240, 255, 0) 60%),
    radial-gradient(900px 360px at 90% 0, #ffeeda 0, rgba(255, 238, 218, 0) 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-strong);
}

.width1200,
.head_box,
.stui-pannel,
.addition-content,
.list-nav,
.white {
  width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.head_box,
.stui-pannel,
.list-nav,
.white {
  background: var(--panel);
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
}

/* header */
.head_box {
  margin-top: 14px;
}

.header {
  margin: 0;
  min-height: 106px;
  height: auto !important;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header_left,
.header_right,
.header_submit,
.header_submit_b {
  float: none !important;
}

.header_left {
  margin: 0;
}

.header_left a,
.header_left img {
  width: 270px;
  height: 72px;
}

.header_right {
  flex: 1;
  width: 100%;
  margin: 0;
}

.header_submit {
  width: 100%;
  margin: 0;
  height: auto;
}

.header_submit_b {
  display: flex;
}

.header_submit_b form {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.header_submit_b input[type=text] {
  flex: 1 1 auto;
  width: auto;
  height: 44px;
  line-height: 44px;
  border: 1px solid #cfd9ea;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--panel-soft);
  color: var(--text);
  text-indent: 14px;
  float: none !important;
  margin: 0 !important;
}

.header_submit_b input[type=text]::placeholder {
  color: #8a98b8;
}

.header_submit_b input[type=submit] {
  flex: 0 0 98px;
  width: 98px;
  height: 44px;
  border-radius: 0 10px 10px 0;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #4094ff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  float: none !important;
  margin: 0 !important;
}

.header_submit_b input[type=submit]:hover {
  background: linear-gradient(135deg, var(--primary-strong), #2f82f5);
}

.header_list {
  margin-top: 12px;
}

.header_list ul li {
  border-right: 1px solid #d7e0ef;
  color: var(--text-soft);
}

/* category area */
.nav {
  width: auto;
  margin: 10px;
  height: auto;
  overflow: hidden;
}

.nav .width1200 {
  width: 100% !important;
  margin: 0 !important;
}

.nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
  width: 100%;
}

.nav ul li {
  float: none !important;
  width: auto;
  height: 44px;
  line-height: 44px;
  margin: 0;
  border: 1px solid #d8e1f0;
  border-radius: 10px;
  background: #fff;
}

.nav ul li a {
  display: block;
  color: #34466f !important;
  font-size: 16px;
}

.nav ul li:nth-child(1),
.nav ul li:hover,
.nav ul li.yes {
  border-color: #b7ceff;
  background: linear-gradient(135deg, #eff5ff, #dfeeff);
}

.nav ul li:nth-child(1) a,
.nav ul li:hover a,
.nav ul li.yes a {
  color: #1249ac !important;
  font-weight: 700;
}

/* notice */
.announce-panel {
  margin-top: 14px;
  background: #fff !important;
  border: 1px solid #ffd6a3 !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.notice-head {
  padding: 14px 18px !important;
  background: linear-gradient(135deg, #ff9800, #ffb347) !important;
  border-bottom: 1px solid #ffb866 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notice-head .title {
  margin: 0;
  color: #fff !important;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.notice-meta {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px;
}

.notice-meta a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
}

.notice-body {
  padding: 14px 18px 18px !important;
  background: #fff !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.notice-body p {
  margin: 0 !important;
  color: #2f456f !important;
  word-break: break-all;
  background: #fffaf3;
  border: 1px solid #ffe3be;
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.8;
}

.notice-body .text-red {
  color: #e37900 !important;
  font-weight: 600;
}

.announce-panel,
.announce-panel * {
  text-shadow: none !important;
}

.announce-panel a:not(.text-red) {
  color: #1f4c99 !important;
}

.announce-panel .notice-meta {
  color: rgba(255, 255, 255, 0.92) !important;
}

.notice-body span[style*="E53333"] {
  display: inline-block;
  color: var(--danger) !important;
  border-left: 3px solid #ff8c8c;
  padding-left: 8px;
  background: #fff5f5;
}

/* list header + rows */
.addition-content {
  margin-top: 14px;
}

.videotitle {
  background: linear-gradient(135deg, #1a73ff, #4096ff);
  color: #fff;
  border-radius: 14px 14px 0 0 !important;
  border: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 130px 110px 130px;
  column-gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.videotitle .videoName,
.videotitle .category,
.videotitle .address,
.videotitle .time {
  color: #fff !important;
}

.videotitle .category,
.videotitle .address {
  text-align: center;
}

.videotitle .time {
  text-align: right;
}

.videoContent {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: var(--shadow) !important;
}

.videoContent li {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 130px 110px 130px;
  column-gap: 12px;
  align-items: center;
  padding: 10px 16px !important;
  border-bottom: 1px dashed #e1e8f3;
  float: none !important;
}

.videoContent li:last-child {
  border-bottom: 0;
}

.videoContent .videoName {
  display: block !important;
  width: auto !important;
  float: none !important;
  color: #1d2d4f !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoContent .category {
  text-align: center;
  color: #5d6f96;
}

.videoContent .address {
  display: inline-block !important;
  width: auto !important;
  float: none !important;
  text-align: center;
  border: 1px solid #ff9d2a;
  border-radius: 8px;
  color: #e88400;
  background: #fff7ec;
  padding: 3px 10px;
}

.videoContent .address:hover {
  color: #fff;
  background: #ff9d2a;
}

.videoContent .time {
  text-align: right;
  color: #7282a4;
}

/* paging */
.kscont {
  width: 980px;
  margin: 10px auto;
}

.pages {
  height: auto;
  line-height: 1.8;
  font-size: 14px;
  color: #5e6f94;
  text-align: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.pages a,
.pages span {
  border: 1px solid #d9e2f0;
  border-radius: 8px;
  background: #fff;
  color: #4a5f89;
}

.pages a:hover,
.pages span.active {
  background: #eaf2ff;
  border-color: #c6d8ff;
  color: #1349ac;
}

/* detail + play */
.list-nav.detail-breadcrumb,
.detail-card,
.player-card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
}

.list-nav.detail-breadcrumb span,
.list-nav.detail-breadcrumb .limit {
  color: #54688f !important;
  background: transparent !important;
}

.list-nav.detail-breadcrumb a {
  color: var(--primary) !important;
}

.section-title {
  background: linear-gradient(90deg, #f4f8ff 0, #fff8ed 100%) !important;
  color: #1c4d9f !important;
  font-size: 18px !important;
}

.detail-info-card .right p {
  color: #233a64 !important;
  font-weight: 600;
}

.bugs {
  border: 1px solid #7ea8ff;
  border-radius: 8px;
  background: #edf3ff;
  color: #295fce;
}

.bugs:hover {
  background: #2c66db;
  border-color: #2c66db;
  color: #fff;
}

.copy-all-btn {
  border: 1px solid #f0a2a2;
  border-radius: 8px;
  color: #d15b5b;
  background: #fff4f4;
}

.copy-all-btn:hover {
  background: #eb6a6a;
  border-color: #eb6a6a;
  color: #fff;
}

.copy-tip {
  color: #4f648f !important;
}

.detail-card,
.detail-card p,
.detail-card a,
.detail-card span {
  text-shadow: none !important;
  opacity: 1 !important;
}

.detail-play-card .player-title {
  color: #1f3f77 !important;
  font-weight: 700;
  background: #f1f6ff;
  border-radius: 8px;
  padding-left: 12px;
  border: 1px solid #d8e5ff;
}

.detail-play-card .play-group {
  margin: 12px 14px 16px;
}

.detail-play-card .play-group h4 {
  margin: 0 0 8px;
}

.detail-play-card .playlist {
  border: 1px solid #dbe4f5;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px 12px;
}

.detail-play-card .play-url-list {
  margin: 0;
  padding: 0;
}

.detail-play-card .text-style {
  display: flex !important;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border-bottom: 1px dashed #d8e2f2;
  padding: 10px 0 !important;
  margin: 0;
}

.detail-play-card .text-style:last-child {
  border-bottom: 0;
}

.detail-play-card .copy_text {
  flex: 1 1 auto;
  min-width: 0;
  color: #cc1f1f !important;
  overflow-wrap: anywhere;
}

.detail-play-card .copy_text font {
  color: #e42b2b !important;
}

.detail-play-card .bugs {
  flex: 0 0 auto;
  display: inline-block;
  padding: 4px 14px;
  line-height: 1.4;
  text-align: center;
}

.detail-play-card .copy-all-btn {
  flex: 0 0 auto;
  display: inline-block;
  padding: 4px 12px;
  line-height: 1.4;
}

.detail-play-card .copy-tip {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.player-card {
  min-height: 620px !important;
  padding: 14px !important;
}

.player-card iframe,
.player-card video,
.player-card object,
.player-card embed,
.player-card #player,
.player-card .MacPlayer,
.player-card .MacPlayerBox,
.player-card .dplayer {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 540px !important;
}

/* footer */
.footer {
  margin-top: 20px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer_right p {
  color: #6d7fa6;
}

/* responsive */
@media (max-width: 1024px) {
  .width1200,
  .head_box,
  .stui-pannel,
  .addition-content,
  .list-nav,
  .white,
  .kscont {
    width: calc(100% - 12px);
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px !important;
  }

  .nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav ul li {
    height: 40px;
    line-height: 40px;
  }

  .header_left a,
  .header_left img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .header_right,
  .header_submit,
  .header_submit_b,
  .header_submit_b form {
    width: 100% !important;
  }

  .header_submit_b input[type=text] {
    min-width: 0;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }

  .header_submit_b input[type=submit] {
    flex: 0 0 86px;
    width: 86px;
    height: 40px;
    font-size: 14px;
  }

  .header_list {
    margin-top: 8px;
    width: 100%;
  }

  .header_list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header_list ul li {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    height: auto;
    line-height: 1.4;
  }

  .notice-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice-head .title {
    font-size: 18px;
    line-height: 1.35;
  }

  .notice-meta {
    font-size: 13px;
  }

  .videotitle,
  .videoContent li {
    grid-template-columns: minmax(0, 1fr) 92px 92px 100px;
    column-gap: 8px;
  }

  .player-card {
    min-height: 360px !important;
    padding: 10px !important;
  }

  .player-card iframe,
  .player-card video,
  .player-card object,
  .player-card embed,
  .player-card #player,
  .player-card .MacPlayer,
  .player-card .MacPlayerBox,
  .player-card .dplayer {
    min-height: 260px !important;
  }

  .detail-play-card .text-style {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .detail-play-card .copy-tip {
    margin-left: 0;
    white-space: normal;
  }
}
