:root {
  --primary: #f7a8b8;
  --primary-dark: #e8899e;
  --primary-light: #fde2e4;
  --secondary: #a8d8ea;
  --accent: #ffd3b6;
  --accent2: #d4a5c6;
  --text: #3d2c35;
  --text-light: #6b5560;
  --text-muted: #9a8892;
  --bg: #fff9fb;
  --bg-alt: #fef5f7;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --border: #f0dfe4;
  --shadow: 0 4px 20px rgba(247, 168, 184, 0.15);
  --shadow-hover: 0 12px 36px rgba(247, 168, 184, 0.28);
  --shadow-glass: 0 8px 32px rgba(247, 168, 184, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #e8899e;
    --primary-dark: #d4738a;
    --primary-light: #3d2c35;
    --secondary: #5a8fa8;
    --accent: #8a6a5a;
    --accent2: #7a5a8a;
    --text: #f0e6ea;
    --text-light: #c4b0b8;
    --text-muted: #8a7580;
    --bg: #1a1218;
    --bg-alt: #221820;
    --card: #2a1e26;
    --card-glass: rgba(42, 30, 38, 0.78);
    --border: #3d2c35;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.45);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(247, 168, 184, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(168, 216, 234, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(212, 165, 198, 0.06) 0%, transparent 50%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.3rem); }

p {
  margin-bottom: 0.85em;
  color: var(--text-light);
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(247, 168, 184, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.04);
}

.logo svg {
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(247, 168, 184, 0.35);
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

#main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: all var(--transition);
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  border-radius: 2px;
  transition: transform var(--transition);
}

#main-nav a:hover {
  color: var(--primary-dark);
  background: rgba(247, 168, 184, 0.08);
}

#main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

#search-form {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: all var(--transition);
  flex-shrink: 0;
}

#search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 168, 184, 0.2);
}

#search-form input {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text);
  width: 180px;
  font-family: var(--font);
}

#search-form input::placeholder {
  color: var(--text-muted);
}

#search-form button {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
  white-space: nowrap;
}

#search-form button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 12px rgba(247, 168, 184, 0.4);
}

#mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  padding: 6px 12px;
  transition: all var(--transition);
  flex-shrink: 0;
}

#mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(247, 168, 184, 0.08);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 28px;
  display: inline-block;
}

section > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent2), var(--secondary));
  border-radius: 4px;
}

#hero {
  position: relative;
  margin-top: 28px;
  margin-bottom: 48px;
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fde2e4 0%, #f7a8b8 25%, #d4a5c6 50%, #a8d8ea 75%, #fde2e4 100%);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
  box-shadow: 0 16px 48px rgba(247, 168, 184, 0.3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(212, 115, 138, 0.4);
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.4;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(212, 115, 138, 0.3);
}

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

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.6);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
}

.hero-banner {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(212, 115, 138, 0.3);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
}

.banner-slide svg {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
}

#breadcrumb {
  margin-bottom: 28px;
  padding: 12px 20px;
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass);
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

#breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

#breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

#breadcrumb li[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 600;
}

#breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

#breadcrumb a:hover {
  color: var(--primary-dark);
}

#about article,
#products article,
#advantages article,
#solutions article,
#scenarios article,
#cases article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#about article::before,
#products article::before,
#advantages article::before,
#solutions article::before,
#scenarios article::before,
#cases article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--accent2));
  border-radius: 0 4px 4px 0;
  transition: height var(--transition);
}

#about article:hover::before,
#products article:hover::before,
#advantages article:hover::before,
#solutions article:hover::before,
#scenarios article:hover::before,
#cases article:hover::before {
  height: 100%;
}

#about article:hover,
#products article:hover,
#advantages article:hover,
#solutions article:hover,
#scenarios article:hover,
#cases article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(247, 168, 184, 0.4);
}

#about article h3,
#products article h3,
#advantages article h3,
#solutions article h3,
#scenarios article h3,
#cases article h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
  padding-left: 0;
  transition: padding-left var(--transition);
}

#about article:hover h3,
#products article:hover h3,
#advantages article:hover h3,
#solutions article:hover h3,
#scenarios article:hover h3,
#cases article:hover h3 {
  padding-left: 8px;
}

#testimonials blockquote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all var(--transition);
  border-left: 4px solid var(--primary);
}

#testimonials blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

#testimonials blockquote:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--accent2);
}

#testimonials blockquote p {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

#testimonials blockquote footer {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: right;
}

#articles article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(247, 168, 184, 0.4);
}

#articles article h3 {
  margin-bottom: 8px;
}

#articles article h3 a {
  color: var(--text);
  transition: color var(--transition);
}

#articles article h3 a:hover {
  color: var(--primary-dark);
}

#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 2px 12px;
  background: var(--bg-alt);
  border-radius: 50px;
  border: 1px solid var(--border);
}

#articles article p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

#articles article > a:last-child:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(247, 168, 184, 0.4);
  transform: translateX(4px);
}

#howto article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

#howto article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

