/* 基础重置与移动优先样式 */
:root{
  --bg-1: #ffffff;
  --bg-2: #f7f9fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #7F1A1E;
  --accent-dark: #5a1215;
  --glass: rgba(16,24,40,0.04);
  --max-width: 1200px;
  --radius: 12px;
  --gap: 30px;
  --card-bg: #ffffff;
  --shadow: 0 12px 30px rgba(16,24,40,0.08);
  --shadow-lg: 0 20px 40px rgba(16,24,40,0.12);
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --text: #0b1220;
  --text-light: #ffffff;
}

/* reset */
*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  font-family:var(--font-sans);
  background: linear-gradient(180deg,var(--bg-1),var(--bg-2));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* page layout: ensure full-viewport usage */
.page{min-height:100vh;display:flex;flex-direction:column}
main.container{flex:1}

.container{max-width:var(--max-width);margin:0 auto;padding:20px}

/* section spacing */
section{padding:80px 0}
section h2{text-align:center;margin-bottom:40px;font-size:32px;color:var(--text)}

/* 顶部导航 */
.topbar{
  position:fixed;
  left:0;
  right:0;
  top:0;
  z-index:100;
  background:rgba(0,0,0,0.3);
  backdrop-filter:blur(10px);
  transition:background-color .28s ease,color .28s ease,box-shadow .28s ease;
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  font-weight:700;
  font-size:20px;
  letter-spacing:0.4px;
  color:var(--text-light);
  transition:color .28s ease;
}
.nav-menu{
  display:flex;
  gap:24px;
}
.nav-menu a{
  color:var(--text-light);
  text-decoration:none;
  font-weight:500;
  transition:color .28s ease;
}
.menu-btn{
  background:transparent;
  border:0;
  color:var(--text-light);
  font-size:20px;
  display:none;
  transition:color .28s ease;
}

/* scrolled state: white background and dark text */
.topbar.scrolled{
  background:#ffffff;
  color:var(--text);
  box-shadow:0 6px 18px rgba(16,24,40,0.06);
  border-bottom:1px solid rgba(16,24,40,0.04);
}
.topbar.scrolled .brand,
.topbar.scrolled .nav-menu a,
.topbar.scrolled .menu-btn{
  color:var(--text);
}

/* HERO: full viewport, centered content */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  box-sizing:border-box;
  width:100vw;
  max-width:100%;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  left:0;
  right:0;
  top:0;
}
.hero.carousel{
  position:relative;
}
.carousel-container{
  position:absolute;
  inset:0;
  z-index:1;
}
.carousel-slides{
  position:relative;
  width:100%;
  height:100%;
}
.carousel-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1s ease-in-out;
}
.carousel-slide.active{
  opacity:1;
}
.slide-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.4);
}
.hero-inner{
  position:relative;
  z-index:3;
  max-width:1100px;
  padding:60px 20px;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-inner h2{
  font-size:clamp(36px,6vw,64px);
  color:#fff;
  margin:0 0 12px;
  font-weight:800;
}
.hero-inner .slogan{
  color:rgba(255,255,255,0.9);
  font-size:24px;
  margin:0 0 32px;
  font-weight:600;
}
.hero .cta-group{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* 轮播控制按钮 */
.carousel-controls{
  position:absolute;
  top:50%;
  left:0;
  right:0;
  transform:translateY(-50%);
  display:flex;
  justify-content:space-between;
  padding:0 20px;
  z-index:4;
}
.carousel-prev,
.carousel-next{
  background:rgba(255,255,255,0.2);
  border:none;
  color:#fff;
  width:50px;
  height:50px;
  border-radius:50%;
  font-size:24px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.3s ease;
  backdrop-filter:blur(10px);
}
.carousel-prev:hover,
.carousel-next:hover{
  background:rgba(255,255,255,0.3);
  transform:scale(1.1);
}

/* 轮播指示器 */
.carousel-indicators{
  position:absolute;
  bottom:40px;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:12px;
  z-index:4;
}
.indicator{
  width:12px;
  height:12px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.5);
  cursor:pointer;
  transition:all 0.3s ease;
}
.indicator.active{
  background:#fff;
  transform:scale(1.2);
}
.indicator:hover{
  background:rgba(255,255,255,0.8);
}

/* 按钮样式 */
.btn{
  display:inline-block;
  padding:14px 24px;
  border-radius:12px;
  border:0;
  text-decoration:none;
  font-weight:600;
  font-size:16px;
  transition:all .28s ease;
  cursor:pointer;
}
.btn.primary{
  background:linear-gradient(90deg,var(--accent),#a83236);
  color:#fff;
  box-shadow:0 12px 30px rgba(127,26,30,0.08);
}
.btn.secondary{
  background:rgba(255,255,255,0.15);
  color:#fff;
  border:2px solid rgba(255,255,255,0.3);
  backdrop-filter:blur(10px);
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lg);
}

/* 核心信息区 */
.core-info{
  background:var(--bg-2);
  padding:80px 0;
}
.info-section{
  margin-bottom:60px;
}
.info-section h3{
  text-align:center;
  font-size:28px;
  margin-bottom:24px;
  color:var(--text);
}
.info-section .intro{
  text-align:center;
  font-size:18px;
  color:var(--muted);
  max-width:800px;
  margin:0 auto 32px;
}
.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:20px;
  margin:32px 0;
}
.feature-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding:20px;
  background:var(--card-bg);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform .28s ease;
}
.feature-item:hover{
  transform:translateY(-4px);
}
.feature-item .icon{
  font-size:32px;
}
.feature-item span{
  font-weight:600;
  color:var(--text);
}
.info-section .conclusion{
  text-align:center;
  font-size:16px;
  color:var(--muted);
  font-style:italic;
}

