/* ============================================================
   站点公共外观（与主页面 index.html 保持一致）
   色板：primary #165DFF / secondary #36CFC9
        dark #1D2129 / gray-medium #5C6773 / light #F2F3F5
   包含：固定导航栏（透明→滚动变白）、移动端菜单、
        渐变页面横幅、深色页脚、返回顶部按钮
   ============================================================ */

/* ---------- 基础重置（与主页面 index.html 一致） ---------- */
/* 案例页/服务页/yyzz.html 自身没有 <style> 重置，若不在此声明，
   浏览器默认会给所有 <a> 加下划线（含导航栏链接）。 */
a { color: inherit; text-decoration: none; }

/* ---------- 语言切换按钮 ---------- */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}
.lang-toggle-btn:active {
    transform: translateY(0);
}
/* 滚动后导航变白时按钮适配 */
.nav-scrolled .lang-toggle-btn,
header.scrolled .lang-toggle-btn {
    color: #165DFF;
    background: rgba(22, 93, 255, 0.08);
    border-color: rgba(22, 93, 255, 0.2);
}
.nav-scrolled .lang-toggle-btn:hover,
header.scrolled .lang-toggle-btn:hover {
    background: rgba(22, 93, 255, 0.14);
    border-color: rgba(22, 93, 255, 0.35);
}

