﻿/*
Theme Name: Aiwei Baby Center
Theme URI: https://aiweibaby.local
Author: AIWebaby Team
Description: 爱维宝贝专用展示站点
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: aiweibaby
*/

:root {
  --bg: #f1f2f6;
  --paper: #ffffff;
  --pink: #ec95a7;
  --pink-soft: #f8e6eb;
  --rose: #d91d43;
  --ink: #212228;
  --muted: #626672;
  --line: #f0bec9;
  --radius: 20px;
  --shadow: 0 16px 40px rgba(216, 30, 65, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #f6ecf0 70%, #f7e3ea 100%);
  color: var(--ink);
  scroll-behavior: smooth;
}

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

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

.awb-shell {
  position: relative;
  overflow: hidden;
}

.awb-shell::before {
  content: "";
  position: fixed;
  left: -170px;
  top: 90px;
  width: 360px;
  height: 700px;
  background: url("assets/images/orb-left.png") center / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.awb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 29, 67, 0.14);
}

.awb-topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.awb-brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #a6112f;
}

.awb-brand small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
}

.awb-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #373b45;
}

.awb-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.awb-nav a:hover {
  background: rgba(236, 149, 167, 0.24);
  color: #a6112f;
}

.awb-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #df3b64;
  background: #fff4f7;
  color: #b41439;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.awb-admin-link:hover,
.awb-admin-link:focus-visible {
  background: #ffe8ef;
}

.awb-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 84px;
  position: relative;
  z-index: 1;
}

.awb-section {
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 44px;
  animation: awb-fade 0.6s ease both;
}

.awb-section h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 1px;
}

.awb-section h2 .rose {
  color: var(--rose);
}

.awb-sub {
  margin-top: 12px;
  font-size: clamp(17px, 2.2vw, 26px);
  color: #2f323a;
}

.awb-hero {
  margin-top: 0;
  background: linear-gradient(115deg, #f7f8fc 0%, #f7e7ec 80%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
}

.awb-hero h1 {
  font-size: clamp(48px, 6vw, 98px);
  margin: 18px 0;
  line-height: 1;
  color: #9c0f2d;
}

.awb-hero p {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 36px);
  color: #1f2127;
}

.awb-hero-flag {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: #565b65;
}

