/* ============================================
   Youyi Group - Global Styles
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --zs-color-primary: #c8161d;
  --zs-color-primary-dark: #a01118;
  --zs-color-secondary: #161c29;
  --zs-color-text: #696a6b;
  --zs-color-text-dark: #161c29;
  --zs-color-text-light: #8d8d8d;
  --zs-color-bg: #ffffff;
  --zs-color-bg-light: #f6f8fc;
  --zs-color-bg-footer: #1e2330;
  --zs-color-bg-footer-hi: #272d3d;
  --zs-color-border: #eeeeee;
  --zs-color-border-light: #dddddd;
  --zs-color-white: #ffffff;

  /* Typography */
  --zs-font-family: 'Inter', Arial, Helvetica, sans-serif;
  --zs-font-size-base: 16px;
  --zs-font-size-sm: 14px;
  --zs-font-size-xs: 12px;
  --zs-font-size-lg: 18px;
  --zs-font-size-xl: 20px;
  --zs-font-size-2xl: 24px;
  --zs-font-size-3xl: 30px;
  --zs-font-size-4xl: 36px;
  --zs-font-size-5xl: 48px;

  /* Spacing */
  --zs-container-max: 1370px;
  --zs-container-padding: 15px;

  /* Transitions */
  --zs-transition: all 0.3s ease;
}

html {
  font-size: var(--zs-font-size-base);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--zs-font-family);
  color: var(--zs-color-text);
  background-color: var(--zs-color-bg);
  overflow-x: hidden;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--zs-transition);
}

a:hover {
  color: var(--zs-color-primary);
}

img {
  max-width: 100%;
  height: auto;
  /* display: block; */
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--zs-color-text-dark);
  line-height: 1.3;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

iframe {
  max-width: 100%;
  border: none;
}

/* --- Grid System (zs prefix) --- */
.zs-wz {
  width: 100%;
  max-width: var(--zs-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--zs-container-padding);
  padding-right: var(--zs-container-padding);
}

.cl::after {
  content: "";
  display: table;
  clear: both;
}

[class*="zs-md-"],
[class*="zs-ml-"],
[class*="zs-mr-"] {
  float: left;
  min-height: 1px;
  padding-left: var(--zs-container-padding);
  padding-right: var(--zs-container-padding);
}

.zs-md-2 { width: 50%; }
.zs-md-3 { width: 33.3333%; }
.zs-md-4 { width: 25%; }
.zs-md-5 { width: 20%; }
.zs-md-6 { width: 16.6667%; }
.zs-ml-3 { width: 30%; }
.zs-mr-7 { width: 70%; }
.zs-ml-7 { width: 70%; }
.zs-mr-3 { width: 30%; }
.zs-ml-4 { width: 40%; }
.zs-mr-6 { width: 60%; }
.zs-ml-5 { width: 50%; }
.zs-mr-5 { width: 50%; }

/* --- Utility Classes --- */
.zs-flex { display: flex; }
.zs-flex-wrap { flex-wrap: wrap; }
.zs-flex-col { flex-direction: column; }
.zs-items-center { align-items: center; }
.zs-justify-center { justify-content: center; }
.zs-justify-between { justify-content: space-between; }
.zs-text-center { text-align: center; }
.zs-text-white { color: var(--zs-color-white); }
.zs-relative { position: relative; }
.zs-overflow-hidden { overflow: hidden; }
.zs-hidden { display: none; }
.zs-block { display: block; }
.zs-inline-block { display: inline-block; }
.zs-w-full { width: 100%; }

/* --- Lazy Load --- */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img[data-src].zs-loaded {
  opacity: 1;
}

/* --- Buttons --- */
.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: var(--zs-font-size-sm);
  font-weight: 600;
  border-radius: 4px;
  transition: var(--zs-transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zs-btn-primary {
  background-color: var(--zs-color-primary);
  color: var(--zs-color-white);
}

.zs-btn-primary:hover {
  background-color: var(--zs-color-primary-dark);
  color: var(--zs-color-white);
}

.zs-btn-outline {
  border: 2px solid var(--zs-color-primary);
  color: var(--zs-color-primary);
  background: transparent;
}

.zs-btn-outline:hover {
  background-color: var(--zs-color-primary);
  color: var(--zs-color-white);
}

.zs-btn-white {
  background-color: var(--zs-color-white);
  color: var(--zs-color-text-dark);
}

.zs-btn-white:hover {
  background-color: var(--zs-color-primary);
  color: var(--zs-color-white);
}

/* --- Section Common --- */
.zs-section {
  padding: 80px 0;
}

.zs-section-title {
  font-size: var(--zs-font-size-4xl);
  margin-bottom: 16px;
}

.zs-section-subtitle {
  font-size: var(--zs-font-size-base);
  color: var(--zs-color-text);
  max-width: 600px;
}

.zs-section-header {
  margin-bottom: 48px;
}

/* --- Breadcrumb --- */
.zs-breadcrumb {
  padding: 16px 0;
  font-size: var(--zs-font-size-sm);
  color: var(--zs-color-text-light);
}

.zs-breadcrumb a:hover {
  color: var(--zs-color-primary);
}

.zs-breadcrumb span {
  margin: 0 8px;
}

/* --- Page Banner --- */
.zs-page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--zs-color-white);
}

.zs-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.zs-page-banner .zs-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.zs-page-banner h2 {
  font-size: var(--zs-font-size-4xl);
  color: var(--zs-color-white);
  margin-bottom: 8px;
}

/* --- Form Styles --- */
.zs-form-input,
.zs-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--zs-color-border-light);
  background: var(--zs-color-white);
  color: var(--zs-color-text-dark);
  font-size: var(--zs-font-size-sm);
  transition: var(--zs-transition);
}

.zs-form-input:focus,
.zs-form-textarea:focus {
  border-color: var(--zs-color-primary);
}

.zs-form-input::placeholder,
.zs-form-textarea::placeholder {
  color: var(--zs-color-text-light);
}

.zs-form-textarea {
  min-height: 120px;
  resize: vertical;
}
