/*
Theme Name: WTL Theme
Theme URI: https://www.wtldesign.com
Author: WTL Design
Description: Custom theme for WTL Design - Way to Life Design
Version: 7.3.0
*/

/* Google Fonts 由 functions.php 通过 wp_enqueue_style 统一加载，此处不重复 @import */

/* ============================================================
   CSS Variables (匹配 Elementor Global Kit post-24.css)
   ============================================================ */
:root {
    --color-primary: #444444;
    --color-text: #444444;
    --color-black: #000000;
    --color-dark: #0e0e0e;
    --color-footer: #000000;
    --color-white: #ffffff;
    --color-light-bg: #f9f9f6;
    --color-divider: #cfcfcf;

    --font-body: Arial, Helvetica, sans-serif;
    --font-nav: 'Open Sans', Arial, sans-serif;
    --font-lora: 'Lora', Georgia, serif;

    --container-max: 1400px;
    --container-tablet: 1025px;
    --container-mobile: 768px;

    --text-line-height: 1.8em;
    --text-letter-spacing: 0.4px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:focus { outline: 0 !important; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--text-line-height);
    letter-spacing: var(--text-letter-spacing);
    background: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   Typography Scale
   ============================================================ */

/* 页面标题 / 大标题 */
h1 { font-family: var(--font-body); font-size: 50px; font-weight: bold; line-height: 1.2; }
h2 { font-family: var(--font-body); font-size: 32px; font-weight: bold; line-height: 1.3; }
h3 { font-family: var(--font-body); font-size: 26px; font-weight: 500; line-height: 1.4; }
h4 { font-family: var(--font-body); font-size: 20px; font-weight: 500; line-height: 1.5; }
h5 { font-family: var(--font-body); font-size: 16px; font-weight: bold; line-height: 1.5; }
h6 { font-family: var(--font-body); font-size: 14px; font-weight: bold; line-height: 1.5; }

p { font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.8em; letter-spacing: 0.4px; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* 信息栏标签样式 (e0a090e: 12px, weight 800, uppercase) */
.label-uppercase {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4em;
    letter-spacing: 0.4px;
    color: var(--color-text);
}

/* 信息栏数值样式 (62e1869: 14px, 1.4em line-height, 0px letter-spacing) */
.label-value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: 0;
    color: var(--color-text);
}

/* Lora 斜体装饰文字 */
.font-lora {
    font-family: var(--font-lora);
    font-style: italic;
    font-weight: 400;
    line-height: 1.8em;
    letter-spacing: 0.4px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 120px 0; }

/* ============================================================
   Header / Navigation
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.3s ease;
}

/* 首页透明状态 */
#site-header.header-transparent {
    background: transparent;
}

/* 滚动后白色磨砂玻璃 */
#site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Logo */
.site-logo img {
    height: 36px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 53px; /* 精确匹配旧站 53px 间距 */
}

.main-nav a {
    font-family: var(--font-nav);  /* Open Sans */
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s;
}

/* 导航下划线 - 从中间向两边展开 */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: currentColor;
    /* opacity 0.73 已去掉:老站下划线是**纯黑**(像素亮度实测 lum=0),
       带 .73 后新站量到 lum=69(偏灰)。2026-08-05 平板/hover 档实测。 */
    transition: left 0.3s ease, right 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    left: 0;
    right: 0;
}

