﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
}

.container > header {
  width: 100%;
  text-align: center;
  font-size: 22px;
  padding: 20px 15px 25px 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.container > header span {
  color: #4ade80;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.container main {
  width: 100%;
}

.container main > .pic {
  width: 100%;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.container main > .pic img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.container main > .pic img:hover {
  transform: scale(1.02);
}

.container main > p {
  padding: 15px;
  color: #1C487F;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #667eea;
}

.container main > p .red {
  color: #ef4444;
}

.container main > p .green {
  color: #10b981;
  font-weight: 600;
}

.container main > p .bold {
  font-weight: 700;
  color: #1f2937;
}

.container .footer {
  width: 90%;
  max-width: 800px;
  position: fixed;
  margin: 0 auto;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, #1C487F 0%, #2563eb 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 25px;
  animation: btn 2s infinite;
  box-shadow: 0 8px 25px rgba(28, 72, 127, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  cursor: pointer;
}

.container .footer:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(28, 72, 127, 0.6);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .container > header {
    font-size: 20px;
    padding: 18px 12px 22px 12px;
    margin-bottom: 15px;
  }
  
  .container main > p {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  
  .container .footer {
    width: 92%;
    font-size: 16px;
    padding: 16px 18px;
    bottom: 15px;
  }
  
  .container main > .pic {
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }
  
  .container > header {
    font-size: 18px;
    padding: 15px 10px 20px 10px;
    margin-bottom: 12px;
  }
  
  .container main > p {
    font-size: 15px;
    padding: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
  }
  
  .container .footer {
    width: 94%;
    font-size: 15px;
    padding: 14px 16px;
    bottom: 12px;
  }
  
  .container main > .pic {
    margin: 12px 0;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .container .footer {
    min-height: 48px; /* 确保触摸目标足够大 */
  }
  
  .container main > p {
    padding: 12px;
  }
}

@keyframes btn {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 添加平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 改进链接的可访问性 */
.container .footer:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* 添加加载动画 */
.container main > .pic img {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
