/* ==========================================================================
   maowei.net - 静态门户站样式表
   云环境兼容：纯 CSS，无外部依赖，无字体 CDN
   ========================================================================== */

:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f2ff;
    --text: #1a1a1a;
    --text-secondary: #5a6570;
    --border: #e1e8ed;
    --bg: #ffffff;
    --bg-alt: #f7f9fb;
    --success: #10b981;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-phone { font-weight: 600; color: var(--primary); }
.topbar-phone a { color: inherit; }
.topbar-phone a:hover { text-decoration: underline; }
.footer-contact-line a { color: inherit; }
.footer-contact-line a:hover { color: #fff; text-decoration: underline; }
.contact-card .highlight a { color: inherit; }
.contact-card .highlight a:hover { text-decoration: underline; }

/* ---------------- 导航 ---------------- */
.header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--primary); }
.logo-mark {
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #00a0e9);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; flex-shrink: 0;
}
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-secondary); letter-spacing: .3px; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 10px 15px; border-radius: 7px;
    font-size: 15px; font-weight: 500; color: var(--text);
    transition: all .2s;
}
.nav-menu > li > a:hover { background: var(--primary-light); color: var(--primary); }
.nav-menu > li.active > a { color: var(--primary); background: var(--primary-light); }

.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 190px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .2s;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 8px 13px; border-radius: 6px; font-size: 14px; color: var(--text-secondary); }
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(135deg, #004d99 0%, #0066cc 50%, #00a0e9 100%);
    color: #fff; padding: 88px 0 76px; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 78% 22%, rgba(255,255,255,.14) 0%, transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; line-height: 1.28; margin-bottom: 18px; font-weight: 700; letter-spacing: -.5px; }
.hero p { font-size: 17px; opacity: .94; max-width: 660px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block; padding: 13px 30px; border-radius: 8px;
    font-size: 15px; font-weight: 600; transition: all .22s; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.hero-stats { display: flex; gap: 44px; margin-top: 46px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 30px; font-weight: 700; }
.hero-stat span { font-size: 13px; opacity: .86; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; font-weight: 700; letter-spacing: -.3px; }
.section-head p { color: var(--text-secondary); font-size: 15px; max-width: 620px; margin: 0 auto; }
.section-head .eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--primary); background: var(--primary-light);
    padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}

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

.card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
    width: 48px; height: 48px; border-radius: 11px; background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }
.card-link { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--primary); font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ---------------- 内容页 ---------------- */
.page-hero {
    background: linear-gradient(135deg, #004d99, #00a0e9);
    color: #fff; padding: 56px 0 46px;
}
.page-hero h1 { font-size: 30px; margin-bottom: 8px; font-weight: 700; }
.breadcrumb { font-size: 13px; opacity: .9; }
.breadcrumb a:hover { text-decoration: underline; }

.content-body { max-width: 900px; margin: 0 auto; }
.content-body h2 {
    font-size: 22px; margin: 34px 0 14px; padding-left: 14px;
    border-left: 4px solid var(--primary); font-weight: 600;
}
.content-body h2:first-child { margin-top: 0; }
.content-body p { margin-bottom: 15px; color: #333; font-size: 15.5px; line-height: 1.9; }
.content-body ul { margin: 0 0 18px 22px; }
.content-body li { margin-bottom: 9px; color: #333; font-size: 15.5px; }

.empty-note {
    background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 34px; text-align: center; color: var(--text-secondary); font-size: 15px;
}

/* ---------------- 侧边栏布局 ---------------- */
.layout-sidebar { display: grid; grid-template-columns: 244px 1fr; gap: 40px; align-items: start; }
.sidebar {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; position: sticky; top: 96px;
}
.sidebar h3 { font-size: 15px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar ul { list-style: none; }
.sidebar li a {
    display: block; padding: 9px 13px; border-radius: 7px;
    font-size: 14px; color: var(--text-secondary); transition: all .18s;
}
.sidebar li a:hover { background: var(--primary-light); color: var(--primary); }
.sidebar li.active a { background: var(--primary); color: #fff; font-weight: 500; }

/* ---------------- 荣誉资质 ---------------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.cert-item {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: var(--bg); transition: all .25s;
}
.cert-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-img {
    height: 172px; background: var(--bg-alt); display: flex; align-items: center;
    justify-content: center; color: var(--text-secondary); font-size: 13px; border-bottom: 1px solid var(--border);
}
.cert-item .cert-name { padding: 16px; font-size: 14px; text-align: center; font-weight: 500; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.contact-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 15px; color: var(--text-secondary); }
.contact-card .highlight { color: var(--primary); font-weight: 600; font-size: 18px; }

/* ---------------- CTA ---------------- */
.cta { background: linear-gradient(135deg, #004d99, #00a0e9); color: #fff; padding: 62px 0; text-align: center; }
.cta h2 { font-size: 27px; margin-bottom: 12px; font-weight: 700; }
.cta p { opacity: .93; margin-bottom: 28px; font-size: 16px; }

/* ---------------- 页脚 ---------------- */
.footer { background: #1c2530; color: #9aa7b4; padding: 54px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 38px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a { color: #9aa7b4; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; font-weight: 600; font-size: 16px; }
.footer-contact-line { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #2a3542; padding: 20px 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 13px; color: #6b7885;
}

/* ---------------- 返回顶部 ---------------- */
.to-top {
    position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--primary); color: #fff; border: none;
    cursor: pointer; display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); font-size: 19px; z-index: 90; transition: all .25s;
}
.to-top.show { display: flex; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg); flex-direction: column; align-items: stretch;
        padding: 12px 16px; gap: 2px; border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg); display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 12px 14px; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 0 0 0 14px; display: none;
    }
    .nav-menu > li:hover .dropdown { display: block; }
    .hero { padding: 60px 0 52px; }
    .hero h1 { font-size: 27px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 28px; margin-top: 32px; }
    .hero-stat strong { font-size: 24px; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .section-head h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .to-top { right: 16px; bottom: 16px; }
}

/* ---------------- 真实 logo（2026-09-28 客户提供） ---------------- */
.logo-img { height: 44px; width: auto; display: block; }
.footer-logo { height: 40px; width: auto; display: block; }

/* ---------------- 证书（真实扫描件） ---------------- */
.cert-thumb {
    width: 100%; height: 190px; object-fit: contain;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px; display: block;
}
.cert-item .cert-meta {
    padding: 0 16px 6px; font-size: 12px; text-align: center;
    color: var(--text-secondary); line-height: 1.5;
}
.cert-item .cert-meta:last-child { padding-bottom: 16px; }

@media (max-width: 768px) {
    .logo-img { height: 34px; }
    .footer-logo { height: 32px; }
    .cert-thumb { height: 160px; }
}
