/* =============================================
   子羡科技官网 - 公共样式
   Deep: #0a0f2e  Blue: #1a56db  Light: #f8faff
   ============================================= */

/* CSS变量 */
:root {
    --primary: #1a56db;
    --primary-dark: #1340b8;
    --primary-light: #e8f0fe;
    --secondary: #0a0f2e;
    --accent: #06b6d4;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8faff;
    --bg-dark: #0a0f2e;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all .3s ease;
    --font: 'PingFang SC','Microsoft YaHei',sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-main); background: var(--bg-white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, button, select { font-family: var(--font); outline: none; border: none; background: none; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

/* 标题组件 */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; padding: 6px 18px; background: var(--primary-light); color: var(--primary); border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 3vw, 42px); font-weight: 700; color: var(--secondary); line-height: 1.3; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-sub); max-width: 560px; margin: 0 auto; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(26,86,219,.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,86,219,.4); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 10px; }

/* 卡片 */
.card { background: var(--bg-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* 标签 */
.tag { display: inline-block; padding: 4px 12px; background: var(--bg-gray); color: var(--text-sub); border-radius: 100px; font-size: 12px; font-weight: 500; }
.tag-blue { background: var(--primary-light); color: var(--primary); }

/* =============================================
   导航栏
   ============================================= */
.zx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: var(--transition); }
.zx-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 24px; height: 24px; fill: #fff; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name { font-size: 16px; font-weight: 700; color: var(--secondary); line-height: 1.2; }
.nav-logo-sub { font-size: 11px; color: var(--text-light); letter-spacing: .5px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text-main); font-weight: 500; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: flex; align-items: center; gap: 6px; color: var(--text-sub); font-size: 14px; }
.nav-phone svg { color: var(--primary); }

/* 汉堡菜单 */
.nav-hamburger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; height: 2px; background: var(--text-main); border-radius: 2px; transition: var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: #fff;
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.mobile-menu-drawer.open { display: flex; }
.mobile-nav-link { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; color: var(--text-main); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link.active { color: var(--primary); background: var(--primary-light); }
.mobile-menu-footer { margin-top: auto; padding-top: 24px; }

/* =============================================
   页脚
   ============================================= */
.zx-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand {}
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-logo .logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-brand-logo .logo-icon svg { fill: #fff; }
.footer-brand-name { font-size: 16px; font-weight: 700; color: #fff; }
.footer-brand-desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); color: rgba(255,255,255,.6); }
.social-btn:hover { background: var(--primary); color: #fff; }

.footer-col-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.footer-nav-item { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-nav-item:hover { color: #fff; padding-left: 4px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }

.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom-text { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* =============================================
   页面 Banner
   ============================================= */
.page-banner { padding: 120px 0 60px; background: linear-gradient(135deg, var(--secondary) 0%, #162046 100%); position: relative; overflow: hidden; }
.page-banner-content { position: relative; text-align: center; }
.page-banner-tag { display: inline-block; padding: 6px 18px; background: rgba(26,86,219,.3); border: 1px solid rgba(26,86,219,.5); color: #93c5fd; border-radius: 100px; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.page-banner h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.page-banner p { font-size: 17px; color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 20px; }
.breadcrumb a, .breadcrumb span { font-size: 14px; color: rgba(255,255,255,.45); }
.breadcrumb a:hover { color: rgba(255,255,255,.85); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }
.breadcrumb .current { color: rgba(255,255,255,.75); }

/* =============================================
   CTA 区块（联系我们/立即咨询）
   ============================================= */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #162046 100%);
    text-align: center;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.3; }
.cta-inner p { font-size: 16px; color: rgba(255,255,255,.65); margin-bottom: 36px; line-height: 1.7; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =============================================
   回到顶部
   ============================================= */
.back-to-top { position: fixed; right: 28px; bottom: 28px; width: 44px; height: 44px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow-md); z-index: 900; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.back-to-top svg { color: #fff; }

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .nav-menu, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-banner { padding: 100px 0 48px; }
    .cta-section { padding: 60px 0; }
    .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
}
