/* Axiom 亚马逊卖家运营管理工具 - 全局样式 */
/* 符合亚马逊 SP-API 审核要求的现代化企业网站样式 */

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #232f3e; /* 亚马逊深蓝色 */
  --secondary-color: #ff9900; /* 亚马逊橙色 */
  --accent-color: #007185; /* 链接蓝色 */
  --text-dark: #111111;
  --text-gray: #565959;
  --text-light: #ffffff;
  --bg-light: #f3f3f3;
  --bg-white: #ffffff;
  --border-color: #d5dbdb;
  --success-color: #067d62;
  --error-color: #b12704;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

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

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ========== 导航栏 ========== */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 14px;
}

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

.navbar {
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-sub {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* ========== Hero Banner ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: #e68a00;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
}

/* ========== 章节通用样式 ========== */
.section {
  padding: 80px 0;
}

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

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

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ========== 公司信息展示 ========== */
.company-info {
  background-color: var(--bg-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.company-info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 40px;
  border-left: 4px solid var(--secondary-color);
}

.company-info-card h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.company-info-card p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.8;
}

/* ========== 功能卡片 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
}

.feature-card ul {
  margin-top: 15px;
}

.feature-card li {
  color: var(--text-gray);
  font-size: 14px;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* ========== 定价卡片 ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--secondary-color);
  background: linear-gradient(180deg, #fff9f0 0%, #ffffff 100%);
}

.pricing-card.featured::before {
  content: "推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
}

.pricing-card .price {
  text-align: center;
  margin: 20px 0;
}

.pricing-card .price-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-card .price-period {
  color: var(--text-gray);
  font-size: 16px;
}

.pricing-card .price-annual {
  text-align: center;
  color: var(--success-color);
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card ul {
  margin-bottom: 30px;
}

.pricing-card li {
  padding: 10px 0;
  color: var(--text-gray);
  font-size: 15px;
  padding-left: 25px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* ========== 服务优势 ========== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.advantage-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.advantage-item h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.advantage-item p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== 联系方式 ========== */
.contact-section {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.contact-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.contact-item p {
  font-size: 16px;
  opacity: 0.9;
}

.contact-item a {
  color: var(--text-light);
}

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

/* ========== 页尾 ========== */
.footer {
  background-color: #1a1a1a;
  color: var(--text-light);
  padding: 50px 0 30px;
}

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

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #cccccc;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #999;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text-light);
}

.compliance-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: #ccc;
  margin-top: 15px;
}

/* ========== 页面特定样式 ========== */
/* 隐私政策页面 */
.policy-content {
  background: var(--bg-white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.policy-content h1 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.policy-content h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 4px solid var(--secondary-color);
}

.policy-content h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 30px 0 15px;
}

.policy-content p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

.policy-content ul,
.policy-content ol {
  margin: 15px 0 15px 25px;
}

.policy-content li {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 8px;
}

.policy-content ul li {
  list-style: disc;
}

.policy-content ol li {
  list-style: decimal;
}

.policy-meta {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.policy-meta p {
  margin-bottom: 8px;
  font-size: 15px;
}

.policy-meta strong {
  color: var(--primary-color);
}

/* 产品功能页面 */
.product-detail {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.product-detail h3 {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-detail .product-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.product-detail h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 25px 0 12px;
}

.product-detail p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

.product-detail ul {
  margin: 15px 0 15px 25px;
}

.product-detail li {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .policy-content {
    padding: 25px;
  }

  .product-detail {
    padding: 25px;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-card .price-amount {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .features-grid,
  .pricing-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.hidden { display: none; }
.visible { display: block; }
