/* 湖北心动信号 - 企业官网 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --live: #ef4444;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-main a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav-auth {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 50%, #312e81 100%);
  color: #fff;
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* Sections */
main {
  flex: 1;
}

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

.section {
  padding: 64px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.card-cover {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #e0e7ff, #ddd6fe);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.card-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover .live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--live);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.card-body {
  padding: 16px 20px 20px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent);
}

.viewers {
  color: var(--text-muted);
}

.viewers strong {
  color: var(--primary);
}

/* Overview text */
.overview-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 1.9;
  color: #334155;
  font-size: 0.98rem;
}

.overview-box .highlight {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-item {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-item h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.contact-item p,
.contact-item a {
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-grid p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* Page header (二级) */
.page-header {
  background: linear-gradient(135deg, #1e40af, #5b21b6);
  color: #fff;
  padding: 48px 24px;
}

.page-header h1 {
  font-size: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header p {
  max-width: 1200px;
  margin: 8px auto 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Sub nav (三级入口) */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.sub-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sub-nav a:hover,
.sub-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* Content page */
.content-page {
  padding: 40px 0 64px;
}

.content-article {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.content-article h2 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

.content-article h2:first-child {
  margin-top: 0;
}

.content-article p,
.content-article li {
  color: #475569;
  margin-bottom: 12px;
}

.content-article ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Policy list */
.policy-list {
  list-style: none;
}

.policy-list li {
  border-bottom: 1px solid var(--border);
}

.policy-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8px;
  transition: background 0.2s;
}

.policy-list a:hover {
  background: #f8fafc;
  color: var(--primary);
}

.policy-list .date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Login form */
.auth-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.tabs button {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.link-more {
  display: inline-block;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 500;
}

.link-more:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

/* Live detail */
.live-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .live-detail-header {
    grid-template-columns: 1fr;
  }
}

.live-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #1e293b, #334155);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  overflow: hidden;
}

.live-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.info-list dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.info-list dd {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-main,
  .nav-auth {
    display: none;
  }

  .nav-main.open,
  .nav-auth.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }
}
