/* ============================================================
   corpsite 蓝湾企业站演示主题
   ============================================================ */
:root {
    --blue: #1256d3;
    --blue-deep: #0a3b9c;
    --blue-dark: #08265c;
    --accent: #ff8a00;
    --text: #2b3445;
    --text-light: #6b7688;
    --line: #e6eaf2;
    --bg: #f5f7fb;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(16, 42, 100, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.corp {
    margin: 0;
    font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-block;
    padding: 11px 30px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); font-weight: 600; }
.btn-light:hover { background: #f0f4ff; color: var(--blue-deep); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- 顶部栏 ---------- */
.topbar { background: var(--blue-dark); color: #c6d4f2; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar-info span { margin-left: 20px; }

/* ---------- 头部导航 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(16, 42, 100, .06);
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo-mark {
    width: 46px; height: 46px; border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: 1px; text-align: center; line-height: 1.2;
    padding: 2px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-size: 22px; color: var(--blue-dark); letter-spacing: 2px; }
.logo-text em { font-style: normal; font-size: 12px; color: var(--text-light); letter-spacing: 1px; }
.nav-list { display: flex; gap: 6px; }
.nav-list li a {
    display: block; padding: 27px 18px; color: var(--text);
    font-size: 16px; border-bottom: 3px solid transparent;
}
.nav-list li a:hover, .nav-list li a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle { display: none; }

/* ---------- 横幅 ---------- */
.banner { position: relative; color: #fff; overflow: hidden; }
.banner-track { position: relative; }
.banner-slide {
    display: none;
    min-height: 480px;
    padding: 90px 0;
    position: relative;
}
.banner-slide.active { display: block; animation: corpFade .8s ease; }
@keyframes corpFade { from { opacity: .2; } to { opacity: 1; } }
.banner-slide .container { position: relative; z-index: 2; max-width: 760px; }
.banner-slide h2 { font-size: 46px; letter-spacing: 4px; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.banner-slide p { font-size: 19px; color: rgba(255,255,255,.92); margin-bottom: 34px; }
.slide-a { background: linear-gradient(120deg, #0a2a66 0%, #1256d3 70%, #3f7ef0 100%); }
.slide-b { background: linear-gradient(120deg, #06203f 0%, #0d4bb0 60%, #1f6fe0 100%); }
.slide-c { background: linear-gradient(120deg, #101d3a 0%, #123f8f 65%, #2b63c9 100%); }
.banner-slide::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0, transparent 40%),
        radial-gradient(circle at 70% 85%, rgba(255,138,0,.18) 0, transparent 45%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 80px);
}
.banner-dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 3; }
.banner-dots .dot {
    display: inline-block; width: 34px; height: 4px; margin: 0 5px;
    background: rgba(255,255,255,.4); border-radius: 2px; cursor: pointer;
}
.banner-dots .dot.active { background: #fff; }

/* ---------- 区块通用 ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg); }
.sec-title { font-size: 30px; color: var(--blue-dark); margin-bottom: 14px; }
.sec-title span { position: relative; padding-left: 16px; }
.sec-title span::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 5px;
    background: linear-gradient(180deg, var(--blue), var(--accent)); border-radius: 3px;
}
.sec-title em { display: block; font-style: normal; font-size: 14px; color: var(--text-light); font-weight: normal; margin-top: 4px; }
.sec-center { text-align: center; margin-bottom: 44px; }
.sec-center span { padding: 0; }
.sec-center span::before { display: none; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.more-link { font-size: 14px; color: var(--text-light); }
.more-link:hover { color: var(--blue); }
.empty-tip { grid-column: 1 / -1; background: #fff7e8; border: 1px dashed #f0c987; color: #9a6b1f; padding: 14px 18px; border-radius: 6px; }

/* ---------- 公司简介 ---------- */
.intro-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: center; }
.intro-media { position: relative; }
.intro-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.intro-badge {
    position: absolute; right: -14px; bottom: 26px;
    background: var(--accent); color: #fff; font-size: 14px;
    padding: 10px 18px; border-radius: 6px; box-shadow: 0 6px 16px rgba(255,138,0,.4);
}
.intro-text { color: var(--text-light); font-size: 15px; text-align: justify; }
.intro-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 30px; padding: 22px 10px; background: var(--bg); border-radius: var(--radius); }
.intro-stats li { text-align: center; list-style: none; }
.intro-stats strong { display: block; font-size: 30px; color: var(--blue); font-weight: 700; }
.intro-stats strong i { font-style: normal; font-size: 15px; margin-left: 2px; }
.intro-stats span { font-size: 13px; color: var(--text-light); }

/* ---------- 核心业务 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 26px; transition: all .25s; position: relative; overflow: hidden;
}
.svc-card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { width: 100%; }
.svc-icon {
    width: 64px; height: 64px; border-radius: 12px; font-size: 30px;
    background: linear-gradient(135deg, #eaf1ff, #f5f8ff);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.svc-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--blue-dark); }
.svc-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ---------- 产品中心 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; color: var(--text); display: flex; flex-direction: column;
    transition: all .25s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.prod-thumb {
    height: 190px; position: relative; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 600; letter-spacing: 2px; text-align: center;
    padding: 0 20px;
}
.prod-card:nth-child(6n+1) .prod-thumb { background: linear-gradient(135deg, #1256d3, #3f7ef0); }
.prod-card:nth-child(6n+2) .prod-thumb { background: linear-gradient(135deg, #0a3b9c, #2b63c9); }
.prod-card:nth-child(6n+3) .prod-thumb { background: linear-gradient(135deg, #1c5fd0, #6ea6ff); }
.prod-card:nth-child(6n+4) .prod-thumb { background: linear-gradient(135deg, #08265c, #2b5cb8); }
.prod-card:nth-child(6n+5) .prod-thumb { background: linear-gradient(135deg, #356fe0, #8fbcff); }
.prod-card:nth-child(6n+6) .prod-thumb { background: linear-gradient(135deg, #0e2f75, #4079e6); }
.prod-thumb::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 36px);
}
.prod-info { padding: 18px 20px 20px; flex: 1; }
.prod-info h3 { font-size: 17px; margin-bottom: 8px; }
.prod-info p {
    font-size: 13px; color: var(--text-light); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 新闻 ---------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
    display: flex; gap: 20px; align-items: center; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
    color: var(--text); transition: all .2s;
}
.news-item:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--text); }
.news-date {
    flex: 0 0 66px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px;
}
.news-date strong { display: block; font-size: 28px; color: var(--blue); line-height: 1.1; }
.news-date em { font-style: normal; font-size: 12px; color: var(--text-light); }
.news-main { flex: 1; min-width: 0; }
.news-main h3 { font-size: 17px; margin-bottom: 6px; }
.news-main p {
    font-size: 13px; color: var(--text-light); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-arrow { font-size: 26px; color: #c3ccdd; }

/* ---------- CTA ---------- */
.cta-strip { background: linear-gradient(100deg, var(--blue-deep), var(--blue)); color: #fff; padding: 46px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-text h2 { font-size: 26px; margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-dark); color: #aebfdd; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 4fr 4fr 2.5fr 2.5fr; gap: 40px; padding: 54px 0 30px; }
.f-col h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.f-col p { margin: 0 0 8px; }
.f-nav-list li { margin-bottom: 8px; }
.f-nav-list a { color: #aebfdd; }
.f-nav-list a:hover { color: #fff; }
.f-qr { text-align: center; }
.f-qr img { background: #fff; padding: 6px; border-radius: 6px; display: block; margin: 0 auto 8px; }
.f-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 0; font-size: 13px; }
.f-links-title { color: #fff; font-weight: 600; }
.f-links a { color: #8ba1c9; }
.f-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; color: #8ba1c9; }
.footer-bottom .container { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-bottom a { color: #8ba1c9; }
.footer-powered { margin-left: auto; }

/* ---------- 内页 ---------- */
.page-head { background: linear-gradient(100deg, var(--blue-dark), var(--blue)); color: #fff; padding: 46px 0 38px; }
.page-head h1 { font-size: 30px; margin-bottom: 8px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.crumb a { color: rgba(255,255,255,.9); }

.list-wrap, .detail-wrap { display: grid; grid-template-columns: minmax(0, 8.2fr) minmax(0, 3.8fr); gap: 40px; padding: 50px 0 70px; align-items: start; }
.detail-main { min-width: 0; }
.detail-meta { color: var(--text-light); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.detail-body { font-size: 15px; }
.detail-body img { border-radius: 6px; }
.detail-body h2, .detail-body h3 { margin: 26px 0 12px; color: var(--blue-dark); }
.detail-body table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.detail-body table td, .detail-body table th { border: 1px solid var(--line); padding: 10px 14px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.side-card h3 { font-size: 17px; color: var(--blue-dark); margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--blue); line-height: 1.3; }
.side-card p { font-size: 14px; margin-bottom: 6px; }
.side-latest ul li, .side-hot ul li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-latest ul li:last-child, .side-hot ul li:last-child { border-bottom: 0; }

/* 产品详情 */
.prod-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 30px; }
.prod-hero-thumb {
    min-height: 260px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff;
    font-size: 24px; font-weight: 600; letter-spacing: 2px; text-align: center; padding: 0 24px;
}
.prod-hero-info h2 { font-size: 26px; color: var(--blue-dark); margin-bottom: 12px; }
.prod-hero-desc { color: var(--text-light); }
.prod-meta { margin: 14px 0 20px; }
.prod-meta li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }

/* 评论区 */
.comment-block, .comment-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 26px; }
.side-title { font-size: 17px; color: var(--blue-dark); margin-bottom: 16px; padding-left: 10px; border-left: 4px solid var(--blue); line-height: 1.3; }
.comment-item { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; }
.comment-head .avatar { border-radius: 50%; }
.comment-name { font-weight: 600; }
.comment-time { color: var(--text-light); }
.comment-reply { margin-left: auto; font-size: 13px; }
.comment-content { padding: 8px 0 8px 46px; }
.comment-form .form-row { display: flex; gap: 12px; }
.comment-form input[type="text"], .comment-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.comment-form textarea { resize: vertical; }
.comment-form input[type="text"]:focus, .comment-form textarea:focus { border-color: var(--blue); outline: none; }
.form-tip { color: var(--text-light); font-size: 13px; }

/* 分页 */
.pagebar { margin-top: 30px; text-align: center; }
.pagebar a, .pagebar span.now-page {
    display: inline-block; min-width: 36px; padding: 7px 12px; margin: 0 4px;
    border: 1px solid var(--line); border-radius: 6px; color: var(--text);
    background: #fff;
}
.pagebar a:hover { border-color: var(--blue); color: var(--blue); }
.pagebar span.now-page { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 返回顶部 */
.backtop {
    position: fixed; right: 26px; bottom: 40px; width: 44px; height: 44px;
    background: var(--blue); color: #fff; border-radius: 50%;
    display: none; align-items: center; justify-content: center; font-size: 20px;
    box-shadow: 0 6px 18px rgba(18, 86, 211, .45); z-index: 98;
}
.backtop.show { display: flex; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-wrap, .list-wrap { grid-template-columns: 1fr; }
    .prod-hero { grid-template-columns: 1fr; }
    .banner-slide { min-height: 380px; padding: 60px 0; }
    .banner-slide h2 { font-size: 32px; }
}
@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex; flex-direction: column; gap: 4px; align-items: center;
        background: none; border: 1px solid var(--line); border-radius: 6px;
        padding: 8px 12px; font-size: 12px; color: var(--text-light); cursor: pointer;
    }
    .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--blue); }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list li a { padding: 13px 20px; border-bottom: 0; border-left: 3px solid transparent; }
    .nav-list li a.active { border-left-color: var(--blue); }
    .svc-grid, .prod-grid, .intro-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .topbar-in { justify-content: center; }
    .cta-in { justify-content: center; text-align: center; }
    .footer-powered { margin: 0 auto; }
    .news-item { flex-wrap: wrap; }
    .comment-form .form-row { flex-direction: column; }
}

/* ---------- 前台管理条（仅登录的管理员/编辑可见，游客不渲染） ---------- */
.corp-adminbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: var(--blue-dark); color: #c6d4f2; font-size: 13px;
    box-shadow: 0 2px 10px rgba(8, 38, 92, .35);
}
.adminbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; }
.adminbar-user { color: #fff; }
.adminbar-links { display: flex; align-items: center; flex-wrap: wrap; }
.adminbar-links a { color: #c6d4f2; margin-left: 16px; }
.adminbar-links a:hover { color: #fff; text-decoration: underline; }
body.has-adminbar { padding-top: 34px; }
@media (max-width: 760px) {
    .adminbar-user { display: none; }
    .adminbar-in { justify-content: flex-end; }
    .adminbar-links a { margin-left: 0; margin-right: 16px; }
}
