/* ============================================================
   四川禾顺家政 · 官网统一样式 V2.0
   品牌色：暖橙 #F27A2A / 深蓝 #1A3A5C / 米白 #FDF8F0
   ============================================================ */
:root {
    --primary: #F27A2A;
    --primary-dark: #D9621A;
    --navy: #1A3A5C;
    --navy-dark: #11283F;
    --cream: #FDF8F0;
    --line: #E9E0D2;
    --text: #333333;
    --muted: #6B7280;
    --gold: #9A6B00;
    --shadow: 0 6px 24px rgba(26, 58, 92, .08);
    --shadow-lg: 0 14px 40px rgba(26, 58, 92, .14);
    --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
strong { color: var(--navy); }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--navy-dark); color: rgba(255, 255, 255, .75); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: rgba(255, 255, 255, .75); }
.topbar a:hover { color: var(--primary); }

/* ---------- 头部导航 ---------- */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); position: sticky; top: 0; z-index: 900; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 56px; }
.brand .brand-name { font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.brand .brand-slogan { font-size: .72rem; color: var(--muted); letter-spacing: 1px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block; padding: 14px 12px; font-weight: 600; color: var(--navy); font-size: .95rem;
    border-radius: 8px; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--primary); }
.main-nav .has-sub > a::after { content: ""; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 6px; vertical-align: middle; opacity: .45; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; border-radius: 10px;
    box-shadow: var(--shadow-lg); border-top: 3px solid var(--primary); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s;
}
.main-nav .has-sub:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; color: var(--text); font-size: .92rem; border-radius: 6px; }
.dropdown a:hover { background: var(--cream); color: var(--primary); }
.header-phone { text-align: right; flex-shrink: 0; }
.header-phone .num { font-weight: 800; color: var(--primary); font-size: 1.15rem; line-height: 1.2; }
.header-phone .label { font-size: .72rem; color: var(--muted); }

