/*
Theme Name: Yixuanqz Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: Yixuanqz
Version: 06.08.01
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
/* 全局基础 */
html, body {
    overflow-x: hidden !important;
}

/* 多语言切换器 */
@media (min-width: 769px) {
  #trp-floater-switcher,
  nav.trp-language-switcher.trp-floating-switcher {
    display: none !important;
  }

  .header-widgets-wrapper, 
  .site-header .widget {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .trp-language-switcher {
    margin-top: -7px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .trp-language-switcher img.trp-flag-image,
  .trp-language-switcher span.trp-ls-language-name,
  .trp-language-switcher .trp-ls-shortcode-current-language {
    vertical-align: middle !important;
  }
}

/* 移动端语言*/
@media (max-width: 768px) {
  .trp-language-switcher[data-no-translation], 
  .trp-language-switcher div.trp-language-switcher.trp-floating-language-switcher {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    margin-top: 13px !important;
  }
  .trp-language-switcher img.trp-flag, 
  .trp-language-switcher .trp-current-language {
    display: none !important;
  }
  .trp-language-switcher[data-no-translation]::before, 
  .trp-language-switcher div.trp-language-switcher.trp-floating-language-switcher::before {
    content: "" !important;
    font-size: 16px !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
  }
}

/* WooCommerce 产品与列表 */
.main-navigation .sub-menu {
    min-width: 300px !important;
}

.woocommerce-loop-product__title {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: 2.8em !important;
    margin-bottom: 5px !important;
}

.woocommerce-Tabs-panel--reviews h3, 
.comment-reply-title {
    font-size: 16px !important;
}
@media (max-width: 768px) {
  .woocommerce-Tabs-panel--reviews h3, 
  .comment-reply-title {
    font-size: 14px !important;
  }
}

.single-product div.product .product_title {
    font-size: 15px !important; 
    line-height: 1.3 !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

@media (min-width: 768px) {
  .single-product .product .woocommerce-product-gallery,
  .single-product .product .col-lg-6:first-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 48% !important;
  }
  .single-product .product .summary,
  .single-product .product .col-lg-6:last-child {
    flex: 0 0 50% !important;
    max-width: 52% !important;
    width: 49% !important;
  }
  .single-product .product .col-lg-6 {
    box-sizing: border-box !important;
  }
  .single-product .product {
    gap: 0 !important;
  }
}

@media (max-width: 768px) {
  .product_title {
    font-size: 19px !important; 
  }
}

/* 文章与归档页 */
.posted-in, .cat-links, .post-categories,
.entry-footer .posted-in-label,
.archive .entry-header.title,
.blog .entry-header.title,
.blog .blog-title,
.archive .page-title,
.blog-title {
    display: none !important;
}

.tags-links, .post-tags {
    display: block !important;
    text-align: left !important;
    margin-top: 10px !important;
}

.my-custom-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #8a8a8a;
    font-size: 14px;
    margin: 18px 0 30px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.my-custom-meta a {
    color: #666;
    text-decoration: none;
}
.my-custom-meta a:hover {
    text-decoration: underline;
}
.entry-title {
    margin-bottom: 15px !important;
}

@media (max-width: 767px) {
  .my-custom-meta {
      display: grid !important;
      grid-template-columns: 120px 1fr !important;
      column-gap: 15px !important;
      row-gap: 12px !important;
      padding: 12px 0 !important;
  }
  .my-custom-meta span {
      font-size: 14px !important;
      line-height: 1.35 !important;
  }
}

.single-post .entry-content {
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .2px;
    color: #333;
}

@media (max-width: 767px) {
  .single-post .entry-title {
      font-size: 21px !important;
      line-height: 1.25 !important;
      font-weight: 600 !important;
  }
  .single-post .entry-content {
      font-size: 14px !important;
      line-height: 1.8 !important;
  }
}

.archive .entry-title,
.blog .entry-title,
.tag .entry-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
}


/*  统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
}

.stat-box {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    height: 82px;
    background: #fff;
    transition: .3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-color: #1769d2;
    transform: translateY(-2px);
}

.number {
    font-size: 22px;
    font-weight: 800;
    color: #1769d2;
    line-height: 1;
    margin-bottom: 6px;
    font-family: Arial, Helvetica, sans-serif;
}

.stat-box:nth-child(5) .number,
.stat-box:nth-child(6) .number {
    color: #0b5ed7;
}

.label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 1.2;
    font-weight: 600;
}

@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-box {
    height: 78px;
  }
  .number {
    font-size: 20px;
  }
  .label {
    font-size: 9px;
  }
}

/* 为什么选择我们 */
.why-choose-section {
    font-family: inherit;
    color: #1d1d1f;
    background: #fbfbfd;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.why-choose-section * {
    box-sizing: border-box;
}

.wc-header {
    text-align: center;
    margin-bottom: 24px;
}

.wc-sub {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 3px;
    color: #0066cc;
    margin-bottom: 6px;
}

.wc-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -.5px;
}

