/* 全局样式 */
:host {
  display: block;
  font-family: "阿里巴巴普惠体", sans-serif;
  background-color: #f8f4e8;
  color: #333;
  line-height: 1.6;
}

/* 主色调定义 */
:host {
  --primary-blue: #2F7DAD;  /* 天青瓷 */
  --primary-green: #5B8C5A; /* 香樟绿 */
  --primary-gold: #D4B16A; /* 庐金 */
  --secondary-gray: #6D6D6D; /* 婺源黛瓦灰 */
  --secondary-red: #C53D43;  /* 井冈山鹃红 */
}

/* 导航栏 */
.navbar {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover {
  background-color: rgba(255,255,255,0.2);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 70%;
}

/* Banner区域 */
.support-banner {
  height: 350px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.banner-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.banner-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* 主内容区 */
.section {
  padding: 4rem 10%;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
  margin: 1rem auto 0;
}

/* 模块卡片 */
.module-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.module-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.module-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.module-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.module-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.module-body {
  padding: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.feature-item:hover {
  background-color: rgba(47, 125, 173, 0.1);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(47, 125, 173, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

/* 权限管理 */
.permission-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1.1rem;
  color: var(--secondary-gray);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: bold;
}

.tab-content {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

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

.tab-desc {
  margin-bottom: 1.5rem;
  color: var(--secondary-gray);
}

.permission-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.permission-feature {
  background-color: rgba(47, 125, 173, 0.05);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-blue);
}

/* 页脚 */
.footer {
  background-color: #2a2a2a;
  color: white;
  padding: 3rem 10% 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .support-banner {
    height: auto;
    padding: 3rem 1rem;
  }
  
  .banner-title {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 2rem 5%;
  }
}

/* page-crm-system.scss */
/* 全局样式 - 添加平滑滚动 */
:host {
  display: block;
  font-family: "阿里巴巴普惠体", sans-serif;
  background-color: #f8f4e8;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* 主色调定义 - 添加更多变量 */
:host {
  --primary-blue: #2F7DAD;
  --primary-green: #5B8C5A;
  --primary-gold: #D4B16A;
  --secondary-gray: #6D6D6D;
  --secondary-red: #C53D43;
  --light-bg: #f9f9f9;
  --card-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Banner区域 - 添加背景图案和动画 */
.support-banner {
  height: 350px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.05)"><path d="M30,30 Q50,10 70,30 T90,50 T70,70 T50,90 T30,70 T10,50 T30,30 Z"></path></svg>');
    background-size: 80px;
    animation: movePattern 60s linear infinite;
  }
}

@keyframes movePattern {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

/* 模块卡片 - 添加点击效果 */
.module-card {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  
  &:active {
    transform: scale(0.98);
  }
}

/* 权限标签 - 添加悬停效果 */
.tab-btn {
  transition: all 0.3s;
  
  &:hover:not(.active) {
    background-color: rgba(47, 125, 173, 0.1);
  }
}

/* 页脚 - 添加社交媒体图标样式 */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  transition: transform 0.3s;
  
  &.wechat { background-color: #07C160; }
  &.weibo { background-color: #E6162D; }
  &.douyin { background-color: #000; }
  
  &:hover {
    transform: translateY(-5px);
  }
}

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

/* 响应式设计 - 优化移动端体验 */
@media (max-width: 768px) {
  .module-card {
    flex: 1 1 100%;
  }
  
  .permission-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
}