/* 乐驾汽修美容 - 各区块样式 */

/* 首屏 */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #2a1c05 0%, transparent 55%), radial-gradient(ellipse at 15% 85%, #3a0503 0%, transparent 50%), var(--bg); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.speed-lines { position: absolute; inset: -50%;
  background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(230, 184, 74, .06) 60px 62px, transparent 62px 139px, rgba(225, 6, 0, .08) 139px 140px);
  animation: speed 1.6s linear infinite; }
/* 位移量 = 140px 沿 115deg 方向，保证无缝循环 */
@keyframes speed { to { transform: translate(126.9px, 59.2px); } }
.glow { position: absolute; width: 900px; height: 900px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(230, 184, 74, .22), transparent 60%); filter: blur(20px); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }
.hero-watermark { position: absolute; right: -2%; bottom: 4%; font-size: clamp(120px, 22vw, 340px); font-weight: 900; font-style: italic; letter-spacing: -6px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(230, 184, 74, .1); user-select: none; }
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 15px; font-weight: 700; letter-spacing: 10px; color: var(--gold); }
.hero-kicker::before { content: ""; width: 50px; height: 2px; background: var(--red); }
.hero-title { font-size: clamp(56px, 11vw, 150px); font-weight: 900; font-style: italic; line-height: 1.1; letter-spacing: 6px; filter: drop-shadow(0 10px 40px rgba(230, 184, 74, .25)); }
.hero-slogan { margin: 22px 0 14px; font-size: clamp(18px, 2.6vw, 30px); font-weight: 800; letter-spacing: 4px; }
.hero-slogan b { color: var(--red); }
.hero-sub { max-width: 620px; color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
.scroll-hint { position: absolute; left: 50%; bottom: 30px; z-index: 2; width: 28px; height: 46px; margin-left: -14px; border: 2px solid var(--gold); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 10px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { to { transform: translateY(16px); opacity: 0; } }

/* 数据条 */
.stats { padding: 56px 0; background: linear-gradient(90deg, #1a1205, #0f0b04 50%, #1a1205); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { font-size: clamp(40px, 5vw, 60px); font-weight: 900; font-style: italic; color: var(--gold-light); }
.stat em { margin-left: 2px; font-size: 28px; font-style: normal; font-weight: 900; color: var(--red); }
.stat span { display: block; margin-top: 4px; color: var(--muted); letter-spacing: 2px; }

/* 服务卡片 */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; overflow: hidden; padding: 40px 32px; background: linear-gradient(160deg, #181b21, #0e1014); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); transition: transform .35s, border-color .35s, box-shadow .35s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(230, 184, 74, .08); }
.card:hover::before { transform: scaleX(1); }
.card-no { position: absolute; right: 22px; top: 14px; font-size: 64px; font-weight: 900; font-style: italic; color: rgba(230, 184, 74, .08); }
.card svg { width: 52px; height: 52px; margin-bottom: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* 核心优势 */
.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { padding: 36px 24px; text-align: center; background: rgba(230, 184, 74, .03); border: 1px solid var(--line); border-radius: var(--radius); transition: background .3s; }
.why-item:hover { background: rgba(230, 184, 74, .08); }
.why-item b { display: inline-block; margin-bottom: 6px; font-size: 52px; font-weight: 900; font-style: italic; line-height: 1.2; }
.why-item h3 { margin-bottom: 8px; font-size: 21px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* 服务流程 */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 84px; text-align: center; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 50%; z-index: 1; width: 66px; height: 66px; margin-left: -33px; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: var(--gold-light); background: var(--bg); border: 2px solid var(--gold); border-radius: 50%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: calc(50% + 40px); width: calc(100% - 64px); height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.steps h3 { margin-bottom: 4px; font-size: 19px; }
.steps p { color: var(--muted); font-size: 14px; }

/* 品牌宣言 */
.banner { position: relative; overflow: hidden; padding: 130px 0; text-align: center; background: linear-gradient(120deg, rgba(225, 6, 0, .85), rgba(120, 0, 0, .9) 40%, #0a0a0a 75%); }
.banner::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0, 0, 0, .18) 22px 24px); }
.banner .container { position: relative; }
.banner h2 { font-size: clamp(34px, 6vw, 72px); font-weight: 900; font-style: italic; line-height: 1.25; letter-spacing: 4px; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.banner p { margin: 20px 0 38px; font-size: clamp(16px, 2vw, 21px); color: #ffe6e6; }

/* 联系与预约 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 18px; padding: 24px; background: var(--card); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.info-list svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-list h3 { font-size: 15px; font-weight: 400; color: var(--muted); }
.info-list p, .info-list a { font-size: 20px; font-weight: 700; }
.info-list a:hover { color: var(--gold-light); }
.info-list .map-link { display: inline-block; margin-top: 4px; font-size: 15px; color: var(--gold); }
.mb-call + .mb-call { border-left: 1px solid var(--line); }
.form { display: grid; gap: 18px; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form h3 { font-size: 24px; letter-spacing: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select { width: 100%; padding: 13px 16px; font: inherit; font-size: 16px; color: var(--text); background: #0b0d10; border: 1px solid #2a2e35; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 184, 74, .3); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form .btn { width: 100%; margin-top: 6px; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-tip { font-size: 13px; color: var(--muted); text-align: center; }

/* 页脚与提示 */
.footer { padding: 40px 0; text-align: center; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer .logo { justify-content: center; margin-bottom: 10px; color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 200; padding: 14px 30px; font-weight: 700; color: #1a1200; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-radius: 50px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transform: translate(-50%, 40px); transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 设备适配：手机端底部快捷栏、减轻动画负担 */
.device-tip { margin-top: 6px; font-size: 12px; opacity: .6; }
.mobile-bar { display: none; }
.is-mobile .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: grid; grid-template-columns: 1fr 1fr 1.3fr; padding-bottom: env(safe-area-inset-bottom); background: #0b0d10; border-top: 1px solid var(--line); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; height: 56px; font-size: 17px; font-weight: 800; letter-spacing: 2px; }
.mb-call { color: var(--gold-light); }
.mb-book { color: #1a1200; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.is-mobile body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.is-mobile .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
.is-mobile .glow { animation: none; }
.is-mobile .scroll-hint { display: none; }

/* 响应式 */
@media (max-width: 1024px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps li:nth-child(3)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; max-height: 0; overflow: hidden; visibility: hidden; background: rgba(7, 8, 10, .97); border-bottom: 1px solid var(--line); transition: max-height .35s, visibility .35s; }
  .nav-menu.open { max-height: 420px; visibility: visible; }
  .nav-menu a:not(.btn) { padding: 14px 0; }
  .nav-menu .btn { margin: 10px 0 22px; }
  .section { padding: 84px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .services-grid, .why-grid, .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
  .form { padding: 28px 22px; }
}