/* 透明导航时链接为白色 */
.header-transparent .main-nav a { color: #ffffff; }
.header-transparent .main-nav a::after { background: rgba(255, 255, 255, 0.73); }

/* 白色导航时链接为深色 */
.header-scrolled .main-nav a { color: var(--color-text); }

/* 语言切换 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-nav);
    font-size: 12px;
    font-weight: 400;
}

.lang-switch a {
    padding: 4px 8px;
    transition: opacity 0.3s;
    border-radius: 2px;
    transition: background 0.6s;
}

.lang-switch a.active {
    border: 1px solid currentColor;
    border-radius: 3px;
}

.header-transparent .lang-switch a { color: #ffffff; }
.header-scrolled .lang-switch a { color: var(--color-text); }

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    transition: all 0.3s;
    border-radius: 1px;
}

.header-transparent .hamburger { color: #ffffff; }
.header-scrolled .hamburger { color: var(--color-text); }

/* ⚠️ 已失效(2026-08-05)——旧的「手机端全屏菜单」样式,与 header.php 里按老站实测重做的下拉面板冲突。
   坑:header.php 的 `.mobile-menu` 只写了 top/left/right,**没写 bottom**,所以这里的 `inset:0`
   仍把 bottom 钉在 0 → 面板被撑成全屏 774px;`justify-content:center` + `gap:32px` 又让 6 项
   摊开在整屏、项间多出 32px(实测项 y 间距 78 而非老站的 46)。同名规则里**你没覆盖的属性会继续生效**,
   这已是 style.css 里第 5 处同类冲突(前有 .clients-grid / .press-grid / .about-hero / .cta-section)。
   `.mobile-menu-close` 本身也是孤儿(markup 里没有这个元素)。
   按「代码留着但失效」处理:整块包进 `@media not all`,永不匹配,需要时去掉这层即可复原。 */
@media not all {
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-family: var(--font-nav);
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.mobile-menu a:hover { opacity: 0.7; }

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
}

/* ============================================================
   首页 (page-home)
   ============================================================ */

/* 全屏 Hero 轮播区 */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active { opacity: 1; }

/* 60% 深色叠加 (匹配旧站 0.6 opacity black overlay) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: 0.6;
    z-index: 1;
}

/* Hero 中心内容 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}

/* WTL 名称列表 - Lora italic 18px (匹配旧站) */
.hero-name-list {
    font-family: var(--font-lora);
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8em;
    letter-spacing: 0.4px;
    color: #ffffff;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero-name-list li + li::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #ffffff;
    margin-right: 28px;
    vertical-align: middle;
}

/* 首页底部黑色横条 (匹配旧站 post-989.css 的 #000000 section) */
.hero-bottom-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    background: #000000;
    padding: 0;
    flex-shrink: 0;
}

.hero-bottom-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

/* 社交图标 (43px gap 匹配旧站) */
.hero-social-icons {
    display: flex;
    align-items: center;
    gap: 43px;
}

.hero-social-icons a {
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.hero-social-icons a:hover { opacity: 1; }

/* 中间导航/语言 (Open Sans 12px) */
.hero-bottom-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-bottom-nav a {
    font-family: var(--font-nav);
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    padding: 4px 5px;
    transition: color 0.3s;
}

.hero-bottom-nav a:hover,
.hero-bottom-nav a.active { color: #ffffff; }

/* PROFILE 按钮 (透明背景 + 白色边框) */
.hero-profile-btn {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.88);
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-radius: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-profile-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* Copyright 文字 (12px white 2-column) */
.hero-copyright {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8em;
    letter-spacing: 0.4px;
    padding: 29px 0 0 0;
    text-align: center;
    columns: 2;
    column-gap: 100px;
}

/* ============================================================
   Projects 列表页
   ============================================================ */
.projects-page { padding-top: 70px; }

/* 分类筛选 */
.projects-filter {
    padding: 40px var(--container-max);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* 2026-08-04:去掉 `opacity:.5` —— 老站筛选条非激活项是**纯色 rgb(68,68,68)、opacity 1**,
   不做半透明(依据:老站 projects 页 y=155 那行 9 个筛选项实测 op=1、color=rgb(68,68,68),
   激活项 color=rgb(176,176,176) 也 op=1)。字号/大小写等具体口径由 page-projects.php 的内联规则决定。 */
.filter-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    opacity: 1;
    transition: color 0.3s, opacity 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 0;
    position: relative;
}

/* ⚠️ 已失效(2026-08-05):老站筛选按钮 hover **完全无变化**(4 个按钮实测 changed={}),
   这条 ::after 会在 hover 时展开一道 1px 下划线,是新主题自带的效果。content 置空即不生成盒子。 */
.filter-btn::after {
    content: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--color-text);
    transition: left 0.3s, right 0.3s;
}

.filter-btn.active,
.filter-btn:hover { opacity: 1; }

.filter-btn.active::after,
.filter-btn:hover::after { left: 0; right: 0; }

/* 项目网格 - 3列 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
    row-gap: 23px;
    padding: 20px 40px 60px;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* 项目卡片 */
.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 正方形比例 (0.618 aspect ratio 匹配旧站) */
.project-card-image {
    position: relative;
    padding-bottom: 61.8%;
    overflow: hidden;
}

.project-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

/* Hover 叠加效果 (匹配旧站 rgba(5,5,5,0.59)) */
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.59);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
}

/* ============================================================
   项目详情页 (single-wtl_project)
   ============================================================ */


