/* 本地自托管字体（替代 Google Fonts，避免境外请求） */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/montserrat-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/montserrat-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/montserrat-700.woff2') format('woff2');
}

/* 中文字体栈：优先系统自带的思源黑体/微软雅黑/苹方，避免加载大型中文字体文件 */
:root {
    --font-cn: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-size: 16px; color: #333; font-family: var(--font-cn); }

/* 防盗：禁止选中文字 */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }

/* 图片水印遮罩 */
.watermark-wrap { position: relative; display: inline-block; overflow: hidden; }
.watermark-wrap::after {
    content: '诚铭海外仓 C&M';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 14px; color: rgba(255,255,255,0.15);
    white-space: nowrap; pointer-events: none; z-index: 2;
    letter-spacing: 2px;
}

/* 容器 */
.container-main { width: 1440px; max-width: 94%; margin: 0 auto; }

/* 导航栏 */
.main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s;
}
.main-header:hover { background: rgba(0,0,0,0.55); }
.nav-link { color: #fff; font-weight: 400; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: #c51b24; }

/* 标题样式 */
.sec-label-en {
    font-size: 16px; color: #666; font-weight: 500; margin-bottom: 14px;
    position: relative; display: inline-block; padding-bottom: 10px;
    font-family: 'Montserrat', var(--font-cn);
}
.sec-label-en::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 36px; height: 3px; background: #c51b24; border-radius: 2px;
}
.sec-title-cn {
    font-size: 36px; font-weight: 900; color: #222; line-height: 1.2;
    font-family: var(--font-cn);
}
.sec-title-cn.orange { color: #c51b24; }
.sec-desc {
    font-size: 16px; color: #666; line-height: 26px; margin-top: 24px;
    font-family: var(--font-cn);
}

/* 业务卡片 */
.service-card { transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(197,27,36,0.15), 0 10px 10px -5px rgba(197,27,36,0.1);
}

/* 深色联系区 */
.contact-bg {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
                url('images/warehouse_bg.jpg');
    background-size: cover;
    background-position: center;
}

/* 合作伙伴横向滚动动画 */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollLogosReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(197, 27, 36, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(197, 27, 36, 0.7); }
}

/* 滚动渐入动画 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}
.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; }

/* 字体工具类 */
.font-noto { font-family: var(--font-cn); }
.font-montserrat { font-family: 'Montserrat', var(--font-cn); }
.text-brand { color: #c51b24; }
.text-brand-hover:hover { color: #9c1219; }
.fw-black { font-weight: 900; }

/* ===== Banner 主视觉 ===== */
.banner-title {
    font-family: var(--font-cn);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.banner-subtitle {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ===== 首页 About 卡片 ===== */
.about-card-shadow {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-section-z { z-index: 10; }

/* ===== 服务区块 (#services) ===== */
.section-services {
    background: #f5f5f5;
    padding: 80px 0;
}
.services-watermark {
    font-size: 8vw;
    text-transform: uppercase;
    color: #c51b24;
}
.sec-title-brand {
    color: #c51b24;
    font-weight: 900;
}
.sec-title-sm { font-size: 24px; }
.services-desc { line-height: 28px; }
.logo-white { filter: brightness(0) invert(1); }
.cta-pulse { animation: ctaPulse 2s ease-in-out infinite; }

/* ===== 合作伙伴 Logo 墙 ===== */
.partners-mask {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.partners-track-a { animation: scrollLogos 25s linear infinite; }
.partners-track-b { animation: scrollLogosReverse 25s linear infinite; }

/* 品牌 Logo 色 */
.c-ebay      { color: #e53238; }
.c-ebay-a    { color: #0064d2; }
.c-ebay-y    { color: #f5af02; }
.c-wayfair   { color: #7a3b8f; }
.c-shopify   { color: #96bf48; }
.c-bedbath   { color: #e4002b; }
.c-fedex     { color: #4d148c; }
.c-walmart   { color: #0071dc; }
.c-target    { color: #cc0000; }
.c-bestbuy   { color: #0046be; }
.c-tiktok    { color: #000; }
.c-shein     { color: #000; }
.c-wish      { color: #4ec5e8; }
.c-usps      { color: #1e3a5f; }
.c-ups       { color: #5c2e0e; }
.c-gofo      { color: #e6212a; }
.c-ecang     { color: #1a5fb4; }
.c-dxm       { color: #2196f3; }
.c-amz123    { color: #2ecc40; }
.c-lingxing  { color: #ff6a00; }
.bg-dhl      { background: linear-gradient(135deg, #ffcc00, #ffdb4d); }
.c-dhl       { color: #d40511; }
.bg-temu     { background: linear-gradient(135deg, #ff6a00, #ff8c3a); }

/* ===== About 页 ===== */
.about-hero-title {
    font-family: var(--font-cn);
    font-weight: 900;
}
.culture-num { font-family: 'Montserrat', var(--font-cn); }
.culture-title {
    font-family: var(--font-cn);
    font-weight: 900;
}

/* ===== 回到顶部按钮 ===== */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c51b24;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(197, 27, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: #9c1219;
    box-shadow: 0 6px 20px rgba(197, 27, 36, 0.55);
}
