/* ============================================
   NewHome 日本电视直播 - 官网样式
   Modern version - 2026
   ============================================ */

/* --- CSS Variables / 主题色 --- */
:root {
  --primary: #1a3a6b;
  --primary-light: #2a5a9e;
  --primary-dark: #0f2444;
  --accent: #e8491d;
  --accent-hover: #c73d17;
  --gold: #f0c040;
  --bg-dark: #0d1b33;
  --bg-section: #f5f7fa;
  --bg-card: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent);
}

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switch {
  margin-left: 12px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  text-decoration: none;
}

.lang-switch a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .lang-switch {
    margin-left: auto;
    margin-right: 8px;
  }
  .lang-switch a {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 51, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 1px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero / Banner
   ============================================ */
.hero {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,73,29,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240,192,64,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,73,29,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary-light);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Demo overlay */
body.demo-open {
  overflow: hidden;
}

.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 12, 28, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.demo-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.demo-shell {
  width: min(1500px, 96vw);
  height: min(860px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: #071329;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.22s ease;
}

.demo-overlay.active .demo-shell {
  transform: translateY(0) scale(1);
}

.demo-bar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.demo-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.demo-close:hover,
.demo-close:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.demo-frame {
  display: block;
  width: 100%;
  height: calc(100% - 54px);
  border: 0;
  background: #071329;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12));
  border-radius: var(--radius);
  border: 2px dashed rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.hero-image-placeholder .icon-large {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ============================================
   Features / 产品特色
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   Image Placeholder (用于替换区域)
   ============================================ */
.img-placeholder {
  background: linear-gradient(135deg, #e8edf5, #d0d8e8);
  border: 2px dashed #a0b0c8;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7a8aaa;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  min-height: 200px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.img-placeholder:hover {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, #dce4f0, #c8d4e8);
}

.img-placeholder .placeholder-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.img-placeholder .placeholder-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.img-placeholder .placeholder-hint {
  font-size: 12px;
  opacity: 0.7;
}

/* ============================================
   Channels / 频道展示
   ============================================ */
.channel-categories {
  margin-bottom: 40px;
}

.channel-category {
  margin-bottom: 36px;
}

.channel-category h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.channel-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.channel-card .channel-num {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.channel-card .channel-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ============================================
   Pricing / 价格（无标价，咨询客服）
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.03);
}

.pricing-card.featured .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 6px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-card h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.pricing-card .price-area {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
}

.pricing-card .price-area .price-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card ul li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card ul li::before {
  content: '✓';
  color: #22c55e;
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Download / 下载
   ============================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.download-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.download-icon.android { background: linear-gradient(135deg, #3ddc84, #1b8c4a); }
.download-icon.apple { background: linear-gradient(135deg, #555, #333); }
.download-icon.windows { background: linear-gradient(135deg, #0078d7, #004e8c); }
.download-icon.mac { background: linear-gradient(135deg, #999, #555); }

.download-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.download-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ============================================
   Agent / 代理加盟
   ============================================ */
.agent-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.agent-benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.agent-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.agent-benefit-card .benefit-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 8px;
}

.agent-benefit-card h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.agent-benefit-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

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

.process-step {
  text-align: center;
  padding: 24px;
  position: relative;
}

.process-step .step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.process-step h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   Contact / 联系我们
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-section);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 13px;
  color: var(--text-light);
}

.contact-item .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.contact-form-area {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form-area h4 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-section);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer p, .footer a {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.5);
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   Page Banner (Inner Pages)
   ============================================ */
.page-banner {
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  text-align: center;
  padding-bottom: 60px;
  padding-top: calc(var(--nav-height) + 60px);
}

.page-banner h1 {
  font-size: 36px;
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   About / 产品介绍页
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.about-intro-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ============================================
   Responsive / 响应式
   ============================================ */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .demo-overlay {
    padding: 0;
  }

  .demo-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .demo-bar {
    height: 48px;
    padding: 0 12px 0 16px;
    font-size: 14px;
  }

  .demo-close {
    width: 36px;
    height: 36px;
  }

  .demo-frame {
    height: calc(100% - 48px);
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 27, 51, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .agent-process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .agent-process {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
