html, body { font-size: 14px; }

/* ====================================================================
   联系我们 — 复刻壹连版式（Banner 浮层 + 吸顶锚点 + 国内外卡片 + 留言）
   自写 CSS，主色 #039CEA，类名前缀 zy-ct-
   ==================================================================== */

/* ===== Banner：图片 + 暗化遮罩 + 标题浮层 ===== */
.zy-ct-banner {
    position: relative;
    width: 100%;
    height: calc(100vh - 7.14rem - 72px);
    height: calc(100svh - 7.14rem - 72px);
    min-height: 420px;
    overflow: hidden;
}
@media (max-width: 1024px) { .zy-ct-banner { height: 82svh; min-height: 360px; } }
.zy-ct-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.zy-ct-banner-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}
.zy-ct-banner-inner {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    color: #fff;
    animation: zy-ct-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes zy-ct-rise {
    from { opacity: 0; transform: translate(-50%, -42%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
.zy-ct-banner-cn {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.zy-ct-banner-en {
    font-size: clamp(14px, 1.4vw, 20px);
    opacity: 0.9;
    line-height: 1.7;
}

/* ===== 吸顶锚点导航 ===== */
.zy-ct-pagenav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #ececec;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.zy-ct-pagenav ul {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    list-style: none;
}
.zy-ct-pagenav li { margin-right: 8px; }
.zy-ct-pagenav a {
    display: block;
    padding: 22px 28px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}
.zy-ct-pagenav a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: #039CEA;
    border-radius: 2px 2px 0 0;
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.zy-ct-pagenav a:hover { color: #039CEA; }
/* 不高亮当前项：active 与默认一致、不显示下划线（联系方式/在线留言 一视同仁）*/
.zy-ct-pagenav a.active { color: #555; font-weight: 400; }
.zy-ct-pagenav a.active::after { width: 0; }

/* ===== 通用容器 ===== */
.zy-ct-wal {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

/* ===== 联系方式：全景图 + 横向手风琴 ===== */
.zy-ct-locations {
    position: relative;
    height: 600px;
    overflow: hidden;
    scroll-margin-top: 80px;
    /* 背景全景夜景图：把图存到 /assets/contactUs/locations-bg.jpg；未放图前用深色兜底 */
    background: #0b1a2e url('/assets/contactUs/locations-bg.jpg') center / cover no-repeat;
}
/* 顶部压暗，让浮层文字更清楚 */
.zy-ct-locations::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%);
    pointer-events: none;
    z-index: 1;
}

/* 国内/国外 切换：浮在全景图上方居中 */
.zy-ct-tabs {
    position: absolute;
    top: 46px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 40px;
    z-index: 5;
}
.zy-ct-tab {
    padding: 6px 2px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}
.zy-ct-tab:hover { color: #fff; }
.zy-ct-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

/* 手风琴容器：绝对填满 section，flex 横排；切 tab 时整组显隐 */
.zy-ct-panel { display: none; position: absolute; inset: 0; }
.zy-ct-panel.active { display: flex; }

/* 单个面板：默认等宽，hover/active 变宽（flex-grow 过渡） */
.zy-ct-acc-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    overflow: hidden;
    transition: flex-grow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.zy-ct-acc-item:last-child { border-right: none; }
.zy-ct-acc-item.active { flex-grow: 2.8; }

/* 蓝色渐变遮罩：默认透明，active 浮现 */
.zy-ct-acc-grad {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,156,234,0) 0%, rgba(3,120,200,0.5) 52%, rgba(2,86,156,0.92) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.zy-ct-acc-item.active .zy-ct-acc-grad { opacity: 1; }

/* 文字区：贴底 */
.zy-ct-acc-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 26px 38px;
    z-index: 2;
    color: #fff;
}
.zy-ct-acc-name {
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: font-size 0.3s;
}
.zy-ct-acc-item.active .zy-ct-acc-name {
    text-align: left;
    font-size: 26px;
    margin-bottom: 14px;
}
/* 详情：默认收起，active 浮现 */
.zy-ct-acc-detail {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    white-space: nowrap;
    font-size: 15px;
    line-height: 2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    transition: opacity 0.45s ease 0.08s, transform 0.45s ease 0.08s, max-height 0.45s ease;
}
.zy-ct-acc-item.active .zy-ct-acc-detail {
    opacity: 1;
    max-height: 170px;
    transform: translateY(0);
}
.zy-ct-acc-detail .zy-ct-line { display: block; }

.zy-ct-extra {
    margin-top: 40px;
    color: #444;
    line-height: 1.8;
}

/* ===== 在线留言 ===== */
.zy-ct-message {
    position: relative;
    padding: 72px 0 88px;
    background: linear-gradient(180deg, #E0F4FE 0%, #f4fbff 100%);
    scroll-margin-top: 80px;
    overflow: hidden;
}
/* 背景图（笔记本/办公）做很高透明度，当水印般的淡背景；图存到 /assets/contactUs/message-bg.jpg。
   想更淡/更明显改 opacity（0.14 已经很淡；0.25 会更明显）。 */
.zy-ct-message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/contactUs/message-bg.jpg') center / cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}
/* 标题 + 表单压在淡背景之上 */
.zy-ct-message > * {
    position: relative;
    z-index: 1;
}
.zy-ct-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 44px;
}
.zy-ct-form {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    padding: 44px 48px;
}
.zy-ct-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}
.zy-ct-field { margin-bottom: 0; }
.zy-ct-field-full { margin-top: 24px; }
.zy-ct-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}
.zy-ct-field label.required::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
}
.zy-ct-field input,
.zy-ct-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.zy-ct-field input:focus,
.zy-ct-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #039CEA;
    box-shadow: 0 0 0 3px rgba(3, 156, 234, 0.15);
}
.zy-ct-field textarea {
    min-height: 150px;
    resize: vertical;
}
/* 校验失败态 + 内联错误提示 */
.zy-ct-field input.invalid,
.zy-ct-field textarea.invalid {
    border-color: #e74c3c;
    background: #fff7f7;
}
.zy-ct-field input.invalid:focus,
.zy-ct-field textarea.invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}
.zy-ct-err {
    color: #e74c3c;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 6px;
    min-height: 16px;
}
.zy-ct-btns {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}
.zy-ct-btns button {
    min-width: 150px;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.zy-ct-btn-submit { background: #039CEA; color: #fff; }
.zy-ct-btn-submit:hover { background: #0286CC; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 156, 234, 0.3); }
.zy-ct-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.zy-ct-btn-reset { background: #fff; border: 1px solid #cfd6dd; color: #555; }
.zy-ct-btn-reset:hover { background: #f0f2f5; }

/* ===== 入场动画 ===== */
.zy-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.zy-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ====================================================================
   响应式
   ==================================================================== */
@media (max-width: 1024px) {
    .zy-ct-wal,
    .zy-ct-pagenav ul { padding: 0 24px; }
    .zy-ct-locations { height: 500px; }
    .zy-ct-message { padding: 48px 0 56px; }
    .zy-ct-acc-body { padding: 0 18px 30px; }
    .zy-ct-banner-inner { padding: 0 24px; }
    .zy-ct-pagenav a { padding: 18px 18px; font-size: 15px; }
    .zy-ct-form { padding: 32px 28px; }
}

@media (max-width: 768px) {
    .zy-ct-tab { font-size: 16px; }
    .zy-ct-form-row { grid-template-columns: 1fr; gap: 18px; }
    .zy-ct-btns { flex-direction: column; }
    .zy-ct-btns button { width: 100%; }
    /* 手风琴改竖排：每块全宽，active 高一点 */
    .zy-ct-locations { height: auto; }
    .zy-ct-tabs { position: static; padding-top: 26px; }
    .zy-ct-panel { position: static; }
    .zy-ct-panel.active { flex-direction: column; }
    /* flex:none(=0 0 auto) 关键：竖排 flex 下让 height 生效，否则继承基础 flex:1 1 0(basis:0) 会塌成 0、卡片消失被表单压住 */
    .zy-ct-acc-item { flex: none; width: 100%; height: 120px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
    .zy-ct-acc-item.active { flex-grow: 0; height: 230px; }
    .zy-ct-acc-name { text-align: left; }
    .zy-ct-acc-body { padding: 0 22px 22px; }
}

@media (max-width: 480px) {
    .zy-ct-wal,
    .zy-ct-pagenav ul { padding: 0 16px; }
    .zy-ct-form { padding: 24px 18px; }
    .zy-ct-pagenav a { padding: 14px 14px; font-size: 14px; }
}