/* ⚠️ 2026-08-05:整段用 `@media not all` 包起来 —— **代码原样保留,但永久失效**。
   为什么:这一整段是**旧版**项目详情页样式,现行 single-wtl_project.php 已在自己的内联
   <style> 里完整声明了同名类,这里的规则要么冗余、要么**漏进模板**造成 bug。已咬过两次:
     · `.project-gallery-section{padding:150px 0}` —— 模板声明的是 margin-bottom:70px,
       **padding 与 margin 是两个属性、不互相覆盖而是叠加** → 画廊区块凭空多 300px,
       是该页与老站高度差(+366)的最大单项来源
     · `.project-info-value{padding-top:4px}` —— 模板未声明 padding 时漏进来,每条信息项多 4px
   段内 `.project-content-section` / `.project-quote-section` / `.related-projects-grid` /
   `.project-navigation` / `.project-info-label` / `.project-gallery-swiper` /
   `.project-description-col` 等在 php/js 里已 **0 引用**(grep 确认)。
   `@media not all` 永不匹配任何设备,浏览器直接跳过整段;比注释掉更安全(段内有 /* */ 注释,
   包大注释会被内部的 */ 提前截断)。要恢复只需删掉这层 @media 包装。 */
@media not all { /* ← 永不匹配:以下整段不生效 */
/* Hero 全宽图片 */
.project-hero {
    position: relative;
    width: 100%;
    min-height: 800px;
    background-size: cover;
    background-position: center;
    /* ⚠️ 已失效(2026-08-05):原 `padding-top:70px` 是「hero 是页面第一屏、没有 fixed header」时代的遗留。
       现在 body 已经有 padding-top(75/85)顶开 fixed header,这里再加 70 就是**叠加**——
       项目详情页 hero 内部凭空多出 70px 空白(和 .project-gallery-section 那次 +300px 同一种坑:
       padding 和 margin 不互相覆盖,只会相加)。模板 single-wtl_project.php 的 .project-hero
       只覆盖了 min-height,没写 padding-top,所以压不住它。保留代码、注释掉即失效。 */
    /* padding-top: 70px; */
}

.project-hero-inner {
    max-width: 800px;
    min-height: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 项目内容区 - 两列布局 */
.project-content-section {
    padding: 0 0 100px;
}

.project-content-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 44% 13% 42%;
    gap: 0;
}

/* 左列：标题 + 描述 */
.project-description-col {
    padding: 80px 0 80px 40px;
}

.project-title-en {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: bold;
    line-height: 1em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.project-description-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: 0;
    color: var(--color-text);
}

/* 右列：项目信息 */
.project-info-col {
    padding: 80px 40px 80px 0;
}

/* 信息项 - 标签/数值对 */
.project-info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-divider);
}

.project-info-item:first-child { border-top: 1px solid var(--color-divider); }

.project-info-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4em;
    letter-spacing: 0.4px;
    color: var(--color-text);
    margin-bottom: -15px;
    display: block;
}

.project-info-value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: 0;
    color: var(--color-text);
    display: block;
    /* 2026-08-04 去掉 `padding-top:4px` —— 与 single-wtl_project.php 的同名规则冲突,
       padding 未被那边声明时会漏进来,每条信息项多 4px。 */
}

/* 画廊 Swiper */
/* ⚠️ 2026-08-04 去掉 `padding: 150px 0` —— 这是旧版设计的遗留值,而 single-wtl_project.php
   声明的是 `margin-bottom:70px`;**padding 与 margin 是两个属性,不会互相覆盖而是叠加**,
   于是画廊区块凭空多出 300px,实测占了该页高度差(+366)的绝大部分。
   本段(约 585–790 行)是旧版项目详情页样式,其中 .project-content-section /
   .project-quote-section / .related-projects-grid / .project-navigation / .project-info-label /
   .project-gallery-swiper / .project-description-col 等在 php/js 里已 **0 引用**(grep 确认),
   属死代码,建议整段清掉 —— 但当前改动尚未 git commit,不便大删,留作后续任务。 */
.project-gallery-section {
}

