/* ============================================
   千晅文化传媒 - 全站样式表
   ============================================ */

/* ---- 基础重置 ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.8;
  background: #f8f8f8;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c8323c;
}

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

ul {
  list-style: none;
}

/* ---- 通用容器 ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content {
  background: #fff;
  border-radius: 12px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* ---- 按钮 ---- */
.btn {
  display: inline-block;
  background: #c8323c;
  color: #fff;
  padding: 12px 36px;
  border-radius: 6px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: #a82830;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 50, 60, 0.3);
}

.btn-outline {
  background: transparent;
  color: #c8323c;
  border: 2px solid #c8323c;
}

.btn-outline:hover {
  background: #c8323c;
  color: #fff;
}

.small-btn {
  background: #c8323c;
  color: #fff;
  padding: 8px 24px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}

.small-btn:hover {
  background: #a82830;
  color: #fff;
}

.full-width {
  width: 100%;
  margin-top: 20px;
  background: #c8323c;
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.full-width:hover {
  background: #a82830;
}

.full-width:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ---- Header / 导航 ---- */
.header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #c8323c;
  letter-spacing: 1px;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header nav a {
  font-size: 15px;
  color: #555;
  position: relative;
  padding: 4px 0;
}

.header nav a.active {
  color: #c8323c;
  font-weight: 600;
}

.header nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c8323c;
  border-radius: 1px;
}

.btn-order {
  background: #c8323c;
  color: #fff !important;
  padding: 6px 18px !important;
  border-radius: 20px;
  font-size: 14px;
}

.btn-order:hover {
  background: #a82830;
}

.btn-order.active {
  background: #a82830;
}

.btn-order.active::after {
  display: none;
}

/* ---- Banner ---- */
.banner {
  background: linear-gradient(135deg, #c8323c 0%, #8b1e26 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.banner .btn {
  background: #fff;
  color: #c8323c;
  font-weight: 600;
}

.banner .btn:hover {
  background: #f5f5f5;
  color: #a82830;
}

.page-banner {
  background: linear-gradient(135deg, #c8323c 0%, #8b1e26 100%);
  color: #fff;
  text-align: center;
  padding: 50px 20px 80px;
}

.page-banner h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 15px;
  opacity: 0.85;
}

/* ---- 首页：公司简介 ---- */
.intro h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

.intro p {
  font-size: 15px;
  color: #555;
  margin-bottom: 14px;
  text-align: justify;
}

.intro p strong {
  color: #333;
}

/* ---- 首页：核心优势 ---- */
.advantages {
  background: #fff;
}

.advantages h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #222;
}

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

.adv-item {
  padding: 28px 24px;
  background: #faf8f8;
  border-radius: 10px;
  border: 1px solid #f0e8e8;
  transition: all 0.3s;
}

.adv-item:hover {
  border-color: #c8323c;
  box-shadow: 0 4px 16px rgba(200, 50, 60, 0.08);
}

.adv-icon {
  font-size: 28px;
  font-weight: 800;
  color: #c8323c;
  opacity: 0.5;
  margin-bottom: 12px;
}

.adv-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #333;
}

.adv-item p {
  font-size: 14px;
  color: #777;
}

/* ---- 首页：服务概览 ---- */
.service-preview h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #222;
}

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

.preview-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: all 0.3s;
}

.preview-card:hover {
  border-color: #c8323c;
  box-shadow: 0 4px 16px rgba(200, 50, 60, 0.1);
  transform: translateY(-2px);
}

.preview-card h3 {
  font-size: 17px;
  color: #333;
  margin-bottom: 8px;
}

