@charset "utf-8";
/* 青岛颜回咨询 · 企业官网主题 QDYanHui */

:root {
    --brand: #0b4f8a;
    --brand-deep: #083a66;
    --green: #12b7a0;
    --accent: #ff8a3d;
    --ink: #1b2733;
    --muted: #5c6b7a;
    --line: #e4ecf5;
    --bg: #f5f9fd;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 79, 138, .08);
    --shadow-2: 0 18px 50px rgba(11, 79, 138, .14);
    --container: 1200px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 14px; font-weight: 700; line-height: 1.35; color: var(--brand-deep); }
p { margin: 0 0 14px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 26px; border-radius: 999px;
    font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.btn-main { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 79, 138, .25); }
.btn-main:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn-light {background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover {background: #fff; color: var(--brand); }
.btn-orange {background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,138,61,.3); }
.btn-orange:hover {color: #fff; transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover {border-color: var(--brand); box-shadow: var(--shadow); }

/* ---------- 顶部工具条 ---------- */
.topbar {background: var(--brand-deep); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar .container {display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar-left {display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left span {display: inline-flex; align-items: center; gap: 6px; }
.topbar-right {display: flex; align-items: center; gap: 16px; }
.topbar a {color: rgba(255,255,255,.85); }
.topbar a:hover {color: #fff; }

/* ---------- 导航 ---------- */
.site-header {position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.is-scroll {box-shadow: 0 6px 20px rgba(11,79,138,.08); }
.nav {display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo {display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--brand), var(--green));
    color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(11,79,138,.28);
}
.logo-text strong {display: block; font-size: 19px; letter-spacing: .5px; color: var(--brand-deep); line-height: 1.2; }
.logo-text span {display: block; font-size: 11px; letter-spacing: 2.4px; color: var(--muted); text-transform: uppercase; }

.nav-menu {display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-menu li {position: relative; }
.nav-menu li a {display: block; padding: 10px 15px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: 10px; }
.nav-menu li a:hover {color: var(--brand); background: rgba(11,79,138,.06); }
.nav-actions {display: flex; align-items: center; gap: 10px; }
.nav-actions .btn {height: 40px; padding: 0 20px; font-size: 14px; }
.nav-toggle {display: none; width: 42px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.nav-toggle i {display: block; width: 18px; height: 2px; background: var(--brand); margin: 4px auto; }

/* ---------- 首页 Hero ---------- */
.hero {position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #083a66 0%, #0b4f8a 48%, #0e6b9a 100%); }
.hero:after {content: ""; position: absolute; right: -160px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(18,183,160,.55), rgba(18,183,160,0) 62%); }
.hero:before {content: "";position: absolute; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%;background: radial-gradient(circle at 60% 40%, rgba(255,138,61,.35), rgba(255,138,61,0) 62%); }
.hero .container {position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-tag {display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.1); }
.hero h1 {margin: 20px 0 16px; font-size: 44px; color: #fff; letter-spacing: 1px; }
.hero h1 em {font-style: normal; color: #7ef0d8; }
.hero-sub {font-size: 16px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 28px; }
.hero-btns {display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta {display: flex; gap: 30px; flex-wrap: wrap; }
.hero-meta div strong {display: block; font-size: 26px; color: #fff; line-height: 1.2; }
.hero-meta div span {font-size: 13px; color: rgba(255,255,255,.72); }

.hero-card {background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 26px; backdrop-filter: blur(6px); }
.hero-card h3 {color: #fff; font-size: 18px; margin-bottom: 16px; }
.hero-card ul li {display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.18); color: rgba(255,255,255,.9); font-size: 14px; }
.hero-card ul li:last-child {border-bottom: 0; }
.hero-card ul li b {color: #7ef0d8; }
.hero-card .card-note {margin: 18px 0 0; font-size: 12px; color: rgba(255,255,255,.66); }

/* ---------- 通用区块 ---------- */
.section {padding: 76px 0; }
.section-alt {background: #fff; }
.section-head {max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow {display: inline-block; font-size: 12px; letter-spacing: 2.6px; color: var(--brand); text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 {font-size: 30px; margin-bottom: 12px; }
.section-head p {color: var(--muted); margin: 0; }

/* ---------- 服务卡片 ---------- */
.service-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
    position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:before {content: "";position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand), var(--green)); opacity: 0; transition: opacity .25s; }
.service-card:hover {transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(11,79,138,.22); }
.service-card:hover:before {opacity: 1; }
.service-icon {
    width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(11,79,138,.1), rgba(18,183,160,.16)); color: var(--brand); margin-bottom: 18px;
}
.service-icon svg {width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {font-size: 19px; margin-bottom: 10px; }
.service-card p {color: var(--muted); font-size: 14px; margin-bottom: 0; }
.service-card .more {display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand); }

/* ---------- 服务优势 ---------- */
.advantage-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.advantage-item {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.advantage-item .num {font-size: 30px; font-weight: 800; color: rgba(11,79,138,.16); line-height: 1; margin-bottom: 10px; }
.advantage-item h4 {font-size: 17px; margin-bottom: 8px; }
.advantage-item p {color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- 关于我们 ---------- */
.about {display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual {position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; background: linear-gradient(140deg, #0b4f8a, #12b7a0); padding: 34px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.about-visual:after {content: "";position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.about-visual h3 {color: #fff; font-size: 22px; position: relative; z-index: 2; }
.about-visual p {color: rgba(255,255,255,.85); font-size: 14px; margin: 0; position: relative; z-index: 2; }
.about-body h2 {font-size: 28px; }
.about-body p {color: var(--muted); }
.about-list {display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 22px 0 26px; }
.about-list li {display: flex; gap: 8px; font-size: 14.5px; }
.about-list li b {color: var(--green); }

/* ---------- 案例 / 文章列表 ---------- */
.post-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover {transform: translateY(-5px); box-shadow: var(--shadow-2); }
.post-thumb {height: 148px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 2px; background: linear-gradient(135deg, #0b4f8a, #12879a); position: relative; }
.post-card:nth-child(2n) .post-thumb {background: linear-gradient(135deg, #12b7a0, #0b8f8a); }
.post-card:nth-child(3n) .post-thumb {background: linear-gradient(135deg, #ff8a3d, #f0b03d); }
.post-thumb small {position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: 1px; background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 999px; }
.post-body {padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 {font-size: 17.5px; margin-bottom: 10px; line-height: 1.5; }
.post-body h3 a:hover {color: var(--brand); }
.post-intro {color: var(--muted); font-size: 13.5px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta {margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #8b9aa9; border-top: 1px dashed var(--line); padding-top: 14px; }
.post-meta span {display: inline-flex; align-items: center; gap: 5px; }
.istop .post-thumb {background: linear-gradient(135deg, #ff8a3d, #d94f3d); }

/* ---------- 分页 ---------- */
.pagebar {display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 40px 0 0; }
.pagebar a, .pagebar .current {min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pagebar a:hover {border-color: var(--brand); color: var(--brand); }
.pagebar .current {background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 联系条 ---------- */
.cta-strip {background: linear-gradient(100deg, #083a66, #0b4f8a 55%, #12b7a0); color: #fff; padding: 46px 0; }
.cta-strip .container {display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-strip h3 {color: #fff; font-size: 24px; margin-bottom: 6px; }
.cta-strip p {margin: 0; color: rgba(255,255,255,.82); font-size: 14.5px; }
.cta-phone {font-size: 30px; font-weight: 800; letter-spacing: 1px; color: #ffd9a8; }

/* ---------- 页脚 ---------- */
.site-footer {background: #0a2c4c; color: rgba(255,255,255,.7); padding: 56px 0 0; font-size: 14px; }
.footer-grid {display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.site-footer h4 {color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer li {padding: 6px 0; font-size: 13.5px; }
.site-footer li a {color: rgba(255,255,255,.7); }
.site-footer li a:hover {color: #7ef0d8; padding-left: 4px; }
.footer-contact li {display: flex; gap: 8px; }
.footer-contact b {color: #fff; font-weight: 600; }
.footer-about p {font-size: 13.5px; color: rgba(255,255,255,.66); }
.footer-qr {display: flex; gap: 12px; margin-top: 16px; }
.qr-box {width: 92px; height: 92px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: rgba(255,255,255,.72); gap: 4px; }
.qr-box i {font-size: 22px; font-style: normal; }
.footer-bottom {border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer-bottom a {color: rgba(255,255,255,.66); }

/* ---------- 内页 ---------- */
.page-banner {background: linear-gradient(120deg, #083a66, #0b4f8a 60%, #12b7a0); color: #fff; padding: 46px 0 50px; }
.page-banner h1 {color: #fff; font-size: 28px; margin-bottom: 10px; }
.breadcrumb {font-size: 13px; color: rgba(255,255,255,.75); }
.breadcrumb a {color: rgba(255,255,255,.85); }
.breadcrumb a:hover {color: #fff; }

.content-wrap {padding: 44px 0 60px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-box {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; }
.article-box .a-title {font-size: 27px; margin-bottom: 14px; }
.article-meta {display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #8b9aa9; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.article-content {font-size: 15.5px; color: #2c3a49; line-height: 1.95; }
.article-content img {border-radius: 10px; }
.article-content p {margin-bottom: 18px; }
.article-content h2, .article-content h3 {margin-top: 30px; }
.article-content ul, .article-content ol {margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article-content ol {list-style: decimal; }
.article-content li {margin-bottom: 8px; }
.article-content blockquote {margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--green); background: rgba(18,183,160,.08); color: var(--muted); }
.article-content table {width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.article-content th, .article-content td {border: 1px solid var(--line); padding: 10px 12px; }
.article-content th {background: rgba(11,79,138,.06); }
.article-tags {margin: 26px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.article-tags a {padding: 4px 12px; border-radius: 999px; background: rgba(11,79,138,.07); color: var(--brand); }
.article-tags a:hover {background: var(--brand); color: #fff; }
.article-nav {display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.article-nav a {display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--muted); background: #fff; }
.article-nav a:hover {border-color: var(--brand); color: var(--brand); }
.article-nav a b {display: block; font-size: 12px; color: #8b9aa9; font-weight: 500; margin-bottom: 4px; }

/* 侧栏 */
.sidebar {display: grid; gap: 20px; }
.widget {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.widget h4 {font-size: 16px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--brand); }
.widget ul li {padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.widget ul li:last-child {border-bottom: 0; }
.widget ul li a:hover {color: var(--brand); }
.widget-contact {background: linear-gradient(140deg, #0b4f8a, #12b7a0); color: #fff; border: 0; }
.widget-contact h4 {color: #fff; border-left-color: #7ef0d8; }
.widget-contact p {color: rgba(255,255,255,.86); font-size: 13.5px; }
.widget-contact .w-phone {font-size: 24px; font-weight: 800; color: #ffd9a8; display: block; margin: 6px 0 14px; }
.widget-contact .btn {width: 100%; }

/* 评论 */
.comments-box {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; margin-top: 26px; }
.comments-box h3 {font-size: 19px; margin-bottom: 20px; }
.comment-list li {padding: 18px 0; border-bottom: 1px dashed var(--line); }
.comment-list li:last-child {border-bottom: 0; }
.comment-list .children {margin: 14px 0 0 46px; padding-left: 16px; border-left: 2px solid var(--line); }
.c-head {display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.c-avatar {width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--green)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; overflow: hidden; text-align: center; line-height: 1.2; padding: 0 4px; }
.c-name {font-weight: 600; }
.c-time {font-size: 12px; color: #93a2b1; margin-left: 8px; }
.c-content {font-size: 14.5px; color: #33414f; }
.c-reply {margin-top: 6px; font-size: 12.5px; color: var(--brand); }
.no-comment {color: var(--muted); font-size: 14px; }

/* 系统评论表单适配 */
#frmSumbit {margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
#frmSumbit p {display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
#frmSumbit input[type=text], #frmSumbit textarea {width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
#frmSumbit textarea {height: 120px; padding: 12px 14px; line-height: 1.7; }
#frmSumbit input:focus, #frmSumbit textarea:focus {outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,79,138,.1); }
#frmSumbit input[type=submit] {height: 44px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
#frmSumbit input[type=submit]:hover {background: var(--brand-deep); }

/* 404 */
.error-box {max-width: 640px; margin: 60px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 56px 34px; }
.error-box .code {font-size: 76px; font-weight: 800; color: rgba(11,79,138,.16); line-height: 1; margin-bottom: 10px; }
.error-box p {color: var(--muted); }

/* 返回顶部 */
.to-top {position: fixed; right: 22px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 8px 20px rgba(11,79,138,.3); z-index: 80; }
.to-top.show {display: flex; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .nav-menu {display: none; position: absolute; left: 0; right: 0; top: 74px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
    .nav-menu.open {display: flex; }
    .nav-menu li a {padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-toggle {display: block; }
    .nav-actions .btn {display: none; }
    .hero .container {grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
    .hero h1 {font-size: 34px; }
    .service-grid, .post-grid {grid-template-columns: repeat(2, 1fr); }
    .advantage-grid {grid-template-columns: repeat(2, 1fr); }
    .about {grid-template-columns: 1fr; gap: 30px; }
    .content-wrap {grid-template-columns: 1fr; }
    .footer-grid {grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    body {font-size: 14.5px; }
    .topbar .container {justify-content: center; text-align: center; }
    .section {padding: 52px 0; }
    .section-head h2, .about-body h2 {font-size: 24px; }
    .hero h1 {font-size: 27px; }
    .hero-meta {gap: 20px; }
    .service-grid, .post-grid, .advantage-grid {grid-template-columns: 1fr; }
    .about-list {grid-template-columns: 1fr; }
    .article-box, .comments-box {padding: 24px 20px; }
    .article-box .a-title {font-size: 22px; }
    .article-nav {grid-template-columns: 1fr; }
    .footer-grid {grid-template-columns: 1fr; }
    .cta-strip .container {text-align: center; justify-content: center; }
}
