* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}
body {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  min-height: 100vh;
  color: #333
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,.1)
}
.header {
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100
}
.header-content {
  padding: 0 2rem
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem
}
.progress-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: center
}
.total-progress {
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap
}
.visited-count {
  color: #4ade80
}
.progress-bar {
  width: 150px;
  height: 8px;
  background: rgba(255,255,255,.3);
  border-radius: 4px;
  overflow: hidden
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg,#4ade80,#22c55e,#16a34a);
  border-radius: 4px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
  width: 0%;
  position: relative;
  overflow: hidden
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
  animation: 2s infinite shimmer
}
@keyframes shimmer {
  0% {
    left: -100%
  }
  100% {
    left: 100%
  }
}
.milestone-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1)
}
.milestone-notification.show {
  transform: translateX(0)
}
.milestone-content {
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  min-width: 300px
}
.milestone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  flex-shrink: 0
}
.milestone-icon i {
  font-size: 1.5rem;
  color: gold;
  animation: .8s ease-in-out crownBounce
}
.milestone-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem
}
.milestone-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: gold
}
.milestone-subtitle {
  font-size: .9rem;
  opacity: .9
}
.title-change {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .2rem
}
.new-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff
}
.title-separator {
  color: rgba(255,255,255,.6);
  font-weight: 300
}
.new-title-en {
  font-size: .9rem;
  font-style: italic;
  color: rgba(255,255,255,.8)
}
@keyframes crownBounce {
  0%,
  100%,
  20%,
  50%,
  80% {
    transform: translateY(0) scale(1)
  }
  40% {
    transform: translateY(-8px) scale(1.1)
  }
  60% {
    transform: translateY(-4px) scale(1.05)
  }
}
@keyframes bounce {
  0%,
  100%,
  20%,
  50%,
  80% {
    transform: translateY(0)
  }
  40% {
    transform: translateY(-10px)
  }
  60% {
    transform: translateY(-5px)
  }
}
.user-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .4rem .8rem;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  transition: .3s;
  white-space: nowrap;
  cursor: pointer
}
.user-title:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15)
}
.user-title:active {
  transform: translateY(0)
}
.title-text {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3)
}
.title-subtitle {
  font-size: .7rem;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  font-style: italic
}
.title-changing {
  animation: .5s ease-in-out titleChange
}
@keyframes titleChange {
  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }
  50% {
    transform: scale(1.1);
    opacity: .7;
    color: gold
  }
}
.user-section {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: .5rem;
  border-radius: 4px;
  transition: .3s;
  position: relative
}
.user-section:hover {
  background: rgba(255,255,255,.1)
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10
}
.user-name {
  color: #fff;
  font-size: .9rem;
  font-weight: 500
}
.search-section {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0
}
.search-box {
  position: relative;
  margin-bottom: 1.5rem
}
.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
  z-index: 2
}
.search-box input {
  width: 100%;
  padding: .875rem 3rem .875rem 2.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  outline: 0;
  transition: .3s;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.05)
}
.search-box input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102,126,234,.1),0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-1px);
  animation: 2s ease-in-out infinite searchGlow
}
.clear-search {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: .5rem;
  border-radius: 8px;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  z-index: 2
}
.clear-search:hover {
  background: #e2e8f0;
  color: #475569;
  transform: translateY(-50%) scale(1.05);
  animation: 1s ease-in-out infinite clearPulse
}
.clear-search:active {
  transform: translateY(-50%) scale(.95)
}
.clear-search i {
  font-size: 1rem
}
.search-box.has-content .clear-search {
  opacity: 1;
  visibility: visible
}
.search-box:not(.has-content) .clear-search {
  opacity: 0;
  visibility: hidden
}
.search-box input::placeholder {
  color: #9ca3af;
  font-style: italic;
  transition: color .3s
}
.search-box input:focus::placeholder {
  color: #cbd5e1
}
.filter-select option {
  padding: .5rem
}
.filter-select:focus,
.search-box input:focus {
  outline: 0
}
@keyframes searchGlow {
  0%,
  100% {
    box-shadow: 0 2px 4px rgba(0,0,0,.05)
  }
  50% {
    box-shadow: 0 4px 12px rgba(102,126,234,.15)
  }
}
@keyframes clearPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1)
  }
  50% {
    transform: translateY(-50%) scale(1.1)
  }
}
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem
}
.filter-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap
}
.filter-select {
  padding: .75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: .95rem;
  outline: 0;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  min-width: 140px;
  flex: 1
}
.filter-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,.1),0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-1px)
}
.filter-select:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px)
}
.main-content {
  padding: 2rem 2rem 5rem;
  min-height: 60vh
}
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #64748b;
  gap: 1rem
}
.loading i {
  font-size: 2rem;
  color: #667eea
}
.region-item {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1)
}
.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  cursor: pointer;
  transition: background-color .3s;
  min-height: 60px
}
.region-header:hover {
  background: #f1f5f9
}
.region-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0
}
.region-toggle {
  transition: transform .3s;
  color: #64748b;
  flex-shrink: 0
}
.region-item.expanded .region-toggle {
  transform: rotate(90deg)
}
.region-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e293b
}
.region-count {
  background: #667eea;
  color: #fff;
  padding: .25rem .5rem;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 500;
  flex-shrink: 0
}
.region-progress {
  font-size: .9rem;
  color: #64748b;
  flex-shrink: 0
}
.region-visited {
  color: #22c55e;
  font-weight: 600
}
.region-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s
}
.region-item.expanded .region-content {
  max-height: none
}
.country-item {
  border-bottom: 1px solid #f1f5f9
}
.country-item:last-child {
  border-bottom: none
}
.country-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  background: #fff;
  cursor: pointer;
  transition: background-color .3s
}
.country-header:hover {
  background: #f8fafc
}
.country-info {
  display: flex;
  align-items: center;
  gap: .75rem
}
.country-toggle {
  transition: transform .3s;
  color: #64748b;
  font-size: .9rem
}
.country-item.expanded .country-toggle {
  transform: rotate(90deg)
}
.country-name {
  font-weight: 500;
  color: #374151
}
.country-count {
  background: #e2e8f0;
  color: #475569;
  padding: .2rem .5rem;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 500
}
.country-actions {
  display: flex;
  gap: .5rem
}
.country-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s
}
.country-item.expanded .country-content {
  max-height: none
}
.heritage-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color .3s;
  min-height: fit-content;
  height: auto;
  animation: .3s fadeIn
}
.heritage-item:hover {
  background: #f8fafc
}
.heritage-item:last-child {
  border-bottom: none
}
.heritage-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  height: auto;
  min-height: fit-content
}
.heritage-checkbox {
  position: relative;
  width: 20px;
  height: 20px
}
.heritage-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%
}
.checkbox-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  transition: .3s
}
.heritage-checkbox-input:checked + .checkbox-icon {
  background: #22c55e;
  border-color: #22c55e
}
.heritage-details {
  flex: 1;
  min-width: 0;
  overflow: visible;
  height: auto;
  max-height: none
}
.heritage-basic-info {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .5rem;
  flex-wrap: wrap
}
.heritage-meta {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  flex-direction: row;
  margin-top: .25rem
}
.heritage-name-link {
  font-weight: 500;
  color: #667eea;
  text-decoration: none;
  transition: color .3s;
  line-height: 1.2;
  display: inline;
  margin-bottom: 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: .9rem;
  vertical-align: baseline
}
.heritage-name-link:hover {
  color: #5a67d8;
  text-decoration: underline
}
.heritage-description {
  font-size: .75rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: .3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-overflow: unset;
  display: block;
  height: auto;
  max-height: none
}
.heritage-description p {
  margin: 0 0 .3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-overflow: unset
}
.heritage-description p:last-child {
  margin-bottom: 0
}
.heritage-category {
  padding: .15rem .4rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .75rem;
  white-space: nowrap;
  vertical-align: baseline
}
.heritage-category.Cultural {
  background: #fef3c7;
  color: #92400e
}
.heritage-category.Natural {
  background: #d1fae5;
  color: #065f46
}
.heritage-category.Mixed {
  background: #e0e7ff;
  color: #3730a3
}
.heritage-area,
.heritage-year {
  font-size: .75rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: baseline
}
.footer {
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-top: 1px solid #e2e8f0;
  position: sticky;
  bottom: 0;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0,0,0,.1)
}
.stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  flex: 1
}
.stat-label {
  font-size: .8rem;
  color: #64748b;
  font-weight: 500
}
.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b
}
.share-section {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.2)
}
.share-btn {
  background: linear-gradient(135deg,#ff6b6b 0,#ee5a24 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 4px 15px rgba(255,107,107,.3);
  display: inline-flex;
  align-items: center;
  gap: 8px
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,.4)
}
.share-btn:active {
  transform: translateY(0)
}
.poster-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column
}
.poster-container {
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 0
}
#posterCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2)
}
.poster-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin-top: auto
}
.action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center
}
.action-btn.primary {
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102,126,234,.3)
}
.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,.4)
}
.action-btn.secondary {
  background: linear-gradient(135deg,#f093fb 0,#f5576c 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(240,147,251,.3)
}
.action-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,147,251,.4)
}
.action-btn.tertiary {
  background: linear-gradient(135deg,#4facfe 0,#00f2fe 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,172,254,.3)
}
.action-btn.tertiary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,172,254,.4)
}
.action-btn:active {
  transform: translateY(0)
}
@media (max-width:768px) {
  .header-content {
    padding: 0 1rem
  }
  .header-top {
    margin-bottom: .75rem
  }
  .logo {
    font-size: 1.25rem
  }
  .progress-info {
    gap: .8rem
  }
  .progress-bar {
    width: 120px
  }
  .user-title {
    padding: .3rem .6rem
  }
  .title-text {
    font-size: .75rem
  }
  .title-subtitle {
    font-size: .65rem
  }
  .milestone-notification {
    top: 15px;
    right: 15px;
    left: 15px
  }
  .milestone-content {
    padding: 1rem 1.2rem;
    min-width: auto;
    gap: .8rem
  }
  .milestone-icon {
    width: 40px;
    height: 40px
  }
  .milestone-icon i {
    font-size: 1.2rem
  }
  .milestone-title {
    font-size: 1rem
  }
  .milestone-subtitle {
    font-size: .85rem
  }
  .new-title {
    font-size: .9rem
  }
  .new-title-en {
    font-size: .8rem
  }
  .search-section {
    padding: 1rem
  }
  .search-box input {
    padding: .875rem 3.5rem .875rem 2.75rem;
    font-size: 1rem;
    border-radius: 12px
  }
  .clear-search {
    min-width: 40px;
    min-height: 40px;
    padding: .6rem
  }
  .clear-search i {
    font-size: 1.1rem
  }
  .filter-row {
    flex-direction: row;
    gap: .75rem
  }
  .filter-select {
    width: 50%;
    padding: .875rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    min-width: auto;
    flex: 1
  }
  .main-content {
    padding: 1rem 1rem 4rem
  }
  .footer {
    padding: .5rem .75rem
  }
  .stats {
    flex-direction: row;
    gap: .3rem
  }
  .stat-item {
    gap: .15rem
  }
  .stat-label {
    font-size: .7rem
  }
  .stat-value {
    font-size: 1rem
  }
  .country-header,
  .region-header {
    padding: .75rem 1rem
  }
  .region-name {
    font-size: 1rem
  }
  .region-count {
    font-size: .75rem;
    padding: .2rem .4rem
  }
  .region-progress {
    font-size: .8rem
  }
  .heritage-item {
    padding: .6rem 1rem
  }
  .heritage-checkbox {
    width: 24px;
    height: 24px
  }
  .checkbox-icon {
    width: 24px;
    height: 24px;
    font-size: .9rem
  }
  .heritage-name-link {
    font-size: .9rem;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: baseline
  }
  .heritage-basic-info {
    gap: .5rem
  }
  .heritage-area,
  .heritage-category,
  .heritage-year {
    font-size: .8rem;
    white-space: nowrap;
    vertical-align: baseline
  }
  .heritage-meta {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    margin-top: .2rem;
    gap: .4rem
  }
  .heritage-description {
    font-size: .8rem;
    line-height: 1.5;
    margin-bottom: .4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal
  }
}
@media (max-width:480px) {
  .header-content {
    padding: 0 .75rem
  }
  .search-section {
    padding: .75rem
  }
  .search-box input {
    padding: .875rem 3.5rem .875rem 2.75rem;
    font-size: 1rem;
    border-radius: 12px
  }
  .clear-search {
    min-width: 42px;
    min-height: 42px;
    padding: .7rem
  }
  .clear-search i {
    font-size: 1.2rem
  }
  .filter-row {
    flex-direction: row;
    gap: .5rem
  }
  .filter-select {
    width: 50%;
    padding: .875rem .75rem;
    font-size: .9rem;
    border-radius: 12px;
    flex: 1
  }
  .main-content {
    padding: .75rem .75rem 3.5rem
  }
  .country-header,
  .region-header {
    padding: .5rem .75rem
  }
  .region-name {
    font-size: .9rem
  }
  .region-count {
    font-size: .7rem;
    padding: .15rem .3rem
  }
  .region-progress {
    font-size: .75rem
  }
  .heritage-item {
    padding: .4rem .75rem
  }
  .heritage-basic-info {
    gap: .3rem
  }
  .heritage-meta {
    gap: .2rem;
    gap: .25rem
  }
  .heritage-basic-info {
    gap: .4rem
  }
  .heritage-name-link {
    font-size: .85rem;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: baseline
  }
  .heritage-category {
    padding: .1rem .3rem;
    font-size: .65rem;
    vertical-align: baseline
  }
  .heritage-area,
  .heritage-year {
    font-size: .65rem;
    vertical-align: baseline
  }
  .heritage-description {
    font-size: .75rem;
    line-height: 1.6;
    margin-bottom: .3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal
  }
  .logo {
    font-size: 1.1rem
  }
  .progress-info {
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center
  }
  .progress-bar {
    width: 100px
  }
  .total-progress {
    font-size: 1rem
  }
  .user-title {
    padding: .25rem .5rem
  }
  .title-text {
    font-size: .7rem
  }
  .title-subtitle {
    font-size: .6rem
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
.hidden {
  display: none!important
}
.heritage-item.visited {
  background: #f0fdf4
}
.heritage-item.visited .heritage-name {
  color: #166534
}
.heritage-checkbox,
.heritage-checkbox-input {
  cursor: pointer;
  touch-action: manipulation
}
.country-header,
.heritage-item,
.region-header {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none
}
.main-content {
  -webkit-overflow-scrolling: touch
}
.heritage-checkbox:active {
  transform: scale(.95);
  transition: transform .1s
}
.no-search-results {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 2rem;
  background: linear-gradient(135deg,#f8fafc 0,#e2e8f0 100%);
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,.05)
}
.no-results-content {
  text-align: center;
  max-width: 500px
}
.no-results-icon {
  font-size: 4rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  animation: 3s ease-in-out infinite float
}
.no-results-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .5rem
}
.no-results-description {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6
}
.no-results-suggestions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  transition: .3s;
  max-width: 300px;
  width: 100%
}
.suggestion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.1)
}
.suggestion-item i {
  color: #667eea;
  font-size: 1.1rem;
  width: 20px;
  text-align: center
}
.suggestion-item span {
  color: #475569;
  font-size: .9rem;
  font-weight: 500
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0)
  }
  50% {
    transform: translateY(-10px)
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  backdrop-filter: blur(5px)
}
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  animation: .3s modalSlideIn;
  display: flex;
  flex-direction: column
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(.9)
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  position: relative;
  z-index: 5
}
.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600
}
.modal-close {
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .5rem;
  border-radius: 50%;
  transition: .3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none
}
.modal-close:hover {
  background-color: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.1)
}
.modal-close:active {
  transform: scale(.95)
}
.modal-close i {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 2
}
@supports (-webkit-appearance:none) {
  .modal-close {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent
  }
  .modal-close:focus {
    outline: rgba(255,255,255,.5) solid 2px;
    outline-offset: 2px
  }
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .modal-close {
    background: rgba(255,255,255,.2)!important;
    border: 2px solid rgba(255,255,255,.5)!important
  }
  .modal-close i {
    color: #fff!important;
    font-weight: 700!important;
    text-shadow: 0 2px 4px rgba(0,0,0,.5)!important
  }
  .modal-close:hover {
    background: rgba(255,255,255,.4)!important;
    border-color: rgba(255,255,255,.7)!important
  }
}
.modal-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  background: #fff;
  transform: translate(-50%,-50%) rotate(45deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  border-radius: 1px
}
.modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  background: #fff;
  transform: translate(-50%,-50%) rotate(-45deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  border-radius: 1px
}
.modal-close::after,
.modal-close::before {
  display: none
}
.modal-close.no-fontawesome::after,
.modal-close.no-fontawesome::before {
  display: block
}
.modal-body {
  padding: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column
}
.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: #6b7280
}
.modal-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea
}
.modal-content-wrapper {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 200px)
}
.heritage-image-container {
  margin-bottom: 2rem;
  text-align: center
}
.heritage-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  object-fit: cover
}
.heritage-intro {
  line-height: 1.8;
  color: #374151;
  font-size: 1rem
}
.heritage-intro h1,
.heritage-intro h2,
.heritage-intro h3 {
  color: #1f2937;
  margin-bottom: 1rem
}
.heritage-intro p {
  margin-bottom: 1rem
}
.heritage-intro img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0
}
.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  text-align: center
}
.official-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: .3s
}
.official-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102,126,234,.3)
}
.auth-modal-content {
  max-width: 400px;
  width: 90%
}
.auth-form {
  padding: 2rem
}
.form-group {
  margin-bottom: 1.5rem
}
.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
  color: #374151
}
.form-group input {
  width: 100%;
  padding: .75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color .3s
}
.form-group input:focus {
  outline: 0;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,.1)
}
.auth-btn {
  width: 100%;
  padding: .75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem
}
.auth-btn.primary {
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff
}
.auth-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102,126,234,.3)
}
.auth-btn.google {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db
}
.auth-btn.google:hover {
  background: #f9fafb;
  border-color: #9ca3af
}
.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb
}
.auth-divider span {
  background: #fff;
  padding: 0 1rem;
  color: #6b7280;
  font-size: .9rem
}
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: .9rem
}
.auth-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500
}
.auth-switch a:hover {
  text-decoration: underline
}
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  z-index: 1000;
  min-width: 150px;
  margin-top: .5rem
}
.user-menu-item {
  padding: .75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #374151;
  transition: background-color .2s
}
.user-menu-item:hover {
  background-color: #f3f4f6
}
.user-menu-item i {
  font-size: .9rem;
  color: #6b7280
}
@media (max-width:768px) {
  .no-search-results {
    min-height: 300px;
    padding: 1.5rem;
    margin: 1rem 0
  }
  .no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem
  }
  .no-results-title {
    font-size: 1.25rem
  }
  .no-results-description {
    font-size: .9rem;
    margin-bottom: 1.5rem
  }
  .suggestion-item {
    padding: .5rem 1rem;
    max-width: 250px
  }
  .suggestion-item span {
    font-size: .8rem
  }
  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh
  }
  .modal-header {
    padding: 1rem 1.5rem
  }
  .modal-header h2 {
    font-size: 1.25rem
  }
  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.4);
    -webkit-tap-highlight-color: transparent
  }
  .modal-close:hover {
    background-color: rgba(255,255,255,.4);
    border-color: rgba(255,255,255,.6)
  }
  .modal-content-wrapper {
    padding: 1.5rem;
    max-height: calc(85vh - 180px)
  }
  .heritage-image {
    max-height: 250px
  }
  .modal-footer {
    padding: 1rem 1.5rem
  }
  .auth-form {
    padding: 1.5rem
  }
  .auth-modal-content {
    width: 95%
  }
  .official-link {
    padding: .6rem 1.2rem;
    font-size: .9rem
  }
}
.progress-modal-content {
  max-width: 500px;
  text-align: center
}
.progress-container {
  padding: 3rem 2rem
}
.progress-text {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #6b7280
}
.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#667eea,#764ba2);
  border-radius: 6px;
  transition: width .3s;
  width: 0%
}
.progress-percentage {
  font-size: 1.2rem;
  font-weight: 600;
  color: #667eea
}
@media (max-width:768px) {
  .progress-modal-content {
    width: 95%;
    margin: 15% auto
  }
  .progress-container {
    padding: 2rem 1.5rem
  }
  .progress-text {
    font-size: 1rem;
    margin-bottom: 1.5rem
  }
  .progress-bar-container {
    height: 10px;
    margin-bottom: .8rem
  }
  .progress-percentage {
    font-size: 1.1rem
  }
}
.login-prompt {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  z-index: 1000;
  max-width: 350px;
  animation: .3s ease-out slideInRight;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2)
}
.login-prompt-content {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap
}
.login-prompt i {
  font-size: 1.2rem;
  color: #4ade80;
  flex-shrink: 0
}
.login-prompt span {
  flex: 1;
  font-size: .95rem;
  line-height: 1.4
}
.login-prompt-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
  white-space: nowrap
}
.login-prompt-btn:hover {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px)
}
.login-prompt-close {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem
}
.login-prompt-close:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.4);
  transform: scale(1.1)
}
.corner-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  font-size: .95rem;
  z-index: 1000;
  max-width: 300px;
  animation: .3s ease-out slideInUp;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(10px)
}
.corner-message.success {
  background: linear-gradient(135deg,#10b981 0,#059669 100%);
  border: 1px solid rgba(16,185,129,.3)
}
.corner-message.error {
  background: linear-gradient(135deg,#ef4444 0,#dc2626 100%);
  border: 1px solid rgba(239,68,68,.3)
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0
  }
  to {
    transform: translateX(0);
    opacity: 1
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0
  }
  to {
    transform: translateY(0);
    opacity: 1
  }
}
@media (max-width:768px) {
  .login-prompt {
    top: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
    padding: 1rem
  }
  .login-prompt-content {
    gap: .6rem
  }
  .login-prompt span {
    font-size: .9rem
  }
  .login-prompt-btn {
    padding: .4rem .8rem;
    font-size: .85rem
  }
  .login-prompt-close {
    width: 20px;
    height: 20px;
    font-size: .7rem
  }
  .corner-message {
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
    padding: 1rem;
    font-size: .9rem
  }
}
.lang-toggle-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 600;
  margin-right: .5rem;
  flex-shrink: 0
}
.lang-toggle-btn:hover {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.05)
}
.lang-text {
  font-size: .9rem;
  font-weight: 600
}
.faq-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: .5rem;
  flex-shrink: 0
}
.faq-btn:hover {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.05)
}
.faq-modal-content {
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column
}
.faq-container {
  overflow-y: auto;
  padding: 0
}
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  transition: .2s
}
.faq-item:last-child {
  border-bottom: none
}
.faq-question {
  padding: 1.5rem 1.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .2s;
  background: #f9fafb;
  border-radius: 8px;
  margin: .5rem 0
}
.faq-question:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.1)
}
.faq-question-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #374151;
  flex: 1;
  line-height: 1.4
}
.faq-icon {
  color: #6b7280;
  transition: transform .3s;
  font-size: .9rem;
  margin-left: 1rem;
  flex-shrink: 0
}
.faq-item.active .faq-icon {
  transform: rotate(180deg)
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s,padding .3s;
  background: #fff;
  border-radius: 0 0 8px 8px
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem
}
.faq-answer-content {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem
}
.faq-answer-content strong {
  color: #1f2937;
  font-weight: 600
}
.faq-answer-content br {
  margin: .5rem 0
}
@media (max-width:768px) {
  .faq-modal-content {
    max-width: 95vw;
    max-height: 85vh;
    margin: 1rem
  }
  .faq-question {
    padding: 1rem;
    margin: .3rem 0
  }
  .faq-question-text {
    font-size: 1rem;
    line-height: 1.3
  }
  .faq-icon {
    font-size: .8rem;
    margin-left: .5rem
  }
  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem
  }
  .faq-answer-content {
    font-size: .95rem;
    line-height: 1.5
  }
  .lang-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: .8rem;
    margin-right: .3rem
  }
  .faq-btn {
    width: 32px;
    height: 32px;
    font-size: .9rem;
    margin-right: .3rem
  }
}
@media (max-width:480px) {
  .faq-question {
    padding: .8rem
  }
  .faq-question-text {
    font-size: .95rem
  }
  .faq-answer-content {
    font-size: .9rem
  }
}
.title-modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden
}
.title-modal-content .modal-body {
  overflow-y: auto!important;
  overflow-x: hidden!important;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding: 0
}
.title-info-container {
  padding: 1rem
}
.title-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #667eea
}
.title-table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  margin-bottom: 1rem
}
.title-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff
}
.title-table thead {
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff
}
.title-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px
}
.title-table td {
  padding: .9rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  transition: .2s
}
.title-table tbody tr {
  transition: .2s
}
.title-table tbody tr:hover {
  background: #f9fafb;
  transform: scale(1.01)
}
.title-table tbody tr:last-child td {
  border-bottom: none
}
.title-table tbody tr.current-title {
  background: linear-gradient(135deg,rgba(102,126,234,.15) 0,rgba(118,75,162,.15) 100%);
  font-weight: 600;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 8px rgba(102,126,234,.2)
}
.title-table tbody tr.current-title td {
  color: #667eea
}
.title-table tbody tr.current-title:hover {
  background: linear-gradient(135deg,rgba(102,126,234,.25) 0,rgba(118,75,162,.25) 100%)
}
.title-table .level-cell {
  font-weight: 600;
  color: #374151;
  font-size: 1.1rem
}
.title-table tr.current-title .level-cell {
  color: #667eea
}
.title-table .title-name-zh {
  font-weight: 500;
  color: #1f2937
}
.title-table .title-name-en {
  font-weight: 500;
  color: #4b5563;
  font-style: italic
}
.title-table tr.current-title .title-name-en,
.title-table tr.current-title .title-name-zh {
  color: #667eea;
  font-weight: 600
}
.title-table .range-cell {
  color: #6b7280;
  font-family: monospace;
  font-size: .95rem
}
.title-table tr.current-title .range-cell {
  color: #667eea;
  font-weight: 600
}
.title-table tbody tr.locked-title {
  opacity: .5
}
.title-table tbody tr.locked-title td {
  color: #9ca3af
}
@media (max-width:768px) {
  .title-modal-content {
    max-width: 95vw;
    width: 95%;
    max-height: 80vh
  }
  .title-info-container {
    padding: .8rem
  }
  .title-table td,
  .title-table th {
    padding: .7rem .4rem;
    font-size: .8rem
  }
  .title-table .level-cell {
    font-size: .9rem
  }
  .title-description {
    font-size: .85rem;
    padding: .7rem;
    margin-bottom: 1rem
  }
}
@media (max-width:480px) {
  .title-modal-content {
    max-width: 98vw;
    width: 98%;
    max-height: 75vh;
    margin: 1rem .5rem
  }
  .title-info-container {
    padding: .5rem
  }
  .title-table td,
  .title-table th {
    padding: .5rem .2rem;
    font-size: .7rem
  }
  .title-table .level-cell {
    font-size: .8rem;
    padding: .5rem .3rem
  }
  .title-table .range-cell,
  .title-table .title-name-en,
  .title-table .title-name-zh {
    font-size: .7rem
  }
  .title-description {
    font-size: .75rem;
    padding: .6rem;
    margin-bottom: .8rem;
    line-height: 1.4
  }
  .title-table-container {
    margin-bottom: .5rem
  }
}