/* ============================================
   案例页 - 基础变量与 Hero 首屏
   其余板块样式由 cases-section.css 提供
   导航/页脚由 header.css / footer.css 提供
   ============================================ */

:root {
    --primary-green: #00BFA6;
    --primary-green-light: #0FBF9F;
    --primary-green-dark: #00A89A;
    --bg-white: #FFFFFF;
    --bg-light: #F6F9FB;
    --bg-dark: #1F2D3D;
    --text-title: #1F2D3D;
    --text-body: #5E6D82;
    --text-light: #8A96A8;
    --shadow-light: 0 6px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #008477;
  outline-offset: 5px;
}
button { border: 0; }
a, button { touch-action: manipulation; }
[hidden] { display: none !important; }

/* ============ Layout & shared ============ */
.container {
  width: calc(100% - 96px);
  max-width: var(--container);
  margin-inline: auto;
}

section { padding: 20px 0; }

/* ============ Hero 首屏 ============ */
.hero {
    position: relative;
    padding: 100px 0 50px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0F1D2D 0%, #1A2A3A 50%, #2A3F52 100%);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('/images/hero-background.webp') no-repeat center/cover;
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0, 191, 166, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 166, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}
.hero-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200px; height: 200px;
    border-left: 1px solid rgba(0, 191, 166, 0.1);
    border-top: 1px solid rgba(0, 191, 166, 0.1);
}
.hero-grid::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 300px; height: 300px;
    border-right: 1px solid rgba(0, 191, 166, 0.1);
    border-bottom: 1px solid rgba(0, 191, 166, 0.1);
}

.hero-curves {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 200px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-curves::before {
    content: '';
    position: absolute;
    bottom: 0; left: -50%;
    width: 200%; height: 200px;
    background:
        radial-gradient(ellipse at 20% 100%, rgba(0, 191, 166, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 191, 166, 0.1) 0%, transparent 50%);
    filter: blur(20px);
}
.hero-curves svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-content { animation: fadeInUp 0.8s ease-out; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--primary-green);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}
.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 600px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--primary-green);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
    cursor: pointer;
    margin-bottom: 40px;
}
.cta-button:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 191, 166, 0.4);
}
.cta-button::after { content: '>'; font-size: 1.1rem; }

.hero-stats { display: flex; gap: 60px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.hero-badge-circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}
.hero-badge-circle::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: rgba(0, 191, 166, 0.1);
    border-radius: 50%;
    filter: blur(30px);
}

.anniversary-badge {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 60px rgba(0, 191, 166, 0.25));
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ============ Hero Responsive ============ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 60px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
}
@media (max-width: 768px) {
    .hero { margin-top: 5px; padding: 80px 0; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 1.8rem; }
    .hero-badge-circle { max-width: 300px; }
}

/* ============ Global Responsive ============ */
@media (max-width: 768px) {
    section { padding: 20px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    section { padding: 10px 0; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
    * { scroll-behavior: smooth; }
    a, button, .cta-button { transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
}

/* ============ Contact ============ */
.contact { padding: 0 76px 23px; }
.contact-inner {
    position: relative;
    max-width: 1770px;
    margin: auto;
    min-height: 232px;
    padding: 24px max(30px, calc((100% - 1450px) / 2));
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 80% 200%, #c0f0ec 0 50%, transparent 51%),
        linear-gradient(120deg, #e5f9f9, #e7f9f9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
}
.contact h2 { font-size: 34px; line-height: 1.25; color: var(--text-title); }
.contact-intro {
    font-size: 26px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-body);
}
.contact-content { min-width: 0; flex: 1; }
.contact-methods {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.contact-methods > a {
    display: flex;
    align-items: center;
    gap: 17px;
    white-space: nowrap;
    font-size: 30px;
    color: var(--text-title);
}
.contact-methods .contact-address {
    font-size: 20px;
    line-height: 1.4;
    white-space: normal;
    font-family: inherit;
}
.contact-icon {
    width: 57px;
    height: 57px;
    flex: none;
    background: var(--primary-green);
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.contact-icon img {
    width: 29px;
    max-height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.contact-qr {
    width: 180px;
    height: 180px;
    flex: none;
    background: white;
    padding: 4px;
}

/* ============ Contact Responsive ============ */
@media (max-width: 1199px) {
    .contact { padding-inline: 35px; }
    .contact-inner { padding: 25px 45px; min-height: 215px; }
    .contact-intro { font-size: 22px; }
    .contact-methods { gap: 22px; }
    .contact-methods > a { font-size: 24px; gap: 12px; }
    .contact-methods .contact-address { font-size: 16px; }
    .contact-icon { width: 47px; height: 47px; }
    .contact-qr { width: 155px; height: 155px; }
    .contact h2 { font-size: 29px; }
}
@media (max-width: 959px) {
    .contact-inner { padding: 25px 30px; }
    .contact-methods > a { font-size: 20px; gap: 8px; }
    .contact-methods .contact-address { font-size: 13px; }
    .contact-icon { width: 40px; height: 40px; }
    .contact-icon img { width: 23px; height: 23px; }
    .contact-qr { width: 135px; height: 135px; }
    .contact-methods { gap: 15px; }
}
@media (max-width: 768px) {
    .contact { padding-inline: 20px; }
    .contact-inner { padding: 28px; gap: 24px; }
    .contact-methods { flex-wrap: wrap; justify-content: flex-start; gap: 15px 30px; }
    .contact-methods > a { font-size: 23px; }
    .contact-methods .contact-address { font-size: 14px; }
    .contact-intro { font-size: 20px; }
    .contact-qr { width: 140px; height: 140px; }
}
@media (max-width: 639px) {
    .contact { padding: 0 14px 16px; }
    .contact-inner { padding: 25px 20px; gap: 15px; align-items: flex-start; border-radius: 10px; flex-wrap: wrap; }
    .contact h2 { font-size: 25px; }
    .contact-intro { font-size: 15px; margin-top: 6px; margin-bottom: 17px; }
    .contact-content { flex-basis: 100%; }
    .contact-methods { gap: 15px; flex-direction: column; align-items: flex-start; padding-right: 100px; }
    .contact-methods > a { font-size: 22px; gap: 10px; }
    .contact-icon { width: 35px; height: 35px; }
    .contact-icon img { width: 20px; height: 20px; }
    .contact-methods .contact-address { font-size: 12px; line-height: 1.8; margin-right: -95px; }
    .contact-qr { position: absolute; right: 19px; top: 99px; width: 89px; height: 89px; }
}
@media (max-width: 359px) {
    .contact-methods > a { font-size: 20px; }
}
