/* ============================================================
   联系我们页面 — 独立样式表 (cu- 前缀)
   设计风格：互联网大厂极简风 (Apple / Linear / Vercel)
   品牌色：#0f6ab4
   ============================================================ */

/* ===== CSS Reset ===== */
.cu-wrapper,
.cu-wrapper *,
.cu-wrapper *::before,
.cu-wrapper *::after { box-sizing: border-box; }
.cu-wrapper a { color: inherit; text-decoration: none; transition: none; }
.cu-wrapper a:hover { text-decoration: none; }
.cu-wrapper img { display: block; max-width: 100%; height: auto; }
.cu-wrapper h1,.cu-wrapper h2,.cu-wrapper h3,.cu-wrapper h4,.cu-wrapper h5,.cu-wrapper h6 { margin: 0; padding: 0; }
.cu-wrapper ul,.cu-wrapper ol { list-style: none; margin: 0; padding: 0; }
.cu-wrapper p { margin: 0; padding: 0; }

/* ===== CSS 变量 ===== */
.cu-wrapper {
    --cu-brand: #0f6ab4;
    --cu-brand-light: #e8f4fd;
    --cu-brand-dark: #0a4f85;
    --cu-text: #1a1a2e;
    --cu-text-secondary: #5a6a7e;
    --cu-text-tertiary: #94a3b8;
    --cu-bg: #f8fafc;
    --cu-white: #ffffff;
    --cu-border: #e8ecf1;
    --cu-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --cu-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --cu-shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
    --cu-shadow-lg: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.03);
    --cu-radius: 16px;
    --cu-radius-sm: 10px;
    --cu-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cu-max-width: 1120px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
                 Arial, sans-serif;
    color: var(--cu-text);
    background: var(--cu-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 1. Hero 区域 ===== */
.cu-hero {
    position: relative;
    padding: 120px 24px 88px;
    text-align: center;
    background: linear-gradient(160deg, #060e1a 0%, #0d1f38 40%, #0f6ab4 100%);
    overflow: hidden;
}
.cu-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(15,106,180,0.3) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(15,106,180,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56,189,248,0.1) 0%, transparent 40%);
}
.cu-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 70%);
}
.cu-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.cu-hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 28px;
    animation: cuFadeUp 0.6s ease-out;
}
.cu-hero__title {
    font-size: clamp(32px, 5.5vw, 52px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    animation: cuFadeUp 0.6s 0.1s ease-out both;
}
.cu-hero__subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    animation: cuFadeUp 0.6s 0.2s ease-out both;
}
@keyframes cuFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 2. 面包屑 ===== */
.cu-breadcrumb {
    max-width: var(--cu-max-width);
    margin: 0 auto;
    padding: 22px 24px 0;
    background: var(--cu-bg);
}
.cu-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cu-text-tertiary);
}
.cu-breadcrumb__list a { color: var(--cu-text-tertiary); }
.cu-breadcrumb__list a:hover { color: var(--cu-brand); }
.cu-breadcrumb__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cu-text-tertiary);
    opacity: 0.4;
}
.cu-breadcrumb__current { color: var(--cu-text); font-weight: 500; }

/* ===== 3. 主内容区 — 居中单列 ===== */
.cu-main {
    max-width: var(--cu-max-width);
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* 联系方式卡片网格 */
.cu-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.cu-contact-card {
    background: var(--cu-white);
    border-radius: var(--cu-radius);
    padding: 36px 32px;
    border: 1px solid var(--cu-border);
    box-shadow: var(--cu-shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all var(--cu-transition);
    cursor: default;
}
.cu-contact-card:hover {
    box-shadow: var(--cu-shadow-lg);
    transform: translateY(-2px);
}
.cu-contact-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cu-transition);
}
.cu-contact-card__icon svg { width: 22px; height: 22px; }
.cu-contact-card__icon--blue   { background: #e8f4fd; color: #0f6ab4; }
.cu-contact-card__icon--purple { background: #f3e8ff; color: #7c3aed; }
.cu-contact-card__icon--emerald{ background: #ecfdf5; color: #059669; }
.cu-contact-card__icon--rose   { background: #fff1f2; color: #e11d48; }
.cu-contact-card__body { flex: 1; min-width: 0; }
.cu-contact-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cu-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.cu-contact-card__value {
    font-size: 16px;
    color: var(--cu-text);
    font-weight: 600;
    line-height: 1.5;
    word-break: break-all;
}
.cu-contact-card__value--phone {
    font-size: 22px;
    letter-spacing: -0.01em;
}
.cu-contact-card__value a {
    color: var(--cu-brand);
    transition: opacity var(--cu-transition);
}
.cu-contact-card__value a:hover { opacity: 0.7; }

/* ===== 4. 二维码区域 ===== */
.cu-qr-section {
    background: var(--cu-white);
    border-radius: var(--cu-radius);
    padding: 40px 40px 32px;
    border: 1px solid var(--cu-border);
    box-shadow: var(--cu-shadow-sm);
}
.cu-qr-section__header {
    text-align: center;
    margin-bottom: 32px;
}
.cu-qr-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--cu-text);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.cu-qr-section__desc {
    font-size: 14px;
    color: var(--cu-text-secondary);
}
.cu-qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}
.cu-qr-item {
    text-align: center;
    padding: 24px 16px 20px;
    border-radius: var(--cu-radius-sm);
    background: var(--cu-bg);
    border: 1px solid transparent;
    transition: all var(--cu-transition);
}
.cu-qr-item:hover {
    background: #fff;
    border-color: var(--cu-border);
    box-shadow: var(--cu-shadow-md);
}
.cu-qr-item__img {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--cu-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cu-qr-item__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.cu-qr-item__img--placeholder {
    background: var(--cu-bg);
    color: var(--cu-text-tertiary);
}
.cu-qr-item__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--cu-text);
    margin-bottom: 4px;
}
.cu-qr-item__hint {
    font-size: 12px;
    color: var(--cu-text-tertiary);
}

/* hover 放大效果 */
.cu-qr-item__img {
    transition: transform var(--cu-transition), box-shadow var(--cu-transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.cu-qr-item:hover .cu-qr-item__img {
    transform: scale(1.18);
    box-shadow: 0 8px 24px rgba(15,106,180,0.18), 0 4px 12px rgba(0,0,0,0.08);
}
.cu-qr-item__img img {
    transition: transform var(--cu-transition);
    cursor: pointer;
}

/* 二维码放大浮层 (lightbox) */
.cu-qr-zoom {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6,14,26,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cu-qr-zoom.is-active {
    opacity: 1;
    visibility: visible;
}
.cu-qr-zoom__inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 36px 36px 28px;
    text-align: center;
    max-width: 360px;
    width: calc(100% - 48px);
    transform: scale(0.8) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.cu-qr-zoom.is-active .cu-qr-zoom__inner {
    transform: scale(1) translateY(0);
}
.cu-qr-zoom__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    color: var(--cu-text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.cu-qr-zoom__close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--cu-text);
}
.cu-qr-zoom__img {
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--cu-border);
    background: #fff;
}
.cu-qr-zoom__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.cu-qr-zoom__label {
    font-size: 18px;
    font-weight: 700;
    color: var(--cu-text);
    margin-bottom: 6px;
}
.cu-qr-zoom__hint {
    font-size: 14px;
    color: var(--cu-text-tertiary);
}

/* ===== 5. CTA 区域 ===== */
/* 已改用 about-geo.css 的 th-cta 样式，与关于我们页面风格统一 */

/* ===== 响应式 ===== */

/* 1024px: 联系方式两列 */
@media (max-width: 1024px) {
    .cu-contact-grid { gap: 16px; }
    .cu-contact-card { padding: 28px 24px; }
}

/* 768px: 单列 */
@media (max-width: 768px) {
    .cu-main { padding: 32px 16px 48px; }
    .cu-contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }
    .cu-contact-card {
        padding: 24px 20px;
        gap: 14px;
    }
    .cu-contact-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .cu-contact-card__icon svg { width: 18px; height: 18px; }
    .cu-contact-card__value--phone { font-size: 18px; }
    .cu-contact-card__value { font-size: 14px; }
    .cu-qr-section { padding: 28px 20px 24px; }
    .cu-qr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .cu-qr-item { padding: 16px 8px 14px; }
    .cu-qr-item__img { width: 72px; height: 72px; }
    .cu-qr-item__label { font-size: 12px; }
    .cu-qr-item__hint { font-size: 10px; }
}

/* 480px: 二维码三列仍保留，缩到更小 */
@media (max-width: 480px) {
    .cu-qr-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cu-qr-item__img { width: 60px; height: 60px; padding: 4px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .cu-wrapper *,
    .cu-wrapper *::before,
    .cu-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
