@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Ma+Shan+Zheng&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f8bbd0;
  --bg: #ffffff;
  --bg-soft: #fff5f8;
  --text: #333333;
  --text-light: #888888;
  --shadow: 0 4px 20px rgba(233, 30, 99, 0.12);
  --shadow-hover: 0 8px 30px rgba(233, 30, 99, 0.25);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul {
  list-style: none;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 28px;
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 4px 16px;
  width: 240px;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}

.header-search button {
  border: none;
  background: var(--primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 15px;
}

/* Banner */
.banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(233,30,99,0.85) 0%, rgba(233,30,99,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  color: #fff;
}

.banner-overlay h2 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 48px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-overlay p {
  font-size: 17px;
  max-width: 500px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.banner-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: fit-content;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Horizontal Scroll Cards */
.scroll-section {
  margin-bottom: 48px;
}

.scroll-wrapper {
  position: relative;
}

.scroll-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-cards::-webkit-scrollbar {
  height: 6px;
}

.scroll-cards::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 3px;
}

.scroll-cards::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.scroll-cards::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Card */
.card {
  flex: 0 0 200px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

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

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

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #ffd700;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
}

/* Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.grid-cards .card {
  flex: none;
}

/* Category Entry */
.category-section {
  margin-bottom: 48px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.category-item {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-item::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(233,30,99,0.3);
}

.category-item .cat-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.category-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.category-item p {
  font-size: 13px;
  opacity: 0.85;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-tab {
  padding: 8px 20px;
  border: 2px solid var(--primary-light);
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h4 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 500;
}

/* Variety Section */
.variety-section {
  margin-bottom: 48px;
}

.variety-block {
  margin-bottom: 40px;
}

/* Rank Page */
.rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 3px solid var(--bg-soft);
}

.rank-tab {
  padding: 12px 32px;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.rank-tab.active {
  color: var(--primary);
  font-weight: 700;
}

.rank-tab.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.rank-num {
  width: 32px;
  height: 32px;
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: #fff;
}

.rank-item:nth-child(2) .rank-num {
  background: linear-gradient(135deg, #ffa94d, #ff922b);
  color: #fff;
}

.rank-item:nth-child(3) .rank-num {
  background: linear-gradient(135deg, #ffd43b, #fab005);
  color: #fff;
}

.rank-cover {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-info p {
  font-size: 13px;
  color: var(--text-light);
}

.rank-score {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px;
  padding: 60px 48px;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
}

.about-hero h1 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 42px;
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.about-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.about-card p {
  color: var(--text-light);
  line-height: 1.8;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-bottom: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-content {
  background: var(--bg-soft);
  padding: 20px 24px;
  border-radius: var(--radius);
}

.timeline-content h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-light);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--primary-light);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
  background: var(--bg-soft);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233,30,99,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,99,0.4);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 36px;
  border-radius: var(--radius);
  color: #fff;
}

.contact-info h2 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 28px;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  font-size: 24px;
  background: rgba(255,255,255,0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-info-item p {
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.6;
}

.copyright {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.copyright h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-col a {
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-brand {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-search {
    width: 180px;
  }

  .banner img {
    height: 320px;
  }

  .banner-overlay {
    padding: 0 28px;
  }

  .banner-overlay h2 {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 24px 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .header-search {
    display: none;
  }

  .banner img {
    height: 240px;
  }

  .banner-overlay h2 {
    font-size: 24px;
  }

  .banner-overlay p {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .card {
    flex: 0 0 150px;
  }

  .card-img {
    height: 200px;
  }

  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-hero {
    padding: 36px 24px;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .rank-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rank-score {
    font-size: 16px;
  }

  .contact-form,
  .contact-info {
    padding: 24px;
  }
}