/* ---------- 基础工具类（导航/页脚/横幅实际使用项） ---------- */
.hero-gradient { background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-3 > * + * { margin-top: .75rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-8 { bottom: 2rem; }
.right-8 { right: 2rem; }
.z-50 { z-index: 50; }

.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.object-contain { object-fit: contain; }
.max-w-2xl { max-width: 42rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.p-1 { padding: .25rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-8 { padding-top: 2rem; }
.pt-32 { padding-top: 8rem; }
.pb-16 { padding-bottom: 4rem; }

.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }

.text-dark { color: #1D2129; }
.text-primary { color: #165DFF; }
.text-white { color: #fff; }
.text-white\/85 { color: rgba(255, 255, 255, .85); }
.text-gray-400 { color: #9ca3af; }
.bg-white { background-color: #fff; }
.bg-dark { background-color: #1D2129; }
.bg-primary { background-color: #165DFF; }
.bg-transparent { background-color: transparent; }

.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-800 { border-color: #1f2937; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }

.opacity-0 { opacity: 0; }
.invisible { visibility: hidden; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.duration-300 { transition-duration: .3s; }
.hover\:text-secondary:hover { color: #36CFC9; }
.hover\:text-primary:hover { color: #165DFF; }
.hover\:text-white:hover { color: #fff; }

/* ---------- 响应式工具类 ---------- */
/* 说明：本文件在页面自身样式之后引入，因此必须自带完整的响应式 display 工具类，
   否则本文件中的 `.hidden { display: none }` 会覆盖页面自身在媒体查询里定义的
   显示规则（如 `.md:block`），导致 `hidden md:block` 元素在桌面端被隐藏。 */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:inline-block { display: inline-block; }
    .sm\:inline { display: inline; }
    .sm\:flex { display: flex; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:grid { display: grid; }
    .sm\:hidden { display: none; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:h-11 { height: 2.75rem; }
    .sm\:h-12 { height: 3rem; }
    .sm\:h-16 { height: 4rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:inline-block { display: inline-block; }
    .md\:inline { display: inline; }
    .md\:flex { display: flex; }
    .md\:inline-flex { display: inline-flex; }
    .md\:grid { display: grid; }
    .md\:hidden { display: none; }
    .md\:w-12 { width: 3rem; }
    .md\:h-12 { height: 3rem; }
    .md\:mr-3 { margin-right: .75rem; }
    .md\:gap-4 { gap: 1rem; }
    .md\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
    .md\:text-lg { font-size: 1.125rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:mt-0 { margin-top: 0; }
    .md\:mb-20 { margin-bottom: 5rem; }
    .md\:mr-2 { margin-right: .5rem; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:pt-32 { padding-top: 8rem; }
    .md\:pt-40 { padding-top: 10rem; }
    .md\:pt-44 { padding-top: 11rem; }
    .md\:pb-24 { padding-bottom: 6rem; }
    .md\:pb-32 { padding-bottom: 8rem; }
    .md\:pl-12 { padding-left: 3rem; }
    .md\:pr-12 { padding-right: 3rem; }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-1\/3 { width: 33.3333%; }
    .md\:w-2\/3 { width: 66.6667%; }
    .md\:w-2\/5 { width: 40%; }
    .md\:w-3\/5 { width: 60%; }
    .md\:w-24 { width: 6rem; }
    .md\:h-24 { height: 6rem; }
    .md\:h-auto { height: auto; }
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:text-left { text-align: left; }
    .md\:text-right { text-align: right; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:gap-8 { gap: 2rem; }
}
@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:inline-block { display: inline-block; }
    .lg\:inline { display: inline; }
    .lg\:flex { display: flex; }
    .lg\:inline-flex { display: inline-flex; }
    .lg\:grid { display: grid; }
    .lg\:hidden { display: none; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:w-1\/3 { width: 33.3333%; }
    .lg\:w-2\/3 { width: 66.6667%; }
}
@media (min-width: 1280px) {
    .xl\:block { display: block; }
    .xl\:inline-block { display: inline-block; }
    .xl\:inline { display: inline; }
    .xl\:flex { display: flex; }
    .xl\:inline-flex { display: inline-flex; }
    .xl\:grid { display: grid; }
    .xl\:hidden { display: none; }
    .xl\:space-x-6 > * + * { margin-left: 1.5rem; }
}

/* ---------- 登录/招聘按钮（与主页面一致） ---------- */
.login-btn {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}
.mobile-link {
    background-color: #165DFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#mobile-menu .login-btn {
    background-color: #165DFF;
    border-radius: 8px;
}

/* ---------- 导航栏滚动后样式（与主页面一致） ---------- */
.nav-scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-scrolled img[alt="方帅网络科技Logo"] {
    background-color: white !important;
}
.nav-scrolled .login-btn {
    color: #165DFF !important;
}
.nav-scrolled span[class*="text-white"] {
    color: #1D2129 !important;
}
.nav-scrolled a:not(.mobile-link) {
    color: #1D2129 !important;
}
.nav-scrolled a:not(.mobile-link):hover {
    color: #165DFF !important;
}
.nav-scrolled #menu-toggle {
    color: #1D2129 !important;
}

/* ===== 顶部导航滑动指示器（药丸高亮） ===== */
.nav-tabs {
    position: relative;
}

.nav-pill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 34px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    transform: translate(var(--pill-x, 0), -50%);
    width: var(--pill-w, 0);
    transition: transform .55s cubic-bezier(.34, 1.56, .64, 1),
                width .55s cubic-bezier(.34, 1.56, .64, 1),
                background-color .3s ease;
    pointer-events: none;
    z-index: 0;
}

.nav-tabs > a {
    position: relative;
    z-index: 1;
}

.nav-scrolled .nav-pill {
    background: rgba(22, 93, 255, 0.12);
}

/* ===== 首屏粒子画布（与主页面一致） ===== */
.hero-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#home > .container {
    position: relative;
    z-index: 1;
}

/* ===== 子页面页脚：跟随页面蓝青主题 ===== */
footer.bg-dark {
    background: linear-gradient(135deg, #0E2A6B 0%, #165DFF 60%, #36CFC9 100%) !important;
    color: #fff !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}
footer.bg-dark .text-white { color: #fff !important; }
footer.bg-dark .text-gray-400 { color: rgba(255,255,255,0.7) !important; }
footer.bg-dark .text-gray-400:hover { color: #fff !important; }
footer.bg-dark .hover\:text-white:hover { color: #fff !important; }
footer.bg-dark .border-gray-800 { border-color: rgba(255,255,255,0.15) !important; }
footer.bg-dark h4 { color: #fff !important; }
footer.bg-dark .fa { color: #36CFC9; }
footer.bg-dark .bg-white { background: rgba(255,255,255,0.1) !important; }