.awb-hero-note {
  margin-top: 24px;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.awb-hero-note i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.awb-hero-visual {
  position: relative;
  padding: 10px;
}

.awb-hero-visual::before {
  content: "";
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: rgba(236, 149, 167, 0.32);
}

.awb-hero-visual img {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: min(560px, 100%);
}

.awb-catalog {
  background: linear-gradient(180deg, rgba(218, 224, 236, 0.7), #fff 39%, #f9e7ec 100%);
}

.awb-catalog-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.awb-catalog-item {
  border-left: 2px solid #e8acb9;
  padding: 8px 16px 16px;
}

.awb-catalog-item b {
  font-size: 52px;
  line-height: 0.95;
  color: #df4a6a;
  font-style: italic;
  display: block;
}

.awb-catalog-item p {
  margin: 12px 0 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.awb-two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.awb-stamp {
  margin-top: 22px;
  display: inline-block;
  border: 2px solid #f49aad;
  background: #ffdce5;
  color: #d64767;
  border-radius: 12px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 14px;
}

.awb-copy {
  font-size: clamp(17px, 1.4vw, 32px);
  line-height: 1.6;
  color: #2d3038;
  margin-top: 12px;
}

.awb-card-image {
  border: 2px solid #f49aad;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.awb-classify-list {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.awb-classify-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  align-items: stretch;
}

.awb-classify-tag {
  border-radius: 16px;
  background: #f6b9c8;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  text-align: center;
  display: grid;
  place-items: center;
}

.awb-classify-body {
  border: 2px solid #ef98aa;
  border-radius: 24px;
  padding: 18px 22px;
  font-size: 26px;
  line-height: 1.5;
  color: #252930;
  background: rgba(255, 255, 255, 0.78);
}

.awb-steps {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.awb-step {
  background: linear-gradient(180deg, #f2b2c1 0%, #f7dee5 100%);
  border-radius: 12px;
  min-height: 230px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.awb-step::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid #ef9fb3;
}

.awb-step:last-child::after {
  display: none;
}

.awb-step b {
  font-size: 52px;
  color: #d63d60;
}

.awb-step span {
  font-size: 30px;
  font-weight: 800;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  margin-top: 8px;
}

.awb-timeline {
  margin-top: 34px;
  border-radius: 20px;
  border: 1px solid #efb5c2;
  background: linear-gradient(180deg, #fff7fa 0%, #fbe7ed 100%);
  padding: 26px 20px;
}

.awb-timeline-track {
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9d6df 0%, #ef8ea5 100%);
}

.awb-timeline-grid {
  margin-top: -20px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.awb-node {
  text-align: center;
}

.awb-node-icon {
  width: 74px;
  height: 74px;
  border: 2px solid #ea7893;
  border-radius: 50%;
  margin: 0 auto;
  background: #fff;
  display: grid;
  place-items: center;
}

.awb-node-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.awb-node p {
  margin: 12px 0 0;
  font-size: 22px;
  color: #2f3340;
  line-height: 1.4;
}

.awb-about p {
  font-size: clamp(17px, 1.4vw, 32px);
  line-height: 1.8;
  margin: 18px 0;
}

.awb-about .mark {
  color: #ab112f;
  font-weight: 900;
}

.awb-service-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.awb-service-item {
  border-radius: 999px;
  padding: 14px 12px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #f9d6df 0%, #f1a0b4 100%);
  color: #762334;
}

.awb-advantage {
  overflow: hidden;
}

.awb-ribbon {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.awb-ribbon-item {
  background: #e79eaf;
  color: #fff;
  min-height: 124px;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.15);
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

.awb-ribbon-item:nth-child(2) {
  background: #eab2be;
}

.awb-ribbon-item:nth-child(3) {
  background: #de96a8;
}

.awb-ribbon-item:nth-child(4) {
  background: #e6aab8;
}

.awb-ribbon-copy {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.awb-ribbon-copy p {
  margin: 0;
  font-size: 26px;
  line-height: 1.5;
  color: #23252f;
}

.awb-ribbon-copy b {
  display: block;
  color: #ca193f;
  font-size: 52px;
  margin-bottom: 10px;
  transform: rotate(-7deg);
}

.awb-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid #efb7c4;
  border-radius: 12px;
}

.awb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: rgba(255, 255, 255, 0.8);
}

.awb-table th,
.awb-table td {
  border: 1px solid #efbdc9;
  padding: 14px;
  text-align: center;
  font-size: 24px;
  line-height: 1.45;
}

.awb-table th {
  background: #e34a66;
  color: #fff;
  font-weight: 800;
}

.awb-table td:last-child,
.awb-table td:nth-child(5) {
  background: #f9e3ea;
}

.awb-gallery {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.awb-gallery figure {
  margin: 0;
  border: 8px solid #f09daf;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.awb-gallery figcaption {
  font-size: 18px;
  padding: 12px 14px;
}

.awb-case-list {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.awb-case {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #efc5cf;
  border-radius: 18px;
  padding: 18px;
}

.awb-case h3 {
  margin: 0;
  font-size: 34px;
  color: #f2142f;
}

.awb-case p {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.6;
}

.awb-case .key {
  color: #1f2128;
  font-weight: 700;
}

.awb-case img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #ef90a6;
}

.awb-news {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, #fdeef3 100%);
}

.awb-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.awb-news-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e17993;
  color: #bb1b3f;
  font-size: 16px;
  font-weight: 700;
}

.awb-news-manage:hover,
.awb-news-manage:focus-visible {
  background: #fff1f5;
}

.awb-news-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.awb-news-card {
  background: #fff;
  border: 1px solid #efbfcb;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.awb-news-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f6f8;
}

.awb-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awb-news-meta {
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6f7380;
}

.awb-news-card h3,
.awb-news-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

.awb-news-card p {
  margin: 0;
  color: #333845;
  font-size: 17px;
  line-height: 1.7;
}

.awb-news-card .awb-news-meta {
  font-size: 14px;
  color: #6f7380;
}

.awb-news-link {
  margin-top: auto;
  color: #c91f45;
  font-weight: 700;
}

.awb-news-empty {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed #e6a0b3;
  border-radius: 12px;
  color: #5c6170;
  background: #fff8fa;
}

.awb-news-page h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 48px);
}

.awb-news-single {
  max-width: 900px;
  margin: 0 auto;
}

.awb-news-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid #e3a0b2;
  border-radius: 999px;
  color: #b71a3d;
  background: #fff7fa;
  font-size: 14px;
  font-weight: 700;
}

.awb-news-back:hover,
.awb-news-back:focus-visible {
  background: #ffeef4;
}

.awb-news-single-thumb {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
}

.awb-news-single-content {
  margin-top: 16px;
  color: #2c3039;
  font-size: 19px;
  line-height: 1.9;
}

.awb-news-single-content p {
  margin: 0 0 16px;
}

.nav-links {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #ebb2c0;
  background: #fff;
}

.page-numbers.current {
  background: #dc3f66;
  color: #fff;
  border-color: #dc3f66;
}

.awb-contact {
  text-align: center;
}

.awb-contact-layout {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: start;
}

.awb-contact-phone {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 2px solid #ef90a6;
  background: #fff5f8;
  font-size: clamp(24px, 2.6vw, 44px);
  color: #be1338;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

.awb-contact-phone:hover,
.awb-contact-phone:focus-visible {
  background: #ffeaf0;
  border-color: #df3b64;
}

.awb-contact-popup-btn {
  min-height: 120px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 2px solid #ef90a6;
  background: #ffffff;
  font-size: clamp(22px, 2.1vw, 34px);
  color: #be1338;
  font-weight: 700;
  cursor: pointer;
}

.awb-contact-popup-btn:hover,
.awb-contact-popup-btn:focus-visible {
  background: #fff0f4;
  border-color: #df3b64;
}

.awb-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.awb-contact-modal[hidden] {
  display: none;
}

.awb-contact-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 30, 0.62);
}

.awb-contact-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  border: 2px solid #ef90a6;
  padding: 30px 24px 24px;
  text-align: center;
}

.awb-contact-modal-dialog h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 2.8vw, 44px);
  color: #be1338;
}