.preview-card p {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.price-tag {
  display: inline-block;
  background: #fde8ea;
  color: #c8323c;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 14px;
  border-radius: 4px;
}

/* ---- 服务页 ---- */
.service-item {
  padding: 28px 0;
  border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
  border-bottom: none;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.service-header h2 {
  font-size: 20px;
  color: #222;
}

.service-header .price {
  font-size: 20px;
  font-weight: 700;
  color: #c8323c;
}

.service-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
}

.service-features {
  margin-bottom: 8px;
}

.service-features li {
  padding: 4px 0 4px 24px;
  position: relative;
  font-size: 14px;
  color: #555;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c8323c;
  font-weight: 700;
}

/* ---- 案例页 ---- */
.case-item {
  padding: 28px 0;
  border-bottom: 1px solid #f0f0f0;
}

.case-item:last-of-type {
  border-bottom: none;
}

.case-tag {
  display: inline-block;
  background: #fde8ea;
  color: #c8323c;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.case-item h2 {
  font-size: 19px;
  color: #222;
  margin-bottom: 8px;
}

.case-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.case-item p {
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
}

.case-result {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.case-result span {
  background: #f5f5f5;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #c8323c;
  font-weight: 600;
}

.case-cta {
  text-align: center;
  padding: 36px 0 8px;
  border-top: 1px solid #f0f0f0;
  margin-top: 20px;
}

.case-cta p {
  font-size: 15px;
  color: #888;
  margin-bottom: 20px;
}

.case-cta .btn {
  margin: 0 8px;
}

/* ---- 联系页 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.contact-card {
  padding: 24px;
  background: #faf8f8;
  border: 1px solid #f0e8e8;
  border-radius: 10px;
  text-align: center;
}

.contact-card h3 {
  font-size: 16px;
  color: #c8323c;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.text-link {
  color: #c8323c;
  font-weight: 600;
}

.contact-section {
  margin-bottom: 36px;
}

.contact-section h2 {
  font-size: 20px;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e8e8;
}

.contact-section p {
  font-size: 15px;
  color: #666;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin: 0 auto 10px;
  background: #c8323c;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}

.step h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: #888;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  padding: 12px 16px;
  border: 1px solid #eee;
  font-size: 14px;
}

.info-table td:first-child {
  background: #faf8f8;
  color: #888;
  width: 120px;
  white-space: nowrap;
}

.info-table td:last-child {
  color: #555;
}

/* ---- 下单页 ---- */
.order-form {
  max-width: 520px;
  margin: 0 auto;
}

.selected-service {
  background: #fde8ea;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-left: 4px solid #c8323c;
  border-radius: 4px;
  font-size: 15px;
  color: #c8323c;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 600;
}

.required {
  color: #c8323c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c8323c;
  box-shadow: 0 0 0 3px rgba(200, 50, 60, 0.08);
}

.form-group textarea {
  resize: vertical;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  font-size: 14px;
  color: #666;
}

.agreement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #c8323c;
}

.agreement label {
  line-height: 1.6;
}

.agreement a {
  color: #c8323c;
  text-decoration: underline;
}

.note {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-top: 20px;
  padding-bottom: 10px;
}

/* ---- 法律文档页 ---- */
.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-size: 26px;
  color: #222;
  text-align: center;
  margin-bottom: 8px;
}

.update-date {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 28px;
}

.legal-content h3 {
  font-size: 17px;
  color: #333;
  margin: 24px 0 10px;
}

.legal-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
  text-align: justify;
}

.legal-content strong {
  color: #333;
}

/* ---- Footer ---- */
.footer {
  background: #2a2a2a;
  color: #aaa;
  text-align: center;
  padding: 32px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer p {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer a {
  color: #888;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s;
}

.footer a:hover {
  color: #ccc;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .header nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header nav a {
    font-size: 14px;
  }

  .banner {
    padding: 50px 20px;
  }

  .banner h1 {
    font-size: 26px;
  }

  .banner p {
    font-size: 15px;
  }

  .page-banner {
    padding: 36px 20px 60px;
  }

  .page-banner h1 {
    font-size: 22px;
  }

  .container {
    padding: 24px 16px;
  }

  .page-content {
    margin-top: -30px;
    padding: 24px 16px;
  }

  .adv-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .case-result {
    flex-direction: column;
    gap: 8px;
  }

  .case-cta .btn {
    display: block;
    margin: 8px auto;
  }

  .info-table td:first-child {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
