/* ============================================================
   微天客智慧食堂官网 - 全站样式（响应式 PC + H5）
   ============================================================ */
:root {
    --primary: #0b63e5;
    --primary-dark: #0849a8;
    --teal: #00a6a6;
    --ink: #15243b;
    --muted: #5c6f85;
    --line: #e5ecf4;
    --bg: #f5f8fc;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 40, 80, .08);
    --grad: linear-gradient(120deg, #0b63e5, #00a6a6);
}
* { 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(--ink); background: var(--white); line-height: 1.7; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 34px; }
.pc-only { display: inline; }

/* ---------- 通用组件 ---------- */
.btn { display: inline-block; padding: 10px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all .25s; text-align: center; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(11, 99, 229, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 99, 229, .4); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; margin-top: 12px; padding: 8px 18px; font-size: 13px; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; background: #e8f1ff; color: var(--primary); font-weight: 600; }
.badge-blue { background: #e8f1ff; color: var(--primary); }

.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(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: all .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- 顶部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 68px; gap: 34px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: 10px; color: var(--muted); letter-spacing: 3px; font-weight: 500; }
.logo-light .logo-text { color: #fff; } .logo-light .logo-text small { color: rgba(255,255,255,.6); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #061a3a 0%, #0b2d63 55%, #0a4d8c 100%); color: #fff; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(0,166,166,.35), transparent 60%), radial-gradient(500px 300px at 10% 90%, rgba(11,99,229,.4), transparent 60%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-top: 84px; padding-bottom: 96px; }
.hero-copy h1 { font-size: 42px; line-height: 1.28; letter-spacing: 1px; }
.hero-copy h1 .grad { background: linear-gradient(90deg, #4da3ff, #2ee6c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 18px 0 26px; color: rgba(255,255,255,.82); font-size: 16px; }
.hero-sub b { color: #2ee6c8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-points li { color: rgba(255,255,255,.75); font-size: 13px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-card { width: 300px; background: #fff; color: var(--ink); border-radius: 20px; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.pc-head { font-size: 13px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pc-meal { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.pc-ico { font-size: 24px; }
.pc-meal b { display: block; font-size: 14px; }
.pc-meal small { color: var(--muted); font-size: 12px; }
.pc-tag { margin-left: auto; font-size: 11px; color: var(--teal); background: #e6f9f4; padding: 3px 8px; border-radius: 12px; }
.pc-foot { font-size: 12px; color: #0aa870; padding-top: 12px; }
.float-chip { position: absolute; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: floaty 4s ease-in-out infinite; }
.chip-1 { top: 8%; left: 0; }
.chip-2 { bottom: 12%; right: 0; animation-delay: 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 数据指标 ---------- */
.stats { background: #fff; margin-top: -34px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { text-align: center; padding: 26px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- 区块 ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: linear-gradient(160deg, #0a1f42, #0c3a6e); color: #fff; }
.section-dark .sec-head p { color: rgba(255,255,255,.7); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-tag { display: inline-block; font-size: 13px; color: var(--primary); background: #e8f1ff; padding: 4px 14px; border-radius: 20px; font-weight: 600; margin-bottom: 12px; }
.section-dark .sec-tag { background: rgba(255,255,255,.14); color: #7cc4ff; }
.sec-head h2 { font-size: 30px; letter-spacing: 1px; }
.sec-head p { color: var(--muted); margin-top: 10px; }

/* ---------- 卡片 ---------- */
.feature-card { padding: 30px 26px; }
.feature-ico { width: 56px; height: 56px; border-radius: 14px; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13.5px; }

.solution-card { padding: 30px 26px; }
.solution-ico { font-size: 34px; margin-bottom: 14px; }
.solution-card h3 { font-size: 17px; margin-bottom: 8px; }
.solution-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.more { color: var(--primary); font-size: 13px; font-weight: 600; }
.solution-card:hover .more { text-decoration: underline; }

.policy-card { background: var(--bg); border-radius: var(--radius); padding: 30px 26px; border: 1px dashed #cfdcee; }
.policy-ico { font-size: 30px; margin-bottom: 12px; }
.policy-card h3 { font-size: 16px; margin-bottom: 8px; }
.policy-card p { color: var(--muted); font-size: 13.5px; }

.hw-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; transition: all .3s; }
.hw-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.hw-thumb { height: 150px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 42px; color: #7cc4ff; overflow: hidden; margin-bottom: 16px; }
.hw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hw-card h3 { font-size: 16px; }
.hw-card p { color: rgba(255,255,255,.68); font-size: 13px; margin-top: 6px; }
.section-dark .center .btn-light { background: #fff; color: var(--primary); border: none; }

.case-card { overflow: hidden; display: flex; flex-direction: column; }
.case-thumb { height: 180px; background: linear-gradient(135deg, #dbe9ff, #d4f4ef); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.case-body h3 { font-size: 16px; }
.case-body p { color: var(--muted); font-size: 13.5px; flex: 1; }

.quote-card { padding: 28px; position: relative; }
.quote-mark { position: absolute; top: 8px; right: 20px; font-size: 64px; color: #e3edfa; line-height: 1; font-family: Georgia, serif; }
.quote-text { color: var(--ink); font-size: 14px; min-height: 96px; }
.quote-author { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote-author b { display: block; font-size: 14px; }
.quote-author span { color: var(--muted); font-size: 12.5px; }

.news-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; }
.news-meta time { color: var(--muted); font-size: 12.5px; }
.news-card h3 { font-size: 16px; line-height: 1.5; }
.news-card p { color: var(--muted); font-size: 13.5px; flex: 1; }

/* ---------- CTA ---------- */
.cta-band { background: var(--grad); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 24px; }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1a30; color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 54px 20px 40px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.6); font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12.5px; color: rgba(255,255,255,.4); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 内页通用 ---------- */
.page-hero { background: linear-gradient(160deg, #0b2d63, #0a4d8c); color: #fff; padding: 58px 0; text-align: center; }
.page-hero h1 { font-size: 30px; letter-spacing: 1px; }
.page-hero p { color: rgba(255,255,255,.78); margin-top: 8px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* 列表页 */
.list-wrap { padding: 44px 0 70px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-bar a { padding: 7px 18px; border-radius: 20px; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.filter-bar a.active, .filter-bar a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.article-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.article-card h3 { font-size: 16px; line-height: 1.5; }
.article-card p { color: var(--muted); font-size: 13.5px; flex: 1; }

/* 详情页 */
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 70px; }
.detail-head h1 { font-size: 26px; line-height: 1.4; }
.detail-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; margin: 14px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.detail-content { font-size: 15.5px; color: #2a3a52; }
.detail-content p { margin: 14px 0; }
.detail-content img { border-radius: 10px; margin: 14px auto; }
.detail-content h2, .detail-content h3 { margin: 24px 0 10px; }

/* 案例详情 */
.case-block { margin: 26px 0; padding: 24px; border-radius: var(--radius); background: var(--bg); }
.case-block h3 { font-size: 16px; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.case-block p { color: #2a3a52; font-size: 14.5px; white-space: pre-line; }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.case-gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }

/* 方案详情 */
.sol-summary { background: var(--bg); border-left: 4px solid var(--primary); padding: 18px 22px; border-radius: 8px; color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.sol-list { list-style: none; margin: 10px 0 0; }
.sol-list li { padding: 7px 0 7px 26px; position: relative; color: #2a3a52; }
.sol-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.sol-block { margin: 26px 0; }
.sol-block h3 { font-size: 17px; margin-bottom: 6px; }

/* 演示页 */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.demo-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.demo-panel h3 { font-size: 18px; margin-bottom: 6px; }
.demo-panel .tip { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-item label i { color: #e5484d; font-style: normal; margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea { width: 100%; padding: 11px 13px; border: 1px solid #d7e0ec; border-radius: 9px; font-size: 14px; font-family: inherit; background: #fbfdff; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-item textarea { min-height: 90px; resize: vertical; }
.form-error { background: #fdecec; color: #c0353a; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }
.demo-success-box { max-width: 620px; margin: 0 auto; }
.account-box { background: var(--bg); border: 1px dashed #b9cdea; border-radius: 10px; padding: 18px 22px; margin: 18px 0; font-size: 14px; }
.account-box b { color: var(--primary); }
.account-box .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; gap: 6px; }
.account-box .row:last-child { border-bottom: none; }

/* 表单页通用 */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.info-list .ico { font-size: 20px; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-size: 15.5px; font-weight: 600; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; color: var(--ink); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--primary); transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-a-inner { padding: 0 22px 18px; font-size: 14px; }

/* 404 */
.err-page { text-align: center; padding: 90px 20px; }
.err-page b { font-size: 72px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page p { color: var(--muted); margin: 12px 0 26px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a.disabled { opacity: .45; pointer-events: none; }
.pagination span.dots { align-self: center; color: var(--muted); }

/* Toast */
.toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 12px 26px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .3s; }
.toast-success { background: #e6f9f4; color: #067a56; border: 1px solid #b5ecd9; }
.toast-error { background: #fdecec; color: #c0353a; border: 1px solid #f6c8ca; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .demo-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pc-only { display: none; }
    .nav { position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow); margin-left: 0; }
    .nav.open { transform: none; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav a:last-child { border-bottom: none; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .hero-copy h1 { font-size: 30px; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
    .section { padding: 54px 0; }
    .sec-head h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .case-gallery { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { flex-direction: column; text-align: center; }
}
