/* XM返佣网 - 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #222;
  line-height: 1.6;
  font-size: 14px;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.85;
}

.w1200 {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #555;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: #1a472a;
  font-weight: 600;
}

.header-btns {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #1a472a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1a472a;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 71, 42, 0.2);
}

.btn.primary {
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
  color: #fff;
  border-color: transparent;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #153820 0%, #245035 100%);
  box-shadow: 0 6px 16px rgba(26, 71, 42, 0.3);
}

/* 页面区块 */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
}

/* 卡片 */
.card {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
  background: #fff;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: #1a472a;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.card-content {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

th, td {
  border: 1px solid #eee;
  padding: 12px;
  text-align: left;
}

th {
  background: #f9f9f9;
  font-weight: 600;
}

/* 英雄区 */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Ccircle cx="50" cy="50" r="40" fill="%23ffffff" opacity="0.05"/%3E%3C/svg%3E');
  opacity: 0.1;
}

.hero .w1200 {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 32px;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns .btn {
  padding: 14px 32px;
  font-size: 16px;
  border-width: 2px;
}

.hero-btns .btn.primary {
  background: #fff;
  color: #1a472a;
  border-color: #fff;
}

.hero-btns .btn.primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.hero-btns .btn:not(.primary) {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero-btns .btn:not(.primary):hover {
  background: rgba(255,255,255,0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 特性列表 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fff;
  border: 2px solid transparent;
}

.feature-item:hover {
  background: #f0f9f5;
  border-color: #1a472a;
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(26, 71, 42, 0.1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.feature-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-section li:hover {
  transform: translateX(4px);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 1240px) {
  .w1200 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .features, .footer-content, .rebate-box {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .nav {
    display: none;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .rebate-value {
    font-size: 28px;
  }
}

/* 高亮信息 */
.highlight {
  background: #f9f9f9;
  border-left: 3px solid #333;
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
}

.warning {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-left: 4px solid #ff9800;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

/* 表单 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #333;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* 返佣数据展示 */
.rebate-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.rebate-item {
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rebate-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a472a 0%, #2d5f3f 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.rebate-item:hover {
  border-color: #1a472a;
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(26, 71, 42, 0.15);
}

.rebate-item:hover::before {
  transform: scaleX(1);
}

.rebate-label {
  color: #888;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rebate-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.rebate-item small {
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

/* FAQ */
.faq-item {
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  background: #fff;
}

.faq-item:hover {
  border-color: #1a472a;
  box-shadow: 0 4px 12px rgba(26, 71, 42, 0.08);
  transform: translateX(4px);
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: #333;
}

.faq-answer {
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

/* 图片占位符和错误处理 */
img.error-placeholder {
  border: 1px dashed #ddd;
  background: #f5f5f5;
}

/* 文章内容图片样式 */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
}

.article-content img[src*="placeholder.svg"] {
  border: 1px dashed #ddd;
  background: #fafafa;
}
