:root {
  --coca-red: #E30613;
  --coca-red-dark: #C90511;
  --coca-white: #FFFFFF;
  --coca-black: #000000;
  --coca-gold: #F7A800;
  --coca-gold-light: #FFD700;
  --gray-200: #E5E7EB;
  --gray-700: #374151;
  --text-muted: rgba(255, 255, 255, 0.8);
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.6);
  --overlay-black: rgba(0, 0, 0, 0.7);
  --overlay-red: rgba(227, 6, 19, 0.15);
  --border-light: rgba(227, 6, 19, 0.3);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--coca-white);
  color: var(--coca-black);
}

img, svg, video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 辅助类 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

.pointer-events-none {
  pointer-events: none;
}

/* 页面容器 */
.page-wrapper {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem;
}

/* 头部 */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-title {
  background-color: var(--coca-red);
  padding: 1rem 0.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.header-title h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--coca-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.header-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
}

/* 主图区域 */
.hero {
  margin-bottom: 2.5rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--coca-red);
  transition: transform 0.3s ease;
}

.hero-image-wrapper:hover {
  transform: scale(1.02);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(227, 6, 19, 0.15), transparent);
}

.hero-content {
  padding: 1.5rem;
  color: var(--coca-white);
}

.hero-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--coca-gold);
}

.hero-desc {
  font-size: 0.875rem;
  opacity: 0.95;
  max-width: 42rem;
}

.hero-link {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 65%;
  height: 30%;
  z-index: 10;
  border-radius: 0.125rem;
}

.hero-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 168, 0, 0.7);
}

.hero-link-badge {
  position: absolute;
  bottom: -0.25rem;
  right: 0.25rem;
  pointer-events: none;
  background-color: rgba(227, 6, 19, 0.9);
  color: var(--coca-white);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.hero-link:hover .hero-link-badge,
.hero-link:focus .hero-link-badge {
  opacity: 1;
}

/* 信息提示区 */
.notice {
  background-color: var(--coca-red);
  color: var(--coca-white);
  padding: 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.notice-link {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
}

.notice-link:hover,
.notice-link:focus {
  text-decoration: underline;
}

/* 分类区域 */
.categories {
  margin-bottom: 3rem;
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--coca-red);
  margin-bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: var(--coca-gold);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background-color: var(--coca-white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: transform 0.3s ease, border-color 0.2s ease, opacity 0.5s ease;
}

.category-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover,
.category-card.visible:hover {
  transform: translateY(0) scale(1.02);
  border-color: var(--coca-red);
}

.category-card-image {
  height: 12rem;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.05);
}

.category-card-body {
  padding: 1rem;
}

.category-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--coca-red);
  margin-bottom: 0.5rem;
}

.category-card-text {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* 快速访问按钮 */
.cta {
  text-align: center;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--coca-red);
  color: var(--coca-white);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--coca-red-dark);
  box-shadow: var(--shadow-xl);
  transform: translateY(-0.25rem);
}

/* 页脚 */
.site-footer {
  background-color: var(--coca-black);
  color: var(--coca-white);
  padding: 2rem 1rem;
  border-radius: 0.5rem;
}

.footer-inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
    margin-bottom: 0;
  }
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  font-size: 1.25rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  color: var(--coca-gold);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-black);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 36rem;
  background-color: var(--coca-white);
  border-radius: 0.5rem;
  border: 4px solid var(--coca-red);
  box-shadow: var(--shadow-2xl);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal.open .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  background-color: var(--coca-red);
  padding: 1rem;
  text-align: center;
}

.modal-header h3 {
  color: var(--coca-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  text-align: center;
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--coca-red);
}

.modal-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--coca-black);
  margin-bottom: 0.5rem;
}

.modal-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.modal-btn {
  background-color: var(--coca-red);
  color: var(--coca-white);
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.modal-btn:hover,
.modal-btn:focus {
  background-color: var(--coca-red-dark);
  outline: none;
  box-shadow: 0 0 0 2px var(--coca-gold);
}

/* 弹窗内链接 */
.coca-link {
  color: var(--coca-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease, text-underline-offset 0.2s ease;
  white-space: nowrap;
}

.coca-link:hover,
.coca-link:focus {
  color: var(--coca-red-dark);
  text-underline-offset: 5px;
}

.coca-link svg {
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.25em;
  vertical-align: middle;
}

/* 图标 */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}

.icon-lg {
  width: 1.25em;
  height: 1.25em;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

.btn-primary .icon,
.hero-link-badge .icon {
  margin-right: 0.5em;
}

/* 响应式文字 */
@media (min-width: 768px) {
  .hero-title {
    font-size: 1.25rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.875rem;
  }
}

/* 图片淡入动画 */
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}
