/*
Theme Name: TonerManufacturer B2B
Theme URI: https://tonermanutacturer.com
Author: TonerManufacturer
Author URI: https://tonermanutacturer.com
Description: Professional B2B facial toner manufacturer WordPress theme. Industrial design with dark blue + yellow color scheme, optimized for OEM/ODM factory websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tonermanufacturer
Tags: b2b, manufacturing, factory, skincare, cosmetics, oem, private-label
*/

/* Base styles */
body {
  background: #ffffff;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container-site {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile menu animation */
#mobile-menu {
  display: none;
}

#mobile-menu.active {
  display: block;
}

/* Animate pulse dot */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile Menu */
#mobile-menu {
  display: none;
}

#mobile-menu.active {
  display: block;
}

/* Responsive Product Cards */
@media (max-width: 768px) {
  .container-site {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Product card adjustments for mobile */
  .aspect-4-3 {
    aspect-ratio: 4/3;
  }
  
  /* Better touch targets on mobile */
  a, button {
    min-height: 44px;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .container-site {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ========================================
   Blog Single Page - Content Width
   ======================================== */

/* 博客详情页容器宽度 */
body.single-post .container-site {
  max-width: 1400px !important;
}

/* 博客详情页内容区域宽度 */
body.single-post .max-w-6xl {
  max-width: 1300px !important;
}

/* 覆盖 Tailwind prose 的默认最大宽度限制（仅博客详情页） */
body.single-post .prose,
body.single-post .prose.prose-lg {
  max-width: none !important;
  width: 100% !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

/* 强制覆盖 prose 内部元素的宽度限制 */
body.single-post .prose > * {
  max-width: none !important;
}

/* 博客段落间距 */
body.single-post .prose p {
  margin-bottom: 24px;
}

/* 博客图片优化（仅博客详情页） */
body.single-post .aspect-video {
  aspect-ratio: 16/9;
}

body.single-post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

/* 博客表格美化（仅博客详情页） */
body.single-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.single-post th,
body.single-post td {
  padding: 16px;
  text-align: left;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

body.single-post th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

/* 移动端适配（仅博客详情页） */
@media (max-width: 768px) {
  body.single-post .container-site {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  body.single-post .max-w-6xl {
    max-width: 100% !important;
  }
}
