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

body {
  font-family: 'Roboto', sans-serif;
  background: url('assets/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: brightness(0.8);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* 左侧：时钟 + 名称 */
.left-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: absolute;
  top: 20%;
  left: 10%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.clock {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #fff;
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.clock::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 40px;
  background: red;
  transform-origin: bottom center;
  transform: rotate(0deg);
  animation: clock-second 1s linear infinite;
}

.clock::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 30px;
  background: white;
  transform-origin: bottom center;
  transform: rotate(0deg);
  animation: clock-minute 60s linear infinite;
}

@keyframes clock-second {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes clock-minute {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.site-name {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  letter-spacing: 1px;
  margin-left: 1rem;
  color: white;
}

/* 引用框 */
.quote-box {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.quote-box blockquote {
  font-size: 1.2rem;
  line-height: 1.6;
}

.quote-box p:first-child {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.quote-box p:last-child {
  font-size: 0.9rem;
  opacity: 0.8;
}

.quote-box::before,
.quote-box::after {
  content: '"';
  font-size: 3rem;
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
}

.quote-box::before {
  top: -1rem;
  left: -1rem;
}

.quote-box::after {
  bottom: -1rem;
  right: -1rem;
}

/* 右上角卡片 */
.right-top {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: absolute;
  top: 15%;
  right: 10%;
  transform: translate(0, -50%);
  z-index: 1;
}

.card {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 1.2rem;
  width: 300px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card p {
  margin: 0.5rem 0;
  text-align: center;
}

.card .source {
  font-style: italic;
  margin-top: 1rem;
}

.time-card {
  text-align: center;
}

.time-card #time {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
  font-family: 'Courier New', monospace;
}

/* 快捷链接 */
.links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  position: absolute;
  bottom: 30%;
  right: 10%;
  transform: translate(0, -50%);
  z-index: 1;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.link-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* 社交图标 */
.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: absolute;
  bottom: 10%;
  left: 10%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

/* 版权 */
.footer {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 2rem;
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}