:root {
  --navy: #0f2a44;
  --navy-dark: #0a1d30;
  --accent: #f2a541;
  --accent-dark: #d98c27;
  --text: #1f2933;
  --muted: #5f6c7b;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.center { text-align: center; margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: #fff; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { padding: 8px 18px; }
.lang-switch { display: flex; gap: 4px; font-size: 0.85rem; }
.lang-switch a { padding: 4px 8px; border-radius: 6px; opacity: 0.75; }
.lang-switch a[aria-current] { opacity: 1; background: rgba(255, 255, 255, 0.15); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(10, 29, 48, 0.92), rgba(15, 42, 68, 0.8)),
    repeating-linear-gradient(45deg, #1b3b5c 0 2px, transparent 2px 40px);
  color: #fff;
  padding: 120px 0;
}
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: 0 0 20px; max-width: 760px; }
.lead { font-size: 1.15rem; max-width: 640px; opacity: 0.9; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); color: var(--navy); text-align: center; margin: 0 0 16px; }
.section-intro { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 40px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; text-align: center; }
.stat strong { display: block; font-size: 2.5rem; color: var(--accent-dark); }
.stat span { color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 42, 68, 0.08);
}
.card-icon { font-size: 2rem; }
.card h3 { color: var(--navy); margin: 12px 0 8px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card-link { color: var(--accent-dark); font-weight: 600; text-decoration: none; }

/* Listings */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.filter {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}
.filter.active { background: var(--navy); color: #fff; }
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(15, 42, 68, 0.08); }
.listing[hidden] { display: none; }
.listing-img { position: relative; height: 180px; }
.img-1 { background: linear-gradient(135deg, #3a6186, #89253e); }
.img-2 { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.img-3 { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.img-4 { background: linear-gradient(135deg, #614385, #516395); }
.img-5 { background: linear-gradient(135deg, #cb2d3e, #ef473a); }
.img-6 { background: linear-gradient(135deg, #1d976c, #93f9b9); }
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--navy-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.tag-sale { background: #fff; }
.listing-body { padding: 20px; }
.listing-body h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.1rem; }
.listing-body ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.price { margin: 0; font-weight: 700; color: var(--accent-dark); }

/* Projects */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tags li { background: #fff; border: 1px solid #d9e0e8; border-radius: 999px; padding: 8px 18px; color: var(--navy); font-weight: 500; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact .section-title { color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.contact-grid strong { color: var(--accent); }
.contact-grid p { margin: 4px 0 0; opacity: 0.9; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #fff; padding: 24px 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-footer p { margin: 0; opacity: 0.7; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .cards.three, .listings { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    background: var(--navy);
  }
  .nav.open { display: flex; }
  .hero { padding: 80px 0; }
  .section { padding: 56px 0; }
  .stats, .cards.two, .cards.three, .listings, .contact-grid { grid-template-columns: 1fr; }
}
