/* 二手机动车零配件交易中心 - 深紫主题 */
:root {
  --primary: #4a148c;
  --primary-dark: #311061;
  --primary-light: #6a1b9a;
  --accent: #ce93d8;
  --accent-soft: #e8c5f0;
  --bg: #f5f0fa;
  --bg-white: #ffffff;
  --bg-dark: #1a0a2e;
  --text: #1f1430;
  --text-light: #5a4a6e;
  --border: #d8c8e8;
  --topbar-text: #b8a8cc;
  --hero-text: #d0c0e8;
  --footer-text: #9a8ab0;
  --footer-bottom: #6a5a80;
  --notice-bg: #f0e6f8;
  --table-even: #f8f4fc;
  --table-hover: #f0e6f8;
  --tag-bg: #f0e6f8;
  --shadow: rgba(74,20,140,0.12);
  --shadow-hover: rgba(74,20,140,0.22);
  --radius: 8px;
  --warning: #e67e22;
  --danger: #c0392b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top-bar { background: var(--bg-dark); color: var(--topbar-text); font-size: 13px; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--accent-soft); }

header { background: var(--bg-white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary); }

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav a { display: block; padding: 8px 14px; border-radius: var(--radius); color: var(--text); font-size: 15px; font-weight: 500; }
nav a:hover, nav a.active { background: var(--primary); color: #fff; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

.hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.12; border-radius: 50%; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 38px; line-height: 1.3; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 17px; color: var(--hero-text); max-width: 700px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-soft); color: var(--bg-dark); transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.stats-bar { background: var(--bg-white); padding: 30px 0; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item .num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-item .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; color: var(--text); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--bg-white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: all 0.3s; border-top: 3px solid var(--primary); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon { font-size: 36px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 12px; color: var(--text); }
.card p { color: var(--text-light); font-size: 15px; line-height: 1.7; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; }

.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.process-step { text-align: center; position: relative; }
.step-num { width: 50px; height: 50px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 14px; }
.process-step h4 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.process-step p { font-size: 13px; color: var(--text-light); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.content-page { padding: 40px 0 60px; }
.content-page .page-header { background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark)); color: #fff; padding: 50px 0; margin: -40px 0 40px; }
.content-page .page-header h1 { font-size: 32px; margin-bottom: 12px; }
.content-page .page-header p { color: var(--hero-text); font-size: 16px; max-width: 800px; }
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); }

.article-content { background: var(--bg-white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-content h2 { font-size: 24px; color: var(--primary-dark); margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 19px; color: var(--text); margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; color: var(--text); }
.article-content ul, .article-content ol { margin: 12px 0 16px 24px; }
.article-content li { margin-bottom: 8px; color: var(--text); }
.article-content strong { color: var(--primary-dark); }

.notice-box { background: var(--notice-bg); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.notice-box.warning { background: #fef5e7; border-left-color: var(--warning); }
.notice-box p { margin: 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.data-table th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) { background: var(--table-even); }
.data-table tr:hover { background: var(--table-hover); }

.faq-item { background: var(--bg-white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-question::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s; color: var(--text-light); }
.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 600px; }

.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 50px 0; text-align: center; }
.cta-section h2 { font-size: 28px; margin-bottom: 12px; }
.cta-section p { color: var(--hero-text); margin-bottom: 24px; font-size: 16px; }
.cta-section .phone-large { font-size: 32px; font-weight: 700; color: var(--accent); margin: 16px 0; }

footer { background: var(--bg-dark); color: var(--footer-text); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--footer-text); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: var(--footer-bottom); }

.sidebar { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sidebar h3 { font-size: 18px; margin-bottom: 16px; color: var(--primary-dark); padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 10px; }
.sidebar a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 14px; color: var(--text); }
.sidebar a:hover { background: var(--bg); color: var(--primary); }

.contact-info-box { background: var(--bg-white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-info-box .info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-box .info-icon { font-size: 24px; min-width: 30px; }
.contact-info-box .info-text h4 { font-size: 15px; color: var(--text-light); margin-bottom: 4px; }
.contact-info-box .info-text p { font-size: 17px; font-weight: 600; color: var(--text); }

.tag { display: inline-block; padding: 4px 12px; background: var(--tag-bg); color: var(--primary); border-radius: 20px; font-size: 13px; margin: 2px 4px 2px 0; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
  .menu-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 10px 0; }
  header .container { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .article-content { padding: 24px; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 24px; }
}