/* 优势网格 */
.advantages-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:24px;
  margin-top:32px;
}
.advantage-card{
  background:var(--card-bg);
  padding:32px 24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  text-align:center;
  transition:transform .28s ease;
}
.advantage-card:hover{
  transform:translateY(-6px);
}
.advantage-card .icon{
  font-size:48px;
  margin-bottom:16px;
}
.advantage-card h4{
  font-size:20px;
  margin-bottom:12px;
  color:var(--text);
}
.advantage-card p{
  color:var(--muted);
  margin:0;
}

/* 热门推荐 */
.hot-products{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:24px;
  margin-top:32px;
}
.product-card{
  background:var(--card-bg);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .28s ease;
}
.product-card:hover{
  transform:translateY(-6px);
}
.product-card .thumb{
  height:200px;
  background-size:cover;
  background-position:center;
}
.product-card .body{
  padding:24px;
  text-align:center;
}
.product-card h4{
  font-size:20px;
  margin-bottom:12px;
  color:var(--text);
}
.product-card .price{
  font-size:24px;
  font-weight:800;
  color:var(--accent);
  margin-bottom:12px;
}
.product-card .highlight{
  color:var(--muted);
  margin-bottom:20px;
  font-weight:600;
}

/* 关于大玩剧 */
.about-section{
  background:var(--bg-1);
  padding:80px 0;
}
.about-subsection{
  margin-bottom:60px;
}
.about-subsection h3{
  font-size:24px;
  margin-bottom:32px;
  color:var(--text);
  text-align:center;
}
.advantage-groups{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:32px;
}
.advantage-group{
  background:var(--bg-2);
  padding:32px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.advantage-group h4{
  font-size:20px;
  margin-bottom:20px;
  color:var(--text);
  text-align:center;
}
.advantage-group ul{
  list-style:none;
  padding:0;
  margin:0;
}
.advantage-group li{
  padding:8px 0;
  color:var(--muted);
  border-bottom:1px solid rgba(16,24,40,0.06);
}
.advantage-group li:last-child{
  border-bottom:none;
}

/* 项目筹备能力 */
.preparation-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:24px;
}
.preparation-item{
  background:var(--card-bg);
  padding:24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  text-align:center;
  transition:transform .28s ease;
}
.preparation-item:hover{
  transform:translateY(-4px);
}
.preparation-item h4{
  font-size:18px;
  margin-bottom:12px;
  color:var(--text);
}
.preparation-item p{
  color:var(--muted);
  margin:0;
}

/* 产品套餐卡片模式 */
.products-section{
  background:var(--bg-2);
  padding:80px 0;
}
.products-cards{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
}
.product-card-large{
  background:var(--card-bg);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .28s ease, box-shadow .28s ease;
}
.product-card-large:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}
.product-image{
  height:120px;
  background-size:cover;
  background-position:center;
}
.product-content{
  padding:16px;
}
.product-content h3{
  font-size:14px;
  margin-bottom:6px;
  color:var(--text);
  line-height:1.3;
}
.product-content .price{
  font-size:16px;
  font-weight:800;
  color:var(--accent);
  margin-bottom:8px;
}
.product-details{
  margin-bottom:12px;
}
.detail-item{
  margin-bottom:6px;
}
.detail-item strong{
  color:var(--text);
  display:block;
  margin-bottom:2px;
  font-size:12px;
}
.detail-item p{
  color:var(--muted);
  margin:0;
  font-size:11px;
  line-height:1.3;
}

