*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol', 'Noto Color Emoji';
}

body {
  margin: 0;
  line-height: inherit;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: #ffffff;
}

#root {
  min-height: 100vh;
  padding: 30px 0;
}

.lylmepage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

#lylme {
  background: transparent;
}

.header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.site-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin: 0;
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-title p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 4px 0 0 0;
  letter-spacing: 0.05em;
}

.date-bar {
  margin-bottom: 25px;
}

.header-card {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20l20 20H0L20 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.header-card .year {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
  position: relative;
}

.header-card .date {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.header-card .info {
  display: flex;
  gap: 12px;
  position: relative;
}

.header-card .info span {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.save-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.save-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.quote-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 35px 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 200px;
  font-weight: 900;
  color: var(--theme-color);
  opacity: 0.15;
  line-height: 1;
}

.quote-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-color) 0%, var(--theme-color-light) 50%, var(--theme-color) 100%);
}

.quote-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-color);
  margin: 0 0 15px 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-card p {
  font-size: 1.375rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-color) 0%, var(--theme-color-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

.card h3 {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  margin: 0 0 18px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card h3 i {
  font-style: normal;
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card h3 .more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--theme-color);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.card h3 .more:hover {
  background: var(--theme-color);
  color: white;
}

.card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 18px 0 12px 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card h4 .more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--theme-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.card h4 .more:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 18px;
}

ul li:last-child {
  border-bottom: none;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--theme-color);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

ul li:hover {
  padding-left: 26px;
  color: #0f172a;
}

ul li:hover::before {
  width: 10px;
  height: 10px;
  left: -2px;
}

ul li a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

ul li a:hover {
  color: var(--theme-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table tr {
  transition: all 0.3s ease;
}

.table tr:hover {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
}

.table td {
  padding: 12px 8px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}

.table tr:last-child td {
  border-bottom: none;
}

.hot.h1 {
  width: 35px;
  font-weight: 900;
  color: #94a3b8;
  font-size: 1rem;
}

.hot.h1:first-of-type { color: #ef4444; font-size: 1.125rem; }
.hot.h1:nth-of-type(2) { color: #f97316; }
.hot.h1:nth-of-type(3) { color: #eab308; }

.hot.h2 a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.hot.h2 a:hover {
  color: var(--theme-color);
}

.hot.h3 {
  color: #64748b;
  font-size: 0.75rem;
  min-width: 70px;
  text-align: right;
  font-weight: 600;
}

.huangli {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.huangli > div {
  padding: 14px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.huangli > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-color);
}

.huangli > div b {
  display: block;
  color: #64748b;
  font-size: 0.6875rem;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.huangli > div i {
  display: block;
  color: #1e293b;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.4;
}

#md,
#ymd {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
  border-color: transparent;
}

#md b,
#ymd b,
#md i,
#ymd i {
  color: white;
}

.yiji {
  grid-column: span 3;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  border-color: #86efac !important;
}

.yiji.ji {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
  border-color: #fca5a5 !important;
}

.yiji b,
.yiji i { color: #166534 !important; }
.yiji.ji b,
.yiji.ji i { color: #991b1b !important; }

.shen {
  grid-column: span 3;
}

.shen.xiong {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border-color: #fcd34d !important;
}

.shen.xiong b,
.shen.xiong i { color: #92400e !important; }

footer {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 0.9375rem;
  margin-top: 30px;
}

footer a {
  color: var(--theme-color);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.8;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.95);
  overflow: auto;
  backdrop-filter: blur(10px);
}

.modal-content {
  margin: 3% auto;
  display: block;
  max-width: 90%;
  max-height: 85%;
  border-radius: 24px;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
}

#caption {
  text-align: center;
  color: white;
  padding: 25px;
  font-size: 1.25rem;
  font-weight: 600;
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: white;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 1200px) {
  main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lylmepage {
    padding: 0 12px;
  }

  .header-section {
    gap: 20px;
  }

  .header-card {
    padding: 15px 25px;
    min-width: 160px;
  }

  .header-card .date {
    font-size: 2rem;
  }

  .header-card .year {
    font-size: 1.125rem;
  }

  main {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.125rem;
  }

  .quote-card {
    padding: 25px 20px;
  }

  .quote-card p {
    font-size: 1.125rem;
  }

  .huangli {
    grid-template-columns: repeat(2, 1fr);
  }

  .yiji,
  .shen {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .header-card .date {
    font-size: 1.75rem;
  }

  .header-card .info {
    flex-direction: column;
    gap: 8px;
  }

  .card h3,
  .card h4 {
    font-size: 1rem;
  }

  ul li {
    font-size: 0.875rem;
  }

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

  .huangli > div {
    grid-column: span 1 !important;
  }

  .table td {
    padding: 10px 6px;
    font-size: 0.8125rem;
  }

  .hot.h3 {
    min-width: 50px;
    font-size: 0.6875rem;
  }
}
