/* ============================================
   共享样式文件 - 所有页面统一引用
   修改此文件即可全局生效
   ============================================ */

/* === Base Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

/* === 禁止文字选中复制 === */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
img, a, button, input, textarea, select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* 禁止链接拖拽 */
a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}
/* === 页脚二维码弹窗图片：允许移动端长按保存 === */
/* 仅对页脚「企业微信咨询」「抖音关注」弹出的二维码图片放开限制，其余图片不受影响 */
#wechat-qr-popup img,
#douyin-qr-popup img {
    pointer-events: auto;
    -webkit-user-drag: auto;
    -khtml-user-drag: auto;
    -moz-user-drag: auto;
    -o-user-drag: auto;
    user-drag: auto;
    -webkit-touch-callout: default;
    user-select: auto;
}
body {
    font-family: 'DM Sans', 'Noto Serif SC', system-ui, sans-serif;
    background: #111827;
    color: #E2E8F0;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography System === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
p {
    line-height: 1.8;
    color: #94A3B8;
}

/* === Section Header 排版系统 === */
/* 英文小标签 - 品牌标识 */
.section-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FF6B35;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}
.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1px;
    background: linear-gradient(90deg, #FF6B35, transparent);
}

/* Section 主标题 */
.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* Section 描述文字 */
.section-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(148, 163, 184, 0.8);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Section 装饰分割线 */
.section-divider-line {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #FFB347);
    margin: 0 auto 1.5rem;
    border-radius: 1px;
}

/* 卡片标题 */
.card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* 卡片描述 */
.card-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #94A3B8;
}

