/* 
 * 91 修车改装网站 - 样式表
 * 颜色方案：深灰(#2C3E50), 橙红(#E74C3C), 金色(#F39C12), 浅灰(#ECF0F1)
 */

:root {
  --primary-color: #E74C3C;
  --secondary-color: #F39C12;
  --dark-color: #2C3E50;
  --text-color: #34495E;
  --light-bg: #ECF0F1;
  --white: #FFFFFF;
  --border-color: #BDC3C7;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-bg);
}

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

.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c0392b;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark-color);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* 头部导航 */
.site-header {
  background-color: var(--dark-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

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

.main-nav .nav-list {
  display: flex;
}

.main-nav .nav-list li {
  margin: 0 15px;
}

.main-nav .nav-list a {
  color: var(--white);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.main-nav .nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav .nav-list a:hover::after {
  width: 100%;
}

.search-container {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 15px;
  border: 1px solid rgba(255,255,255,0.2);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--white);
  outline: none;
  width: 150px;
  transition: var(--transition);
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-box input:focus {
  width: 200px;
}

.search-box button {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 30px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--white);
  transition: var(--transition);
}

/* Hero Banner */
.hero-section {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-actions .btn {
  margin-right: 15px;
}

/* 核心功能板块 */
.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-desc {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  text-align: center;
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-card p {
  color: #7f8c8d;
  margin-bottom: 20px;
}

.feature-link {
  color: var(--secondary-color);
  font-weight: bold;
}

/* 视频展示区 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.video-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  transform: scale(0.8);
  transition: var(--transition);
}

.video-card:hover .play-overlay svg {
  transform: scale(1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.video-tags {
  display: flex;
  gap: 10px;
}

.tag {
  background: var(--light-bg);
  color: var(--dark-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* 专家团队 */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.expert-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.expert-img {
  height: 250px;
  overflow: hidden;
}

.expert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-info {
  padding: 25px 20px;
}

.expert-info h3 {
  color: var(--dark-color);
  margin-bottom: 5px;
}

.expert-title {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.expert-desc {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.expert-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.expert-actions .btn-outline {
  color: var(--dark-color);
  border-color: var(--border-color);
}

.expert-actions .btn-outline:hover {
  border-color: var(--dark-color);
}

/* 加入指南 */
.step-list {
  counter-reset: step;
}

.step-list li {
  display: flex;
  margin-bottom: 25px;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 20px;
}

.step-content h4 {
  color: var(--dark-color);
  margin-bottom: 5px;
}

.partner-logos-container {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.partner-item {
  background: var(--light-bg);
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  color: var(--dark-color);
  transition: var(--transition);
}

.partner-item:hover {
  background: var(--dark-color);
  color: var(--white);
}

/* 评价与口碑 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-top: 4px solid var(--secondary-color);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--dark-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
}

.rating {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
}

.review-meta {
  font-size: 0.8rem;
  color: #95a5a6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  color: var(--dark-color);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.toggle-icon {
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

/* 实体门店 */
.store-details {
  margin-bottom: 30px;
}

.store-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.store-details svg {
  color: var(--primary-color);
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 3px;
}

.entrance-buttons {
  display: flex;
  gap: 15px;
}

.entrance-buttons .btn-outline {
  color: var(--dark-color);
  border-color: var(--dark-color);
}

.entrance-buttons .btn-outline:hover {
  background: var(--dark-color);
  color: var(--white);
}

/* 内页公共样式 */
.page-header {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44,62,80,0.8);
}

.page-header .container {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.breadcrumbs {
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--secondary-color);
}

.breadcrumbs span {
  color: rgba(255,255,255,0.7);
}

/* 页脚 */
.site-footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-indent: -9999px;
  position: relative;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary-color);
}

.social-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.col-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.links-col ul li {
  margin-bottom: 10px;
}

.links-col ul a {
  color: rgba(255,255,255,0.7);
}

.links-col ul a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-info li {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
}

.contact-info strong {
  color: var(--white);
}

.qrcode-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qrcode-item {
  text-align: center;
}

.qrcode-item img {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  background: var(--white);
  padding: 5px;
  border-radius: 4px;
}

.qrcode-item span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
}

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

.divider {
  margin: 0 10px;
  color: rgba(255,255,255,0.3);
}

.update-time {
  margin-left: 15px;
  color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    padding: 20px;
    display: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav .nav-list {
    flex-direction: column;
  }
  
  .main-nav .nav-list li {
    margin: 10px 0;
  }
  
  .search-container {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .qrcode-col {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Bootstrap网格辅助类 (简易版) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-md-6, .col-md-4, .col-md-8, .col-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .align-items-center { align-items: center; }
}

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

.rounded {
  border-radius: 8px;
}

.shadow {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
