/* 汗汗漫画 - 全站样式 */

:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #ffe66d;
  --dark-bg: #1a1a2e;
  --light-bg: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --card-bg: rgba(255, 255, 255, 0.05);
  --hover-color: #ff8787;
}

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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 通用容器样式 */
.hhmc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题样式 */
.hhmc-section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 1rem;
}

.hhmc-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* 卡片样式 */
.hhmc-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.hhmc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
  border-color: var(--primary-color);
}

/* 按钮样式 */
.hhmc-button {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.hhmc-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hhmc-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hhmc-float {
  animation: float 3s ease-in-out infinite;
}

/* 渐变背景 */
.hhmc-gradient-bg {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hhmc-gradient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

/* 图片样式 */
.hhmc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.hhmc-image:hover {
  transform: scale(1.05);
}

/* 网格布局 */
.hhmc-grid {
  display: grid;
  gap: 2rem;
}

.hhmc-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hhmc-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hhmc-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hhmc-section-title {
    font-size: 2rem;
  }

  .hhmc-grid {
    gap: 1rem;
  }

  .hhmc-container {
    padding: 0 15px;
  }
}

/* 加载动画 */
.hhmc-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 标签样式 */
.hhmc-tag {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 0.875rem;
  margin: 5px;
  transition: all 0.3s ease;
}

.hhmc-tag:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hover-color);
}