.project-gallery-swiper {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.project-gallery-swiper .swiper-slide {
    height: 500px;
    width: auto;
}

.project-gallery-swiper .swiper-slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

/* Swiper 控制按钮 */
.swiper-btn-prev,
.swiper-btn-next {
    font-size: 20px;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

/* 项目引言 (Lora italic) */
.project-quote-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
}

.project-quote-text {
    font-family: var(--font-lora);
    font-size: inherit;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8em;
    letter-spacing: 0.4px;
    color: var(--color-text);
}

/* 项目导航 */
.project-navigation {
    border-top: 0;
    border-bottom: 0;
    max-width: 100%;
    padding: 2px 40px;
    display: flex;
    justify-content: space-between;
}

.project-nav-prev,
.project-nav-next {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-nav-label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.project-nav-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-text);
}

.project-nav-next { text-align: right; }

/* 相关项目区域 (bg #000000) */
.related-projects-section {
    background: #000000;
    padding: 25px 0;
}

.related-projects-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    padding: 25px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
    row-gap: 23px;
    padding: 20px 40px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}
} /* ← @media not all 结束:以上整段旧版项目详情页样式均不生效 */

/* ============================================================
   About Us 页面
   ============================================================ */

/* ⚠️ 2026-08-04:原先这里有一套 `.about-hero / .about-hero-overlay / .about-hero-content /
   .about-hero-title` 规则,与 page-about-us.php 的内联规则重复(靠"内联在后、后者胜"侥幸不冲突,
   但改遮罩时要两处同步 —— 与 `.clients-grid`、`.press-grid` 同一类隐患)。
   版式唯一权威放在 page-about-us.php(那里已按老站实测:hero 638px、遮罩 opacity .73、
   标题 EN fs50 描边 / ZH fs45 实心、内容上内距 262px 使标题落在 y=337/404)。
   此处只留一条 hero 容器兜底,其余删除。 */
.about-hero {
    position: relative;
    overflow: hidden;
    min-height: 638px;
}

/* 计数器区域 */
.counter-section {
    background: #0e0e0e;
    padding: 100px 0;
}

.counters-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-family: var(--font-body);
    font-size: 50px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.counter-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4em;
    letter-spacing: 0.4px;
    color: #ffffff;
    margin-top: 8px;
}

/* 区块标题（居中大标题样式）*/
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.section-heading .section-subtitle {
    font-family: var(--font-lora);
    font-size: 16px;
    font-style: italic;
    color: var(--color-text);
    opacity: 0.7;
}

/* Section 标题横线 */
.section-divider {
    width: 0;
    border: none;
    border-top: 1px solid #000;
    margin: 10px auto;
}

/* 服务列表 */
.services-table {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.service-row {
    display: grid;
    grid-template-columns: 35.6% 64.4%;
    border-bottom: 1px solid #000;
    padding: 15px 0;
}

.service-row:first-child { border-top: 1px solid #000; }

.service-number {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4em;
    letter-spacing: 0.4px;
    padding: 0 0 0 100px;
}

.service-name {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4em;
    letter-spacing: 0;
}

/* CTA 区域 */
.cta-section {
    position: relative;
    min-height: 600px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: #15151594;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 50px;
    color: #ffffff;
}

.cta-title {
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: bold;
    line-height: 1em;
    -webkit-text-stroke: 2px #ffffff;
    color: transparent;
}

.cta-subtitle {
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: bold;
    line-height: 1.2em;
    color: #ffffff;
    margin-top: 40px;
}

.cta-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 30px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    font-family: var(--font-body);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: background 0.3s, color 0.3s;
}

.cta-btn:hover {
    background: #ffffff;
    color: var(--color-text);
}

/* ============================================================
   Our Clients 页面
   ============================================================ */
/* ⚠️ 2026-08-04:这里原有的 .clients-grid / .client-logo 规则与 page-our-clients.php 的内联规则**打架**:
   gap:40px + justify-items:center + .client-logo{max-width:140px} 把格子压成 160px 宽、行距撑到 273px,
   而 213px 的 logo 图从 140px 宽的盒子里溢出。原注释「旧站是彩色，移除灰度滤镜」也是**错的** ——
   老站实测 filter 含 saturate(0)(灰度),hover 才变彩色。
   → 版式的唯一权威放在 page-our-clients.php(按老站实测:6 列 / 格 233×233 / 图 213×213 / 零间隙 / 零边框 /
     saturate(0) → hover saturate(1))。此处只留最小容器兜底,不再定义间隙、尺寸、滤镜。 */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ============================================================
   Press 页面
   ============================================================ */
/* ⚠️ 2026-08-04:原先这里的 `.press-grid{gap:30px;padding:60px 40px}` 与 page-press.php 的内联规则
   打架(同 `.clients-grid` 那次事故:间隙/内距被全局规则接管)。版式唯一权威放在 page-press.php,
   这里只留最小容器兜底。
   同时删掉 `.press-card / .press-card-image / .press-card-title / .press-card-meta` 四条**孤儿规则**
   —— 本主题 press 页实际用的是 `.press-grid-item / .press-cover-wrap / .press-cover-meta`,
   这些 class 在整个主题里没有任何元素匹配(grep 确认),留着只会误导下一个改这页的人。 */
.press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ============================================================
   Contact Us 页面
   ============================================================ */
.contact-page {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    padding-top: 70px;
}

.contact-page-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.contact-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    color: #ffffff;
}

