/* ========== 海南省推波助流数字科技有限公司 — 全局样式 ========== */

/* ---- CSS 变量 ---- */
:root {
  --ocean-deep: #1B6B6B;
  --ocean-surface: #2E9E9E;
  --coral: #FF7F50;
  --coral-light: #FFA07A;
  --foam: #F0F9F9;
  --sand: #F5E6D3;
  --deep-ink: #2C3E50;
  --light-ink: #5A6C7D;
  --mist: rgba(255,255,255,0.92);
  --shadow-soft: 0 4px 20px rgba(27,107,107,0.08);
  --shadow-hover: 0 12px 40px rgba(27,107,107,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--deep-ink);
  background: var(--foam);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  border: none; background: none; cursor: pointer; font-family: inherit;
  transition: var(--transition);
}

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

ul, ol { list-style: none; }

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

/* ---- 字体 ---- */
.font-display {
  font-family: 'SimSun', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-surface), var(--ocean-deep));
  color: #fff; box-shadow: 0 4px 15px rgba(27,107,107,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27,107,107,0.4);
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  color: #fff; box-shadow: 0 4px 15px rgba(255,127,80,0.3);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,127,80,0.4);
}

.btn-outline {
  border: 2px solid var(--ocean-surface);
  color: var(--ocean-surface); background: transparent;
}
.btn-outline:hover {
  background: var(--ocean-surface); color: #fff;
}

.btn-ghost {
  color: var(--light-ink);
}
.btn-ghost:hover { color: var(--ocean-deep); }

/* ---- 卡片 ---- */
.card {
  background: var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(27,107,107,0.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27,107,107,0.12);
}

/* ---- 波浪装饰 ---- */
.wave-top {
  position: relative;
}
.wave-top::before {
  content: '';
  position: absolute; top: -1px; left: 0; width: 100%; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F0F9F9' fill-opacity='1' d='M0,40 C240,60 480,0 720,30 C960,60 1200,0 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.wave-bottom {
  position: relative;
}
.wave-bottom::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F0F9F9' fill-opacity='1' d='M0,20 C240,0 480,60 720,30 C960,0 1200,60 1440,20 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat top;
  background-size: cover;
}

/* ---- 气泡装饰动画 ---- */
@keyframes bubble {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(46,158,158,0.15), transparent);
  animation: bubble linear infinite;
  pointer-events: none;
}

/* ---- 标题栏 ---- */
.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 1.8rem; color: var(--deep-ink);
  position: relative; padding-bottom: 8px;
}
.section-header h2::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--ocean-surface), var(--coral));
  border-radius: 2px;
}
.section-header .sub {
  font-size: 0.9rem; color: var(--light-ink);
  margin-top: 6px;
}

/* ---- 标签 ---- */
.tag {
  display: inline-block; padding: 4px 14px;
  border-radius: 20px; font-size: 0.8rem;
  background: rgba(46,158,158,0.1); color: var(--ocean-deep);
  border: 1px solid rgba(46,158,158,0.15);
}

/* ---- 输入框 ---- */
.input-field {
  width: 100%; padding: 14px 18px;
  border: 2px solid rgba(27,107,107,0.12);
  border-radius: var(--radius-sm); font-size: 1rem;
  background: #fff; color: var(--deep-ink);
  transition: var(--transition); outline: none;
}
.input-field:focus {
  border-color: var(--ocean-surface);
  box-shadow: 0 0 0 4px rgba(46,158,158,0.1);
}
.input-field::placeholder {
  color: #aab;
}

