/* ===== CSS Variables ===== */
:root {
  --bg: #fafafa;
  --bg2: #ffffff;
  --bg3: #f5f5f7;
  --ink: #1d1d1f;
  --ink2: #86868b;
  --muted: #86868b;
  --rule: #d2d2d7;
  --gold: #c9a96e;
  --gold-light: #f5efe6;
  --gold-dark: #b8956a;
  --rose: #e8b4b8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Subtle Background ===== */
.page-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-bg::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.06) 0%, transparent 70%);
}
.page-bg::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(232,180,184,0.05) 0%, transparent 70%);
}

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== Hero Section - Full Width ===== */
.hero {
  position: relative;
  width: 100%;
  padding: 7rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  border-radius: 50px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.hero-title span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--ink2);
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-badges .badge {
  padding: 0.5rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--rule);
  color: var(--ink2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.hero-badges .badge:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: var(--shadow-md);
}

/* Countdown - Refined */
.countdown-bar {
  display: inline-flex;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg2);
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rule);
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0 0.75rem;
}
.countdown-item:not(:last-child) {
  border-right: 1px solid var(--rule);
}
.countdown-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.countdown-num .unit {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink2);
  margin-left: 1px;
}
.countdown-label {
  font-size: 0.65rem;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ===== Container ===== */
.container {
  padding: 1rem 2rem 3rem;
}

/* ===== Region Tabs - Pill Style ===== */
.region-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.region-tab {
  padding: 0.65rem 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.region-tab:hover {
  border-color: var(--ink2);
  color: var(--ink);
}
.region-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.region-tab .tab-flag {
  width: 22px; height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}
.region-tab .tab-flag svg {
  width: 100%; height: 100%;
  display: block;
}
.region-panel { display: none; }
.region-panel.active { display: block; }

/* ===== Region Section ===== */
.region-section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.region-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.region-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.region-icon svg {
  width: 100%; height: 100%;
  display: block;
}
.region-info { flex: 1; }
.region-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.region-desc {
  font-size: 0.88rem;
  color: var(--ink2);
  margin-top: 0.15rem;
}
.region-highlight {
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--gold-light), #fff);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ===== Activity Card ===== */
.activity-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.activity-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.08);
}
.activity-card.premium {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg2) 0%, var(--gold-light) 100%);
}
.activity-card.premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.activity-tag {
  padding: 0.3rem 0.85rem;
  background: var(--bg3);
  color: var(--ink2);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.activity-tag.hot {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
}
.activity-tag.premium {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}
.activity-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.activity-note {
  font-size: 0.82rem;
  color: var(--ink2);
  width: 100%;
  margin-top: 0.1rem;
}

/* ===== Product List ===== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-item:hover {
  background: var(--bg2);
  border-color: var(--rule);
  box-shadow: var(--shadow-sm);
}
.product-item.highlight {
  border-color: var(--gold);
  background: var(--gold-light);
}
.product-item.highlight:hover {
  background: linear-gradient(135deg, var(--gold-light), #fff);
}
.product-item.special {
  border-color: rgba(255,107,107,0.3);
  background: rgba(255,107,107,0.03);
}
.product-item.premium {
  border-color: var(--gold);
  background: var(--gold-light);
}

.product-config {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.product-config span {
  padding: 0.35rem 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--ink2);
  white-space: nowrap;
}
.product-config .cpu {
  background: #f0f4ff;
  border-color: rgba(66,99,235,0.2);
  color: #3b5bdb;
  font-weight: 600;
}
.product-config .ram {
  background: #f0fdf4;
  border-color: rgba(16,185,129,0.2);
  color: #059669;
  font-weight: 600;
}
.product-config .disk {
  color: var(--ink2);
}
.product-config .ip {
  background: #fffbeb;
  border-color: rgba(201,169,110,0.3);
  color: #b45309;
  font-weight: 600;
}
.product-config .bandwidth {
  color: var(--ink2);
}
.product-config .bandwidth.red {
  background: #fef2f2;
  border-color: rgba(239,68,68,0.2);
  color: #dc2626;
  font-weight: 600;
}
.product-config .bandwidth.blue {
  background: #f0f9ff;
  border-color: rgba(6,182,212,0.2);
  color: #0891b2;
  font-weight: 600;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.product-price .original {
  font-size: 0.82rem;
  color: var(--ink2);
  text-decoration: line-through;
}
.product-price .current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-price .unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink2);
}
.product-price .badge-pill {
  padding: 0.25rem 0.7rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
}
.product-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.product-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.4);
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  margin: 2rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg3) 100%);
  border-radius: 28px;
  border: 1px solid var(--rule);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cta-desc {
  font-size: 1rem;
  color: var(--ink2);
  margin-bottom: 2.5rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cta-btn-secondary {
  background: var(--bg2);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.cta-btn-secondary:hover {
  border-color: var(--ink2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tg-icon {
  width: 18px; height: 18px;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}
.footer-notes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-notes .note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink2);
}
.footer-notes .note-icon {
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.footer-deadline {
  margin-bottom: 1rem;
}
.footer-deadline .deadline-label {
  font-size: 0.8rem;
  color: var(--ink2);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-deadline .deadline-date {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.footer-brand {
  font-size: 0.85rem;
  color: var(--ink2);
}
.footer-brand a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-title { font-size: 2.6rem; letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.4rem 1rem; }
  .countdown-bar { padding: 0.6rem 1rem; gap: 0.3rem; }
  .countdown-num { font-size: 1.4rem; }
  .countdown-item { padding: 0 0.5rem; }
  .countdown-label { font-size: 0.58rem; }

  .container { padding: 0.5rem 1rem 2rem; }

  .region-tabs { gap: 0.4rem; margin-bottom: 2rem; }
  .region-tab { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
  .region-tab .tab-flag { width: 18px; height: 13px; }

  .region-header { flex-wrap: wrap; gap: 0.75rem; padding: 1.25rem 1rem; }
  .region-icon { width: 40px; height: 40px; border-radius: 10px; }
  .region-name { font-size: 1.15rem; }
  .region-desc { font-size: 0.78rem; }
  .region-highlight { order: 3; width: 100%; text-align: center; }

  .activity-card { padding: 1.25rem 1rem; border-radius: 16px; }
  .activity-title { font-size: 1rem; }
  .activity-note { font-size: 0.75rem; }

  .product-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; }
  .product-price { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .product-config { width: 100%; }
  .product-config span { font-size: 0.76rem; padding: 0.3rem 0.6rem; }
  .product-price .current { font-size: 1.2rem; }
  .product-apply { padding: 0.35rem 0.75rem; font-size: 0.7rem; }

  .cta-section { padding: 3rem 1.25rem; margin: 1.5rem 0; border-radius: 20px; }
  .cta-title { font-size: 1.6rem; }
  .cta-desc { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 300px; justify-content: center; padding: 0.75rem 1.5rem; font-size: 0.88rem; }

  .footer { padding: 2rem 1rem 3rem; }
  .footer-notes { flex-direction: column; align-items: center; gap: 0.75rem; }
  .footer-notes .note { font-size: 0.78rem; }
  .footer-deadline .deadline-date { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .hero-badges { gap: 0.4rem; }
  .hero-badges .badge { font-size: 0.72rem; padding: 0.4rem 0.8rem; }

  .countdown-bar { padding: 0.5rem 0.75rem; }
  .countdown-num { font-size: 1.2rem; }
  .countdown-item { padding: 0 0.35rem; }

  .region-tabs { gap: 0.35rem; }
  .region-tab { padding: 0.45rem 0.8rem; font-size: 0.76rem; }
  .region-tab .tab-flag { width: 16px; height: 11px; }

  .region-header { padding: 1rem 0.85rem; border-radius: 14px; }
  .region-name { font-size: 1rem; }
  .region-icon { width: 36px; height: 36px; }

  .activity-card { padding: 1rem 0.75rem; border-radius: 14px; }
  .activity-header { gap: 0.5rem; }
  .activity-tag { font-size: 0.65rem; padding: 0.25rem 0.65rem; }
  .activity-title { font-size: 0.9rem; }

  .product-item { padding: 0.7rem 0.85rem; border-radius: 10px; }
  .product-config { gap: 0.35rem; }
  .product-config span { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .product-price .current { font-size: 1.1rem; }
  .product-price .original { font-size: 0.72rem; }
  .product-price .badge-pill { font-size: 0.62rem; padding: 0.2rem 0.55rem; }

  .cta-section { padding: 2rem 1rem; border-radius: 16px; }
  .cta-title { font-size: 1.35rem; }
  .cta-btn { padding: 0.65rem 1.25rem; font-size: 0.8rem; }

  .footer-deadline .deadline-date { font-size: 1.1rem; }
  .footer-brand { font-size: 0.75rem; }
}