.awb-contact-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid #ef90a6;
  border-radius: 50%;
  background: #fff5f8;
  color: #be1338;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.awb-contact-modal-close:hover,
.awb-contact-modal-close:focus-visible {
  background: #ffeaf0;
}

.awb-contact-qrcode {
  margin-top: 14px;
  width: min(320px, 75vw);
  border: 2px solid #ef90a6;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  flex: 0 0 auto;
}

.awb-contact-note {
  margin: 0;
  text-align: left;
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.8;
  color: #343844;
}

body.awb-modal-open {
  overflow: hidden;
}

.awb-closing {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.awb-closing::after {
  content: "";
  position: absolute;
  top: 0;
  right: -110px;
  width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #f3b2c1 0%, #ec8da4 100%);
  border-radius: 40px 0 0 40px;
}

.awb-closing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.awb-closing h2 {
  font-size: clamp(44px, 5.5vw, 86px);
  color: #ce143c;
}

.awb-closing p {
  font-size: clamp(24px, 2.2vw, 38px);
  margin: 10px 0 0;
}

.awb-closing .wish {
  margin-top: 20px;
  display: inline-block;
  font-size: clamp(32px, 4vw, 64px);
  color: #ca173f;
}

.awb-closing-visual {
  position: relative;
  padding-right: 18px;
}

.awb-closing-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 8%;
  border-radius: 50%;
  background: rgba(237, 157, 175, 0.26);
}

.awb-closing-visual img {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: min(420px, 100%);
}

.awb-footer {
  padding: 30px 16px 48px;
  text-align: center;
  color: #6b6f79;
  font-size: 17px;
}

@media (max-width: 1280px) {
  .awb-section {
    border-radius: 24px;
    padding: 34px;
  }

  .awb-brand {
    font-size: 22px;
  }

  .awb-catalog-item p,
  .awb-classify-tag,
  .awb-ribbon-item,
  .awb-step span {
    font-size: clamp(24px, 2.1vw, 36px);
  }

  .awb-copy,
  .awb-classify-body,
  .awb-ribbon-copy p,
  .awb-table th,
  .awb-table td,
  .awb-case p,
  .awb-node p {
    font-size: clamp(16px, 1.3vw, 23px);
  }

  .awb-stamp,
  .awb-ribbon-copy b,
  .awb-step b {
    font-size: clamp(32px, 2.8vw, 50px);
  }
}

@media (max-width: 980px) {
  .awb-topbar {
    position: static;
  }

  .awb-topbar-inner {
    padding: 12px 0;
  }

  .awb-nav {
    display: none;
  }

  .awb-admin-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .awb-hero,
  .awb-two-col,
  .awb-closing-grid,
  .awb-case {
    grid-template-columns: 1fr;
  }

  .awb-hero {
    min-height: auto;
  }

  .awb-hero-visual {
    order: -1;
  }

  .awb-hero-visual::before {
    width: 420px;
    height: 420px;
    right: 50%;
    transform: translate(50%, -50%);
  }

  .awb-catalog-grid,
  .awb-steps,
  .awb-service-grid,
  .awb-ribbon,
  .awb-ribbon-copy,
  .awb-gallery,
  .awb-news-grid,
  .awb-timeline-grid {
    grid-template-columns: 1fr 1fr;
  }

  .awb-classify-item {
    grid-template-columns: 1fr;
  }

  .awb-contact-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .awb-step::after {
    display: none;
  }

  .awb-closing::after {
    width: 200px;
    right: -80px;
  }
}

@media (max-width: 640px) {
  .awb-main {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  .awb-section {
    margin-top: 18px;
    padding: 20px;
    border-radius: 18px;
  }

  .awb-shell::before {
    left: -120px;
    width: 260px;
    height: 480px;
    opacity: 0.62;
  }

  .awb-catalog-grid,
  .awb-steps,
  .awb-service-grid,
  .awb-ribbon,
  .awb-ribbon-copy,
  .awb-gallery,
  .awb-news-grid,
  .awb-timeline-grid {
    grid-template-columns: 1fr;
  }

  .awb-ribbon-item {
    clip-path: none;
    border-radius: 10px;
    min-height: 72px;
  }

  .awb-closing::after {
    display: none;
  }

  .awb-closing-visual::before {
    inset: 12% 8%;
  }

  .awb-brand small {
    display: none;
  }

  .awb-table th,
  .awb-table td {
    padding: 9px;
  }

  .awb-contact-phone {
    min-height: 84px;
    font-size: clamp(22px, 7vw, 32px);
  }

  .awb-contact-popup-btn {
    min-height: 84px;
    font-size: clamp(20px, 6vw, 30px);
  }

  .awb-contact-modal-dialog {
    padding: 24px 16px 18px;
  }

  .awb-contact-qrcode {
    width: min(200px, 62vw);
  }
}

@keyframes awb-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
