/* 现代化首页样式 */
:root {
  --primary-color: #0066ff;
  --secondary-color: #00d4ff;
  --accent-color: #ff6b35;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* 注释掉之前的现代化导航栏样式 */
/*
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
*/

.modern-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.modern-logo {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.modern-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.modern-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.modern-nav a:hover::after {
  width: 100%;
}

/* 登录相关样式 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Header布局修复 - 按照老首页结构 */
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0;
}

.modern-header .w {
  width: 960px;
  margin: 0 auto;
}

.modern-header .brand.fL {
  float: left;
}

.modern-header .nav.fL {
  float: left;
  margin-left: 50px;
}

.modern-header .nav.nav-pills {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-header .nav.nav-pills li {
  float: left;
  margin-right: 20px;
  line-height: 22px;
}

.modern-header .nav.nav-pills a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  height: 22px;
  line-height: 22px;
}

.modern-header .nav.nav-pills a:hover,
.modern-header .nav.nav-pills a.active {
  color: var(--primary-color);
}

.modern-header .user.fR {
  float: right;
  line-height: 22px;
}

.modern-header .login a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 22px;
}

.modern-header .login a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-nav {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 14px;
}

.btn-nav:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-nav:not(.btn-primary) {
  color: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-nav:not(.btn-primary):hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-nav.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-nav.btn-primary:hover {
  background: #0052cc;
  border-color: #0052cc;
  color: white;
}

.dropdown-menu {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 160px;
  margin-top: 8px;
  position: absolute;
  right: 0;
  left: auto;
}

.dropdown-menu li {
  margin: 0;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.4;
}

.dropdown-menu a:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.dropdown-toggle::after {
  margin-left: 0.5rem;
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.1"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1" /><stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0.3" /></linearGradient></defs><g fill="url(%23grad1)"><path d="M50,100 Q200,50 350,100 T650,100 Q800,50 950,100 T1150,100 L1150,200 Q1000,250 850,200 T550,200 Q400,250 250,200 T50,200 Z"/><path d="M50,300 Q200,250 350,300 T650,300 Q800,250 950,300 T1150,300 L1150,400 Q1000,450 850,400 T550,400 Q400,450 250,400 T50,400 Z"/><path d="M50,500 Q200,450 350,500 T650,500 Q800,450 950,500 T1150,500 L1150,600 L50,600 Z"/></g><g fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2"><circle cx="200" cy="150" r="30"/><circle cx="600" cy="250" r="40"/><circle cx="1000" cy="180" r="25"/><circle cx="400" cy="350" r="35"/><circle cx="800" cy="400" r="30"/><circle cx="300" cy="450" r="20"/></g><g fill="rgba(255,255,255,0.1)"><rect x="150" y="200" width="60" height="40" rx="5"/><rect x="550" y="150" width="80" height="50" rx="5"/><rect x="950" y="300" width="70" height="45" rx="5"/></g></svg>') center/cover;
  opacity: 0.3;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero-text p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-modern {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.6s both;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

/* 功能卡片区域 */
.features-section {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.feature-link:hover {
  gap: 10px;
}

/* 套餐方案区域 */
.plans-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.plans-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.plan-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.plan-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.plan-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
}

/* 合作伙伴区域 */
.partners-section {
  padding: 80px 0;
  background: white;
}

.partners-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
}

.partner-logo {
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

/* 动态区域 */
.news-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.news-list {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.news-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.news-title {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.news-title:hover {
  color: var(--primary-color);
}

.news-time {
  color: var(--text-light);
  font-size: 14px;
}

.faq-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.faq-list {
  list-style: none;
  padding: 0;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-link {
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.3s ease;
}

.faq-link:hover {
  color: var(--primary-color);
}

/* 页脚 */
.modern-footer {
  background: var(--dark-bg);
  color: white;
  padding: 40px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .news-container {
    grid-template-columns: 1fr;
  }
  
  .modern-nav {
    display: none;
  }
  
  .plan-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .feature-card,
  .plan-card {
    padding: 30px 20px;
  }
}

/* 新的套餐展示样式 */
.plan-category {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.plan-category h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 30px;
}

.pricing-table {
  margin-top: 20px;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.price-option {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.price-option:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.price-option.featured {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.05);
}

.price-option.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.price-header {
  margin-bottom: 20px;
}

.play-count {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.price-option.featured .play-count {
  color: rgba(255, 255, 255, 0.9);
}

.duration {
  display: block;
  font-size: 14px;
  opacity: 0.8;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.price-option.featured .price-amount {
  color: white;
}

.best-value {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ff6b35;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* 联系方式区域 */
.contact-section {
  padding: 60px 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

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

.contact-section h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
}

.contact-info {
  font-size: 18px;
  line-height: 2;
}

.contact-info a {
  color: white;
  text-decoration: underline;
}

.contact-info a:hover {
  color: #e0e0e0;
}

/* 导航栏样式 - 按照旧首页实现 */
.w {
  width: 960px;
  margin: 0 auto;
}

.header {
  height: 70px;
  padding: 20px 0;
  overflow: visible;
}

.header .nav {
  overflow: hidden;
  margin-left: 50px;
}

.header .nav ul {
  margin: 0;
}

.header .nav li {
  margin-right: 15px;
  font-size: 14px;
}

.header .nav li a {
  padding: 5px 15px;
}

.header .brand .logo {
  margin-top: 4px;
}

.header .user {
  font-size: 14px;
  color: #428BCA;
  line-height: 30px;
}

.header .user .caret {
  margin-top: 0;
  position: absolute;
  top: 14px;
  right: 0;
}

.header .dropdown-menu li a {
  font-size: 12px;
}