/* 强调数字 */
.text-accent-num {
    font-family: 'DM Sans', sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B35, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #FF6B35, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Noise Texture Overlay === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === Glassmorphism === */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   图片响应式统一处理
   ============================================ */

/* 基础图片样式 - 等比缩放不拉伸 */
.img-responsive {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* 填充模式 - 保持比例填充容器（可能裁切） */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 包含模式 - 完整显示图片（不裁切） */
.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 卡片图片 - 响应式高度 */
.img-card {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
@media (min-width: 640px) {
    .img-card { height: 240px; }
}
@media (min-width: 768px) {
    .img-card { height: 280px; }
}
@media (min-width: 1024px) {
    .img-card { height: 320px; }
}

/* Hero图片 - 限制最大高度 */
.img-hero {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
}
@media (min-width: 768px) {
    .img-hero { max-height: 480px; }
}

/* 服务详情大图 - 响应式 */
.img-service {
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 1rem;
}
@media (min-width: 640px) {
    .img-service { 
        height: 350px; 
        object-fit: cover;
    }
}
@media (min-width: 768px) {
    .img-service { height: 470px; }
}

/* 合作伙伴Logo - 保持比例 */
.img-partner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* 团队头像 - 正方形 */
.img-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* 二维码 - 固定大小但响应式 */
.img-qrcode {
    width: 120px;
    height: 120px;
    max-width: 100%;
    height: auto;
}
@media (min-width: 640px) {
    .img-qrcode { width: 144px; height: 144px; }
}

/* ============================================
   FAQ 手风琴组件 - 通用样式
   ============================================ */
.faq-answer,
.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer,
.faq-item.active .faq-answer-wrapper {
    max-height: 500px;
    padding: 0 24px 20px;
}
.faq-item.active .faq-arrow,
.faq-item.active .faq-icon i,
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}
.faq-arrow,
.faq-icon i,
.faq-chevron {
    transition: transform 0.3s ease;
}
.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.glass-light {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 只对需要 flex 布局的卡片生效（服务卡片、案例卡片等有底部按钮的） */
.glass-card.flex-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.glass-card.flex-layout > div:not(.service-icon) {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.glass-card.flex-layout > .service-icon {
    flex: none;
}
.glass-card.flex-layout > div > a:last-child,
.glass-card.flex-layout > div > .detail-btn {
    margin-top: auto;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px -12px rgba(255, 107, 53, 0.15),
                0 0 32px -8px rgba(255, 107, 53, 0.08);
}

/* === Gradient Backgrounds === */
/* 纯净深色背景 - 无杂色光晕 */
.bg-dark {
    background: linear-gradient(180deg, #111827 0%, #0F1923 50%, #111827 100%);
}
.bg-dark-alt {
    background: linear-gradient(180deg, #111827 0%, #0D1520 50%, #111827 100%);
}

/* 品牌色光晕背景 - 仅使用品牌橙色，无杂色 */
.bg-brand-glow {
    background:
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #111827 0%, #0F1923 50%, #111827 100%);
}

/* 保留旧类名兼容，但使用纯净背景 */
.bg-mesh {
    background: linear-gradient(180deg, #111827 0%, #0F1923 50%, #111827 100%);
}
.bg-mesh-alt {
    background: linear-gradient(180deg, #111827 0%, #0D1520 50%, #111827 100%);
}

/* ===== NAVBAR ===== */
.navbar { background: transparent; }
.navbar.scrolled {
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-link-desktop { position: relative; }
.nav-link-desktop.active { color: #FF6B35; font-weight: 600; }
.nav-link-desktop.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #FF6B35;
    border-radius: 1px;
}
.mobile-nav-link.active {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
    font-weight: 600;
}

/* === Glow Effects === */
.glow-orange { box-shadow: 0 0 30px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.1); }
.glow-line { background: linear-gradient(90deg, transparent, #FF6B35, transparent); height: 1px; }
.text-glow { text-shadow: 0 0 40px rgba(255, 107, 53, 0.3); }

/* === Buttons === */
.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
    color: white; font-weight: 600; border-radius: 50px;
    padding: 16px 36px; display: inline-block;
    transition: all 0.3s ease; text-decoration: none;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4); }

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: white; font-weight: 600; border-radius: 50px;
    padding: 16px 36px; display: inline-block;
    transition: all 0.3s ease; text-decoration: none;
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* === Counter Animation === */
.counter-value {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #FF6B35, #FFB347);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* === Service Icon Containers === */
.service-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; transition: all 0.4s ease;
}
.glass-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); }

/* === Case Card Image === */
.case-img-wrapper { overflow: hidden; border-radius: 12px 12px 0 0; }
.case-img-wrapper img { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.glass-card:hover .case-img-wrapper img { transform: scale(1.08); }

/* === Partner Logo === */
.partner-logo { filter: grayscale(100%) brightness(0.7); opacity: 0.5; transition: all 0.4s ease; }
.partner-logo:hover { filter: grayscale(0%) brightness(1); opacity: 1; }

/* === Back to Top === */
.back-to-top { opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* === Keyframes === */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.4); }
}

/* === Section Divider === */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
}

/* === Hero Image Frame === */
.hero-image-frame { position: relative; border-radius: 20px; overflow: hidden; }
.hero-image-frame::before {
    content: ''; position: absolute; inset: -2px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,107,53,0.4), rgba(30,58,95,0.4), rgba(255,107,53,0.2));
    z-index: -1;
}
.hero-image-frame::after {
    content: ''; position: absolute; inset: 0; border-radius: 20px;
    background: linear-gradient(180deg, transparent 50%, rgba(17,24,39,0.6) 100%);
    pointer-events: none;
}

/* === Scrollbar === */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.2) transparent;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,107,53,0.4); }

/* 隐藏滚动条但保持滚动功能 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* === Section Spacing === */
.section-spacer { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .section-spacer { padding-top: 7rem; padding-bottom: 7rem; } }

/* === Footer Links === */
.footer-link { color: #94A3B8; transition: all 0.3s ease; text-decoration: none; }
.footer-link:hover { color: #FF6B35; padding-left: 4px; }

/* === Consistent Section Padding === */
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-py { padding-top: 6rem; padding-bottom: 6rem; } }
@media (min-width: 1024px) { .section-py { padding-top: 7rem; padding-bottom: 7rem; } }
