/*
Theme Name: JiaTai
Theme URI: https://jiatai.com
Author: JiaTai
Description: JiaTai Precision Machinery official website theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: jiatai
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — GLOBAL DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand colors */
    --color-primary:        #1a2f6e;   /* deep navy blue */
    --color-primary-dark:   #0f1e4a;
    --color-primary-light:  #2a4494;
    --color-accent-green:   #67748e;
    --color-accent-red:     #e63946;
    --color-accent-blue:    #2563eb;

    /* Neutral palette */
    --color-white:          #ffffff;
    --color-black:          #0a0a0a;
    --color-gray-100:       #f8f9fa;
    --color-gray-200:       #e9ecef;
    --color-gray-300:       #dee2e6;
    --color-gray-400:       #ced4da;
    --color-gray-500:       #adb5bd;
    --color-gray-600:       #6c757d;
    --color-gray-700:       #495057;
    --color-gray-800:       #343a40;
    --color-gray-900:       #212529;

    --gradient-silver: linear-gradient(135deg, #e9e9e9 0%, #ffffff 50%, #d1d1d1 100%);

    /* Typography */
    --font-family-base:     -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-size-xs:         0.75rem;
    --font-size-sm:         0.875rem;
    --font-size-base:       1rem;
    --font-size-md:         1.125rem;
    --font-size-lg:         1.25rem;
    --font-size-xl:         1.5rem;
    --font-size-2xl:        2rem;
    --font-size-3xl:        2.5rem;
    --font-size-4xl:        3rem;
    --font-size-5xl:        3.75rem;
    --font-weight-normal:   400;
    --font-weight-medium:   500;
    --font-weight-semibold: 600;
    --font-weight-bold:     700;
    --line-height-tight:    1.2;
    --line-height-base:     1.6;
    --line-height-loose:    1.8;

    /* Spacing scale */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-7:   1.75rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;
    --space-32:  8rem;

    /* Layout */
    --container-max:        1280px;
    --container-padding:    1.5rem;

    /* Borders */
    --radius-sm:            4px;
    --radius-md:            8px;
    --radius-lg:            12px;
    --radius-xl:            16px;
    --radius-full:          9999px;

    /* Shadows */
    --shadow-sm:            0 1px 3px rgba(0,0,0,.08);
    --shadow-md:            0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:            0 8px 32px rgba(0,0,0,.14);
    --shadow-xl:            0 16px 48px rgba(0,0,0,.18);

    /* Transitions */
    --transition-fast:      0.15s ease;
    --transition-base:      0.25s ease;
    --transition-slow:      0.4s ease;

    /* Z-index layers */
    --z-base:               1;
    --z-dropdown:           100;
    --z-header:             900;
    --z-modal:              1000;
    --z-overlay:            1100;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-gray-900);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--space-20);
}

.section--sm {
    padding-block: var(--space-12);
}

.section--lg {
    padding-block: var(--space-32);
}

.section--dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.section--navy {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.section--gray {
    background: var(--color-gray-100);
}

/* ============================================================
   SECTION HEADER (shared label + title pattern)
   ============================================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-green);
    margin-bottom: var(--space-4);
}

.section-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--color-accent-green);
    flex-shrink: 0;
}

.section-label--center {
    justify-content: center;
}

.section-label--center::before,
.section-label--center::after {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--color-accent-green);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: inherit;
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-gray-600);
    margin-top: var(--space-4);
    max-width: 640px;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin-inline: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.btn--green {
    background: var(--color-accent-green);
    color: var(--color-white);
    border-color: var(--color-accent-green);
}

.btn--green:hover {
    background: #00a07e;
    border-color: #00a07e;
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn--outline-dark {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline-dark:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--outline-green {
    background: transparent;
    color: var(--color-accent-green);
    border-color: var(--color-accent-green);
}

.btn--outline-green:hover {
    background: var(--color-accent-green);
    color: var(--color-white);
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    .section {
        padding-block: var(--space-12);
    }
    .section--lg {
        padding-block: var(--space-20);
    }
}
/* CF7 一行两列布局 */
.cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 两个字段之间的间距 */
  margin-bottom: 20px;
}
.cf7-col {
  flex: 1;
  min-width: 200px; /* 小屏幕自动换行 */
}
.cf7-title {
  padding-left: 15px;
}
.cf7-col p {
  text-align: left;
  color: var(--color-accent-green); /* 小屏幕自动换行 */
}
/* 让输入框宽度100% */
.cf7-col input, .cf7-col textarea, .cf7-col select {
  width: 100% !important;
}