/* ============================================================
   西尔菲尔（贵州）企业管理 - 企业官网样式（商务深蓝主题）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --c-primary: #0a3d62;          /* 深蓝主色 */
    --c-primary-dark: #072f4c;
    --c-primary-light: #1b6ca8;    /* 中蓝 */
    --c-accent: #2196f3;           /* 亮蓝 */
    --c-gold: #c9a24b;             /* 点缀金 */
    --c-text: #2c3e50;
    --c-text-light: #5c6b7a;
    --c-muted: #8a97a5;
    --c-bg: #f5f7fa;
    --c-bg-deep: #eef2f7;
    --c-white: #ffffff;
    --c-border: #e4e9f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(10, 61, 98, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 61, 98, 0.14);
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-white);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--c-primary); line-height: 1.4; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 通用组件 ---------- */
.section { padding: 72px 0; }
.section-bg { background: var(--c-bg); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow { display: inline-block; color: var(--c-gold); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; font-weight: 700; }
.section-head .head-line { width: 56px; height: 3px; background: var(--c-gold); margin: 14px auto 0; border-radius: 2px; }
.section-head p { color: var(--c-text-light); max-width: 640px; margin: 16px auto 0; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 6px; font-size: 15px; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; transition: all .25s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--c-primary-light); color: var(--c-primary-light); background: transparent; }
.btn-outline:hover { background: var(--c-primary-light); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-bg-deep); }
.btn-white-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-white-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- 顶部工具条 ---------- */
.header-top { background: var(--c-primary-dark); color: rgba(255,255,255,.85); font-size: 13px; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.top-item { margin-left: 20px; }
@media (max-width: 640px) { .top-item-hide { display: none; } }

/* ---------- 主导航 ---------- */
.header-main { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(10,61,98,.04); }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.brand-badge {
    width: 46px; height: 46px; border-radius: 10px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; letter-spacing: 0;
}
.brand-text strong { display: block; color: var(--c-primary); font-size: 18px; line-height: 1.2; }
.brand-text small { display: block; color: var(--c-muted); font-size: 11px; letter-spacing: .5px; }
.main-nav { display: flex; gap: 4px; }
.nav-link {
    padding: 10px 18px; color: var(--c-text); font-weight: 500; border-radius: 6px;
    position: relative; font-size: 15px;
}
.nav-link:hover { color: var(--c-primary-light); background: var(--c-bg); }
.nav-link.active { color: var(--c-primary-light); }
.nav-link.active::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px;
    height: 3px; border-radius: 2px; background: var(--c-gold);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-primary); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 74px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 10px 20px 20px;
        border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
        display: none;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 14px; }
}

/* ---------- Hero Banner ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, #072f4c 0%, #0a3d62 55%, #145a8c 100%);
    min-height: 560px; display: flex; align-items: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(33,150,243,.22), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(201,162,75,.18), transparent 40%);
}
.hero::after {
    content: ''; position: absolute; right: -10%; bottom: -20%; width: 55%; height: 80%;
    background: rgba(255,255,255,.04); transform: rotate(-8deg); border-radius: 20px;
}
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { max-width: 620px; padding: 60px 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 16px; border-radius: 30px; font-size: 13px; letter-spacing: 1px; margin-bottom: 24px; }
.hero h1 { color: #fff; font-size: 44px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--c-gold); }
.hero p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 46px; }
.hero-stats .stat b { display: block; font-size: 34px; color: #fff; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.7); }
.hero-visual { flex: 0 0 380px; }
.hero-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(6px); border-radius: 16px; padding: 30px;
}
.hero-card h3 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.hero-card .card-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.hero-card .card-row:last-child { border-bottom: none; }
.hero-card .card-row .ic { width: 38px; height: 38px; border-radius: 8px; background: rgba(33,150,243,.25); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hero-card .card-row b { display: block; color: #fff; font-size: 15px; }
.hero-card .card-row span { font-size: 13px; color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
    .hero { min-height: auto; }
    .hero .container { flex-direction: column; padding: 40px 20px; }
    .hero h1 { font-size: 32px; }
    .hero-visual { flex: 0 0 auto; width: 100%; }
    .hero-stats { gap: 28px; flex-wrap: wrap; }
}

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    background: #fff; border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); border: 1px solid var(--c-border);
    transition: all .3s; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 62px; height: 62px; border-radius: 14px; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
}
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card p { color: var(--c-text-light); font-size: 14px; margin-bottom: 18px; }
.service-card .more { font-size: 13px; color: var(--c-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.service-card .more:hover { color: var(--c-primary); }

/* ---------- 案例卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-border); transition: all .3s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-cover { height: 200px; background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent)); position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 48px; font-weight: 800; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 17px; margin-bottom: 10px; }
.case-body .case-meta { display: flex; gap: 14px; font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.case-body .case-meta span { display: inline-flex; align-items: center; gap: 5px; }
.case-body p { color: var(--c-text-light); font-size: 14px; flex: 1; }
.case-body .more { margin-top: 16px; font-size: 13px; color: var(--c-accent); font-weight: 600; }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-border); transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .news-thumb { height: 190px; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light)); position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 44px; font-weight: 800; overflow: hidden; }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-cat { position: absolute; left: 14px; top: 14px; background: var(--c-gold); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.news-body h3 a { color: var(--c-primary); }
.news-body h3 a:hover { color: var(--c-accent); }
.news-body p { color: var(--c-text-light); font-size: 14px; flex: 1; }
.news-date { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); margin-top: 16px; border-top: 1px dashed var(--c-border); padding-top: 14px; }

/* ---------- 特色/优势 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature-item { text-align: center; padding: 28px 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border); transition: all .3s; }
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-item .fi-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-bg-deep); color: var(--c-primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.feature-item h3 { font-size: 17px; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--c-text-light); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light)); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.85); }

/* ---------- 内页横幅 ---------- */
.page-banner { background: linear-gradient(135deg, #072f4c, var(--c-primary-light)); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(33,150,243,.25), transparent 45%); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.page-banner .crumb { font-size: 14px; color: rgba(255,255,255,.8); }
.page-banner .crumb a { color: rgba(255,255,255,.8); }
.page-banner .crumb a:hover { color: #fff; }

/* ---------- 列表页 ---------- */
.list-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; }
.sidebar-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--c-gold); }
.sidebar-card ul li { padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--c-text); font-size: 14px; display: block; }
.sidebar-card ul li a:hover { color: var(--c-accent); }
.sidebar-contact .phone { font-size: 24px; color: var(--c-gold); font-weight: 700; margin-top: 8px; }

/* ---------- 详情页 ---------- */
.detail-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow); padding: 40px; }
.detail-card h1 { font-size: 28px; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px dashed var(--c-border); }
.detail-content { line-height: 1.9; color: var(--c-text); }
.detail-content h3 { margin: 22px 0 12px; }
.detail-content ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.detail-content ol { list-style: decimal; padding-left: 22px; margin: 10px 0; }
.detail-content p { margin: 10px 0; }
.detail-content img { border-radius: 8px; margin: 14px 0; }
.detail-cover { width: 100%; border-radius: 10px; margin-bottom: 24px; max-height: 420px; object-fit: cover; }

/* ---------- 关于页 ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-intro .ai-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 320px; background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 72px; font-weight: 800; }
.about-intro .ai-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.about-intro h2 { font-size: 28px; margin-bottom: 18px; }
.about-intro p { color: var(--c-text-light); margin-bottom: 14px; }
.about-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); margin-top: 9px; flex-shrink: 0; }
.about-points b { display: block; color: var(--c-primary); }
.about-points span { font-size: 13px; color: var(--c-text-light); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); color: var(--c-text); background: var(--c-white); transition: all .2s;
}
.form-control:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(33,150,243,.15); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-msg.error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ---------- 联系信息块 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.contact-info-card { text-align: center; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px 20px; box-shadow: var(--shadow); }
.contact-info-card .ci-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.contact-info-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-info-card p { font-size: 14px; color: var(--c-text-light); }

/* ---------- 招聘 ---------- */
.job-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow); transition: all .3s; }
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.job-card h3 { font-size: 19px; }
.job-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.job-tag { background: var(--c-bg); color: var(--c-primary-light); font-size: 13px; padding: 4px 14px; border-radius: 20px; }
.job-tag.gold { background: rgba(201,162,75,.15); color: var(--c-gold); }
.job-card .job-desc { color: var(--c-text-light); font-size: 14px; margin-top: 14px; }
.job-card .apply { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-accent); font-weight: 600; }

/* ---------- 留言表单区 ---------- */
.contact-form-wrap { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-link {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; background: #fff; border: 1px solid var(--c-border); border-radius: 8px;
    color: var(--c-text); font-size: 14px; transition: all .2s;
}
.page-link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.page-link.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-dark); color: rgba(255,255,255,.75); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--c-gold); border-radius: 2px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { padding: 7px 0; }
.footer-col ul li a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-col ul li a:hover { color: var(--c-gold); }
.contact-list li { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-beian { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.beian-link { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.beian-link:hover { color: var(--c-gold); }
.beian-link svg { flex: 0 0 auto; }

.beian-link img.beian-gongan-img { height: 12px; width: auto; display: block; flex: 0 0 auto; }
.beian-link img.beian-gongan-img { vertical-align: middle; }


/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .service-grid, .case-grid, .news-grid, .feature-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .list-layout { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .section-head h2 { font-size: 26px; }
    .service-grid, .case-grid, .news-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .form-row { grid-template-columns: 1fr; }
    .detail-card { padding: 24px; }
    .hero-stats .stat b { font-size: 26px; }
}

/* ---------- 滚动进入动画（JS 可用时启用，默认内容始终可见） ---------- */
.fade-up { opacity: 1; transform: none; }
.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .fade-up.visible { opacity: 1; transform: none; }