/* ============================================================
   Join Us 页面
   ============================================================ */
.joinus-page {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    padding-top: 70px;
}

.joinus-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.joinus-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.joinus-col-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.job-item {
    color: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.job-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.job-dept {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
    background: #000000;
    color: #ffffff;
    padding: 0;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 40px;
}

/* 首页简化 footer（无完整内容）*/
.footer-simple {
    padding: 0;
}

.footer-logo {
    display: block;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin-bottom: 24px;
}

.footer-nav a {
    font-family: var(--font-nav);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.footer-nav a:hover { color: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    line-height: 1.8em;
    letter-spacing: 0.4px;
}

.footer-icp {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

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

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

/* ============================================================
   Forms
   ============================================================ */
.wtl-form .form-group {
    margin-bottom: 20px;
}

.wtl-form label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    display: block;
    margin-bottom: 6px;
    line-height: 1.8em;
    letter-spacing: 0.4px;
}

.wtl-form input,
.wtl-form textarea,
.wtl-form select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    border: 1px solid var(--color-divider);
    background: #fff;
    line-height: 1.8em;
    letter-spacing: 0.4px;
    appearance: none;
    transition: border-color 0.2s;
}

.wtl-form input:focus,
.wtl-form textarea:focus { border-color: #888; }

.wtl-form textarea { min-height: 120px; resize: vertical; }

.wtl-form .submit-btn {
    background: var(--color-black);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 32px;
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.wtl-form .submit-btn:hover {
    background: transparent;
    color: var(--color-black);
}

.form-message { padding: 12px; font-size: 14px; margin-top: 12px; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   Admin Styles
   ============================================================ */
.wtl-admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wtl-field-group { display: flex; flex-direction: column; gap: 6px; }
.wtl-field-group label { font-weight: 600; font-size: 13px; }
.wtl-field-group input, .wtl-field-group textarea { width: 100%; padding: 8px; border: 1px solid #ddd; }
.wtl-translate-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; font-size: 12px;
    background: #0073aa; color: #fff; border: none; cursor: pointer; border-radius: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 0 24px; }
    .main-nav { gap: 24px; }

    .projects-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 24px 40px; }
    .related-projects-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 24px; }

    .project-content-inner { grid-template-columns: 1fr; }
    .project-description-col { padding: 40px 24px 20px; }
    .project-info-col { padding: 0 24px 40px; }

    .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
    .press-grid { grid-template-columns: repeat(2, 1fr); padding: 40px 24px; }

    .service-number { padding-left: 20px; }

    .hero-copyright { font-size: 10px; }
    .hero-social-icons { gap: 18px; }

    .contact-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
    .joinus-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
    .footer-inner { padding: 40px 24px; }
}

/* Mobile */
@media (max-width: 767px) {
    .main-nav { display: none; }
    .lang-switch { display: none; }
    .hamburger { display: flex; }

    h1 { font-size: 26px; }
    h2 { font-size: 24px; }

    .projects-grid { grid-template-columns: 1fr; padding: 20px 16px 40px; }
    .related-projects-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); padding: 40px 16px; }
    .press-grid { grid-template-columns: repeat(2, 1fr); padding: 40px 16px; }

    .hero-content { padding: 0 20px; }
    .hero-bottom-bar-inner { padding: 0 16px; }
    .hero-copyright { columns: 2; font-size: 6.5px; }

    .project-hero { min-height: 450px; }
    .project-gallery-swiper { height: 350px; }
    .project-gallery-swiper .swiper-slide { height: 350px; }

    .counters-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .counter-number { font-size: 36px; }

    .service-row { grid-template-columns: 1fr; gap: 4px; }
    .service-number { padding: 0; }

    .footer-inner { padding: 32px 16px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