/* ---- 返回按钮 ---- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--light-ink); font-size: 0.9rem;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--ocean-deep); }
.back-link svg { width: 18px; height: 18px; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section-header h2 { font-size: 1.4rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
}

/* ---- 通用工具类 ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.hidden { display: none !important; }

/* ---- 加载态 ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Header 样式 ========== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(240,249,249,0.85);
  backdrop-filter: blur(0px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(240,249,249,0.95);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: rgba(27,107,107,0.08);
  box-shadow: 0 2px 20px rgba(27,107,107,0.06);
}
.site-header.hidden {
  transform: translateY(-100%);
}

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

.header-brand {
  display: flex; align-items: center; gap: 12px;
}
.header-brand .site-logo-svg {
  flex-shrink: 0;
}
.brand-text {
  display: flex; flex-direction: column;
}
.brand-name {
  font-size: 1rem; font-weight: 600;
  color: var(--deep-ink); letter-spacing: 0.5px;
  font-family: 'SimSun', serif;
}

.header-nav {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.9rem; color: var(--light-ink);
  font-weight: 500; white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--ocean-deep); background: rgba(46,158,158,0.08);
}

.nav-dropdown {
  position: relative;
}
.dropdown-trigger {
  cursor: pointer;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--mist); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover); min-width: 160px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transition: all 0.2s ease; z-index: 1001;
  border: 1px solid rgba(27,107,107,0.08);
}
.dropdown-menu.show {
  opacity: 1; visibility: visible;
}
.dropdown-item {
  display: block; padding: 10px 20px;
  font-size: 0.85rem; color: var(--light-ink);
  white-space: nowrap;
}
.dropdown-item:hover {
  color: var(--ocean-deep); background: rgba(46,158,158,0.06);
}

.header-actions {
  display: flex; align-items: center; gap: 10px;
}
.action-btn {
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
}
.login-btn {
  color: var(--ocean-deep); border: 1.5px solid var(--ocean-surface);
}
.login-btn:hover { background: var(--ocean-surface); color: #fff; }
.register-btn {
  background: linear-gradient(135deg, var(--ocean-surface), var(--ocean-deep));
  color: #fff;
}
.user-name {
  font-size: 0.9rem; color: var(--deep-ink); font-weight: 500;
}
.logout-btn {
  color: var(--light-ink);
}
.logout-btn:hover { color: var(--coral); }

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--deep-ink); border-radius: 2px;
  transition: var(--transition);
}

/* ========== Footer 样式 ========== */
.site-footer {
  background: linear-gradient(180deg, #fff 0%, var(--foam) 100%);
  border-top: 1px solid rgba(27,107,107,0.06);
  padding-top: 0; position: relative;
}
.footer-wave {
  height: 60px; overflow: hidden; line-height: 0;
}
.footer-wave svg {
  width: 100%; height: 100%;
}
.footer-main {
  display: flex; justify-content: space-between; gap: 40px;
  padding: 48px 0 32px;
}
.footer-brand {
  display: flex; align-items: flex-start; gap: 14px; max-width: 300px;
}
.footer-brand-text {
  display: flex; flex-direction: column; gap: 6px;
}
.footer-brand-text strong {
  font-size: 1.05rem; color: var(--deep-ink);
  font-family: 'SimSun', serif;
}
.footer-brand-text span {
  font-size: 0.85rem; color: var(--light-ink);
}
.footer-links {
  display: flex; gap: 48px;
}
.footer-col {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col h4 {
  font-size: 0.9rem; color: var(--deep-ink);
  margin-bottom: 4px; font-weight: 600;
}
.footer-col a {
  font-size: 0.85rem; color: var(--light-ink);
}
.footer-col a:hover { color: var(--ocean-deep); }

.footer-contact {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 20px 0; border-top: 1px solid rgba(27,107,107,0.06);
}
.contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--light-ink);
}
.contact-item svg {
  color: var(--ocean-surface); flex-shrink: 0;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0; border-top: 1px solid rgba(27,107,107,0.06);
}
.copyright {
  font-size: 0.8rem; color: var(--light-ink);
}
.gov-links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.gov-links a {
  font-size: 0.8rem; color: var(--light-ink);
}
.gov-links a:hover { color: var(--ocean-deep); }
.gov-links .divider {
  color: #ccc; font-size: 0.8rem;
}

/* ========== 页面通用布局 ========== */
.page-content {
  padding-top: 96px; min-height: 60vh;
}
.page-section {
  padding: 60px 0;
}
.page-header {
  text-align: center; margin-bottom: 48px;
}
.page-header h1 {
  font-size: 2.2rem; color: var(--deep-ink);
  margin-bottom: 12px;
}
.page-header p {
  color: var(--light-ink); font-size: 1rem;
}

/* ========== Header/Footer 响应式 ========== */
@media (max-width: 768px) {
  .header-inner { height: 64px; padding: 0 16px; }
  .brand-name { font-size: 0.85rem; }
  .header-nav {
    position: fixed; top: 64px; left: 0; width: 100%;
    flex-direction: column; background: var(--mist);
    padding: 16px; gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-150%); opacity: 0;
    transition: all 0.35s ease; z-index: 999;
  }
  .header-nav.open {
    transform: translateY(0); opacity: 1;
  }
  .nav-link { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); }
  .dropdown-menu {
    position: static; transform: none;
    box-shadow: none; opacity: 1; visibility: visible;
    display: none; background: rgba(46,158,158,0.04);
    border: none;
  }
  .dropdown-menu.show { display: block; }
  .mobile-toggle { display: flex; }

  .footer-main { flex-direction: column; gap: 32px; padding: 32px 0 24px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header h1 { font-size: 1.6rem; }
}

/* ===== 封面系统（统一） ===== */
.cc-img, .cc-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.cc-video { pointer-events: none; z-index: 1; }
.cover-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: opacity 0.5s ease;
}
.cc-has > .cover-fallback { opacity: 0; }

/* 缩略图卡片：封面加载后隐藏乐器名称 */
.cc-has.rank-thumb > span,
.cc-has.ri-thumb > span,
.cc-has.ui-thumb > span { display: none; }

/* 播放器海报：封面覆盖后隐藏 canvas 占位 */
.video-poster.cc-has canvas { display: none; }

