/* 页面特定样式 - 提取自各HTML页面的行内样式 */

/**
 * 首页样式
 */
/* Hero部分 */
.home-hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.85), rgba(21, 32, 50, 0.95));
}

.hero-content-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-button-primary {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
}

.hero-button-secondary {
  display: inline-block;
  padding: 15px 35px;
  background-color: transparent;
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--white);
}

/* 客户评价部分 */
.testimonial-quote-icon {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-position {
  color: var(--medium-gray);
}

/* CTA部分 */
.cta-section-home {
  background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)), url('../images/background-texture.webp');
  background-size: cover;
  color: var(--white);
  text-align: center;
}

.cta-title-home {
  color: var(--white);
}

.cta-text-home {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.cta-button-home {
  background-color: var(--secondary-color);
  color: var(--dark-gray);
}

/**
 * 案例研究页面样式
 */
/* 案例研究头部背景 */
.case-study-header {
  background-image: url('../images/cta-bg.webp');
}

/* 页脚品牌名称样式 */
.footer-logo h3 {
  color: var(--white);
}

.footer-logo h3 span {
  color: var(--secondary-color);
}

/* 社交图标样式 */
.social-icon img {
  width: 16px;
  height: 16px;
}

/* 联系方式图标样式 */
.footer-contact-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

/* 联系方式微信ID样式 */
.wechat-id {
  color: var(--light-gray);
}

/**
 * NProgress进度条样式
 */
#nprogress .bar {
  background: var(--primary-color);
  height: 3px;
}

#nprogress .peg {
  box-shadow: 0 0 10px var(--primary-color), 0 0 5px var(--primary-color);
}

#nprogress .spinner-icon {
  border-top-color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/**
 * 按钮和交互元素效果
 */
/* 按钮悬停效果 */
.btn {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.btn:hover:after {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 导航链接悬停效果 */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover:before {
  width: 100%;
}

/**
 * 卡片悬停效果
 */
/* 博客卡片悬停效果 */
.blog-card {
  transition: all 0.3s ease-in-out;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 案例卡片悬停效果 */
.case-study-card {
  transition: all 0.3s ease-in-out;
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 阅读更多链接悬停效果 */
.read-more, .btn-secondary {
  transition: all 0.3s ease;
}

.read-more:hover, .btn-secondary:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.read-more i, .btn-secondary i {
  transition: transform 0.3s ease;
}

.read-more:hover i, .btn-secondary:hover i {
  transform: translateX(5px);
}

/**
 * 动画效果
 */
/* 专业领域图标动效 */
.case-study-stat-icon i {
  transition: all 0.3s ease;
}

.icon-pulse {
  animation: pulse 2s infinite;
}

.icon-bounce {
  animation: bounce 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/**
 * 轮播和滑块样式
 */
/* 客户评价轮播样式 */
.testimonial-swiper {
  padding-bottom: 50px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--primary-color);
}

.testimonial {
  padding: 20px;
  transition: transform 0.3s;
}

/**
 * 关于页面样式
 */
.about-page-header {
  position: relative;
  background: url('../images/background-texture.webp') center/cover;
  padding: 120px 0 80px;
}

.about-page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.45), rgba(21, 32, 50, 0.65));
}

.about-page-title {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-page-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

/**
 * 联系页面样式
 */
.contact-page-header {
  position: relative;
  background: url('../images/background-texture4.webp') center/cover;
  padding: 120px 0 80px;
}

.contact-page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.45), rgba(21, 32, 50, 0.65));
}

.contact-page-title {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-page-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

.contact-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

/* 实施过程时间轴样式 */
.implementation-timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    flex: 0 0 120px;
    text-align: right;
    padding-right: 30px;
    position: relative;
}

.timeline-date:after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-date .month {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.timeline-date .year {
    display: block;
    color: var(--medium-gray);
    font-size: 0.9em;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
    border-left: 2px solid #e0e0e0;
}

.timeline-content h3 {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.timeline-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        flex: none;
        text-align: left;
        padding-right: 0;
        padding-bottom: 15px;
    }
    
    .timeline-date:after {
        right: auto;
        left: -6px;
    }
    
    .timeline-content {
        padding-left: 20px;
    }
}

/* 实施过程部分修复 */
.case-section h2 + .implementation-timeline {
  opacity: 1 !important;
  visibility: visible !important;
}

.case-section h2[class*="chart"] + * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 
 * 客户评价区域增强样式 
 * 从index.html中提取出来实现更好的缓存和加载性能
 */
@media (min-width: 769px) {
    .testimonial-swiper {
        padding: 30px !important;
        overflow: visible !important;
    }
    
    .testimonial {
        position: relative;
        padding: 25px 30px;
        transition: all 0.3s ease;
    }
    
    .testimonial-quote-icon {
        color: var(--secondary-color);
        font-size: 24px;
        opacity: 0.8;
        position: absolute;
        top: -15px;
        left: -10px;
        transform: rotate(180deg);
    }
    
    .testimonial-text {
        font-size: 1.05rem;
        line-height: 1.8;
        color: #444;
        margin-bottom: 20px;
        font-style: italic;
    }
    
    .testimonial-author-container {
        display: flex;
        align-items: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.07);
    }
    
    .testimonial-author-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.12);
        margin-right: 15px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        background-color: var(--white);
        width: 40px !important;
        height: 40px !important;
        border-radius: 50%;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 18px !important;
        color: var(--primary-color);
    }
    
    .swiper-pagination-bullet {
        background: var(--secondary-color);
        opacity: 0.5;
    }
    
    .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--secondary-color);
    }
}

/* ==========================
   Article Comment Section
   ========================== */
.comment {
  margin-top: var(--spacing-lg);
  background: var(--light-gray);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comment h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.comment-form .comment-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.comment-form .comment-info-item input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  resize: vertical;
  font-size: 14px;
  background: #fff;
  line-height: 1.6;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(74, 143, 181, 0.15);
}

.comment-submit {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.comment-submit .vcode-img {
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.comment-submit .vcode-input {
  width: 120px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
}

.comment-submit .btn {
  padding: 10px 18px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-normal), transform 0.05s;
  box-shadow: var(--shadow-sm);
}

.comment-submit .btn:hover {
  background: #142849;
}

.comment-submit .btn:active {
  transform: translateY(1px);
}

.comment-replys {
  margin-left: var(--spacing-sm);
  color: var(--medium-gray);
  font-size: 14px;
}

.comment-list {
  margin-top: var(--spacing-lg);
}

.comment-list .title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.comment-list > * + * {
  margin-top: var(--spacing-sm);
}

@media (max-width: 767px) {
  .comment {
    padding: var(--spacing-md);
  }
  .comment-form .comment-info {
    grid-template-columns: 1fr;
  }
  .comment-submit {
    flex-wrap: wrap;
  }
  .comment-submit .vcode-input {
    width: calc(50% - var(--spacing-xs));
    min-width: 120px;
  }
  .comment-submit .btn {
    width: 100%;
  }
}