/* ============================================================
   Gentle Rain — 菏泽子涵网络科技有限公司
   Computer Systems Design
   Watercolor-inspired, organic, rain-themed stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --soft-blue: #A8D8EA;
  --slate: #4A6FA5;
  --warm-gray: #F5F0EB;
  --charcoal: #2C3E50;
  --white: #FFFFFF;
  --jade: #5DAA8E;
  --soft-blue-deep: #7BB8CF;
  --slate-dark: #3A5A8A;
  --jade-light: #8EC5B0;
  --text-body: #3D4F5F;
  --text-muted: #6B7D8E;
  --card-shadow: 0 2px 20px rgba(74, 111, 165, 0.08);
  --card-shadow-hover: 0 8px 40px rgba(74, 111, 165, 0.14);
  --radius-soft: 1.25rem;
  --radius-gentle: 2.5rem;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --transition-gentle: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--warm-gray);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-soft) var(--radius-soft);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* --- Organic Blob Backgrounds --- */
.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 47% 58% 42% 53%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.blob--soft {
  background: var(--soft-blue);
}
.blob--jade {
  background: var(--jade);
}
.blob--slate {
  background: var(--slate);
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition-gentle), box-shadow var(--transition-gentle);
}
.site-header--scrolled {
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 62, 80, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 110;
}
.logo svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 999px;
  transition: background var(--transition-gentle), color var(--transition-gentle);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(168, 216, 234, 0.25);
  color: var(--slate);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 4px;
  transition: transform var(--transition-gentle), opacity var(--transition-gentle);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Organic Section Dividers --- */
.section-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.section-wave svg {
  display: block;
  width: 100%;
  height: auto;
}
.section-wave--warm path {
  fill: var(--warm-gray);
}
.section-wave--white path {
  fill: var(--white);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  background: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--soft-blue);
  border-radius: 55% 45% 60% 40% / 45% 55% 40% 60%;
  filter: blur(50px);
  opacity: 0.2;
  animation: floatBlob 12s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: var(--jade-light);
  border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
  filter: blur(45px);
  opacity: 0.15;
  animation: floatBlob 10s ease-in-out infinite reverse;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.97); }
  75% { transform: translate(20px, 5px) scale(1.03); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jade);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1.25rem;
  background: rgba(93, 170, 142, 0.08);
  border-radius: 999px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--jade);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--slate);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: rgba(168, 216, 234, 0.45);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-gentle), box-shadow var(--transition-gentle), background var(--transition-gentle);
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--slate);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(74, 111, 165, 0.3);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--slate-dark);
  box-shadow: 0 6px 24px rgba(74, 111, 165, 0.4);
}
.btn--outline {
  background: transparent;
  color: var(--slate);
  box-shadow: inset 0 0 0 2px var(--soft-blue);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(168, 216, 234, 0.15);
  box-shadow: inset 0 0 0 2px var(--slate);
}
.btn--jade {
  background: var(--jade);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(93, 170, 142, 0.3);
}
.btn--jade:hover,
.btn--focus-visible {
  background: #4A9A7A;
  box-shadow: 0 6px 24px rgba(93, 170, 142, 0.4);
}

/* --- Scroll-down indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s 0.8s both;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--soft-blue-deep), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.3; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Section Common --- */
.section {
  position: relative;
  padding: 6rem 1.5rem;
}
.section--white {
  background: var(--white);
}
.section--warm {
  background: var(--warm-gray);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jade);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.section-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* --- Organic Paper Cards --- */
.organic-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-gentle) var(--radius-soft) var(--radius-gentle) var(--radius-soft);
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition-gentle), transform var(--transition-gentle);
  overflow: hidden;
}
.organic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--soft-blue), var(--jade-light), var(--soft-blue));
  opacity: 0;
  transition: opacity var(--transition-gentle);
}
.organic-card:hover::before {
  opacity: 1;
}
.organic-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.organic-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%;
  background: rgba(168, 216, 234, 0.25);
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.organic-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.organic-card h3 {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--charcoal);
  margin-bottom: 0.625rem;
}
.organic-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Services: Flowing Card Cluster --- */
.services-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* --- About: Organic Overlap Layout --- */
.about-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}
.about-text {
  max-width: 680px;
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.75;
}
.about-text strong {
  color: var(--slate);
}
.about-ornament {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--card-shadow);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--charcoal);
}
.about-badge svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--jade);
}

/* --- Counter Cluster --- */
.counter-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
}
.counter-item {
  text-align: center;
}
.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.1;
}
.counter-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Contact Section --- */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-gentle) var(--radius-soft) var(--radius-gentle) var(--radius-soft);
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: var(--soft-blue);
  border-radius: 0 0 0 70%;
  filter: blur(40px);
  opacity: 0.12;
  pointer-events: none;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--warm-gray);
  border: 2px solid transparent;
  border-radius: var(--radius-soft);
  transition: border-color var(--transition-gentle), box-shadow var(--transition-gentle), background var(--transition-gentle);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--soft-blue-deep);
  box-shadow: 0 0 0 4px rgba(168, 216, 234, 0.2);
  background: var(--white);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
}
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-soft);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status--success {
  display: block;
  background: rgba(93, 170, 142, 0.12);
  color: var(--jade);
}
.form-status--error {
  display: block;
  background: rgba(200, 80, 60, 0.08);
  color: #C8503C;
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 1.5rem 2rem;
  position: relative;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.footer-brand .logo {
  color: var(--white);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-gentle);
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--soft-blue);
}
.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Rain Drop Decoration --- */
.rain-drop {
  position: absolute;
  width: 8px;
  height: 14px;
  background: rgba(168, 216, 234, 0.5);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  pointer-events: none;
  animation: dropFall linear infinite;
}
@keyframes dropFall {
  0% { transform: rotate(-45deg) translateY(-60px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: rotate(-45deg) translateY(calc(100vh + 60px)); opacity: 0; }
}

/* --- Policy Pages --- */
.policy-page {
  padding: 8rem 1.5rem 5rem;
  max-width: 780px;
  margin: 0 auto;
}
.policy-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.policy-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.policy-page h2 {
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--slate);
  margin: 2.5rem 0 0.75rem;
}
.policy-page p,
.policy-page li {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.policy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.policy-page address {
  font-style: normal;
  background: var(--warm-gray);
  padding: 1.5rem;
  border-radius: var(--radius-soft);
  margin: 1rem 0;
  line-height: 1.7;
}
.policy-page a {
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: var(--white);
    padding: 5rem 1.5rem 2rem;
    box-shadow: -8px 0 40px rgba(44, 62, 80, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition-gentle);
    align-items: flex-start;
    gap: 0.5rem;
    overflow-y: auto;
    z-index: 105;
  }
  .nav-links--open {
    transform: translateX(0);
  }
  .nav-links a {
    width: 100%;
    font-size: 1.0625rem;
    padding: 0.7rem 1rem;
  }
  .hamburger {
    display: flex;
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-gentle);
  }
  .mobile-overlay--active {
    opacity: 1;
    pointer-events: auto;
  }
  .contact-card {
    padding: 2rem 1.5rem;
  }
  .counter-cluster {
    gap: 2rem;
  }
}

@media (max-width: 500px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .organic-card {
    padding: 1.75rem 1.25rem;
  }
}
