/* 
 * zzxd3 - 卡盟 SEO 模板
 * 色彩斑斓的卡盟风格
 */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  --vibrant-gradient: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);
  --blue-gradient: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  --orange-gradient: linear-gradient(to right, #f83600 0%, #f9d423 100%);
  --green-gradient: linear-gradient(to right, #0ba360 0%, #3cba92 100%);
  
  --text-main: #2d3436;
  --text-muted: #636e72;
  --bg-light: #fdfbfb;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

a {
  color: #6c5ce7;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #a29bfe;
}

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

/* 头部导航 */
.header {
  background: var(--primary-gradient);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(118, 75, 162, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header .logo h1 {
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
}

.header .logo p {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

.navbar {
  display: flex;
  list-style: none;
}

.navbar li {
  margin-left: 25px;
}

.navbar li a {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
}

.navbar li a:hover {
  opacity: 0.8;
}

/* 首页 Banner */
.intro-section {
  background: var(--vibrant-gradient);
  padding: 100px 0;
  text-align: center;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  margin-bottom: 50px;
}

.intro-section h2 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.intro-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.action-buttons .btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.primary-btn {
  background: #fff;
  color: #cf556c;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.secondary-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid #fff;
}

.secondary-btn:hover {
  background: #fff;
  color: #cf556c;
}

/* 核心业务区块 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 10px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border-bottom: 5px solid transparent;
}

.service-card:nth-child(1) { border-bottom-color: #667eea; }
.service-card:nth-child(2) { border-bottom-color: #ff9a9e; }
.service-card:nth-child(3) { border-bottom-color: #f83600; }

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

.service-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

/* 产品特征网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card i {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.feature-card:nth-child(1) i { color: #6c5ce7; }
.feature-card:nth-child(2) i { color: #fd79a8; }
.feature-card:nth-child(3) i { color: #e17055; }
.feature-card:nth-child(4) i { color: #00b894; }
.feature-card:nth-child(5) i { color: #0984e3; }

.feature-card:hover {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

/* 列表页样式 */
.main-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}

.post-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 20px;
}

.post-img {
  width: 200px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.post-intro {
  color: var(--text-muted);
  font-size: 14px;
}

/* 侧边栏 */
.sidebar-box {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}

.sidebar-box h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6c5ce7;
  display: inline-block;
}

/* 底部 */
.footer {
  background: #2d3436;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 { font-size: 24px; margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,0.6); }
.footer-links ul li a:hover { color: #fff; }

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination-item {
  padding: 8px 16px;
  background: #fff;
  border-radius: 8px;
  color: #666;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.pagination-item:hover {
  background: var(--primary-gradient);
  color: #fff;
  transform: translateY(-2px);
}

.pagination-current {
  background: var(--primary-gradient);
  color: #fff;
}

.pagination-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 评论样式 */
.comments {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-top: 30px;
}

.comments h3 {
  font-size: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #6c5ce7;
  padding-left: 15px;
}

.comment-list {
  margin-bottom: 40px;
}

.comment-post h3 {
  margin-top: 40px;
}

/* 响应式补充 */
@media (max-width: 992px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header .container { flex-direction: column; text-align: center; }
  .navbar { margin-top: 15px; }
  .navbar li { margin: 0 10px; }
  .intro-section h2 { font-size: 32px; }
  .service-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-item { flex-direction: column; }
  .post-img { width: 100%; height: 180px; }
  .post-info h2 { font-size: 18px; }
}