/* 模态框 */
.modal{
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,0.5);
}
.modal-content{
  background-color:var(--card-bg);
  margin:10% auto;
  padding:32px;
  border-radius:var(--radius);
  width:90%;
  max-width:500px;
  position:relative;
  box-shadow:var(--shadow-lg);
}
.close{
  position:absolute;
  right:20px;
  top:20px;
  font-size:28px;
  font-weight:bold;
  cursor:pointer;
  color:var(--muted);
}
.close:hover{
  color:var(--text);
}
.form-group{
  margin-bottom:20px;
}
.form-group label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:var(--text);
}
.form-group input{
  width:100%;
  padding:12px;
  border:1px solid rgba(16,24,40,0.1);
  border-radius:8px;
  font-size:16px;
  transition:border-color .28s ease;
}
.form-group input:focus{
  outline:none;
  border-color:var(--accent);
}

/* 底部信息栏 */
.footer{
  background:var(--text);
  color:var(--text-light);
  padding:60px 0 20px;
}
.footer-content{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:40px;
  margin-bottom:40px;
}
.footer-section h4{
  margin-bottom:16px;
  color:var(--text-light);
}
.footer-section p{
  margin:8px 0;
  color:rgba(255,255,255,0.8);
}
.social-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.social-link{
  color:rgba(255,255,255,0.8);
  text-decoration:none;
  padding:8px 16px;
  border:1px solid rgba(255,255,255,0.3);
  border-radius:6px;
  transition:all .28s ease;
}
.social-link:hover{
  background:rgba(255,255,255,0.1);
  color:var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container{
    padding:16px;
  }
  section{
    padding:60px 0;
  }
  .nav-menu{
    display:none;
  }
  .menu-btn{
    display:block;
  }
  .hero.has-image .hero-inner{
    padding:40px 16px;
  }
  .hero.has-image .slogan{
    font-size:20px;
  }
  .cta-group{
    flex-direction:column;
    align-items:center;
  }
  .btn{
    width:200px;
    text-align:center;
  }
  .features-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
  }
  .advantages-grid{
    grid-template-columns:1fr;
  }
  .hot-products{
    grid-template-columns:1fr;
  }
  .advantage-groups{
    grid-template-columns:1fr;
  }
  .preparation-grid{
    grid-template-columns:1fr;
  }
  .table-header, .table-row{
    grid-template-columns:1fr;
    gap:12px;
    text-align:center;
  }
  .table-header{
    display:none;
  }
  .table-row{
    background:var(--card-bg);
    margin-bottom:16px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    border-bottom:none;
  }
  .footer-content{
    grid-template-columns:1fr;
    text-align:center;
  }
  .social-links{
    justify-content:center;
  }
}

@media (max-width: 480px) {
  .features-grid{
    grid-template-columns:1fr;
  }
  .hero.has-image{
    min-height:60vh;
  }
  .modal-content{
    margin:5% auto;
    padding:24px;
    width:95%;
  }
}

/* 案例展示 */
.cases-section{
  background:var(--bg-1);
  padding:80px 0;
}
.cases-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  gap:32px;
}
.case-card{
  background:var(--card-bg);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .28s ease;
}
.case-card:hover{
  transform:translateY(-6px);
}
.case-cover{
  height:240px;
  background-size:cover;
  background-position:center;
}
.case-content{
  padding:24px;
}
.case-title{
  font-size:20px;
  margin-bottom:12px;
  color:var(--text);
}
.case-meta{
  display:flex;
  gap:16px;
  margin-bottom:16px;
  color:var(--muted);
  font-size:14px;
}
.case-highlights{
  list-style:none;
  padding:0;
  margin:0 0 20px;
}
.case-highlights li{
  padding:4px 0;
  color:var(--muted);
  position:relative;
  padding-left:16px;
}
.case-highlights li::before{
  content:'•';
  position:absolute;
  left:0;
  color:var(--accent);
}

/* 用户评价 */
.reviews-section{
  background:var(--bg-2);
  padding:80px 0;
}
.reviews-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:24px;
  margin-bottom:40px;
}
.review-card{
  background:var(--card-bg);
  padding:24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.review-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:16px;
}
.review-user{
  font-weight:600;
  color:var(--text);
}
.review-time{
  color:var(--muted);
  font-size:14px;
}
.review-ratings{
  display:flex;
  gap:12px;
  margin-bottom:12px;
  font-size:14px;
}
.rating-item{
  color:var(--muted);
}
.review-text{
  color:var(--text);
  line-height:1.5;
  margin-bottom:16px;
}
.review-images{
  display:flex;
  gap:8px;
}
.review-image{
  width:80px;
  height:80px;
  border-radius:8px;
  background-size:cover;
  background-position:center;
}
.more-reviews{
  text-align:center;
}

