/* ============================================
   3dsk.net - 成都三谛魅影文化传播有限公司
   Main Stylesheet - SEO Optimized
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --accent: #e67e22;
  --dark: #1a1a2e;
  --dark-secondary: #16213e;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f8f9fa;
  --bg-light: #fff;
  --bg-dark: #0f0f23;
  --border: #e0e0e0;
  --border-light: #eee;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
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 { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .title { font-size: 2.2rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.section-header .subtitle { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 30px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); border: none; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(192,57,43,0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* === Header / Navigation === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,26,46,0.95); backdrop-filter: blur(10px);
  transition: var(--transition); padding: 0;
}
.header.scrolled { background: rgba(26,26,46,0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 5px; }
.nav a {
  color: rgba(255,255,255,0.85); padding: 8px 16px; border-radius: 4px;
  font-size: 0.9rem; font-weight: 500; transition: var(--transition); position: relative;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(192,57,43,0.3); }
.nav a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: var(--primary-light); border-radius: 2px; }

/* Dropdown */
.nav .has-dropdown { position: relative; }
.nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--dark); border-radius: var(--radius); padding: 8px 0;
  box-shadow: var(--shadow-lg);
}
.nav .has-dropdown:hover .dropdown { display: block; }
.nav .dropdown a { display: block; padding: 10px 20px; font-size: 0.85rem; border-radius: 0; }
.nav .dropdown a:hover { background: rgba(192,57,43,0.3); }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; }

/* === Hero / Banner === */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease; z-index: 0;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-content {
  position: relative; z-index: 10; text-align: center; color: #fff;
  max-width: 800px; padding: 0 20px;
}
.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; letter-spacing: 2px; }
.hero-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.8; }
.hero-content .btn { margin: 0 8px; }
.hero-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.hero-dots span.active { background: var(--primary-light); width: 30px; border-radius: 6px; }
.hero-scroll { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 10; color: rgba(255,255,255,0.7); font-size: 1.5rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* === Works / Portfolio === */
.works { background: var(--bg); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }
.work-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work-card-img { position: relative; overflow: hidden; height: 220px; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-card-img img { transform: scale(1.08); }
.work-card-img .work-tag {
  position: absolute; top: 15px; left: 15px; background: var(--primary);
  color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
}
.work-card-body { padding: 20px; }
.work-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.work-card-body p { font-size: 0.85rem; color: var(--text-muted); }
.works-more { text-align: center; margin-top: 40px; }

/* === Services === */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.service-card {
  text-align: center; padding: 40px 25px; border-radius: var(--radius-lg);
  background: var(--bg); transition: var(--transition); border: 1px solid var(--border-light);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .icon {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--dark); }
.service-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* === About === */
.about { background: var(--dark); color: #fff; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.9; margin-bottom: 15px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.about-stat { text-align: center; }
.about-stat .num { font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.about-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 5px; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: auto; }

/* About page standalone content (not dark bg) */
.about-page-content { background: #fff; }
.about-page-content .about-text h2 {
  color: #1a1a2e; font-size: 2rem; font-weight: 700; margin-bottom: 20px;
}
.about-page-content .about-text p {
  font-size: 1.05rem; color: #2c2c2c; line-height: 2; margin-bottom: 18px;
}
.about-page-content .about-text strong { color: #c0392b; font-weight: 600; }
.about-page-content .about-section-title {
  margin-top: 36px; margin-bottom: 16px;
  font-size: 1.35rem; font-weight: 700; color: #c0392b;
  padding-left: 16px; border-left: 4px solid #c0392b;
}

/* === Team === */
.team { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.team-card { text-align: center; }
.team-card-img { width: 160px; height: 160px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 5px; }
.team-card .role { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-bottom: 10px; }
.team-card p { font-size: 0.85rem; color: var(--text-light); max-width: 280px; margin: 0 auto; }

/* === News === */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }
.news-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-card-body .date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.news-card-body h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 10px; line-height: 1.5; }
.news-card-body p { font-size: 0.85rem; color: var(--text-light); }

/* === Partners === */
.partners { background: #fff; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.partners-grid img { height: 50px; width: auto; opacity: 0.6; transition: var(--transition); filter: grayscale(100%); }
.partners-grid img:hover { opacity: 1; filter: grayscale(0); }

/* === Contact / CTA === */
.contact { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; }
.contact h2 { font-size: 2rem; margin-bottom: 15px; }
.contact p { font-size: 1rem; opacity: 0.9; margin-bottom: 30px; }
.contact-info { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-bottom: 30px; }
.contact-info .item { display: flex; align-items: center; gap: 10px; }
.contact-info .icon { font-size: 1.5rem; }
.contact-info .item span { font-size: 0.95rem; }

/* === Footer === */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; font-weight: 600; }
.footer-col p, .footer-col a { font-size: 0.88rem; line-height: 2; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.82rem; }
.footer-bottom a { color: var(--primary-light); }

/* === Page Banner === */
.page-banner {
  height: 300px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.page-banner::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.page-banner .content { position: relative; z-index: 1; text-align: center; color: #fff; }
.page-banner h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
.page-banner .breadcrumb { font-size: 0.9rem; opacity: 0.85; }
.page-banner .breadcrumb a { color: var(--primary-light); }

/* === Detail Pages === */
.detail { padding: 60px 0; background: #fff; }
.detail-content { max-width: 800px; margin: 0 auto; }
.detail-content h2 { font-size: 1.8rem; margin-bottom: 20px; color: #1a1a2e; }
.detail-content p { margin-bottom: 15px; line-height: 1.9; color: #2c2c2c; font-size: 1.05rem; }
.detail-content strong { color: #c0392b; }
.detail-content img { margin: 20px 0; border-radius: var(--radius); }
.detail-content .video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; margin: 20px 0; }
.detail-content .video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; border-radius: var(--radius); }

/* === Breadcrumb === */
.breadcrumb-nav { background: var(--bg); padding: 15px 0; border-bottom: 1px solid var(--border-light); }
.breadcrumb-nav .container { font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--text); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav span { margin: 0 8px; }

/* === Back to Top === */
.back-top {
  position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
  background: var(--primary); color: #fff; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: var(--transition); box-shadow: 0 3px 15px rgba(192,57,43,0.3); z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* === Animations === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 992px) {
  .about-content { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-header .title { font-size: 1.7rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--dark); padding: 20px; flex-direction: column; gap: 5px; z-index: 999;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { color: rgba(255,255,255,0.85); padding: 12px 15px; border-radius: 4px; font-size: 0.95rem; }
  .mobile-menu a:hover { background: rgba(192,57,43,0.3); }
  .works-grid, .services-grid, .team-grid, .news-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; align-items: center; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content .btn { display: block; margin: 10px auto; width: 100%; max-width: 250px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 1.8rem; }
}
