/* =========================================================================
   彻底去 AI / SaaS 质感：国内经典广告制作厂官方网站通用专用基础样式表
   ========================================================================= */

:root {
  --theme-blue: #0050b3;   /* 经典工业深蓝 */
  --theme-red: #e60012;    /* 传统招牌警示红 */
  --text-main: #222222;
  --text-gray: #666666;
  --bg-gray: #f4f6f9;
  --border-color: #cccccc; /* 强硬灰色边框 */
}

/* 强制传统的硬核排版（彻底干掉大圆角与柔和投影） */
html, body {
  background: #ffffff !important;
  color: var(--text-main) !important;
  margin: 0; padding: 0;
  font-family: "Microsoft YaHei", "SimSun", sans-serif !important;
}

a { text-decoration: none; color: inherit; }
.container { width: 1200px !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 !important; }

/* 顶部传统跑马灯式通知栏 */
.top-bar {
  background: #ebebeb;
  border-bottom: 1px solid #dddddd;
  font-size: 13px;
  color: var(--text-gray);
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

/* 头部大排号区域 */
.site-header { background: #ffffff !important; border-bottom: 3px solid var(--theme-blue) !important; box-shadow: none !important; }
.header-main { display: flex !important; justify-content: space-between !important; align-items: center !important; height: 95px !important; }
.logo-area { display: flex; align-items: baseline; gap: 15px; }
.logo-area .brand { font-size: 32px !important; font-weight: 900 !important; color: var(--theme-blue) !important; letter-spacing: -1px; }
.logo-area .slogan { font-size: 15px; color: var(--theme-red); font-weight: bold; border-left: 2px solid #ccc; padding-left: 12px; }

.header-contact { display: flex; align-items: center; gap: 12px; }
.contact-icon { font-size: 36px; color: var(--theme-red); font-family: Arial; }
.contact-info span { display: block; font-size: 13px; color: var(--text-gray); text-align: right; }
.contact-info strong { display: block; font-size: 26px; color: var(--theme-red); font-weight: bold; font-family: "Impact", Arial; }

/* 实心红/蓝高密度导航条 */
.main-nav { background: var(--theme-blue) !important; height: 48px !important; }
.main-nav .container { display: flex !important; justify-content: flex-start !important; }
.main-nav a {
  display: block !important;
  padding: 0 40px !important;
  line-height: 48px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: bold !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav a:hover { background: #003d8a !important; color: #ffcc00 !important; }

/* 实拍背景无大留白的 Banner 区 */
.home-banner {
  height: 420px !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
  display: block !important;
}
.home-banner::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0, 0, 0, 0.55);
}
.banner-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.banner-text { color: #ffffff; max-width: 850px; }
.banner-text h1 { font-size: 46px !important; margin: 0 0 12px 0 !important; font-weight: bold !important; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.banner-text h2 { font-size: 28px !important; margin: 0 0 20px 0 !important; color: #ffeb3b !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.banner-text p { font-size: 16px !important; line-height: 1.6 !important; margin-bottom: 25px !important; color: #e0e0e0; }

.banner-actions a { display: inline-block; padding: 12px 35px; font-size: 18px; font-weight: bold; margin-right: 15px; border-radius: 0 !important; }
.btn-red { background: var(--theme-red) !important; color: #fff !important; }
.btn-red:hover { background: #cc0000 !important; }
.btn-blue { background: #0077ff !important; color: #fff !important; }

/* 工厂四大承诺条 */
.trust-bar { background: #ffffff !important; border-bottom: 1px solid var(--border-color) !important; padding: 20px 0 !important; }
.trust-bar .container { display: flex !important; justify-content: space-between !important; }
.trust-item { flex: 1; text-align: center; border-right: 1px solid #e5e5e5; }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; font-size: 18px; color: var(--theme-blue); margin-bottom: 3px; }
.trust-item span { color: var(--text-gray); font-size: 13px; }

/* 通用模块结构 */
.home-section { padding: 45px 0 !important; display: block !important; }
.module-gray { background: var(--bg-gray) !important; }
.section-title { text-align: center; margin-bottom: 35px; }
.section-title h2 { font-size: 28px !important; color: #111 !important; margin: 0 0 8px 0 !important; font-weight: bold; }
.section-title h2 span { font-size: 13px; color: #999; font-family: Arial; display: block; font-weight: normal; margin-top: 4px; letter-spacing: 1px; }
.section-title h2::after { content: ''; display: block; width: 50px; height: 3px; background: var(--theme-red); margin: 12px auto 0 auto; }
.section-title p { color: var(--text-gray); font-size: 14px; margin-top: 10px; }

/* 彻底剥离 AI 味道的业务方格：方角、强边框、底色纯白 */
.product-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 18px !important; }
.list-item { background: #ffffff !important; border: 1px solid var(--border-color) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; transition: border-color 0.15s; }
.list-item:hover { border-color: var(--theme-blue) !important; }
.item-pic img { width: 100%; height: 175px; object-fit: cover; display: block; border-radius: 0 !important; }
.no-pic { height: 175px; background: #e0e0e0; line-height: 175px; text-align: center; color: #777; }
.item-info { padding: 14px !important; background: #fff !important; }
.item-title { font-size: 16px !important; margin: 0 0 8px 0 !important; color: var(--theme-blue) !important; font-weight: bold !important; border-bottom: 1px dashed #e5e5e5; padding-bottom: 8px; }
.item-desc { font-size: 13px !important; color: var(--text-gray) !important; height: 54px !important; overflow: hidden !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
.item-more { display: block; color: var(--theme-red); font-size: 12px; text-align: right; font-weight: bold; }

/* 机打单风测算表单 */
.calculator-box { display: flex !important; border: 1px solid var(--border-color) !important; background: #ffffff !important; border-radius: 0 !important; }
.calc-form { width: 50% !important; padding: 25px !important; border-right: 1px solid var(--border-color) !important; background: #fafafa !important; }
.form-row { margin-bottom: 18px; display: flex; align-items: center; }
.form-row label { width: 90px; font-weight: bold; color: #333; font-size: 14px; }
.form-row select, .form-row input { flex: 1; height: 38px; border: 1px solid #b5b5b5; padding: 0 10px; font-family: inherit; border-radius: 0 !important; box-shadow: none !important; }
.submit-row { margin-top: 25px; padding-left: 90px; }
.btn-calc { background: var(--theme-red) !important; color: #ffffff !important; border: none !important; height: 42px; padding: 0 35px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 0 !important; }
.calc-result { width: 50% !important; padding: 25px !important; display: flex; align-items: center; justify-content: center; background: #f2f7ff !important; }
.result-placeholder { color: #666; font-size: 14px; text-align: center; line-height: 1.6; }

/* 施工案例展示：紧密排列，不留喘息空间 */
.case-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 12px !important; }
.case-item { border: 1px solid #dcdcdc !important; background: #ffffff !important; padding: 5px !important; border-radius: 0 !important; box-shadow: none !important; }
.case-img-wrap { width: 100%; height: 190px; overflow: hidden; }
.case-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: none; }
.case-title { text-align: center; padding: 8px 0 3px 0; font-size: 14px; color: #222; font-weight: bold; }

/* 联系方式与传统双栏留资表单 */
.contact-container { display: flex !important; border: 1px solid var(--border-color) !important; border-radius: 0 !important; box-shadow: none !important; }
.contact-info-box { width: 45% !important; padding: 35px !important; background: var(--theme-blue) !important; color: #ffffff !important; }
.contact-form-box { width: 55% !important; padding: 35px !important; background: #ffffff !important; }
.contact-info-box h3 { font-size: 22px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; margin: 0 0 15px 0; }
.phone-huge { font-size: 34px !important; font-weight: bold !important; color: #ffff00 !important; margin: 20px 0; font-family: "Impact", Arial; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.phone-huge { display: block; text-decoration: none !important; }
.phone-huge:hover { color: #ffffff !important; }

.lead-form-classic h3 { margin: 0 0 20px 0; font-size: 18px; color: var(--theme-blue); border-left: 4px solid var(--theme-blue); padding-left: 10px; }
.lead-form-classic input, .lead-form-classic textarea { width: 100%; box-sizing: border-box; border: 1px solid #b5b5b5; padding: 10px; margin-bottom: 15px; font-family: inherit; border-radius: 0 !important; }
.lead-form-classic textarea { height: 90px; resize: none; }
.btn-submit { background: var(--theme-blue) !important; color: #ffffff !important; border: none !important; width: 100%; height: 44px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 0 !important; }

/* 页脚深黑色块 */
.site-footer { background: #23262f !important; color: #bcc4d0 !important; padding: 35px 0 15px 0 !important; border-top: none !important; }
.footer-grid { display: flex !important; justify-content: space-between !important; border-bottom: 1px solid #333845 !important; padding-bottom: 25px; margin-bottom: 15px; }
.footer-about { width: 45%; }
.footer-about h3, .footer-contact h3 { color: #ffffff !important; font-size: 16px; margin: 0 0 15px 0; font-weight: bold; }
.footer-contact .foot-phone span { font-size: 24px; color: #ffffff; font-family: Arial; font-weight: bold; }
.foot-phone a { color: inherit !important; text-decoration: none !important; }
.foot-phone a:hover span { color: #ffcc00 !important; }
.footer-qr { text-align: center; }
.footer-qr { color: inherit !important; text-decoration: none !important; }
.footer-qr img { width: 150px; height: auto; max-height: 210px; background: #ffffff; padding: 6px; display: block; margin: 0 auto; border: 3px solid #ffffff; object-fit: contain; }
.footer-qr span { display: block; margin-top: 8px; font-size: 13px; color: #ffffff; font-weight: bold; }
.footer-bottom { text-align: center; font-size: 12px; color: #777; }
.footer-icp { margin: 6px 0 0 0; }
.footer-icp a { color: #9aa4b2 !important; text-decoration: none !important; }
.footer-icp a:hover { color: #ffffff !important; text-decoration: underline !important; }

/* 右侧侧边悬浮栏 */
.fixed-service {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  width: 76px; background: #ffffff; border: 1px solid var(--border-color); border-right: none; z-index: 9999;
}
.service-item { text-align: center; border-bottom: 1px solid #eeeeee; position: relative; }
.service-item a, .service-item { display: block; padding: 12px 4px; color: #444; cursor: pointer; }
.service-item i { display: block; font-size: 22px; font-style: normal; margin-bottom: 3px; color: var(--theme-blue); }
.service-item span { font-size: 12px; line-height: 1.3; }
.service-item:hover { background: var(--theme-blue); color: #ffffff; }
.service-item:hover i { color: #ffffff; }
.phone-item { background: var(--theme-red) !important; color: #ffffff !important; }
.phone-item i { color: #ffffff; }
.wechat-item > a { background: #fff7e6 !important; border-left: 4px solid var(--theme-red); }
.wechat-item i { color: var(--theme-red) !important; font-size: 26px; }
.wechat-item span { color: #222 !important; font-weight: bold; }

.hover-qr { display: none; position: absolute; right: 76px; top: 0; background: #ffffff; border: 2px solid var(--theme-red); padding: 10px; width: 220px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.hover-qr img { width: 100%; height: auto; display: block; object-fit: contain; }
.hover-qr p { margin: 6px 0 0 0; color: #111; font-size: 13px; font-weight: bold; text-align: center; }
.wechat-item:hover .hover-qr { display: block; }

/* 手机端极端降级适配 */
@media (max-width: 1200px) {
  .container { width: 100% !important; max-width: 100% !important; padding: 0 12px !important; box-sizing: border-box !important; }
  .product-grid, .case-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .calculator-box, .contact-container, .footer-grid { flex-direction: column !important; }
  .calc-form, .calc-result, .contact-info-box, .contact-form-box, .footer-about { width: 100% !important; }
  .calc-form { border-right: none !important; border-bottom: 1px solid var(--border-color) !important; }
  .header-main { height: auto !important; padding: 12px 0 !important; flex-wrap: wrap; gap: 12px; }
  .main-nav { overflow-x: auto; white-space: nowrap; height: 42px !important; }
  .main-nav a { display: inline-block !important; padding: 0 20px !important; line-height: 42px !important; }
  .fixed-service { display: none !important; }
  .home-banner { height: 300px !important; }
  .banner-text h1 { font-size: 28px !important; }
  .banner-text h2 { font-size: 18px !important; }
}

/* Final overrides: keep the same layout but fix old stylesheet conflicts and weak actions. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.brand::before,
.brand::after {
  display: none !important;
}

.header-contact {
  text-decoration: none !important;
  padding: 10px 14px !important;
  border: 1px solid #d8d8d8 !important;
  background: #ffffff !important;
}
.header-contact:hover {
  border-color: var(--theme-red) !important;
}

body main > section.home-banner {
  background: linear-gradient(90deg, rgba(0, 23, 52, .72) 0%, rgba(0, 23, 52, .42) 42%, rgba(0, 23, 52, .18) 100%), url("/assets/ppt/workshop-hero.jpg") center center / cover no-repeat !important;
  border-bottom: 4px solid var(--theme-blue) !important;
}
body main > section.home-banner::before {
  background: transparent !important;
  pointer-events: none !important;
}
.banner-text {
  max-width: 760px !important;
  padding: 26px 30px 28px !important;
  border-left: 6px solid var(--theme-red) !important;
  background: rgba(0, 29, 68, .42) !important;
}
.banner-text h1,
.banner-text h2,
.banner-text p {
  max-width: 100% !important;
}
.banner-actions a {
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}
.btn-blue {
  background: var(--theme-blue) !important;
}

body main > section.home-section {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-color) !important;
}
body main > section.home-section.module-gray {
  background: var(--bg-gray) !important;
}
body main > section.contact-section {
  background: #eef3f8 !important;
}

.section-title {
  padding-bottom: 15px !important;
  border-bottom: 1px solid #d9d9d9 !important;
}
.section-title h2 {
  letter-spacing: 0 !important;
}

.item-link {
  display: block !important;
  height: 100% !important;
}
.list-item,
.case-item {
  transition: border-color .15s ease, transform .15s ease !important;
}
.list-item:hover,
.case-item:hover {
  transform: translateY(-2px) !important;
}
.item-pic,
.case-img-wrap {
  background: #d9dee6 !important;
}
.item-pic img,
.case-img-wrap img {
  background: #d9dee6 !important;
}

.guide-grid .item-info {
  background: #fbfbfb !important;
}

.calculator-box {
  align-items: stretch !important;
}
.calc-form,
.calc-result,
.contact-info-box,
.contact-form-box {
  box-sizing: border-box !important;
}
.result-placeholder {
  width: 100% !important;
  min-height: 160px !important;
  padding: 24px !important;
  border: 1px dashed #b8c7da !important;
  background: #ffffff !important;
}

.fixed-service {
  width: 96px !important;
}
.service-item a,
.service-item {
  color: inherit !important;
}
.service-item span {
  display: block !important;
  word-break: break-all !important;
}
.phone-item span {
  font-size: 11px !important;
}
.hover-qr {
  right: 96px !important;
}

.lead-form-classic .hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 1200px) {
  .top-bar .container {
    gap: 8px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .logo-area {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .logo-area .brand {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
  .logo-area .slogan {
    margin-left: 0 !important;
  }
  .header-contact {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .contact-info span {
    text-align: left !important;
  }
  .home-banner {
    height: auto !important;
    min-height: 360px !important;
  }
  .banner-content {
    min-height: 360px !important;
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }
  .banner-text {
    width: 100% !important;
    max-width: 760px !important;
  }
}

@media (max-width: 640px) {
  .product-grid,
  .case-grid {
    grid-template-columns: 1fr !important;
  }
  .banner-text {
    padding: 20px 18px !important;
  }
  .banner-text h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
  .banner-text h2 {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .banner-actions a {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }
  .form-row {
    display: block !important;
  }
  .form-row label {
    display: block !important;
    width: auto !important;
    margin-bottom: 6px !important;
  }
  .submit-row {
    padding-left: 0 !important;
  }
  .btn-calc {
    width: 100% !important;
  }
}