/* 合作加盟 */
.cooperation-section{
  background:var(--bg-1);
  padding:80px 0;
}
.cooperation-subsection{
  margin-bottom:60px;
}
.cooperation-subsection h3{
  font-size:24px;
  margin-bottom:32px;
  color:var(--text);
  text-align:center;
}
.cooperation-table{
  background:var(--card-bg);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  margin-bottom:16px;
}
.cooperation-table .table-header{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:20px 24px;
  background:var(--accent);
  color:var(--text-light);
  font-weight:600;
}
.cooperation-table .table-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:20px 24px;
  border-bottom:1px solid rgba(16,24,40,0.06);
}
.cooperation-table .table-row:last-child{
  border-bottom:none;
}
.note{
  text-align:center;
  color:var(--muted);
  font-style:italic;
  margin:0;
}

/* 合作流程流程图 */
.flowchart-container{
  max-width:1000px;
  margin:0 auto;
}
.flowchart{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  position:relative;
}
.flow-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  flex:1;
  position:relative;
}
.step-icon{
  width:80px;
  height:80px;
  border-radius:50%;
  background:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
  transition:transform .28s ease;
}
.flow-step:hover .step-icon{
  transform:scale(1.1);
}
.step-content{
  background:var(--card-bg);
  padding:20px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  width:100%;
  max-width:200px;
}
.step-content h4{
  font-size:16px;
  margin-bottom:8px;
  color:var(--text);
}
.duration{
  color:var(--accent);
  font-weight:600;
  font-size:14px;
  margin-bottom:8px;
}
.step-content p{
  color:var(--muted);
  font-size:14px;
  margin:0;
  line-height:1.4;
}
.flow-arrow{
  position:absolute;
  right:-20px;
  top:40px;
  font-size:24px;
  color:var(--accent);
  font-weight:800;
}
.flow-step:last-child .flow-arrow{
  display:none;
}

/* 合作咨询表单 */
.cooperation-form{
  max-width:600px;
  margin:0 auto;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.cooperation-form textarea{
  width:100%;
  padding:12px;
  border:1px solid rgba(16,24,40,0.1);
  border-radius:8px;
  font-size:16px;
  font-family:inherit;
  resize:vertical;
  min-height:120px;
}
.cooperation-form textarea:focus{
  outline:none;
  border-color:var(--accent);
}
.contact-info{
  text-align:center;
  margin-top:24px;
  color:var(--muted);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
  .cases-grid{
    grid-template-columns:1fr;
  }
  .reviews-grid{
    grid-template-columns:1fr;
  }
  .cooperation-table .table-header,
  .cooperation-table .table-row{
    grid-template-columns:1fr;
    text-align:center;
  }
  .cooperation-table .table-header{
    display:none;
  }
  .process-step{
    flex-direction:column;
    text-align:center;
  }
  .process-step::before{
    display:none;
  }
  .form-row{
    grid-template-columns:1fr;
  }
  /* 产品套餐卡片响应式 */
  .products-cards{
    grid-template-columns:repeat(2, 1fr);
    gap:12px;
  }
  .product-card-large{
    flex-direction:column;
  }
  .product-image{
    width:100%;
    height:100px;
  }
  .product-content{
    padding:12px;
  }
  .product-content h3{
    font-size:12px;
  }
  .product-content .price{
    font-size:14px;
  }
  .detail-item strong{
    font-size:10px;
  }
  .detail-item p{
    font-size:9px;
  }
  /* 流程图响应式 */
  .flowchart{
    flex-direction:column;
    gap:24px;
  }
  .flow-step{
    flex-direction:row;
    text-align:left;
    gap:16px;
  }
  .step-icon{
    width:60px;
    height:60px;
    font-size:24px;
    margin-bottom:0;
    flex-shrink:0;
  }
  .step-content{
    max-width:none;
    flex:1;
  }
  .flow-arrow{
    position:static;
    transform:rotate(90deg);
    margin:8px 0;
  }
}

/* 防止水平滚动 */
html,body{overflow-x:hidden}

/* 确保顶部导航覆盖英雄区域 */
.topbar{z-index:100}
.hero{z-index:1}
