/* {模板路径}/static/css/style.css */
/* 基础样式 */
:root {
  --primary-color: #ff6b81;
  --secondary-color: #7868e6;
  --accent-color: #38f9d7;
  --text-color: #333333;
  --light-text: #777777;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e1e1e1;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #ff6b81, #7868e6);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--light-text);
}

.bg-light {
  background-color: var(--bg-light);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(255, 107, 129, 0.4);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* 头部样式 */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: block;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

.main-nav a:hover {
  color: var(--primary-color);
  background-color: rgba(255, 107, 129, 0.1);
}

/* 横幅样式 */
.banner {
  padding: 150px 0 80px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.banner:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 129, 0.1), rgba(120, 104, 230, 0.1));
  z-index: 1;
}

.banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-content {
  max-width: 600px;
}

.banner h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-color);
  line-height: 1.2;
}

.banner .slogan {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 30px;
}

.banner-buttons {
  display: flex;
  gap: 15px;
}

/* 漫画卡片样式 */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.manga-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.manga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.manga-info {
  padding: 15px;
}

.manga-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.manga-info p {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tags span {
  background: rgba(255, 107, 129, 0.1);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.manga-card.featured {
  grid-column: span 2;
}

.manga-card.featured .manga-info {
  padding: 20px;
}

.manga-card.featured h3 {
  font-size: 1.5rem;
}

.manga-card.featured .description {
  margin: 10px 0;
}

.rating {
  color: #f39c12;
  margin-top: 10px;
}

.rating span {
  color: var(--text-color);
  margin-left: 5px;
}

/* 分类专区样式 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.category-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

/* 排行榜样式 */
.ranking-tabs {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.tab-header {
  display: flex;
  background: #f5f5f5;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 0 var(--primary-color);
}

.tab-content {
  padding: 20px;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.ranking-item .manga-info {
  flex: 1;
  padding-left: 15px;
}

.views {
  color: var(--light-text);
  font-size: 0.9rem;
}

/* APP下载样式 */
.app-download {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="white" opacity="0.1"/></svg>'), var(--gradient-primary);
  color: white;
}

.app-download .section-header h2,
.app-download .section-header p {
  color: white;
}

.app-download .section-header h2:after {
  background: white;
}

.app-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-info {
  max-width: 500px;
}

.app-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.app-features {
  margin-bottom: 30px;
}

.app-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.app-features li i {
  margin-right: 10px;
  color: var(--accent-color);
}

.download-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-android, .btn-ios {
  background: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

.btn-android:hover, .btn-ios:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.qr-code {
  text-align: center;
  margin-top: 20px;
}

.qr-code p {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* VIP会员样式 */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vip-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 30px;
  text-align: center;
}

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

.vip-card.featured {
  border: 2px solid var(--primary-color);
  position: relative;
  transform: scale(1.05);
}

.vip-header {
  margin-bottom: 20px;
  position: relative;
}

.vip-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.price span {
  font-size: 1rem;
  color: var(--light-text);
}

.save-tag {
  position: absolute;
  top: -30px;
  right: -30px;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  transform: rotate(45deg);
  font-size: 0.9rem;
}

.vip-features {
  margin-bottom: 30px;
  text-align: left;
  padding-left: 20px;
}

.vip-features li {
  margin-bottom: 10px;
  position: relative;
}

.vip-features li:before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: -20px;
}

/* 关于我们样式 */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-image {
  flex: 1;
}

/* 文章样式 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.article-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.article-content {
  padding: 20px;
}

.article-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.article-meta {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.article-excerpt {
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* 页脚样式 */
.footer {
  background: #2d3436;
  color: #dfe6e9;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo p {
  margin-top: 10px;
  color: #b2bec3;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav-col h4 {
  color: white;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-nav-col h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-nav-col ul li {
  margin-bottom: 8px;
}

.footer-nav-col a {
  color: #b2bec3;
  transition: var(--transition);
}

.footer-nav-col a:hover {
  color: white;
  padding-left: 5px;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h4 {
  color: white;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.qr-codes {
  display: flex;
  gap: 20px;
}

.qr-item {
  text-align: center;
}

.qr-item p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.copyright p {
  margin-bottom: 5px;
  color: #b2bec3;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #b2bec3;
}

.footer-links a:hover {
  color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .banner .container {
    flex-direction: column;
    text-align: center;
  }
  
  .banner-content {
    margin-bottom: 40px;
  }
  
  .banner-buttons {
    justify-content: center;
  }
  
  .app-content {
    flex-direction: column;
  }
  
  .app-info {
    margin-bottom: 40px;
    text-align: center;
  }
  
  .app-features {
    display: inline-block;
    text-align: left;
  }
  
  .download-buttons {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-nav {
    margin-top: 30px;
  }
  
  .footer-middle {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .manga-card.featured {
    grid-column: span 1;
  }
  
  .vip-plans {
    grid-template-columns: 1fr;
  }
  
  .vip-card.featured {
    transform: scale(1);
  }
  
  .footer-nav {
    gap: 20px;
  }
  
  .footer-nav-col {
    width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .main-nav {
    display: none;
  }
  
  .banner h1 {
    font-size: 2.5rem;
  }
  
  .manga-grid,
  .category-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-nav-col {
    width: 100%;
  }
}

/* 图标样式 */
.icon-check:before {
  content: '✓';
}

.icon-mail:before {
  content: '✉';
}

.icon-phone:before {
  content: '☎';
}

.icon-location:before {
  content: '⚲';
}
