/* P2-8 shared critical/support CSS extracted verbatim from baseline pages. Do not hand-edit; regenerate via tools/build.py */

#previewModal.pdf-open{display:flex !important}
@media(max-width:768px){
  #previewModal{padding:0 !important}
  #previewModal > div{max-height:100vh !important}
  #previewBody iframe{height:96vh !important}
}
/* ===== 安全防护：禁用文本选择、打印等 ===== */
body{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* 允许表单输入框选择文本 */
input, textarea, select, [contenteditable="true"]{
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
/* 禁止图片拖拽 */
img{
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
  -webkit-touch-callout: none;
  -khtml-user-drag: none;
}
/* 图片水印保护：防止直接右键保存 */
img::after{
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
}
/* 所有图片添加版权水印（通过CSS伪元素） */
.pcard .pimg, .bcard .thumb, .ccard .thumb, .cat-product-img{
  position: relative;
}
.pcard .pimg::after, .bcard .thumb::after, .ccard .thumb::after{
  content: '© FRP Grating Master GRATING';
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  z-index: 5;
  pointer-events: none;
  letter-spacing: 1px;
}
/* 禁用打印 */
@media print{
  body *{
    visibility: hidden !important;
  }
  body::after{
    content: "Printing is disabled. Contact sales@gratingfrp.com for documentation.";
    visibility: visible !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #333;
  }
}
/* 禁止长按菜单（移动端） */
*{
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 博客手机端优化 ===== */
@media (max-width: 768px) {
  /* TOC平铺，减少分行 */
  .blog-toc-sidebar, .toc-nav, .blog-toc {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .toc-nav a, .blog-toc a {
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 8px 10px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  /* Request a quotation按钮居中，不超出界面 */
  .blog-article-content a[href="/contact"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 16px auto !important;
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
  /* 作者卡片紧凑 */
  .author-card {
    margin: 12px 0 !important;
    padding: 10px 0 !important;
  }
  /* 相关文章紧凑 */
  .related-posts {
    margin-top: 24px !important;
    padding-top: 20px !important;
  }
  .related-card {
    padding: 14px 16px 14px 18px !important;
  }
  .related-card h4 {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

/* ===== 作者卡片强制水平布局 ===== */
.author-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  text-align: left !important;
  width: 100% !important;
}
.author-card .author-avatar {
  flex-shrink: 0 !important;
  flex: 0 0 48px !important;
}
.author-card .author-info {
  flex: 1 !important;
  text-align: left !important;
}
.author-card .author-info h4 {
  text-align: left !important;
}
.author-card .author-info p {
  text-align: left !important;
}
@media (max-width: 768px) {
  .author-card {
    gap: 10px !important;
    padding: 8px 0 !important;
    margin: 12px 0 !important;
  }
  .author-card .author-avatar {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
  .author-card .author-info h4 {
    font-size: 14px !important;
  }
  .author-card .author-info p {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
}

/* ===== 作者卡片100%铺满 ===== */
.author-card {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
.author-card .author-info {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}
.author-card .author-info p {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: left !important;
}
@media (max-width: 768px) {
  .author-card {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .author-card .author-info {
    width: calc(100% - 54px) !important;
    max-width: calc(100% - 54px) !important;
  }
  .author-card .author-info p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

/* ===== 作者卡片终极铺满 ===== */
@media (max-width: 768px) {
  .author-card {
    width: auto !important;
    max-width: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    box-sizing: border-box !important;
  }
  .author-card .author-info {
    width: calc(100% - 56px) !important;
    max-width: calc(100% - 56px) !important;
  }
  .author-card .author-info p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* 缩减作者卡片后面的空白 */
  .author-card + * {
    margin-top: 8px !important;
  }
  .author-card ~ .post-nav {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }
  .author-card ~ .related-posts {
    margin-top: 16px !important;
    padding-top: 14px !important;
  }
}

/* ===== 作者卡片最终版 - 覆盖所有旧样式 ===== */
@media (max-width: 640px) {
  .author-card {
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    width: auto !important;
    max-width: none !important;
  }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .author-card {
    margin-left: -24px !important;
    margin-right: -24px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* ===== 博客详情手机端：文章内容有边距，作者卡片铺满 ===== */
@media (max-width: 768px) {
  .blog-article-content {
    padding: 0 !important;
  }
  .blog-article-content .author-card {
    margin-left: -32px !important;
    margin-right: -32px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
}

/* ===== 作者卡片：仅手机端铺满屏幕 ===== */
@media (max-width: 768px) {
  .author-card {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
  }
}

/* ===== 作者卡片：电脑端字体加大适配 ===== */
@media (min-width: 769px) {
  .author-card {
    padding: 20px 24px !important;
    margin: 24px 0 !important;
    gap: 16px !important;
  }
  .author-card .author-avatar {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
  }
  .author-card h4 {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }
  .author-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* ===== 作者卡片后面空白极致缩减 ===== */
.author-card {
  margin-bottom: 8px !important;
}
.author-card + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.author-card ~ .blog-meta-bottom {
  margin-top: 8px !important;
  padding-top: 8px !important;
}
.author-card ~ .post-nav {
  margin-top: 12px !important;
  padding-top: 12px !important;
}
.author-card ~ .related-posts {
  margin-top: 16px !important;
  padding-top: 14px !important;
}
@media (max-width: 768px) {
  .author-card {
    margin-bottom: 4px !important;
  }
  .author-card ~ .blog-meta-bottom {
    margin-top: 4px !important;
    padding-top: 4px !important;
  }
}

/* ===== 作者卡片终极版：字体加大+空白完全取消 ===== */
@media (min-width: 769px) {
  .author-card {
    padding: 16px 24px !important;
    margin: 16px 0 0 0 !important;
    gap: 20px !important;
  }
  .author-card .author-avatar {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 72px !important;
  }
  .author-card h4 {
    font-size: 23px !important;
    margin-bottom: 8px !important;
  }
  .author-card p {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }
}
/* 后面所有空白完全取消 */
.author-card {
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
}
.author-card + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}
.author-card ~ * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.author-card ~ .blog-meta-bottom {
  margin-top: 0 !important;
  padding-top: 4px !important;
  border-top: none !important;
}
.author-card ~ .post-nav {
  margin-top: 8px !important;
  padding-top: 8px !important;
}
.author-card ~ .related-posts {
  margin-top: 12px !important;
  padding-top: 10px !important;
}
@media (max-width: 768px) {
  .author-card {
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
  }
  .author-card ~ .blog-meta-bottom {
    margin-top: 0 !important;
    padding-top: 2px !important;
  }
}

/* ===== 作者卡片：手机端字体调小+铺满屏幕 ===== */
@media (max-width: 768px) {
  .author-card {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    padding: 8px 16px !important;
    margin: 8px 0 0 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  .author-card .author-avatar {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .author-card h4 {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }
  .author-card p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}
/* 后面空白完全取消 */
.author-card ~ * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 手机端菜单流畅度优化 */
@media (max-width: 768px) {
  .mobile-menu, .nav-menu, .menu-overlay {
    transition: transform 0.25s ease, opacity 0.25s ease !important;
    will-change: transform, opacity !important;
  }
  .nav-link, .menu-item {
    transition: background 0.15s ease !important;
  }
}

/* ===== 手机端Applications强制1列 ===== */
@media (max-width: 768px) {
  .app-grid,
  .applications .app-grid,
  #applications .app-grid,
  .applications .grid-cards,
  #applications .grid-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .applications .nm,
  #applications .nm {
    grid-template-columns: 1fr !important;
  }
}

/* 手机端Hero区域优化 */
@media (max-width:900px){
  html body #view-home .hero{padding:30px 0 20px !important;min-height:auto !important}
  html body #view-home .hero h1{font-size:26px !important;line-height:1.2 !important;white-space:normal !important;margin-bottom:12px !important}
  html body #view-home .hero p.lead{width:100% !important;max-width:100% !important;font-size:14px !important;line-height:1.5 !important;text-align:center !important;margin:0 auto 16px auto !important}
  html body #view-home .hero-cta{gap:10px !important;margin-bottom:16px !important}
  html body #view-home .hero-cta .btn{padding:10px 16px !important;font-size:13px !important}
  html body #view-home .hero-badges{flex-direction:column !important;gap:8px !important;padding-top:14px !important;margin-top:0 !important}
  html body #view-home .hero-badges .badge-item{font-size:13px !important;width:100% !important;justify-content:center !important;text-align:center !important}
  html body #view-home .trust-bar{padding:16px 0 !important}
  html body #view-home .trust-grid{gap:12px !important}
  html body #view-home .trust-item{gap:10px !important;padding:6px 0 !important}
  html body #view-home .trust-text .t1{font-size:15px !important}
  html body #view-home .trust-text .t2{font-size:11px !important}
  html body #view-about h2{white-space:normal !important;font-size:clamp(28px,6vw,48px) !important}
  html body #view-about h2 span{font-size:0.75em !important;font-weight:800 !important;color:#fff !important;font-family:inherit !important;letter-spacing:0 !important}
  html body #view-about p[data-i18n="about.sub"]{font-size:20px !important;font-weight:700 !important;color:#fff !important;font-family:inherit !important;letter-spacing:0 !important}
}
@media (max-width:600px){
  html body #view-home .hero h1{font-size:22px !important;line-height:1.25 !important}
  html body #view-home .hero p.lead{font-size:13px !important}
  html body #view-home .hero-cta .btn{padding:9px 14px !important;font-size:12px !important}
  html body #view-home .hero-badges .badge-item{font-size:12px !important}
  html body #view-home .trust-text .t1{font-size:14px !important}
  html body #view-home .trust-text .t2{font-size:10px !important}
  html body #view-about h2{font-size:clamp(24px,7vw,36px) !important}
  html body #view-about h2 span{font-size:0.65em !important;letter-spacing:0 !important}
  html body #view-about p[data-i18n="about.sub"]{font-size:18px !important;font-weight:700 !important}
}
@media (max-width:400px){
  html body #view-home .hero h1{font-size:20px !important}
  html body #view-home .hero p.lead{font-size:12px !important}
  html body #view-about h2 span{font-size:0.55em !important}
  html body #view-about p[data-i18n="about.sub"]{font-size:16px !important}
}
@media (max-width:400px){
  html body #view-home .hero h1{font-size:20px !important}
  html body #view-home .hero p.lead{font-size:12px !important}
}
/* ===== 强制电脑端TOC右侧显示（最高优先级）===== */
@media (min-width: 901px) {
  .blog-detail-layout {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 40px !important;
  }
  .blog-toc-sidebar {
    display: block !important;
    position: sticky !important;
    top: 80px !important;
    order: 2 !important;
    width: 340px !important;
    max-width: 340px !important;
  }
  .blog-article-main {
    min-width: 0 !important;
    order: 1 !important;
  }
}
/* === FINAL UI OVERRIDES === */
html body #view-home .hero-cta{display:flex !important;flex-direction:row !important;gap:16px !important;flex-wrap:wrap !important;align-items:center !important}
html body #view-home .hero-cta .btn{white-space:nowrap !important;flex-shrink:0 !important;display:inline-flex !important;align-items:center !important;justify-content:center !important}
html body #view-home .section{padding:48px 0 !important}
html body #view-home .section:nth-child(odd){padding:56px 0 !important}
html body #view-home .section-head{margin-bottom:24px !important}
html body .foot-bottom{padding-top:8px !important;margin-top:8px !important}
html body #home-blog{margin-bottom:0 !important;padding-bottom:0 !important}
html body #home-blog + .cta-band{margin-top:0 !important}
html body .cta-band{margin-top:10px !important;margin-bottom:10px !important}
html body #view-home .section{padding:30px 0 !important}
html body #view-home .section:nth-child(odd){padding:36px 0 !important}
html body #view-home .section:has(#home-blog){padding-bottom:8px !important}
html body #view-home .cta-band{margin:0 !important;padding:20px 0 !important}
html body .section{padding:30px 0 !important}
@media(max-width:640px){
  html body #view-home .hero{padding:12px 0 16px !important;min-height:auto !important}
  html body #view-home .hero .eyebrow{margin-bottom:8px !important;font-size:10px !important}
  html body #view-home .hero h1{font-size:20px !important;line-height:1.25 !important;word-break:break-word !important;overflow-wrap:anywhere !important;max-width:100% !important;padding:0 4px !important;white-space:normal !important;text-align:center !important}
  html body #view-home .hero .lead{font-size:12px !important;line-height:1.5 !important;padding:0 4px !important;text-align:center !important}
  html body #view-home .hero-cta{flex-direction:column !important;gap:5px !important;padding:0 4px !important;width:100% !important}
  html body #view-home .hero-cta .btn{padding:6px 14px !important;font-size:12px !important;line-height:1.2 !important;white-space:normal !important;text-align:center !important;width:100% !important;flex-shrink:1 !important;margin:0 !important}
  html body .mobile-menu{padding-top:8px !important}
}
html body .section-alt{padding-top:30px !important;padding-bottom:8px !important}
html body .section:has(#home-blog) + .cta-band{margin-top:0 !important;padding-top:16px !important;padding-bottom:16px !important}
html body .foot-copyright{gap:2px !important;margin-top:0 !important}
html body .product-faq-section{max-width:100% !important;padding-left:24px !important;padding-right:24px !important}
html body .blog-grid{grid-auto-rows:auto !important;align-items:stretch !important}
html body .blog-grid .bcard{display:flex !important;flex-direction:column !important;height:100% !important}
html body .blog-grid .bcard .body{flex:1 !important;display:flex !important;flex-direction:column !important}
html body .blog-grid .bcard .more{margin-top:auto !important}
html body .cta-band{padding:24px 0 !important;margin:20px 0 !important}
html body .cta-band .container{justify-content:center !important;gap:40px !important;text-align:left !important;flex-wrap:wrap !important}
html body .cta-band .btn{margin:0 !important}
html body .section{padding:40px 0 !important}
html body .section:nth-child(odd){padding:48px 0 !important}
html body .section-head{margin-bottom:20px !important}
html body footer{padding-top:20px !important}
html body .foot-bottom{padding-top:8px !important;margin-top:8px !important}
/* === MOBILE BLOG TOC FLAT COMPACT === */
@media (max-width:1024px){
  html body .blog-detail-layout{display:flex !important;flex-direction:column !important;gap:10px !important;padding:0 10px !important;overflow-x:hidden !important;max-width:100% !important;box-sizing:border-box !important}html body .blog-article-main{min-width:0 !important;max-width:100% !important;overflow-x:hidden !important}html body .blog-article-content{max-width:100% !important;overflow-x:hidden !important;overflow-wrap:break-word !important;word-wrap:break-word !important}html body .blog-article-content img{max-width:100% !important;height:auto !important}html body .blog-article-content table{max-width:100% !important;display:block !important;overflow-x:auto !important}html body #blog-detail-content table{max-width:100%!important;display:block!important;overflow-x:auto!important}html body #blog-detail-content img{max-width:100%!important;height:auto!important}html body .blog-article-content p{font-size:15px !important;line-height:1.7 !important;text-align:justify !important;text-justify:inter-word !important;overflow-wrap:break-word !important}html body .blog-article-content ul,html body .blog-article-content ol{font-size:15px !important;padding-left:18px !important}
  html,body{overflow-x:hidden!important}html body .author-card{max-width:100%!important;width:100%!important;box-sizing:border-box!important;padding:12px 16px!important;gap:12px!important}html body .author-card .author-avatar{flex:0 0 56px!important;width:56px!important;height:56px!important}html body .author-card h4{font-size:16px!important;min-width:0!important;flex:1!important}html body .author-card p{font-size:13px!important}html body .blog-toc-sidebar{order:-1 !important;position:static !important;width:100% !important;max-width:100% !important;margin:0 0 6px 0 !important}
  html body .toc-sticky{background:transparent !important;border:none !important;border-radius:0 !important;padding:0 !important;max-height:none !important;box-shadow:none !important}
  html body .toc-header{margin-bottom:0 !important;padding:8px 12px !important;border-bottom:1px solid var(--line) !important;gap:8px !important;align-items:center !important}
  html body .toc-title{font-size:13px !important;letter-spacing:.08em !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;flex:1 !important;min-width:0 !important}
  html body .toc-toggle{padding:2px !important;width:24px !important;height:24px !important;flex-shrink:0 !important}
  html body .toc-nav{padding:2px 0 !important;gap:0 !important;max-height:300px !important}
  html body .toc-nav a{padding:7px 12px !important;font-size:13.5px !important;line-height:1.4 !important}
  html body .toc-nav a.toc-h3{padding-left:24px !important;font-size:13px !important}
  html body .toc-nav a.toc-h4{padding-left:36px !important;font-size:12.5px !important}
  html body .blog-toc-sidebar.toc-collapsed .toc-nav{max-height:0 !important;padding:0 !important;overflow:hidden !important}
  html body .blog-toc-sidebar.toc-collapsed{margin-bottom:0 !important}
  /* NUCLEAR overflow protection */
  html body #detail-content, html body #detail-content *{max-width:100% !important}
  html body #detail-content img{max-width:100% !important;height:auto !important}
  html body #detail-content table{max-width:100% !important;display:block !important;overflow-x:auto !important}
  html body #detail-content .author-card{left:auto !important;transform:none !important;position:static !important;width:100% !important;max-width:100% !important}
  html body #detail-content .related-grid{grid-template-columns:1fr !important}
  html body #detail-content .post-nav{grid-template-columns:1fr !important}
  html body #detail-content .share-buttons{flex-wrap:wrap !important;white-space:normal !important}
  html body #detail-content p, html body #detail-content li{text-align:justify !important;text-justify:inter-word !important}
  html body #detail-content{padding:0 12px !important}
  html body #detail-content .blog-detail-layout{padding:0 !important}
  html body #detail-content .blog-article-main{padding:0 !important}
  html body #detail-content .blog-article-content{padding:0 !important;margin:0 !important}
  html body #detail-content table{min-width:0 !important;width:100% !important;display:block !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch !important}
  html body #detail-content *{max-width:100vw !important;max-width:100% !important}
}
/* GF footer compact & balanced 20261004 */
footer{padding:40px 0 18px !important}
.foot-grid{gap:28px !important;margin-bottom:16px !important}
.foot-brand-header{gap:12px !important;margin-bottom:6px !important}
.foot-brand-header img{height:64px !important;width:auto !important;max-width:230px !important}
.foot-brand-text p{font-size:12.5px !important;line-height:1.5 !important;margin:0 0 6px !important}
.foot-brand [style*="margin-top:14px"]{margin-top:6px !important;font-size:12px !important;line-height:1.4 !important}
.foot-contact{margin-top:6px !important;gap:10px !important}
.foot-contact div{font-size:12px !important}
.foot-grid h4{font-size:13px !important;margin-bottom:10px !important;letter-spacing:.04em !important}
.foot-grid a{display:block !important;font-size:12.5px !important;line-height:1.7 !important;padding:2px 0 !important}
/* GF desktop nav fix 20261004 */nav.desktop{display:flex;gap:16px;align-items:center;flex:1;justify-content:flex-end;min-width:0}nav.desktop a.navlink{white-space:nowrap;flex-shrink:0;padding:8px 0}@media (max-width:900px){ nav.desktop{display:none !important} }