/*
Theme Name: Zhihe Twenty-six Theme
Theme URI: https://xazhsy.com.cn
Author: Levon
Author URI: https://xazhsy.com.cn
Description: 西安致和实业发展有限公司门户网站WordPress主题，内置轮播，企业介绍、合作客户、行业资讯、资质专利等核心栏目，适配信息化解决方案与系统集成业务展示。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techcorp
Tags: corporate, business, technology, responsive, clean, modern
*/

/* ===== 变量定义 ===== */
:root {
  --primary-color: #0066cc;
  --secondary-color: #004488;
  --accent-color: #00a8e8;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

/* ===== 按钮样式 ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ===== 标题样式 ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
}



/* ===== 导航栏样式 ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  padding: 20px 0;
}

.main-navigation ul {
  display: flex;
  gap: 30px;
}

.main-navigation a {
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
  color: var(--primary-color);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
  width: 100%;
}

/* ===== 幻灯片样式 ===== */
.slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slide-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  position: relative;
  z-index: 2;
  padding: 60px;
  color: var(--white);
  max-width: 800px;
  text-align: left;
}

.slide-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.slide-text p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.slider-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-counter {
  position: absolute;
  bottom: 30px;
  right: 30px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  z-index: 10;
}

.slider-counter .current-slide {
  color: var(--white);
}

/* 左右切换按钮 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 20px;
}

.slider-arrow-right {
  right: 20px;
}

/* 移动端按钮位置 */
@media (max-width: 768px) {
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .slider-arrow-left {
    left: 10px;
  }
  
  .slider-arrow-right {
    right: 10px;
  }
}

/* ===== 通用区块样式 ===== */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--light-color);
}

/* ===== 卡片样式 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 20px;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.card-description {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-meta {
  color: var(--accent-color);
  font-size: 13px;
  display: flex;
  gap: 15px;
}

/* ===== 客户logo样式 ===== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.client-logo {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: var(--transition);
  border: 1px solid #eee;
}

.client-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.client-logo span {
  color: #999;
  font-size: 14px;
}

/* ===== 专利列表样式 ===== */
patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.patent-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.patent-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.patent-number {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

.patent-title {
  font-size: 18px;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.patent-description {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== 新闻列表样式 ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-item {
  display: flex;
  gap: 30px;
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
}

.news-image {
  flex-shrink: 0;
  width: 250px;
  height: 180px;
  object-fit: cover;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border-radius: 4px;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 22px;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.news-meta {
  color: var(--accent-color);
  font-size: 13px;
}

/* ===== 分页样式 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  padding: 10px 15px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination .current {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* ===== 页脚样式 ===== */
.site-footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.footer-widget ul {
  line-height: 2.2;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
  color: var(--white);
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 32px;
  }
  
  .hero-section p {
    font-size: 16px;
  }
  
  .main-navigation ul {
    gap: 15px;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    width: 100%;
  }
  
  section {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .header-top .container {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== 404页面样式 ===== */
.error-404-section {
  min-height: 80vh;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  padding: 60px 20px;
  display: block;
  display: block !important;
}

.error-404-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-color);
}

.error-404-illustration {
  margin-bottom: 40px;
  animation: float 3s ease-in-out infinite;
  text-align: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.error-404-illustration svg {
  width: 200px;
  height: 200px;
}

.error-404-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1;
  color: var(--primary-color);
}

.error-404-subtitle {
  font-size: 28px;
  margin: 0 0 20px;
  font-weight: 600;
  color: var(--dark-color);
}

.error-404-text-content {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 20px;
}

.error-404-message {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404-button {
  padding: 15px 35px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.error-404-button-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.error-404-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.error-404-button-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.error-404-button-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

.error-404-tips {
  background: var(--white);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.error-404-tips h3 {
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--primary-color);
}

.error-404-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.error-404-tips-list li {
  padding: 12px 0;
  color: var(--text-color);
  font-size: 15px;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 30px;
}

.error-404-tips-list li:last-child {
  border-bottom: none;
}

.error-404-tips-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.error-404-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.error-404-stat-item {
  text-align: center;
}

.error-404-stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.error-404-stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* 404页面响应式 */
@media (max-width: 768px) {
  .error-404-title {
    font-size: 80px;
  }

  .error-404-subtitle {
    font-size: 24px;
  }

  .error-404-message {
    font-size: 16px;
  }

  .error-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-404-button {
    width: 100%;
    max-width: 300px;
  }

  .error-404-stats {
    gap: 30px;
  }

  .error-404-stat-number {
    font-size: 28px;
  }
}
