/* 207模板 - 企业级大气样式 */

/* 自定义颜色变量 */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 基础样式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--light-color) !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* 下拉菜单样式 */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.dropdown-item:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* 企业级头部横幅 */
.hero-section {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 152, 219, 0.9)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%232c3e50"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%233498db" stroke-width="1"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 6rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(52, 152, 219, 0.3), transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* 卡片样式 */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--secondary-color);
}

.card-text {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* 企业内容区域 */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* 特色服务/产品样式 */
.featured-item {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s;
}

.featured-item:hover {
  background-color: var(--light-color);
  border-radius: 0.75rem;
}

.featured-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.featured-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* 列表项样式 */
.list-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.list-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.list-item-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.list-item-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.list-item-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.list-item-summary {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, var(--primary-color), #1a2530);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* 按钮样式 */
.btn-primary {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    color: var(--primary-color) !important;
  }
}

/* 列表样式重置 */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  list-style: none;
}

/* 内容溢出处理 */
.article-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.article-content p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

/* 最佳回答标记 */
.best-answer {
  border-left: 4px solid var(--accent-color);
  position: relative;
}

.best-answer::before {
  content: "最佳回答";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent-color);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 1rem 0;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--secondary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}


/* 额外美化效果 */
.list-group-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    border-left-color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 社交链接悬停效果 */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--secondary-color) !important;
}

/* 服务卡片额外效果 */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}
