:root {
  --ui-blue: #9b102b;
  --ui-blue-dark: #72091e;
  --ui-blue-soft: #fff1f4;
  --ui-ink: #1b1d22;
  --ui-muted: #64748b;
  --ui-line: #ecd9df;
  --ui-surface: #ffffff;
  --ui-shadow: 0 12px 34px rgba(32, 70, 122, .08);
}

body { background: #fff; color: var(--ui-ink); }
.container { width: min(1280px, calc(100% - 64px)); }

/* Header: matches the public pages and is isolated from the legacy home styles. */
.index-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 13px 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(155,16,43,.10); box-shadow: 0 5px 22px rgba(17,24,39,.08); }
.index-header.scrolled { position: fixed; padding: 10px 0; background: rgba(255,255,255,.98); border-bottom-color: rgba(155,16,43,.14); box-shadow: 0 7px 24px rgba(17,24,39,.10); }
main { padding-top: 94px; }
.index-nav-wrap { width: min(1500px, calc(100% - 72px)); }
.index-brand { color: #9b102b; min-width: 310px; gap: 12px; }
.index-brand .footer-logo { width: 60px; height: 60px; padding: 0; border-radius: 0; box-shadow: none; object-fit: contain; }
.index-brand .brand-title h1 { color: #9b102b; font-size: 24px; letter-spacing: -.35px; }
.index-brand .brand-title p { color: #27272a; font-size: 12px; }
.index-header .index-main-nav { flex: 1; gap: clamp(17px, 1.55vw, 29px); color: #1f2937; font-size: 15px; font-weight: 800; }
.index-header .index-main-nav a { color: #1f2937; }
.index-header .index-main-nav a::after { height: 3px; bottom: -9px; background: #9b102b; }
.index-header .index-main-nav a:hover, .index-header .index-main-nav a.active { color: #9b102b; }
.index-nav-actions { color: #1f2937; gap: 7px; }
.index-nav-actions .nav-login { min-height: 38px; padding: 0 13px; border-radius: 8px; background: #9b102b; border: 1px solid #9b102b; color: #fff; box-shadow: 0 8px 18px rgba(155,16,43,.18); }
.index-nav-actions .nav-login:hover, .index-header.scrolled .index-nav-actions .nav-login:hover { background: #72091e; color: #fff; transform: translateY(-1px); }
.index-header.scrolled .index-nav-actions .nav-login { background: #9b102b; color: #fff; }
.index-nav-actions .icon-btn { color: #1f2937; }
.index-nav-actions .icon-btn.aa-btn { display: none; }
.index-nav-actions .lang-btn { display: grid; }
.index-nav-actions .lang-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.index-nav-actions .lang-badge { position: absolute; right: -2px; top: 2px; padding: 1px 4px; border-radius: 999px; background: #e95498; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0; }
.search-btn { width: 39px; height: 39px; }
.search-btn svg { width: 22px; stroke: currentColor; fill: none; }

.legacy-home { display: none; }
.redesign-home { padding-bottom: 42px; }
.ui-hero { position: relative; min-height: 285px; display: flex; align-items: center; overflow: hidden; border-radius: 36px 36px 0 0; background: #f7e5ea; }
.ui-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,242,245,.98) 0%, rgba(255,242,245,.87) 35%, rgba(255,242,245,.15) 68%, rgba(255,242,245,.15) 100%); z-index: 1; }
.ui-hero::after { content: ""; position: absolute; z-index: 2; bottom: -38px; left: -5%; width: 76%; height: 85px; border-radius: 50%; background: rgba(255,247,249,.88); transform: rotate(2deg); }
.ui-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(.86) brightness(1.07); }
.ui-hero-copy { position: relative; z-index: 3; padding: 35px 4%; }
.ui-hero h2 { font-size: clamp(31px, 3.7vw, 55px); line-height: 1.2; letter-spacing: -.8px; margin-bottom: 12px; color: var(--ui-ink); }
.ui-hero p { font-size: clamp(16px, 1.5vw, 21px); color: #5d3340; }
.ui-main { width: min(1150px, calc(100% - 64px)); margin: 40px auto 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 26px; }
.info-card { min-height: 225px; display: flex; align-items: center; gap: 27px; padding: 30px 30px 30px 24px; border: 1px solid var(--ui-line); border-radius: 18px; background: var(--ui-surface); box-shadow: 0 8px 28px rgba(34, 75, 125, .035); transition: .22s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--ui-shadow); border-color: #ddadb9; }
.info-icon { width: 132px; height: 132px; flex: 0 0 132px; display: grid; place-items: center; border-radius: 50%; font-size: 69px; line-height: 1; background: radial-gradient(circle at 35% 30%, #fff, #f8e3e9); }
.info-card-content { align-self: center; }
.info-card h3 { font-size: 25px; line-height: 1.25; color: var(--ui-ink); margin-bottom: 6px; }
.info-card h3 span { display: block; font-size: 18px; margin-top: 5px; }
.info-card p { max-width: 300px; min-height: 50px; font-size: 15px; line-height: 1.6; color: #52627f; }
.outline-btn { display: inline-flex; align-items: center; gap: 13px; margin-top: 17px; padding: 8px 16px; border: 1px solid #bd6478; border-radius: 7px; color: #9b102b; font-size: 14px; font-weight: 800; }
.outline-btn span { font-size: 21px; line-height: .75; transition: transform .2s; }
.info-card:hover .outline-btn span, .outline-btn:hover span { transform: translateX(4px); }
.info-card:nth-child(5) { grid-column: 1; }

.ui-divider { border: 0; border-top: 1px solid #dcaab6; margin: 28px 0 25px; }
.lower-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 28px; align-items: stretch; }
.feature-card { min-height: 342px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 28px; border-radius: 16px; color: #fff; background: #5f1226; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(55,6,20,.86), rgba(55,6,20,.06) 70%); }
.feature-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.feature-copy { position: relative; z-index: 1; }
.feature-tag { display: inline-block; margin-bottom: 14px; padding: 5px 15px; border-radius: 5px; background: #9b102b; font-size: 14px; font-weight: 700; }
.feature-card h2 { max-width: 370px; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.28; margin-bottom: 17px; }
.feature-card .outline-btn { margin-top: 0; border-color: rgba(255,255,255,.8); color: #fff; }
.announcement-panel { min-height: 342px; padding: 23px 25px; border: 1px solid #ecd9df; border-radius: 16px; box-shadow: 0 8px 28px rgba(88,26,44,.04); }
.announcement-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 11px; }
.announcement-head h2 { font-size: 21px; }
.announcement-head .outline-btn { margin: 0; padding: 7px 13px; font-size: 13px; white-space: nowrap; }
.announcement-list { list-style: none; }
.announcement-list li { position: relative; padding: 13px 104px 13px 20px; border-top: 1px solid #eee2e5; }
.announcement-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: #d98b9d; }
.announcement-list h3 { font-size: 15px; line-height: 1.45; color: #5f1730; }
.announcement-list p { margin-top: 5px; font-size: 13px; line-height: 1.45; color: #60708c; }
.announcement-list time { position: absolute; right: 0; top: 15px; font-size: 12px; color: #7787a0; }

.footer { margin-top: 36px; padding: 0; background: #fff7f8; color: var(--ui-ink); }
.footer > .container { display: none; }
.redesign-footer { width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 20px 0 15px; }
.footer-note { display: flex; justify-content: flex-end; align-items: flex-end; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #ead6db; color: #8b1530; }
.footer-note p { font-size: 14px; font-weight: 700; }
.footer-sign { font-size: 24px; line-height: 1; font-family: cursive; font-style: italic; color: #9b102b; transform: rotate(-5deg); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; font-size: 12px; color: #63728c; }
.footer-bottom nav { display: flex; gap: 26px; color: #8b1530; font-weight: 600; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #596d8c; color: #fff; font-size: 13px; font-weight: 800; }

@media (max-width: 1120px) {
  .index-brand { min-width: 245px; } .index-brand .brand-title h1 { font-size: 17px; } .index-header .index-main-nav { gap: 13px; font-size: 12px; }
  .info-card { gap: 20px; } .info-icon { width: 110px; height: 110px; flex-basis: 110px; font-size: 57px; }
}
@media (max-width: 820px) {
  .container, .ui-main, .redesign-footer { width: min(100% - 34px, 640px); }
  .index-header { padding: 12px 0; } main { padding-top: 72px; } .index-brand { min-width: 0; } .index-brand .footer-logo { width: 48px; height: 48px; } .index-brand .brand-title h1 { font-size: 15px; } .index-brand .brand-title p { font-size: 10px; }
  .nav-actions { margin-left: auto; } .nav-login { display: none; } .main-nav { background: #fff; color: var(--ui-ink); } .main-nav a { font-size: 16px; }
  .ui-hero { min-height: 270px; border-radius: 23px 23px 0 0; } .ui-hero::before { background: linear-gradient(90deg, rgba(226,241,255,.98), rgba(226,241,255,.83)); }
  .info-grid, .lower-grid { grid-template-columns: 1fr; } .info-card:nth-child(5) { grid-column: auto; } .info-card { min-height: 0; }
}
@media (max-width: 520px) {
  .ui-main { margin-top: 25px; } .ui-hero-copy { padding: 28px 23px; } .ui-hero h2 { font-size: 29px; } .ui-hero p { font-size: 15px; }
  .info-card { padding: 20px; gap: 15px; align-items: flex-start; } .info-icon { width: 76px; height: 76px; flex-basis: 76px; font-size: 39px; } .info-card h3 { font-size: 20px; } .info-card h3 span { font-size: 15px; } .info-card p { font-size: 13px; min-height: 0; }
  .feature-card, .announcement-panel { min-height: 320px; } .announcement-panel { padding: 18px; } .announcement-list li { padding-right: 0; } .announcement-list time { position: static; display: block; margin-top: 5px; } .footer-note { justify-content: space-between; gap: 12px; } .footer-bottom { flex-wrap: wrap; } .footer-bottom nav { gap: 14px; flex-wrap: wrap; }
}
