/* =========================================================
   凯誉软膜官网 - 全局样式（蓝白简约商务风格）
   ========================================================= */

:root {
    --primary: #1e5aa8;
    --primary-dark: #174b8d;
    --primary-light: #eaf1fb;
    --accent: #e88a1a;
    --text: #333;
    --text-light: #666;
    --muted: #999;
    --bg-gray: #f5f7fa;
    --line: #e6e9ef;
    --white: #fff;
    --shadow: 0 6px 20px rgba(30, 90, 168, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
    transition: background .3s, box-shadow .3s;
}
/* 滚动后加深背景，保证浅色区块处导航文字清晰 */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { height: 36px; width: auto; display: block; }
.logo-text { font-size: 17px; font-weight: 700; color: #000; white-space: nowrap; letter-spacing: 0.5px; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    color: #000;
    font-size: 15px;
    font-weight: 700;
    padding: 26px 0;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s, opacity .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--accent); }
.main-nav a:hover { opacity: .85; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: #000; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
    background: url("../img/banner/首页.png") center / cover no-repeat;
    color: var(--primary-dark);
    padding: 170px 0 130px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; right: -80px; bottom: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(23, 75, 141, .06), transparent 70%);
    border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 46px; line-height: 1.3; font-weight: 700; margin-bottom: 18px; color: #0f2c52; }
.hero p { font-size: 17px; color: #41576f; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; }
.hero .btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--primary-dark); }
.hero .btn-outline:hover { background: rgba(23, 75, 141, 0.08); }

.btn {
    display: inline-block;
    padding: 12px 34px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(232,138,26,.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------------- 区块通用 ---------------- */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue {
    background: linear-gradient(135deg, #0f2c52, #1e5aa8);
    color: #fff;
}
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 32px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; position: relative; }
.section-head h2::after {
    content: ""; display: block; width: 46px; height: 3px;
    background: var(--accent); margin: 14px auto 0; border-radius: 2px;
}
.section-head p { color: var(--text-light); font-size: 15px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.8); }

/* ---------------- 网格 / 卡片 ---------------- */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(30,90,168,.15); }

.card-media {
    height: 200px;
    display: flex; align-items: flex-end;
    padding: 16px;
    position: relative;
}
.card-media span {
    color: #fff; font-size: 15px; font-weight: 600;
    background: rgba(15,44,82,.55);
    padding: 4px 12px; border-radius: 4px;
}
/* 占位渐变图（后续替换为 img/ 下真实图片） */
.media-1 { background: linear-gradient(135deg, #3f7fd0, #7fb0e8); }
.media-2 { background: linear-gradient(135deg, #2a6bbd, #6f9fe0); }
.media-3 { background: linear-gradient(135deg, #174b8d, #5a8fd0); }
.media-4 { background: linear-gradient(135deg, #4a83c8, #8fb8e8); }
.case-1 { background: linear-gradient(135deg, #0f2c52, #4a83c8); }
.case-2 { background: linear-gradient(135deg, #174b8d, #7fb0e8); }
.case-3 { background: linear-gradient(135deg, #2a6bbd, #a3c6ee); }

.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 19px; margin-bottom: 8px; color: var(--primary-dark); }
.card-body p { color: var(--text-light); font-size: 14px; }

/* ---------------- 企业优势 ---------------- */
.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 34px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .25s;
}
.feature:hover { transform: translateY(-5px); }
.feature-icon {
    width: 62px; height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #d7e6fb);
    color: var(--primary);
    font-size: 26px;
    display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; color: var(--primary-dark); }
.feature p { color: var(--text-light); font-size: 14px; }

/* ---------------- 联系我们 ---------------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-item {
    display: flex; gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    color: #fff;
}
.contact-item span { color: var(--accent); font-weight: 600; min-width: 52px; }
.contact-item a, .contact-item p { color: rgba(255,255,255,.9); }
.contact-form {
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    display: flex; flex-direction: column; gap: 14px;
}
.contact-form h3 { color: var(--primary-dark); margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form .btn { align-self: flex-start; }

/* ---------------- 内页 ---------------- */
.page-banner {
    padding: 140px 0 56px;
    text-align: center;
    background: url("../img/banner/首页.png") center / cover no-repeat;
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}
.page-banner h1 { font-size: 34px; margin-bottom: 6px; }
.page-banner p { color: rgba(255,255,255,.8); }
.page { padding: 60px 0; min-height: 55vh; }
.page-narrow { max-width: 820px; }
.page p { margin-bottom: 18px; color: var(--text-light); }

/* ---------------- 行业新闻列表 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item {
    display: flex; gap: 20px; align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.news-item:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(30,90,168,.14); }
.news-media {
    width: 210px; height: 130px; flex: none;
    border-radius: 8px;
    display: flex; align-items: flex-end; padding: 12px;
}
.news-media span {
    color: #fff; font-size: 13px; font-weight: 600;
    background: rgba(15,44,82,.55);
    padding: 3px 10px; border-radius: 4px;
}
.news-body h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 6px; }
.news-date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.news-body p { margin: 0; color: var(--text-light); font-size: 14px; }

.callout {
    margin-top: 50px;
    background: var(--bg-gray);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 26px 30px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.callout p { margin: 0; color: var(--text); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #12233c; color: #c3cede; }
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 30px; flex-wrap: wrap;
    padding: 44px 20px 30px;
}
.brand-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: #9fb0c7; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.footer-links a { color: #c3cede; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; color: #8da0ba; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .logo-text { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 32px; }
    .hero { padding: 70px 0 90px; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; align-items: flex-start; }
    .news-media { width: 100%; height: 150px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0,0,0,.1);
        display: none; padding: 10px 20px 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
}
