/* 车融无忧官网样式 — cherongwy.com */

:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1241a8;
  --color-accent: #f59e0b;
  --color-bg: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --header-h: 72px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.92) 0%, rgba(18, 65, 168, 0.88) 50%, rgba(15, 45, 120, 0.95) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 80px 0;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #1e293b;
}

.btn-primary:hover {
  background: #e6900a;
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-head-light h2,
.section-head-light p {
  color: var(--color-white);
}

.section-head-light p {
  opacity: 0.85;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.about-card p + p {
  margin-top: 16px;
  color: var(--color-text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Services */
.services {
  background: var(--color-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.25;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Advantages */
.advantages {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  color: var(--color-white);
}

.advantage-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.advantage-item p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* Contact */
.contact-info {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-note {
  margin-top: 24px;
  padding: 16px;
  background: #fff7ed;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.7;
}

.contact-form {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.form-tip {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--color-primary);
  min-height: 1.25em;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-legal {
  text-align: right;
  font-size: 0.875rem;
}

.footer-legal a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--color-white);
}

.footer-legal p + p {
  margin-top: 6px;
}

/* Mobile nav open state */
.site-header.nav-open .main-nav {
  display: flex;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 960px) {
  .service-grid,
  .advantage-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: flex;
  }

  .service-grid,
  .advantage-list,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero-content {
    padding: 48px 0;
  }
}