/* ---------- 首屏轮播横幅 ---------- */
.hero {
    background: linear-gradient(100deg, rgba(13, 32, 51, .92) 0%, rgba(17, 40, 63, .78) 48%, rgba(17, 40, 63, .52) 100%), url("../images/banner.jpg") center/cover no-repeat;
    color: #fff; padding: 110px 0 100px;
}
.hero h1 { font-size: 2.9rem; letter-spacing: 2px; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hero .sub { font-size: 1.3rem; color: #FBD8AE; font-weight: 600; margin-bottom: 8px; }
.hero .slogan { font-size: 1.05rem; color: rgba(255, 255, 255, .85); margin-bottom: 36px; }
.btn { display: inline-block; padding: 13px 34px; border-radius: 50px; font-weight: 700; transition: all .3s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(242, 122, 42, .35); }
.btn-outline { border-color: rgba(255, 255, 255, .8); color: #fff; margin-left: 14px; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- 首页数字带 ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 38px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stats-grid .num { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stats-grid .num span { font-size: 1rem; color: #FBD8AE; margin-left: 4px; }
.stats-grid .txt { color: rgba(255, 255, 255, .8); font-size: .92rem; margin-top: 4px; }

/* ---------- 版块通用 ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-title { text-align: center; font-size: 1.9rem; color: var(--navy); margin-bottom: 10px; font-weight: 800; }
.section-title em { color: var(--primary); font-style: normal; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 1rem; }
.section-more { text-align: center; margin-top: 36px; }

/* ---------- 服务卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card-grid.five { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card-grid.five .svc-head { padding: 22px 18px 14px; }
.card-grid.five .svc-card h3 { font-size: 1.05rem; }
.card-grid.five .svc-card p { padding: 0 18px 18px; font-size: .84rem; }
.card-grid.five .svc-link { padding: 11px 18px; }
@media (max-width: 1100px) { .card-grid.five { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.svc-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--primary); transition: transform .3s, box-shadow .3s; display: block; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card .svc-head { padding: 26px 24px 18px; }
.svc-card .svc-icon { font-size: 2rem; margin-bottom: 12px; }
.svc-card h3 { color: var(--navy); font-size: 1.18rem; margin-bottom: 8px; }
.svc-card .svc-tag { font-size: .78rem; color: var(--primary); background: #FDF0E4; display: inline-block; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .9rem; padding: 0 24px 22px; }
.svc-card .svc-link { display: block; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--primary); font-size: .88rem; font-weight: 600; }
.svc-card .svc-link::after { content: "→"; float: right; }

/* ---------- 图文双栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 12px; text-align: justify; }

/* ---------- 优势/流程 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.adv-box { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.adv-box h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.adv-box li { margin-bottom: 10px; padding-left: 24px; position: relative; font-size: .92rem; color: var(--muted); }
.adv-box li::before { content: "✔"; color: var(--primary); position: absolute; left: 0; font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: block; width: 38px; height: 38px; line-height: 38px; margin: 0 auto 12px; background: var(--primary); color: #fff; border-radius: 50%; font-weight: 800; }
.step h4 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.step p { color: var(--muted); font-size: .84rem; }

/* ---------- 内页头部 ---------- */
.page-banner {
    background: linear-gradient(110deg, rgba(13, 32, 51, .93), rgba(20, 45, 72, .74)), url("../images/about.jpg") center/cover no-repeat;
    color: #fff; padding: 64px 0 56px;
}
.page-banner h1 { font-size: 2rem; margin-bottom: 8px; }
.page-banner p { color: rgba(255, 255, 255, .8); }
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 内页布局：侧栏 + 主内容 ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 0 72px; }
.sidebar .side-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.sidebar .side-title { background: var(--navy); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 1rem; }
.sidebar .side-nav a { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--text); }
.sidebar .side-nav a:last-child { border-bottom: none; }
.sidebar .side-nav a:hover { color: var(--primary); background: var(--cream); }
.sidebar .side-nav a.on { color: var(--primary); font-weight: 700; border-left: 3px solid var(--primary); padding-left: 17px; }
.sidebar .side-nav a::after { content: "›"; color: var(--muted); }
.sidebar .side-contact { padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar .side-contact .num { color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.sidebar .side-contact p { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; }
.article h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 6px; }
.article .lead { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; font-size: .95rem; }
.article h3 { color: var(--navy); font-size: 1.2rem; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article h4 { color: var(--navy); font-size: 1.05rem; margin: 20px 0 10px; }
.article p { margin-bottom: 14px; color: #444; text-align: justify; }
.article ul.dot li, .article ol.num li { margin-bottom: 8px; padding-left: 22px; position: relative; color: #444; }
.article ul.dot li::before { content: "•"; color: var(--primary); position: absolute; left: 6px; font-weight: 700; }
.article ol.num { counter-reset: n; }
.article ol.num li::before { counter-increment: n; content: counter(n) "."; color: var(--primary); font-weight: 700; position: absolute; left: 0; }
.article .note-box { background: #FDF6EC; border: 1px solid #F3DFC2; border-left: 4px solid var(--primary); border-radius: 8px; padding: 16px 20px; margin: 20px 0; font-size: .92rem; color: #7A5A2A; }
.article img.fig { border-radius: var(--radius); margin: 18px 0; box-shadow: var(--shadow); max-width: 100%; }
.article img.fig-narrow { display: block; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- 图集展示 ---------- */
.img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.img-grid figure { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.img-grid img { width: 100%; display: block; }
.img-grid figcaption { padding: 11px 14px; font-size: .9rem; color: var(--navy); font-weight: 600; text-align: center; background: #fff; }
.img-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .img-grid.two { grid-template-columns: 1fr; } }
.article .prev-next { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: .9rem; }
.article .prev-next a:hover { color: var(--primary); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.price-table th { background: var(--navy); color: #fff; padding: 12px 10px; font-weight: 600; white-space: nowrap; }
.price-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.price-table tr:nth-child(even) td { background: #FBF7F0; }
.price-table tr:hover td { background: #FDF1E3; }
.price-table .cell-left { text-align: left; }

/* ---------- 新闻列表 ---------- */
.news-list li { display: flex; gap: 22px; align-items: center; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.news-list .date { flex-shrink: 0; text-align: center; width: 84px; }
.news-list .date .d { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1; }
.news-list .date .ym { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.news-list h3 { font-size: 1.08rem; margin-bottom: 6px; }
.news-list h3 a:hover { color: var(--primary); }
.news-list p { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.news-list .more { margin-left: auto; color: var(--muted); font-size: 1.2rem; flex-shrink: 0; }

/* ---------- 联系信息卡 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.info-card .ic { font-size: 1.6rem; }
.info-card h4 { color: var(--navy); margin: 10px 0 8px; }
.info-card p { color: var(--muted); font-size: .9rem; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .72); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 0 36px; }
.footer-grid h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 9px; font-size: .88rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid .f-brand img { height: 52px; margin-bottom: 14px; }
.footer-grid .f-desc { font-size: .85rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .82rem; text-align: center; line-height: 2; }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
    .stats-grid .num { font-size: 1.75rem; }
    .stats-grid .txt { font-size: .82rem; }
    .hero h1 { font-size: 1.75rem; letter-spacing: 1px; }
    .hero .sub { font-size: 1rem; }
    .hero .slogan { font-size: .88rem; }
    .section-title { font-size: 1.45rem; }
    .section { padding: 48px 0; }
    .card-grid.five { grid-template-columns: 1fr; }
    .page-banner { padding: 40px 0 34px; }
    .page-banner h1 { font-size: 1.5rem; }
    .article h2 { font-size: 1.25rem; }
    .article h3 { font-size: 1.08rem; }
    .layout { padding: 28px 0 48px; }
    .news-list { }
    .news-list li { gap: 14px; }
    .news-list .date { width: 62px; }
    .news-list .date .d { font-size: 1.35rem; }
    .nav-toggle { display: block; }
    .main-nav { position: fixed; inset: 0 auto 0 0; width: 78%; max-width: 320px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .3s; overflow-y: auto; padding: 20px; z-index: 950; }
    .main-nav.open { transform: translateX(0); }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav > ul > li > a { padding: 12px 14px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; border-left: 3px solid var(--primary); border-radius: 0; padding-left: 12px; }
    .header-phone { display: none; }
    .hero { padding: 70px 0 60px; }
    .hero h1 { font-size: 1.9rem; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .article { padding: 26px 22px; }
    .btn-outline { margin-left: 0; margin-top: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
