/* ===== 移动端全局样式 ===== */

/* 移动端隐藏PC端导航 */
@media (max-width: 768px) {
  /* ===== 全局修复 ===== */
  * {
    box-sizing: border-box;
  }
  
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* 隐藏PC导航 */
  .navbar-nav,
  .navbar-cta,
  .navbar-mobile-toggle {
    display: none !important;
  }
  
  /* 简化顶部导航 */
  .navbar {
    height: 56px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .navbar-container {
    height: 56px;
    padding: 0 16px;
  }
  
  .navbar-brand {
    font-size: 18px;
    font-weight: 700;
  }
  
  .navbar-brand .logo {
    width: 32px;
    height: 32px;
  }
  
  /* 为底部导航留出空间 */
  body {
    padding-bottom: 70px;
  }
  
  /* Container */
  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
  }
  
  /* Hero区域 */
  .hero {
    padding: 80px 16px 48px !important;
    min-height: auto !important;
  }
  
  .hero-container {
    padding: 0 !important;
  }
  
  .hero-badge {
    flex-wrap: wrap;
    font-size: 11px !important;
    padding: 6px 10px !important;
    gap: 4px !important;
    justify-content: center;
  }
  
  .hero-badge span:not(.dot) {
    white-space: nowrap;
    font-size: 11px !important;
  }
  
  .hero-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  
  .hero-title + h2,
  .hero-container > h2,
  h2[style*="font-size: 24px"] {
    font-size: 14px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
  }
  
  /* 价格展示区域 - 左右两列 */
  .hero-container > div[style*="display: flex"][style*="gap: 48px"],
  .hero-container > div[style*="justify-content: center"][style*="align-items: flex-end"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    margin-bottom: 20px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .price-highlight .currency {
    font-size: 14px !important;
  }
  
  .price-highlight .amount {
    font-size: 28px !important;
  }
  
  .price-highlight .unit {
    font-size: 11px !important;
  }
  
  /* 价格数字内联样式覆盖 */
  .price-highlight span[style*="font-size: 56px"] {
    font-size: 28px !important;
  }
  
  /* 按钮组 - 横向排列两个小按钮 */
  .hero-actions {
    flex-direction: row !important;
    gap: 12px !important;
    padding: 0 !important;
  }
  
  .hero-actions .btn {
    flex: 1 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    justify-content: center !important;
  }
  
  /* 试用提示区域的按钮组 - 单列布局 */
  .demo-buttons {
    gap: 10px !important;
  }
  
  .demo-buttons .btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    justify-content: center !important;
  }
  
  /* 信任徽章 */
  .trust-badges {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    margin-top: 16px !important;
  }
  
  .trust-badge {
    font-size: 11px !important;
    gap: 4px !important;
  }
  
  /* Section 通用 */
  .section {
    padding: 32px 0 !important;
  }
  
  .section-header {
    margin-bottom: 20px !important;
  }
  
  .section-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  
  .section-subtitle {
    font-size: 13px !important;
  }
  
  /* ===== 痛点区域 - 强制覆盖内联样式 ===== */
  .pain-points-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  
  .pain-points-wrapper > .pain-points-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    flex: none !important;
    width: 100% !important;
  }
  
  .pain-points-wrapper > .solution-card {
    flex: none !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
  
  .pain-point {
    padding: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  
  .pain-point > .icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .pain-point > .icon i {
    font-size: 12px !important;
  }
  
  .pain-point > div:not(.icon) {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .pain-point h4 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }
  
  .pain-point p {
    font-size: 12px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }
  
  /* 解决方案卡片 */
  .solution-card {
    padding: 16px !important;
  }
  
  .solution-card .badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  
  .solution-card h4 {
    font-size: 16px !important;
  }
  
  .solution-card .price .current {
    font-size: 24px !important;
  }
  
  .solution-card .price .original {
    font-size: 14px !important;
  }
  
  .solution-card .desc {
    font-size: 12px !important;
  }
  
  .solution-card .highlights {
    gap: 8px !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
  }
  
  .solution-card .highlight-item {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  
  /* ===== 成本对比区域 - 强制覆盖内联样式 ===== */
  .cost-comparison-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .cost-comparison-wrapper > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 14px !important;
    margin: 0 !important;
    order: unset !important;
  }
  
  /* 中间节省金额卡片 - 排第一 */
  .cost-comparison-wrapper > div:nth-child(2) {
    order: 0 !important;
    padding: 20px 14px !important;
  }
  
  .cost-comparison-wrapper > div:nth-child(2) > div {
    padding: 16px !important;
  }
  
  /* SaaS卡片 - 排第二 */
  .cost-comparison-wrapper > div:first-child {
    order: 1 !important;
  }
  
  /* WLN卡片 - 排第三 */
  .cost-comparison-wrapper > div:last-child {
    order: 2 !important;
  }
  
  .cost-comparison-wrapper div[style*="font-size: 56px"] {
    font-size: 28px !important;
  }
  
  .cost-comparison-wrapper div[style*="font-size: 40px"] {
    font-size: 24px !important;
  }
  
  .cost-comparison-wrapper div[style*="font-size: 22px"] {
    font-size: 14px !important;
  }
  
  .cost-comparison-wrapper div[style*="font-size: 16px"] {
    font-size: 13px !important;
  }
  
  /* ===== 核心优势网格 - 4列改2列 ===== */
  .core-advantages-grid,
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  
  div[style*="grid-template-columns: repeat(4, 1fr)"] > div {
    padding: 14px 10px !important;
  }
  
  div[style*="grid-template-columns: repeat(4, 1fr)"] div[style*="font-size: 28px"] {
    font-size: 18px !important;
  }
  
  div[style*="grid-template-columns: repeat(4, 1fr)"] div[style*="font-size: 14px"] {
    font-size: 12px !important;
  }
  
  div[style*="grid-template-columns: repeat(4, 1fr)"] div[style*="font-size: 13px"] {
    font-size: 11px !important;
  }
  
  /* ===== 为什么选择 / 文档类型 - 3列改2列 ===== */
  section.section div[style*="grid-template-columns: repeat(3, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* ===== 客户评价卡片 - 保持单列（文字多） ===== */
  section.section div[style*="grid-template-columns: repeat(3, 1fr)"]:has(.testimonial-card) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .testimonial-card {
    padding: 20px !important;
  }
  
  .testimonial-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }
  
  .testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .testimonial-info h4 {
    font-size: 14px !important;
  }
  
  .testimonial-info p {
    font-size: 12px !important;
  }
  
  /* 功能卡片 */
  .feature-card {
    padding: 14px !important;
  }
  
  .feature-card h3 {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  
  .feature-card p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  
  /* 图标尺寸 - 两列布局适配 */
  div[style*="width: 80px"][style*="height: 80px"] {
    width: 48px !important;
    height: 48px !important;
  }
  
  div[style*="width: 64px"][style*="height: 64px"] {
    width: 44px !important;
    height: 44px !important;
  }
  
  div[style*="width: 48px"][style*="height: 48px"] {
    width: 36px !important;
    height: 36px !important;
  }
  
  div[style*="width: 40px"][style*="height: 40px"] {
    width: 32px !important;
    height: 32px !important;
  }
  
  /* 图标字体大小 - 两列布局适配 */
  i[style*="font-size: 32px"] {
    font-size: 20px !important;
  }
  
  i[style*="font-size: 28px"] {
    font-size: 16px !important;
  }
  
  i[style*="font-size: 22px"] {
    font-size: 14px !important;
  }
  
  i[style*="font-size: 18px"] {
    font-size: 14px !important;
  }
  
  /* 标题字体 - 两列布局适配 */
  h3[style*="font-size: 20px"] {
    font-size: 14px !important;
  }
  
  h3[style*="font-size: 18px"] {
    font-size: 13px !important;
  }
  
  h3[style*="font-size: 16px"] {
    font-size: 13px !important;
  }
  
  /* 文档类型卡片内边距 */
  div[style*="padding: 32px"][style*="text-align: center"] {
    padding: 14px !important;
  }
  
  div[style*="padding: 32px"][style*="text-align: center"] p {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  
  /* ===== 沉浸式阅读 / AI区域 - 双栏改单栏 ===== */
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 64px"],
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 48px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 64px"] > div,
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 48px"] > div {
    flex: none !important;
    width: 100% !important;
  }
  
  /* ===== 访问控制与协作 - 4列改2列 ===== */
  section.section div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.features-grid) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* 访问控制卡片 */
  section.section div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.features-grid) > div {
    padding: 16px !important;
  }
  
  /* ===== 专业版12大核心功能 - 4列改2列 ===== */
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .features-grid .feature-card {
    padding: 14px !important;
  }
  
  .features-grid .feature-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .features-grid .feature-icon i {
    font-size: 16px !important;
  }
  
  .features-grid h3 {
    font-size: 13px !important;
    margin: 0 !important;
  }
  
  /* ===== AI区域特殊处理 ===== */
  section.section[style*="linear-gradient"][style*="#047A3E"] {
    padding: 32px 0 !important;
  }
  
  section.section[style*="linear-gradient"][style*="#047A3E"] .section-title {
    font-size: 20px !important;
  }
  
  /* AI聊天卡片 */
  div[style*="background: rgba(255,255,255,0.1)"][style*="padding: 32px"] {
    padding: 16px !important;
  }
  
  div[style*="background: rgba(255,255,255,0.1)"][style*="padding: 16px"] {
    padding: 12px !important;
  }
  
  /* ===== 文档类型卡片 ===== */
  div[style*="padding: 32px"][style*="text-align: center"] {
    padding: 16px !important;
  }
  
  /* ===== Footer - 移动端隐藏 ===== */
  .footer {
    display: none !important;
  }
  
  /* ===== Toast提示移动端 ===== */
  .demo-toast {
    bottom: 80px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
  }

  /* ===== Features页面移动端优化 ===== */
  .changelog-hero,
  .hero {
    padding: 80px 16px 40px !important;
  }
  
  .hero h1 {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }
  
  .hero-desc {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
  
  .hero-badge {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  
  .hero-stats {
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 24px !important;
  }
  
  .stat-value {
    font-size: 28px !important;
  }
  
  .stat-label {
    font-size: 12px !important;
  }
  
  .section {
    padding: 36px 16px !important;
  }
  
  .section-header {
    margin-bottom: 24px !important;
  }
  
  .section-header-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .section-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .section-icon i {
    font-size: 18px !important;
  }
  
  .section-header-row h2 {
    font-size: 20px !important;
  }
  
  .section-header > p {
    font-size: 13px !important;
  }
  
  /* 标签式卡片 */
  .style-tags {
    gap: 8px !important;
  }
  
  .tag-item {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  
  /* 列表式卡片 */
  .style-list {
    grid-template-columns: 1fr !important;
    border-radius: 8px !important;
  }
  
  .list-item {
    padding: 12px 14px !important;
  }
  
  .list-item-content h4 {
    font-size: 13px !important;
  }
  
  .list-item-content p {
    font-size: 12px !important;
  }
  
  /* 大卡片式 */
  .style-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .card-item {
    padding: 16px !important;
  }
  
  .card-item h4 {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  
  .card-item p {
    font-size: 12px !important;
  }
  
  /* 双栏大卡片 */
  .style-wide {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .wide-item {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  
  .wide-item h4 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
  
  .wide-item p {
    font-size: 13px !important;
  }

  /* ===== Pricing页面移动端优化 ===== */
  .pricing-hero {
    padding: 80px 16px 40px !important;
  }
  
  .pricing-hero h1 {
    font-size: 24px !important;
  }
  
  .pricing-hero .subtitle {
    font-size: 14px !important;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 12px !important;
  }
  
  .pricing-card {
    padding: 20px !important;
  }
  
  .pricing-card.featured {
    transform: none !important;
  }
  
  .pricing-card .price {
    font-size: 36px !important;
  }
  
  .pricing-card .price-sm {
    font-size: 24px !important;
  }
  
  .pricing-card h3 {
    font-size: 18px !important;
  }
  
  .pricing-card .features li {
    font-size: 13px !important;
    padding: 8px 0 !important;
  }
  
  .pricing-card .btn {
    padding: 12px !important;
    font-size: 14px !important;
  }
  
  .pricing-note {
    padding: 16px !important;
    margin: 24px 12px !important;
    font-size: 13px !important;
  }
  
  .faq-section {
    padding: 36px 16px !important;
  }
  
  .faq-item {
    padding: 14px !important;
  }
  
  .faq-item h4 {
    font-size: 14px !important;
  }
  
  .faq-item p {
    font-size: 13px !important;
  }

  /* ===== Changelog页面移动端优化 ===== */
  .changelog-hero {
    padding: 80px 16px 40px !important;
  }
  
  .changelog-hero h1 {
    font-size: 24px !important;
  }
  
  .changelog-hero .subtitle {
    font-size: 14px !important;
  }
  
  .changelog-content {
    padding: 16px !important;
  }
  
  .version-card {
    padding: 16px !important;
    margin-bottom: 16px !important;
  }
  
  .version-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  
  .version-number {
    font-size: 18px !important;
  }
  
  .version-date {
    font-size: 12px !important;
  }
  
  .change-category {
    margin-top: 16px !important;
  }
  
  .change-category h4 {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
  
  .change-item {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  
  .filter-bar {
    padding: 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .filter-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* ===== 底部APP导航栏 ===== */
  .mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10000;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
  .mobile-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 12px;
    min-width: 40px;
    position: relative;
  }
  
  .mobile-tabbar-item:active {
    transform: scale(0.95);
  }
  
  .mobile-tabbar-item.active {
    color: #07C160;
  }
  
  .mobile-tabbar-item i {
    font-size: 18px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
  }
  
  .mobile-tabbar-item.active i {
    transform: scale(1.1);
  }
  
  .mobile-tabbar-item span {
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
  }
  
  /* 中间突出按钮 */
  .mobile-tabbar-item.center {
    margin-top: -24px;
    background: linear-gradient(135deg, #07C160, #10D96B);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-tabbar-item.center i {
    font-size: 18px;
    margin-bottom: 2px;
  }
  
  .mobile-tabbar-item.center .center-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
  }
  
  .mobile-tabbar-item.center span:not(.center-label) {
    display: none;
  }
  
  .mobile-tabbar-item.center:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.4);
  }
}

/* ===== 超小屏幕 (< 375px) ===== */
@media (max-width: 374px) {
  .hero-title {
    font-size: 20px !important;
  }
  
  .price-highlight .amount {
    font-size: 26px !important;
  }
  
  .section-title {
    font-size: 18px !important;
  }
  
  /* 超小屏幕保持2列 */
  .core-advantages-grid,
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .mobile-tabbar-item {
    padding: 6px 8px;
    min-width: 40px;
  }
  
  .mobile-tabbar-item i {
    font-size: 18px;
  }
  
  .mobile-tabbar-item span {
    font-size: 9px;
  }
  
  .mobile-tabbar-item.center {
    width: 44px;
    height: 44px;
    margin-top: -20px;
  }
  
  /* ===== CTA区域按钮一行一个 ===== */
  .cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 260px;
    padding: 14px 24px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    justify-content: center;
  }
  
  /* ===== 数据统计区域 ===== */
  section .container > div[style*="gap: 64px"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin-top: 32px !important;
    padding: 24px !important;
  }
  
  section .container > div[style*="gap: 64px"] > div {
    text-align: center !important;
  }
  
  section .container > div[style*="gap: 64px"] > div > div:first-child {
    font-size: 32px !important;
  }
}

/* ===== 平板设备 (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-tabbar {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }
}

/* ===== PC端 (1025px+) ===== */
@media (min-width: 1025px) {
  .mobile-tabbar {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }
}
