/* ========================================
   闫宝龙短视频营销官网 - Main Stylesheet
   ======================================== */

/* === CSS Variables === */
:root {
  --color-primary: #1a1a2e;
  --color-accent: #e94560;
  --color-accent-hover: #d63851;
  --color-secondary: #0f3460;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-text: #2d2d2d;
  --color-text-mid: #666666;
  --color-text-light: #999999;
  --color-border: #e8e8e8;
  --font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition-base: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* === Container === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Typography === */
.text-accent {
  color: var(--color-accent);
}

.text-left {
  text-align: left;
}

.text-white {
  color: #fff;
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.logo-text {
  font-size: 24px;
  letter-spacing: 2px;
}

.logo-r {
  font-size: 10px;
  color: var(--color-accent);
  margin-left: 2px;
  vertical-align: super;
}

.logo-divider {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.logo-sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s var(--transition-base);
}

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

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  transition: all 0.3s var(--transition-base);
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, #16213e 100%);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-highlight {
  color: var(--color-accent);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s var(--transition-base);
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

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

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  margin: 8px auto 0;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(6px); }
  60% { transform: rotate(45deg) translateY(3px); }
}

/* === Section Common === */
.section {
  padding: 100px 0;
}

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

.section-dark {
  background: var(--color-primary);
}

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-mid);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--transition-base);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 14px;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-features li {
  font-size: 13px;
  color: var(--color-secondary);
  background: rgba(15, 52, 96, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
}

/* === Advantages === */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantage-item {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--transition-base);
}

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

.advantage-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}

.advantage-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--color-text-mid);
  line-height: 1.8;
}

/* === About Section === */
.about-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-card-hover);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-accent);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.badge-year {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
}

.badge-text {
  font-size: 13px;
  opacity: 0.9;
}

.about-content .section-title {
  margin-bottom: 8px;
}

.about-lead {
  font-size: 18px;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

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

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  font-size: 13px;
  color: var(--color-secondary);
  background: rgba(15, 52, 96, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 52, 96, 0.12);
}

/* === FAQ Section === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--color-bg-white);
  overflow: hidden;
  transition: all 0.3s var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: all 0.3s var(--transition-base);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--transition-base);
  color: var(--color-text-light);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--transition-base), padding 0.3s var(--transition-base);
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s var(--transition-base);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.contact-link {
  font-size: 18px;
  color: var(--color-accent);
  font-weight: 600;
}

.contact-link:hover {
  color: #fff;
}

.contact-value {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.contact-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.qr-code {
  width: 120px;
  height: 120px;
  margin: 12px auto 0;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* === Footer === */
.footer {
  background: #111;
  padding: 48px 0 32px;
}

.footer-links {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.links-grid a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s var(--transition-base);
}

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

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 2;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

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

.icp-link {
  margin-left: 4px;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* === Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition-base), transform 0.7s var(--transition-base);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    max-width: 360px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.4s var(--transition-base);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .hero-stats {
    gap: 24px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-badge {
    right: 10px;
    bottom: -10px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
