:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #00c6ff;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #f0f2f5;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; height: 70px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: 0.5px; }
.logo-sub { font-size: 10px; color: var(--text-lighter); letter-spacing: 1px; }

.nav { display: flex; list-style: none; gap: 40px; }
.nav a {
  color: var(--text-light); font-size: 15px; font-weight: 500;
  position: relative; padding: 5px 0;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ===== Hero Banner ===== */
.hero {
    /* old bg removed */
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f0f7ff 100%);
}
.hero-pattern {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  /* pattern removed */
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; width: 100%; }
.hero-badge {
  display: inline-block; background: rgba(26,115,232,0.08); color: var(--primary);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  margin-bottom: 20px; border: 1px solid rgba(26,115,232,0.15);
}
.hero-title { font-size: 42px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; color: var(--text); }
.hero-subtitle { font-size: 20px; color: var(--text-light); margin-bottom: 30px; max-width: 600px; }
.hero-desc { font-size: 16px; color: var(--text-lighter); max-width: 560px; margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: var(--transition); border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,115,232,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
  display: inline-block; color: var(--primary); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== Category Cards ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition); cursor: pointer;
}
.cat-card:hover {
  border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-4px);
}
.cat-icon {
  width: 56px; height: 56px; background: linear-gradient(135deg, rgba(26,115,232,0.08), rgba(0,198,255,0.08));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.cat-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.cat-desc { font-size: 14px; color: var(--text-lighter); margin-bottom: 20px; line-height: 1.6; }
.cat-items { list-style: none; }
.cat-items li {
  padding: 8px 0; border-bottom: 1px dashed var(--border-light);
  font-size: 14px; color: var(--text-light); display: flex; align-items: center; gap: 8px;
}
.cat-items li:last-child { border-bottom: none; }
.cat-items li::before { content: '›'; color: var(--primary); font-weight: 600; }

/* ===== Partners ===== */
.partners { background: var(--bg-light); }
.partner-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.partner-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s;
    overflow: hidden;
}
.partner-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.partner-item img { max-height: 48px; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.partner-item:hover img { filter: grayscale(0%); opacity: 1; }
.partner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Cases ===== */
.case-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.case-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); overflow: hidden; position: relative;
}
.case-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.case-placeholder {
  width: 80%; height: 60%; background: var(--bg-dark); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-lighter); font-size: 12px;
}

/* ===== Services ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition); text-align: center;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Footer ===== */
.footer { background: #1a1f2e; color: #a0aec0; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 16px; color: #8b95a8; }
.footer-col h4 { color: white; font-size: 15px; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #8b95a8; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; color: #8b95a8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  text-align: center; font-size: 13px; color: #6b7280;
}

/* ===== Page Banner ===== */
.page-banner {
  margin-top: 70px; background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  padding: 60px 0; text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { color: var(--text-light); font-size: 16px; }

/* ===== Content Page ===== */
.content-section { padding: 60px 0; }
.content-title { font-size: 24px; font-weight: 600; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--border); }
.item-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.item-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: var(--transition); display: flex; gap: 20px;
}
.item-card:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
.item-icon {
  width: 48px; height: 48px; background: linear-gradient(135deg, rgba(26,115,232,0.08), rgba(0,198,255,0.08));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.item-info h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.item-info p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Animations ===== */
.fade-in {
    /* initial visible */ opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .case-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .item-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 17px; }
  .cat-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
}


/* ================= 客户案例 & 合作伙伴 统一图片框架 ================= */
.case-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 100%;
    height: 100px;               /* 固定高度，解决参差不齐 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: rgba(59,130,246,0.2);
}

.case-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;         /* 保持比例，自适应容器 */
    border: 1px solid rgba(0, 0, 0, 0.08);  /* 图片本身带边框 */
    border-radius: 8px;
    padding: 4px;
    background: #fff;
}

/* 合作伙伴也加上同样的图片边框，确保统一 */
.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 4px;
    background: #fff;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline:hover,
.btn-outline:active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}


/* 暗色遮罩，确保白字清晰 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 60, 0.72);
}

/* 文字浮在遮罩之上 */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1,
.hero-content h2,
.hero-content p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* 透明按钮适配深色背景 */
.hero-content .btn-outline {
    border-color: rgba(255,255,255,0.85);
    color: #fff;
}


/* 关于我们页面三段文字统一变浅 */
.section-about p,
.about-description p,
.about-text {
    color: #64748b !important;  /* 浅灰蓝，比纯黑柔和 */
    line-height: 1.8;
}


/* ===== Hero 轮播滑动动画 ===== */
.hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    background-position: center !important;
    background-size: cover !important;
}

/* 文字进场/退场动画 */
.hero-text-wrap {
    opacity: 1;
}
.hero-text-wrap.exit-left {
    animation: textExitLeft 0.35s ease forwards;
}
.hero-text-wrap.exit-right {
    animation: textExitRight 0.35s ease forwards;
}
.hero-text-wrap.enter-left {
    animation: textEnterLeft 0.5s ease 0.15s forwards;
    opacity: 0;
}
.hero-text-wrap.enter-right {
    animation: textEnterRight 0.5s ease 0.15s forwards;
    opacity: 0;
}

@keyframes textExitLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}
@keyframes textExitRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}
@keyframes textEnterLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes textEnterRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* dot 按钮交互 */
.hero-dot { transition: all 0.3s ease; }
.hero-dot:hover { background: rgba(255,255,255,0.7) !important; }

/* 轮播图大标题放大 */
.hero-content h1 {
    font-size: 56px !important;
    font-weight: 700;
    line-height: 1.2;
}


/* 强制初始可见 */
.fade-in { opacity: 1 !important; transform: none !important; }
/* Logo 强制撑满 */


/* ===== Logo 统一定义（唯一） ===== */
.logo-icon {
    height: 48px;
    width: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

/* ===== 前端显示换行支持 ===== */
.hero-content,
#footerDesc,
.section-desc,
.about-description p,
.company-intro {
    white-space: pre-line;
}

/* 客户案例右下角标签悬停显示 */
.case-card:hover .case-tag { opacity: 1 !important; }
