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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #F5F5F5;
  color: #333;
  line-height: 1.6;
  padding-top: 70px;
  margin: 0;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

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

.header {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  color: #333;
  padding: 30px 0;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.header .subtitle {
  opacity: 0.9;
  font-size: 1rem;
}

.search-box {
  max-width: 600px;
  margin: 20px auto 0;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 14px 22px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 2px rgba(255, 154, 158, 0.5), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box button {
  padding: 14px 32px;
  background: white;
  color: #ff9a9e;
  border: 2px solid #ff9a9e;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 154, 158, 0.2);
}

.search-box button:hover {
  transform: translateY(-2px);
  background: #ff9a9e;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

.search-box button:active {
  transform: translateY(0);
}

.tags-section {
  background: white;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tags-section h3 {
  margin-bottom: 15px;
  color: #ff9a9e;
  font-size: 1rem;
  font-weight: 600;
}

.tag-group {
  margin-bottom: 12px;
}

.tag-group:last-child {
  margin-bottom: 0;
}

.tag-group h4 {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f5f5f5;
  color: #666;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 36px;
}

.tag:hover {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
  transform: translateY(-1px);
}

.stats-bar {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.stats-bar .stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-bar .stat-icon {
  font-size: 1.4rem;
}

.stats-bar .stat-value {
  font-weight: 700;
  color: #ff9a9e;
  font-size: 1.2rem;
}

.stats-bar .stat-label {
  color: #888;
  font-size: 0.9rem;
}

.category-nav {
  background: white;
  padding: 15px 25px;
  border-radius: 12px;
  margin: 20px auto;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.category-nav a {
  color: #666;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.25s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.category-nav a:hover,
.category-nav a.active {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
}

.article-list {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin: 20px auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.article-item {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.25s ease;
  cursor: pointer;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  background: #fafafa;
  padding-left: 8px;
}

.article-item .date {
  color: #999;
  font-size: 0.85rem;
  min-width: 70px;
  flex-shrink: 0;
}

.article-item .date.today {
  color: #e74c3c;
  font-weight: 600;
}

.article-item .category-tag {
  color: #ff9a9e;
  font-size: 0.85rem;
  min-width: 60px;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 500;
}

.article-item .title {
  flex: 1;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  font-weight: 500;
}

.article-item .title:hover {
  color: #ff9a9e;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: white;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  min-width: 44px;
  min-height: 44px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination a:hover,
.pagination a.active {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 154, 158, 0.3);
}

.pagination a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.footer {
  text-align: center;
  padding: 30px 0;
  color: #999;
  font-size: 0.9rem;
  background: white;
  margin-top: 30px;
  border-top: 1px solid #eee;
}

.footer a {
  color: #ff9a9e;
  text-decoration: none;
}

.detail-header {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  color: #333;
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.detail-header h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.detail-header .meta {
  opacity: 0.9;
  font-size: 0.95rem;
}

.detail-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin: 20px auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.detail-section {
  margin-bottom: 28px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  color: #ff9a9e;
  margin-bottom: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid #fecfef;
}

.content-section {
  background: linear-gradient(135deg, #fef9f9 0%, #fff5f5 100%);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #f0e0e0;
}

.content-body {
  line-height: 1.9;
  color: #444;
  font-size: 0.95rem;
}

.content-body p {
  margin-bottom: 18px;
  text-indent: 2em;
  letter-spacing: 0.5px;
}

.content-body p:first-child {
  text-indent: 0;
}

.content-body a {
  color: #667eea;
  text-decoration: none;
  word-break: break-all;
}

.content-body a:hover {
  text-decoration: underline;
}

.content-body div {
  margin: 1em 0;
}

.content-body .btn-qq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, #12B7F5 0%, #0ea5e9 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
  transition: all 0.3s ease;
  min-height: 48px;
}

.content-body .btn-qq:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(18, 183, 245, 0.4);
}

.content-body .btn-qq:active {
  transform: translateY(-1px);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #f9f9f9;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.download-item:hover {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
  transform: translateX(5px);
  border-color: #ff9a9e;
}

.download-item .icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff9a9e;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.25s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
  transform: translateY(-2px);
}

.search-header {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  color: #333;
  padding: 40px 0;
  text-align: center;
}

.search-header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.search-header .result-count {
  opacity: 0.9;
}

.search-header .back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #ff9a9e;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.search-header .back-link:hover {
  background: white;
  transform: translateY(-2px);
}

.back-link-wrapper {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
  text-decoration: none;
  border-radius: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(255, 154, 158, 0.3);
  transition: all 0.3s ease;
  min-height: 48px;
}

.back-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

.back-link-btn:active {
  transform: translateY(-1px);
}

.loading, .error, .empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.loading {
  color: #ff9a9e;
}

.error {
  color: #e74c3c;
}

.site-disclaimer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 25px 0;
  margin-top: 30px;
}

.site-disclaimer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-disclaimer h3 {
  text-align: center;
  color: #ff9a9e;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ddd;
}

.site-disclaimer-content {
  background: #fef9f9;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #f0e0e0;
  line-height: 1.9;
  color: #666;
  font-size: 0.85rem;
}

.site-disclaimer-content p {
  margin-bottom: 14px;
  text-align: justify;
  text-indent: 2em;
}

.site-disclaimer-content p:last-child {
  margin-bottom: 0;
}

.site-disclaimer .copyright {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
  color: #999;
  font-size: 0.85rem;
}

.site-disclaimer-inner {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #eee;
}

.site-disclaimer-inner h3 {
  color: #ff9a9e;
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .header h1 {
    font-size: 2.2rem;
  }
  
  .search-box {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  body {
    padding-top: 60px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .header {
    padding: 22px 0;
  }
  
  .header h1 {
    font-size: 1.7rem;
  }
  
  .header .subtitle {
    font-size: 0.9rem;
  }
  
  .search-box {
    flex-direction: column;
    max-width: 400px;
    gap: 12px;
  }
  
  .search-box input,
  .search-box button {
    width: 100%;
    min-height: 50px;
  }
  
  .search-box button {
    padding: 14px;
  }
  
  .tags-section {
    padding: 16px;
    margin: 15px auto;
  }
  
  .tag {
    padding: 8px 16px;
    min-height: 40px;
    font-size: 0.85rem;
  }
  
  .stats-bar {
    flex-direction: row;
    justify-content: space-around;
    padding: 18px 15px;
    gap: 15px;
  }
  
  .stats-bar .stat {
    flex: 1;
    justify-content: center;
  }
  
  .stats-bar .stat-value {
    font-size: 1.1rem;
  }
  
  .category-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 14px;
    gap: 10px;
  }
  
  .category-nav a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .article-list {
    padding: 18px;
    margin: 15px auto;
  }
  
  .article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0;
  }
  
  .article-item:hover {
    padding-left: 0;
    padding-right: 0;
  }
  
  .article-item .date,
  .article-item .category-tag {
    min-width: auto;
    font-size: 0.85rem;
  }
  
  .article-item .title {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .pagination a {
    padding: 12px 16px;
    min-width: 48px;
    min-height: 48px;
    font-size: 0.9rem;
  }
  
  .detail-header {
    padding: 30px 0;
  }
  
  .detail-header h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    padding: 0 15px;
  }
  
  .detail-content {
    padding: 20px;
    margin: 15px auto;
  }
  
  .detail-section {
    margin-bottom: 24px;
  }
  
  .detail-section h3 {
    font-size: 1rem;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .content-body {
    font-size: 0.9rem;
    line-height: 1.8;
  }
  
  .content-body p {
    margin-bottom: 16px;
  }
  
  .content-body .btn-qq {
    width: 100%;
    justify-content: center;
    padding: 16px 30px;
    font-size: 15px;
  }
  
  .download-item {
    padding: 16px;
    gap: 12px;
  }
  
  .download-item .icon {
    font-size: 1.5rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }
  
  .nav-links a {
    justify-content: center;
    padding: 14px;
    background: #f5f5f5;
  }
  
  .nav-links a:hover {
    transform: none;
  }
  
  .search-header {
    padding: 30px 0;
  }
  
  .search-header h1 {
    font-size: 1.5rem;
  }
  
  .back-link-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  
  .site-disclaimer-content {
    padding: 16px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  body {
    padding-top: 55px;
    background: #fff;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .header {
    padding: 18px 0;
  }
  
  .header h1 {
    font-size: 1.4rem;
  }
  
  .search-box {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .tags-section {
    padding: 14px;
    margin: 12px auto;
  }
  
  .tag {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  
  .stats-bar {
    padding: 15px 12px;
  }
  
  .stats-bar .stat {
    gap: 6px;
  }
  
  .stats-bar .stat-icon {
    font-size: 1.2rem;
  }
  
  .stats-bar .stat-value {
    font-size: 1rem;
  }
  
  .stats-bar .stat-label {
    font-size: 0.8rem;
  }
  
  .category-nav {
    padding: 12px;
    gap: 8px;
  }
  
  .category-nav a {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
  
  .article-list {
    padding: 14px;
    margin: 12px auto;
    border-radius: 10px;
  }
  
  .article-item {
    padding: 14px 0;
  }
  
  .article-item .title {
    font-size: 0.9rem;
  }
  
  .pagination a {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .detail-header {
    padding: 22px 0;
  }
  
  .detail-header h1 {
    font-size: 1.3rem;
  }
  
  .detail-content {
    padding: 16px;
    margin: 12px auto;
  }
  
  .detail-section {
    margin-bottom: 20px;
  }
  
  .content-section {
    padding: 16px;
  }
  
  .content-body {
    font-size: 0.85rem;
  }
  
  .content-body p {
    margin-bottom: 14px;
    text-indent: 1.5em;
  }
  
  .download-item {
    padding: 14px;
  }
  
  .back-link-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  .site-disclaimer-content {
    padding: 14px 16px;
    font-size: 0.75rem;
  }
  
  .site-disclaimer-content p {
    text-indent: 1.5em;
    margin-bottom: 12px;
  }
  
  .footer {
    padding: 20px 0;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .stats-bar {
    flex-direction: column;
    gap: 12px;
  }
  
  .stats-bar .stat {
    width: 100%;
    justify-content: flex-start;
  }
  
  .category-nav {
    justify-content: center;
  }
  
  .detail-header h1 {
    font-size: 1.2rem;
  }
}
