/* ZTZN Live Template - 智体直播风格 */
:root {
  --ztzn-primary: #c8102e;
  --ztzn-primary-dark: #a00d24;
  --ztzn-text: #222;
  --ztzn-text-muted: #888;
  --ztzn-border: #eee;
  --ztzn-bg: #f4f4f4;
  --ztzn-card-bg: #fff;
  --ztzn-blue: #2c6fc7;
  --ztzn-link: #2c6fc7;
}

* { box-sizing: border-box; }

body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--ztzn-text); background: var(--ztzn-bg); }

a { color: var(--ztzn-link); text-decoration: none; }
a:hover { color: var(--ztzn-primary); text-decoration: underline; }

img { max-width: 100%; display: block; }

.ztzn-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.ztzn-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.ztzn-topbar { background: #1f1f1f; color: #ddd; padding: 14px 0; }
.ztzn-topbar .ztzn-container { display: flex; justify-content: space-between; align-items: center; }
.ztzn-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.ztzn-logo:hover { text-decoration: none; }
.ztzn-logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ztzn-primary); color: #fff; font-weight: 700; font-size: 16px;
}
.ztzn-logo strong { font-size: 20px; letter-spacing: 1px; }
.ztzn-topbar-right .ztzn-clock { color: #ccc; font-size: 13px; }

.ztzn-nav { background: var(--ztzn-primary); }
.ztzn-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ztzn-nav li { position: relative; }
.ztzn-nav li > a {
  display: block; padding: 12px 22px; color: #fff; font-size: 15px; font-weight: 500;
}
.ztzn-nav li > a:hover { background: var(--ztzn-primary-dark); text-decoration: none; }
.ztzn-nav li:hover .ztzn-subnav { display: block; }
.ztzn-subnav {
  display: none; position: absolute; top: 100%; left: 0; min-width: 160px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 99;
}
.ztzn-subnav a { display: block; padding: 10px 16px; color: var(--ztzn-text); font-size: 14px; border-bottom: 1px solid var(--ztzn-border); }
.ztzn-subnav a:hover { background: #f7f7f7; color: var(--ztzn-primary); text-decoration: none; }

.ztzn-hotbar { background: #fafafa; border-bottom: 1px solid var(--ztzn-border); padding: 8px 0; }
.ztzn-hotbar .ztzn-container { display: flex; align-items: center; gap: 14px; }
.ztzn-hotbar-label { color: var(--ztzn-primary); font-weight: 600; font-size: 13px; }
.ztzn-hotbar-list { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.ztzn-hotbar-list a { color: #555; font-size: 13px; }
.ztzn-hotbar-list a:hover { color: var(--ztzn-primary); }

/* ===== Main ===== */
.ztzn-main { padding: 24px 0; min-height: 60vh; }

/* ===== Focus ===== */
.ztzn-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.ztzn-focus-left a.ztzn-focus-cover {
  display: block; position: relative; border-radius: 4px; overflow: hidden;
  background: #1a1a1a; aspect-ratio: 16/9;
}
.ztzn-focus-left a.ztzn-focus-cover img { width: 100%; height: 100%; object-fit: cover; }
.ztzn-focus-title {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff; font-size: 18px; font-weight: 600;
}
.ztzn-focus-right { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 16px 20px; border-radius: 4px; }

.ztzn-news-list { list-style: none; margin: 0; padding: 0; }
.ztzn-news-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--ztzn-border); font-size: 14px; }
.ztzn-news-list li:last-child { border-bottom: 0; }
.ztzn-news-list li a { color: var(--ztzn-text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.ztzn-news-list li a:hover { color: var(--ztzn-primary); }
.ztzn-news-list li span { color: var(--ztzn-text-muted); font-size: 12px; flex-shrink: 0; }

.ztzn-empty { display: block; padding: 24px; text-align: center; color: var(--ztzn-text-muted); background: #fafafa; border-radius: 4px; }

/* ===== Panel Title ===== */
.ztzn-panel-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ztzn-primary); padding-bottom: 8px; margin-bottom: 14px; }
.ztzn-panel-title h2 { font-size: 18px; margin: 0; color: var(--ztzn-text); font-weight: 600; }
.ztzn-more { font-size: 13px; color: var(--ztzn-text-muted); }
.ztzn-more:hover { color: var(--ztzn-primary); }

/* ===== Live Table ===== */
.ztzn-live { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 16px 20px; border-radius: 4px; margin-bottom: 24px; }
.ztzn-live-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.ztzn-live-tabs span, .ztzn-live-tabs a { padding: 4px 14px; font-size: 13px; color: #555; background: #f4f4f4; border-radius: 14px; cursor: pointer; }
.ztzn-live-tabs .active, .ztzn-live-tabs a:hover { background: var(--ztzn-primary); color: #fff; text-decoration: none; }

.ztzn-live-table { border: 1px solid var(--ztzn-border); }
.ztzn-live-thead, .ztzn-live-row {
  display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 2.4fr 0.8fr;
  align-items: center; padding: 10px 12px;
}
.ztzn-live-thead { background: #f8f8f8; font-weight: 600; color: #555; font-size: 13px; border-bottom: 1px solid var(--ztzn-border); }
.ztzn-live-row { border-bottom: 1px solid var(--ztzn-border); font-size: 13px; }
.ztzn-live-row:last-child { border-bottom: 0; }
.ztzn-live-row:hover { background: #fafafa; }
.ztzn-live-row .ztzn-col-team { display: flex; align-items: center; gap: 6px; }
.ztzn-live-row .ztzn-col-team img { width: 18px; height: 18px; object-fit: contain; }
.ztzn-live-row .ztzn-col-team a { display: inline-flex; align-items: center; gap: 4px; color: var(--ztzn-text); }
.ztzn-live-row .ztzn-col-team a:hover { color: var(--ztzn-primary); }
.ztzn-live-row .ztzn-col-team b { color: var(--ztzn-primary); font-weight: 700; margin: 0 4px; }

.ztzn-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.ztzn-status-live { background: #ffe5e8; color: var(--ztzn-primary); }
.ztzn-status-finished { background: #eee; color: #888; }
.ztzn-status-scheduled { background: #e8f1ff; color: var(--ztzn-blue); }

.ztzn-watch-btn {
  display: inline-block; padding: 4px 12px; background: var(--ztzn-primary); color: #fff; border-radius: 3px; font-size: 12px; text-align: center;
}
.ztzn-watch-btn:hover { background: var(--ztzn-primary-dark); color: #fff; text-decoration: none; }
.ztzn-watch-btn-disabled { background: #bbb; pointer-events: none; }

/* ===== News Matrix ===== */
.ztzn-news-matrix { margin-bottom: 24px; }
.ztzn-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ztzn-news-card { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); border-radius: 4px; overflow: hidden; transition: transform 0.2s; }
.ztzn-news-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.ztzn-news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ztzn-news-card h3 { font-size: 14px; margin: 10px 12px 6px; line-height: 1.4; }
.ztzn-news-card p { font-size: 12px; color: var(--ztzn-text-muted); margin: 0 12px 10px; }

/* ===== Replay ===== */
.ztzn-replay { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 16px 20px; border-radius: 4px; margin-bottom: 24px; }
.ztzn-replay-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ztzn-replay-list li { background: #fafafa; border-radius: 4px; overflow: hidden; }
.ztzn-replay-list a { display: block; }
.ztzn-replay-list img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ztzn-replay-title { display: block; padding: 8px 10px; font-size: 13px; color: var(--ztzn-text); line-height: 1.4; }
.ztzn-replay-date { display: block; padding: 0 10px 8px; color: var(--ztzn-text-muted); font-size: 11px; }

/* ===== Friend Links ===== */
.ztzn-friendlinks { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 16px 20px; border-radius: 4px; margin-bottom: 24px; }
.ztzn-friendlinks-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ztzn-friendlinks-list a { color: #555; font-size: 13px; }

/* ===== Layout with sidebar ===== */
.ztzn-container:has(.ztzn-list-section) { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: flex-start; }
.ztzn-container:has(.ztzn-article) { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: flex-start; }
.ztzn-container:has(.ztzn-match-detail) { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: flex-start; }

/* ===== Breadcrumb ===== */
.ztzn-breadcrumb { padding: 12px 0; color: var(--ztzn-text-muted); font-size: 13px; }
.ztzn-breadcrumb a { color: var(--ztzn-text-muted); }
.ztzn-breadcrumb a:hover { color: var(--ztzn-primary); }

/* ===== List Page ===== */
.ztzn-list-section { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 16px 20px; border-radius: 4px; }
.ztzn-list-desc { color: var(--ztzn-text-muted); font-size: 13px; }
.ztzn-list { list-style: none; margin: 0; padding: 0; }
.ztzn-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--ztzn-border); }
.ztzn-list li:last-child { border-bottom: 0; }
.ztzn-list li > a { flex: 1; }
.ztzn-list li h3 { font-size: 16px; margin: 0 0 6px; color: var(--ztzn-text); }
.ztzn-list li h3:hover { color: var(--ztzn-primary); }
.ztzn-list li p { font-size: 13px; color: #666; line-height: 1.5; margin: 0 0 6px; }
.ztzn-list li span { font-size: 12px; color: var(--ztzn-text-muted); }
.ztzn-list li > img { width: 180px; height: 120px; object-fit: cover; border-radius: 4px; }

.ztzn-pagination { display: flex; gap: 6px; justify-content: center; padding: 18px 0; }
.ztzn-pagination a {
  padding: 4px 10px; background: #f4f4f4; color: var(--ztzn-text); border-radius: 3px; font-size: 13px;
}
.ztzn-pagination a:hover, .ztzn-pagination a[aria-current] { background: var(--ztzn-primary); color: #fff; text-decoration: none; }

/* ===== Sidebar ===== */
.ztzn-sidebar { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); border-radius: 4px; padding: 0; }
.ztzn-sidebar section { padding: 14px 16px; border-bottom: 1px solid var(--ztzn-border); }
.ztzn-sidebar section:last-child { border-bottom: 0; }
.ztzn-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ztzn-tagcloud a { padding: 3px 10px; background: #f4f4f4; color: #555; font-size: 12px; border-radius: 12px; }
.ztzn-tagcloud a:hover { background: var(--ztzn-primary); color: #fff; text-decoration: none; }
.ztzn-sb-list { list-style: none; margin: 0; padding: 0; }
.ztzn-sb-list li { padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--ztzn-border); }
.ztzn-sb-list li:last-child { border-bottom: 0; }
.ztzn-sb-list a { color: var(--ztzn-text); }
.ztzn-sb-list a:hover { color: var(--ztzn-primary); }

/* ===== Article ===== */
.ztzn-article { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 24px 28px; border-radius: 4px; }
.ztzn-article h1 { font-size: 24px; line-height: 1.4; margin: 0 0 14px; color: var(--ztzn-text); }
.ztzn-article-meta { color: var(--ztzn-text-muted); font-size: 13px; margin: 0 0 16px; }
.ztzn-article-meta span { margin-right: 16px; }
.ztzn-article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.ztzn-article-summary { background: #fafafa; border-left: 3px solid var(--ztzn-primary); padding: 12px 16px; color: #555; font-size: 14px; line-height: 1.6; }
.ztzn-article-content p { font-size: 15px; line-height: 1.85; color: #333; margin: 14px 0; }
.ztzn-article-tags { padding: 14px 0; border-top: 1px dashed var(--ztzn-border); margin-top: 16px; }
.ztzn-article-tags span { font-weight: 600; margin-right: 6px; }
.ztzn-article-tags a { display: inline-block; padding: 2px 10px; background: #f4f4f4; color: #555; border-radius: 12px; font-size: 12px; margin-right: 6px; }

.ztzn-related-news { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ztzn-border); }
.ztzn-related-news ul { list-style: none; margin: 0; padding: 0; }
.ztzn-related-news li { padding: 12px 0; border-bottom: 1px dashed var(--ztzn-border); }
.ztzn-related-news li:last-child { border-bottom: 0; }
.ztzn-related-news a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ztzn-related-news h4 { font-size: 14px; margin: 0; color: var(--ztzn-text); flex: 1; }
.ztzn-related-news h4:hover { color: var(--ztzn-primary); }
.ztzn-related-news span { font-size: 12px; color: var(--ztzn-text-muted); flex-shrink: 0; }
.ztzn-related-news p { font-size: 12px; color: #888; margin: 4px 0 0; line-height: 1.5; }

/* ===== Match Detail ===== */
.ztzn-match-detail { background: var(--ztzn-card-bg); border: 1px solid var(--ztzn-border); padding: 24px 28px; border-radius: 4px; }
.ztzn-match-header h1 { font-size: 22px; margin: 0 0 10px; }
.ztzn-match-header p { color: var(--ztzn-text-muted); font-size: 13px; }
.ztzn-match-header p span { margin-right: 14px; }

.ztzn-match-scoreboard { display: flex; align-items: center; justify-content: space-around; padding: 30px 0; background: #fafafa; border-radius: 4px; margin: 18px 0; }
.ztzn-match-scoreboard > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ztzn-match-scoreboard img { width: 60px; height: 60px; object-fit: contain; }
.ztzn-match-scoreboard strong { font-size: 18px; }
.ztzn-match-scoreboard > b { font-size: 28px; color: var(--ztzn-primary); font-weight: 800; }

.ztzn-signal-panel { margin: 18px 0; }
.ztzn-signal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ztzn-signal-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 16px; background: #f4f4f4; color: var(--ztzn-text);
  border: 1px solid var(--ztzn-border); border-radius: 4px; text-align: center;
}
.ztzn-signal-btn:hover { background: var(--ztzn-primary); color: #fff; text-decoration: none; border-color: var(--ztzn-primary); }
.ztzn-signal-primary { background: var(--ztzn-primary); color: #fff; border-color: var(--ztzn-primary); }
.ztzn-signal-primary:hover { background: var(--ztzn-primary-dark); }
.ztzn-signal-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ztzn-signal-action { font-size: 12px; }

.ztzn-match-content h3 { font-size: 18px; border-left: 3px solid var(--ztzn-primary); padding-left: 10px; }
.ztzn-match-content p { font-size: 14px; line-height: 1.8; color: #555; }

/* ===== Footer ===== */
.ztzn-footer { background: #1f1f1f; color: #aaa; padding: 30px 0 20px; margin-top: 30px; }
.ztzn-footer .ztzn-container { text-align: center; }
.ztzn-footer nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ztzn-footer nav a { color: #ccc; font-size: 13px; }
.ztzn-footer nav a:hover { color: #fff; }
.ztzn-footer p { font-size: 12px; color: #888; margin: 4px 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .ztzn-news-grid { grid-template-columns: repeat(3, 1fr); }
  .ztzn-replay-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ztzn-focus { grid-template-columns: 1fr; }
  .ztzn-news-grid { grid-template-columns: repeat(2, 1fr); }
  .ztzn-replay-list { grid-template-columns: 1fr; }
  .ztzn-container:has(.ztzn-list-section),
  .ztzn-container:has(.ztzn-article),
  .ztzn-container:has(.ztzn-match-detail) { grid-template-columns: 1fr; }
  .ztzn-live-thead, .ztzn-live-row { grid-template-columns: 1fr 0.7fr 0.7fr 1.5fr 0.7fr; font-size: 12px; padding: 8px 6px; }
  .ztzn-list li { flex-direction: column; }
  .ztzn-list li > img { width: 100%; height: auto; }
  .ztzn-nav ul { overflow-x: auto; white-space: nowrap; }
}
