/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px; line-height: 1.6; color: #424242; background: #F5F5F5;
  -webkit-font-smoothing: antialiased;
}
:root {
  --green: #4CAF50; --deep-blue: #1A237E; --orange: #FF5722;
  --dark-green: #2E7D32; --light-gray: #F5F5F5; --deep-gray: #424242;
  --white: #FFFFFF; --transparent-orange: rgba(255,87,34,0.2);
  --header-bg: var(--green); --header-color: #fff;
  --footer-bg: var(--dark-green); --footer-color: #fff;
  --nav-gap: 1rem; --container-max: 1200px; --radius: 12px;
}
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ===== Container ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Skip Link ===== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--deep-blue); color: #fff; padding: 0.5rem 1rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.header {
  background: var(--header-bg); color: var(--header-color);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 1rem;
}
.brand { text-decoration: none; color: inherit; display: flex; align-items: center; }
.brand-name {
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-style: italic; font-weight: 900; font-size: 1.5rem;
  letter-spacing: 1px; text-transform: uppercase;
}
.nav-toggle { display: none; background: none; border: none; color: inherit; cursor: pointer; padding: 0.5rem; }
.nav-toggle-icon {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: background 0.3s;
}
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s;
}
.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { top: 8px; }
[data-open] .nav-toggle-icon { background: transparent; }
[data-open] .nav-toggle-icon::before { transform: translateY(8px) rotate(45deg); }
[data-open] .nav-toggle-icon::after { transform: translateY(-8px) rotate(-45deg); }

.nav-list { list-style: none; display: flex; gap: var(--nav-gap); align-items: center; }
.nav-list a {
  color: inherit; text-decoration: none; padding: 0.5rem 0.75rem;
  border-radius: var(--radius); transition: background 0.2s; font-weight: 500;
}
.nav-list a:hover, .nav-list a:focus-visible { background: rgba(255,255,255,0.2); }
.nav-list a[aria-current="page"] {
  background: var(--deep-blue); color: #fff; font-weight: 700;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 60px; left: 0; width: 100%;
    background: var(--header-bg); max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav[data-open] { max-height: 400px; }
  .nav-list { flex-direction: column; padding: 0 1.5rem 1rem; }
  .nav-list a { display: block; width: 100%; border-radius: 0; }
  .nav-list a[aria-current="page"] { background: var(--deep-blue); }
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg); color: var(--footer-color); padding: 2.5rem 0 1rem;
}
.footer-inner {
  display: grid; gap: 1.5rem;
  grid-template-areas:
    "brand links contact"
    "legal legal legal";
  grid-template-columns: 1fr 1fr 2fr;
}
.footer-brand { grid-area: brand; }
.footer-brand .brand-name {
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-style: italic; font-weight: 900; font-size: 1.2rem;
}
.trust-statement { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.8; }
.footer-links { grid-area: links; list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--orange); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { grid-area: contact; font-size: 0.875rem; line-height: 1.8; }
.footer-contact a { color: var(--orange); }
.footer-legal { grid-area: legal; text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.8rem; opacity: 0.7; }

@media (max-width: 768px) {
  .footer-inner { grid-template-areas: "brand" "links" "contact" "legal"; grid-template-columns: 1fr; }
}

/* ===== Common Components ===== */
.btn {
  display: inline-block; padding: 0.6rem 1.5rem; border-radius: 50px; cursor: pointer;
  font-weight: 600; text-decoration: none; border: none; transition: background 0.2s, transform 0.15s;
  font-size: 1rem; line-height: 1.4;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #3d8b40; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: #e64a19; }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.ratio-container {
  position: relative; overflow: hidden;
}
.ratio-container::before { display: block; content: ''; }
.ratio-16x9::before { padding-top: 56.25%; }
.ratio-4x3::before { padding-top: 75%; }
.ratio-1x1::before { padding-top: 100%; }
.ratio-container > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 0; }
.breadcrumb li { font-size: 0.875rem; }
.breadcrumb li+li::before { content: '/'; margin-right: 0.5rem; color: #999; }
.breadcrumb a { color: var(--deep-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.collapsible { border: 1px solid #ddd; border-radius: var(--radius); margin-bottom: 0.5rem; }
.collapsible-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1rem; background: var(--light-gray); border: none; font-weight: 600;
  cursor: pointer; text-align: left; border-radius: var(--radius);
}
.collapsible-trigger::after {
  content: '+'; font-size: 1.4rem; transition: transform 0.3s;
}
.collapsible-trigger[aria-expanded="true"]::after { content: '−'; }
.collapsible-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 1rem; background: var(--white);
}
.collapsible-content[aria-hidden="false"] { max-height: 500px; padding: 1rem; }

/* ===== General utilities ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-dark-blue { background: var(--deep-blue); color: #fff; }

/* ===== Scroll progress bar (optional, used via JS) ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0; height: 4px;
  background: var(--orange); z-index: 999; transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }
