/* 万得软件网站主样式文件 - 企业级专业设计 */

/* CSS变量定义 */
:root {
  /* 主色调 - 专业蓝 */
  --primary-color: #1a56db;
  --primary-dark: #0f3c9e;
  --primary-light: #3e7ded;
  
  /* 辅助色 - 商务金 */
  --accent-color: #c9a227;
  --accent-dark: #a68520;
  --accent-light: #e0b82e;
  
  /* 背景色 */
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --bg-gray: #e8ecf1;
  --bg-dark: #1a202c;
  --bg-gradient: linear-gradient(135deg, #1a56db 0%, #0f3c9e 100%);
  
  /* 文字色 */
  --text-dark: #1a202c;
  --text-gray: #4a5568;
  --text-light: #718096;
  
  /* 状态色 */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 阴影 - 更精致的阴影效果 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(26, 86, 219, 0.15);
  
  /* 字体 */
  --font-chinese: "Microsoft YaHei", "微软雅黑", "PingFang SC", "HarmonyOS Sans", sans-serif;
  --font-english: "Inter", "Roboto", sans-serif;
  
  /* 边框 */
  --border-color: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.06);
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-chinese);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 头部导航 - 企业级设计 */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo-domain {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu li a {
  color: var(--text-gray);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-menu li a:hover {
  color: var(--primary-color);
  background: rgba(26, 86, 219, 0.08);
}

.nav-menu li a.active {
  color: var(--primary-color);
  background: rgba(26, 86, 219, 0.12);
  font-weight: 600;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  min-width: 200px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin-bottom: var(--spacing-xs);
}

.dropdown-menu li a {
  display: block;
  padding: var(--spacing-sm);
  color: var(--text-dark);
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* 移动端菜单 */
.nav-toggle {
  display: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--bg-light);
    margin-top: var(--spacing-xs);
  }
}

/* Hero区域 - 专业大气 */
.hero {
  background: var(--bg-gradient);
  color: white;
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
  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='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
  position: relative;
}

.hero-subtitle {
  font-size: 1.375rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
  position: relative;
}

/* 产品展示区 - 专业布局 */
.products-section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

/* 产品卡片链接样式 */
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card-link:hover .product-name {
  color: var(--primary-color);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26, 86, 219, 0.2);
}

.product-icon {
  padding: var(--spacing-lg);
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-light);
}

.product-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-light);
  color: var(--text-gray);
  border-radius: var(--radius-sm);
}

.tag.free {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.tag.paid {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-dark);
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* 按钮 - 专业交互设计 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
  width: 200%;
  height: 200%;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-accent {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
}

/* 功能特点区 - 专业卡片设计 */
.features-section {
  background: var(--bg-white);
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  background: var(--bg-white);
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.1) 0%, rgba(26, 86, 219, 0.05) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.15) 0%, rgba(26, 86, 219, 0.08) 100%);
  transform: scale(1.05);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary-color);
}

/* Emoji图标样式 */
.feature-icon:not(:has(svg)) {
  font-size: 2.5rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* 文章区域 - 专业内容展示 */
.articles-section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: var(--bg-white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26, 86, 219, 0.2);
}

/* 文章卡片链接样式 */
.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card-link:hover .article-title {
  color: var(--primary-color);
}

.article-card-link:hover .article-cover img {
  transform: scale(1.05);
}

.article-cover {
  height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-content {
  padding: var(--spacing-md);
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  transition: color 0.2s ease;
}
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

.article-category {
  color: var(--primary-color);
}

/* 页脚 - 企业级设计 */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: var(--spacing-xxl) var(--spacing-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: white;
  letter-spacing: -0.01em;
}

.footer-section p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.footer-section a:hover {
  color: white;
  opacity: 1;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: var(--spacing-xl);
  font-size: 0.875rem;
  opacity: 0.7;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 产品详情页 - 专业展示 */
.product-hero {
  background: var(--bg-gradient);
  color: white;
  padding: var(--spacing-xxl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
}

.product-hero-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.product-hero-image {
  flex: 1;
  max-width: 420px;
}

.product-hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.product-hero-info {
  flex: 2;
}

.product-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
}

.product-hero-desc {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.product-hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .product-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .product-hero-image {
    max-width: 280px;
  }
  
  .product-hero-actions {
    justify-content: center;
  }
}

/* 功能列表 */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-item-icon {
  width: 24px;
  height: 24px;
  color: var(--success);
}

.feature-item-text {
  font-size: 0.875rem;
  color: var(--text-dark);
}

/* 用户评价 - 专业展示 */
.testimonials {
  background: var(--bg-light);
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* 售后服务 - 专业服务展示 */
.service-section {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  justify-content: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 20px;
  background: rgba(5, 150, 105, 0.08);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(5, 150, 105, 0.15);
  transition: all 0.2s ease;
}

.service-item:hover {
  background: rgba(5, 150, 105, 0.12);
  transform: translateY(-2px);
}

/* 响应式调整 - 专业适配 */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .product-hero-title {
    font-size: 1.75rem;
  }
  
  .product-hero-desc {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* 动画效果 - 平滑过渡 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in {
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none;
}

.visible {
  display: block;
}