/* SKINRAY 思凯瑞 - 官网样式 */
:root {
  --primary: #c2185b;
  --primary-dark: #9c1450;
  --primary-light: #e91e8c;
  --accent: #9c27b0;
  --bg-soft: #fdf2f8;
  --bg-gradient: linear-gradient(135deg, #fdf2f8 0%, #fce4ec 50%, #f3e5f5 100%);
  --text-dark: #1a1a2e;
  --text-muted: #5c5c6e;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(194, 24, 91, 0.1);
  --shadow-lg: 0 8px 40px rgba(194, 24, 91, 0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 24, 91, 0.1);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-en {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1.2;
}

.logo-cn {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 4px;
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-gradient);
  overflow: hidden;
  padding-top: 72px;
}

.hero-waves {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero-waves svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  width: 100%;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 6px;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title-cn {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-title-en {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-url {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 40px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto 40px;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(194, 24, 91, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(194, 24, 91, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ===== About ===== */
.about-banner {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: var(--white);
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 32px;
  border-radius: 4px;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-indent: 2em;
  line-height: 2;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Products ===== */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.category-tab {
  padding: 10px 24px;
  border: 2px solid rgba(194, 24, 91, 0.2);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.category-panel {
  display: none;
}

.category-panel.active {
  display: block;
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-title-cn {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.category-title-en {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-grid-9 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fce4ec, #f3e5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  opacity: 0.5;
}

.product-placeholder svg {
  width: 64px;
  height: 64px;
}

.product-placeholder span {
  font-size: 0.85rem;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-desc:empty {
  display: none;
}

.products-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.products-empty svg {
  width: 64px;
  height: 64px;
  color: var(--primary);
  opacity: 0.4;
  margin: 0 auto 24px;
}

.products-empty p {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.products-empty span {
  font-size: 0.9rem;
  line-height: 1.8;
}

.products-empty code {
  background: rgba(194, 24, 91, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-family: Consolas, monospace;
}

/* ===== Certificates ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cert-card {
  text-align: center;
}

.cert-frame {
  background: var(--white);
  border: 2px solid rgba(194, 24, 91, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cert-frame:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.cert-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  opacity: 0.4;
  padding: 20px;
}

.cert-placeholder svg {
  width: 48px;
  height: 48px;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===== Partners ===== */
.partners-intro {
  text-align: center;
  margin-bottom: 48px;
}

.partners-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.partner-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.partner-item:hover {
  transform: scale(1.05);
}

.partner-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Contact / Footer ===== */
.contact-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: var(--white);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  opacity: 0.9;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.footer p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-beian {
  margin-top: 12px;
}

.footer-beian a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-beian a:hover {
  color: var(--white);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(194, 24, 91, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 60px 0;
  }

  .product-grid-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}
