/* ================================
   源创致尚文化传播 - 全局样式
   主色：珊瑚橙 #FF6B6B → 紫 #7C3AED
   ================================ */

:root {
  --coral: #FF6B6B;
  --coral-light: #FF8E8E;
  --coral-dark: #E54F4F;
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --gradient: linear-gradient(135deg, #FF6B6B 0%, #7C3AED 100%);
  --gradient-soft: linear-gradient(135deg, #FFE4E4 0%, #EDE9FE 100%);

  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFB;
  --border: #E5E7EB;

  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.10);
  --shadow-lg: 0 20px 50px rgba(124, 58, 237, 0.15);

  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

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

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gradient-soft);
  color: var(--purple-dark);
}

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gradient);
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--gradient) !important;
  color: white !important;
}

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

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

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

.btn-ghost {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

/* ============ HERO (used on home + page header) ============ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: var(--gradient-soft);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: var(--coral);
  top: -100px;
  left: -100px;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: var(--purple-light);
  bottom: -200px;
  right: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: white;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 620px;
}

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

/* Page header (shorter than home hero) */
.page-header {
  padding: 140px 0 80px;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
}

/* ============ SECTIONS ============ */
section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-light);
  font-size: 17px;
}

/* ============ GRID ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

/* ============ CASE / WORK CARDS ============ */
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.work-card > * {
  position: relative;
  z-index: 2;
}

.work-card .work-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 12px;
  margin-bottom: 12px;
}

.work-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.work-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* Gradient placeholder backgrounds for cases */
.bg-1 { background: linear-gradient(135deg, #FF6B6B, #FFAA5A); }
.bg-2 { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.bg-3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.bg-4 { background: linear-gradient(135deg, #8B5CF6, #3B82F6); }
.bg-5 { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.bg-6 { background: linear-gradient(135deg, #06B6D4, #7C3AED); }

/* ============ STATS ============ */
.stats {
  background: var(--gradient);
  color: white;
  padding: 80px 0;
}

.stats .grid-4 {
  text-align: center;
}

.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  opacity: 0.9;
  font-size: 15px;
}

/* ============ CTA BAND ============ */
.cta-band {
  margin: 80px auto;
  max-width: var(--container);
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: white;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
}

.cta-band .btn-primary {
  background: white;
  color: var(--purple-dark);
}

/* ============ TEAM ============ */
.team-card {
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 36px;
  font-weight: 700;
}

/* ============ BLOG ============ */
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

.blog-thumb {
  height: 200px;
}

.blog-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.blog-meta .tag {
  color: var(--purple);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--gradient);
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
}

.contact-info-card h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-info-card ul {
  list-style: none;
}

.contact-info-card li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-info-card li .icon {
  font-size: 20px;
  flex-shrink: 0;
}

form.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-soft);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  background: white;
}

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

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding: 0 20px;
  margin-top: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 60px;
  right: 60px;
  top: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0%, #EC4899 50%, var(--purple) 100%);
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-year {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 22px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: white;
  border-radius: 50%;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 16px;
    padding: 0;
  }
  .timeline::before { display: none; }
}

@media (max-width: 720px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .timeline-item {
    text-align: left;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: center;
  }
  .timeline-year { margin-bottom: 0; }
  .timeline-dot { display: none; }
}

/* ============ PRODUCT CARDS ============ */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-visual {
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
}

.product-visual .product-emoji {
  font-size: 72px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.product-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.product-name h3 {
  font-size: 22px;
  font-weight: 800;
}

.product-name .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--purple);
}

.product-slogan {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.product-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 10px;
}

.product-features li::before {
  content: "▸";
  color: var(--coral);
  font-weight: 700;
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Tech stack chips */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.tech-chip:hover {
  border-color: var(--purple-light);
  color: var(--purple);
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 64px 0 24px;
}

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

footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 18px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 10px;
}

footer a {
  color: #CBD5E1;
  font-size: 14px;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--coral-light);
}

footer .logo {
  color: white;
  margin-bottom: 16px;
}

footer .footer-about {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #94A3B8;
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    align-items: stretch;
    gap: 8px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; text-align: center; }
  .nav-toggle { display: flex; }

  section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .page-header { padding: 110px 0 56px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 48px 24px; margin: 48px 24px; }
}