#howto article h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  font-size: 0.92rem;
  color: var(--text-light);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(247, 168, 184, 0.35);
}

#howto ol li:hover {
  background: var(--card);
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

#howto ol li strong {
  color: var(--text);
}

#faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

#faq details[open] {
  border-color: rgba(247, 168, 184, 0.5);
  box-shadow: var(--shadow-hover);
}

#faq details:hover {
  border-color: rgba(247, 168, 184, 0.4);
}

#faq summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::before {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(247, 168, 184, 0.3);
}

#faq details[open] summary::before {
  content: '−';
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--accent2), var(--primary));
}

#faq summary:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

#faq details p {
  padding: 0 24px 20px 62px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-light);
  animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contact address {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  font-style: normal;
  transition: all var(--transition);
}

#contact address:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

#contact address p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#contact address strong {
  color: var(--text);
  min-width: 80px;
}

#contact address a {
  color: var(--primary-dark);
  font-weight: 500;
  border-bottom: 1px dashed var(--primary);
  transition: all var(--transition);
}

#contact address a:hover {
  color: var(--primary);
  border-bottom-style: solid;
}

#contact article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

#contact article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

#contact article h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

#sitemap nav a {
  display: block;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

#sitemap nav a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(247, 168, 184, 0.35);
}

#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#links ul li a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  box-shadow: var(--shadow-glass);
}

#links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(247, 168, 184, 0.35);
}

#site-footer {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 48px 20px 0;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent2), var(--secondary), var(--primary));
  background-size: 300% 100%;
  animation: footerGradient 8s ease infinite;
}

@keyframes footerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.footer-content section {
  margin-bottom: 0;
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-glass);
  transition: all var(--transition);
}

.footer-content section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.footer-content section h2 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

.footer-content section h2::after {
  display: none;
}

.footer-content section p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-content section a {
  color: var(--primary-dark);
  border-bottom: 1px dashed var(--primary);
  transition: all var(--transition);
}

.footer-content section a:hover {
  color: var(--primary);
  border-bottom-style: solid;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
  color: var(--primary-dark);
  font-weight: 500;
}

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(247, 168, 184, 0.45);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 32px rgba(247, 168, 184, 0.6);
}

#back-to-top:active {
  transform: translateY(-2px) scale(1.02);
}

section {
  animation: sectionFadeIn 0.7s ease both;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
section:nth-child(7) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
  }

  #hero {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }

  #main-nav a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  #search-form input {
    width: 140px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
    --radius: 14px;
    --radius-lg: 18px;
  }

  .header-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .logo svg {
    width: 140px;
    height: 42px;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--card-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(247, 168, 184, 0.15);
    padding: 12px 16px;
    z-index: 999;
  }

  #main-nav.active {
    display: block;
    animation: navSlideIn 0.3s ease;
  }

  @keyframes navSlideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

  #main-nav a:hover {
    background: rgba(247, 168, 184, 0.12);
  }

  #search-form {
    flex: 1;
    max-width: none;
  }

  #search-form input {
    width: 100%;
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  #search-form button {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  #mobile-menu-btn {
    display: block;
  }

  main {
    padding: 0 14px;
  }

  section {
    margin-bottom: 40px;
  }

  #hero {
    padding: 28px 20px;
    margin-top: 16px;
    margin-bottom: 32px;
    border-radius: var(--radius);
  }

  .hero-content h1 {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 24px;
  }

  #breadcrumb {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  #breadcrumb ol {
    font-size: 0.78rem;
  }

  #about article,
  #products article,
  #advantages article,
  #solutions article,
  #scenarios article,
  #cases article,
  #testimonials blockquote,
  #articles article,
  #howto article,
  #contact address,
  #contact article {
    padding: 20px 18px;
    border-radius: var(--radius-sm);
  }

  #faq summary {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  #faq details p {
    padding: 0 16px 16px 48px;
    font-size: 0.85rem;
  }

  #sitemap nav ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }

  #sitemap nav a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-content section {
    padding: 18px 16px;
  }

  #back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
  }

  .logo {
    order: 1;
  }

  #mobile-menu-btn {
    order: 2;
    margin-left: auto;
  }

  #search-form {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  #main-nav {
    top: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding-top: 80px;
    overflow-y: auto;
  }

  #main-nav.active {
    display: flex;
    flex-direction: column;
  }

  #hero {
    padding: 22px 16px;
  }

  .hero-content h1 {
    font-size: 1.1rem;
  }

  .hero-content p {
    font-size: 0.8rem;
    line-height: 1.7;
  }

  section > h2 {
    font-size: 1.15rem;
  }

  #howto ol li {
    padding: 12px 12px 12px 48px;
    font-size: 0.85rem;
  }

  #howto ol li::before {
    width: 26px;
    height: 26px;
    left: 12px;
    font-size: 0.72rem;
  }

  #links ul {
    flex-direction: column;
  }

  #links ul li a {
    text-align: center;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .hero-actions,
  #search-form,
  #mobile-menu-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  section {
    break-inside: avoid;
  }
}