.wc-title span {
    color: #0066cc;
}

.wc-line {
    width: 40px;
    height: 3px;
    background: #0066cc;
    margin: 0 auto 10px;
    border-radius: 2px;
}

.wc-desc {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.45;
}

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

.wc-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 4px 20px rgba(0,0,0,.02);
    transition: .3s;
}

.wc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,102,204,.08);
    border-color: rgba(0,102,204,.2);
}

.wc-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wc-icon-box svg {
    width: 20px;
    height: 20px;
    stroke: #0066cc;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wc-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -.2px;
}

.wc-card-line {
    width: 18px;
    height: 2px;
    background: #0066cc;
    margin-bottom: 10px;
    opacity: .8;
    flex-shrink: 0;
}

.wc-card p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0 0 14px;
}

.wc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f2f2f7;
    padding-top: 10px;
    margin-top: auto;
}

.wc-list li {
    font-size: 13px;
    color: #3a3a3c;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.wc-list li:last-child {
    margin-bottom: 0;
}

.wc-check {
    width: 14px;
    height: 14px;
    background: #e1ecfd;
    color: #0066cc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
  .wc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .why-choose-section {
    padding: 0;
  }
  .wc-header {
    margin-bottom: 15px;
  }
  .wc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .wc-title {
    font-size: 17px !important;
  }
  .wc-card {
    padding: 12px 10px;
    border-radius: 10px;
  }
  .wc-card-header {
    gap: 6px;
    margin-bottom: 6px;
  }
  .wc-icon-box svg {
    width: 17px;
    height: 17px;
  }
  .wc-card h3 {
    font-size: 13px;
    white-space: normal;
  }
  .wc-card-line {
    display: none;
  }
  .wc-card p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .wc-list {
    padding-top: 6px;
  }
  .wc-list li {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .wc-check {
    width: 12px;
    height: 12px;
    font-size: 7px;
    margin-right: 5px;
  }
}

/* 页脚与下方模块 */
@media (max-width: 768px) {
  footer.site-footer .col-full {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }
  footer.site-footer .widget {
    display: block !important;
    width: 48% !important;
    float: none !important;
    margin-bottom: 20px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    clear: none !important;
  }
}

@media (max-width: 767px) {
  .below-content .col-full {
      grid-template-columns: repeat(2, minmax(0,1fr)) !important;
      column-gap: 8px !important;
      row-gap: 20px !important;
  }
  .below-content .widget {
      overflow: visible !important;
  }
  .below-content .widget .icon-box {
      gap: 8px !important;
  }
  .below-content .widget svg {
      width: 18px !important;
      height: 18px !important;
  }
  .below-content .widget strong {
      font-size: 13px !important;
      line-height: 1.25 !important;
  }
  .below-content .widget p {
      font-size: 12px !important;
      line-height: 1.35 !important;
  }
}

/* 表单样式 */
#wpforms-7694.wpforms-container {
    max-width: 100% !important;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box;
}

#wpforms-7694 form.wpforms-form {
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

#wpforms-7694 .wpforms-field {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

#wpforms-7694 .wpforms-field-label {
    flex: 0 0 110px !important;
    width: 110px !important;
    text-align: right !important;
    padding-right: 12px !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

#wpforms-7694 input[type="text"],
#wpforms-7694 input[type="email"],
#wpforms-7694 input[type="tel"],
#wpforms-7694 textarea {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 11px 15px !important;
    font-size: 14px !important;
    background-color: #f8fafc !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

#wpforms-7694 .wpforms-field-textarea {
    align-items: flex-start !important;
}

#wpforms-7694 .wpforms-field-textarea .wpforms-field-label {
    padding-top: 12px !important;
}

#wpforms-7694 textarea {
    min-height: 120px !important;
}

#wpforms-7694 input:focus,
#wpforms-7694 textarea:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

#wpforms-7694 .wpforms-submit-container {
    margin-top: 25px !important;
    display: flex !important;
    justify-content: center !important;
}

#wpforms-7694 .wpforms-submit-container button[type="submit"] {
    border-radius: 8px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

@media screen and (max-width: 768px) {
  #wpforms-7694.wpforms-container {
      padding: 15px 8px !important;
  }
  #wpforms-7694 form.wpforms-form {
      max-width: 100% !important;
  }
  #wpforms-7694 .wpforms-field-label {
      flex: 0 0 78px !important;
      width: 78px !important;
      padding-right: 4px !important;
      font-size: 12px !important;
  }
}