/*
Theme Name: www-new
Theme URI: https://www.qizhist.com
Description: 新官网主题（基于 templates/www-new 静态）。资源在主题目录 assets/ 下。
Author: 企智（北京）文化发展有限公司
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: www-new
*/

/* 主题主样式由 assets 加载；以下为覆盖项 */

/* 禁用鼠标跟随自定义光标，使用系统默认 */
.rts-cursor {
    display: none !important;
}

/* -----------------------------------------------
   字体与排版：阿里云风格（阿里巴巴普惠体）
   https://www.aliyun.com/ 同款：专业、清晰、商务
----------------------------------------------- */
.theme-official-new body,
.theme-official-new p,
.theme-official-new .h4_feature-item-content p,
.theme-official-new .blog_details-content-text,
.theme-official-new .h2_blog-content-title {
    font-family: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif !important;
}
.theme-official-new h1,
.theme-official-new h2,
.theme-official-new h3,
.theme-official-new h4,
.theme-official-new h5,
.theme-official-new h6,
.theme-official-new .breadcrumb-title,
.theme-official-new .tp_has_text_reveal_anim,
.theme-official-new .blog_details-content-title,
.theme-official-new .h4_feature-item-title,
.theme-official-new .h2_blog-content-title a,
.theme-official-new .section-title,
.theme-official-new .blog-content-title {
    font-family: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.theme-official-new body {
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.theme-official-new p,
.theme-official-new .blog_details-content-text {
    line-height: 1.75;
    color: #333;
}
.theme-official-new h1 { font-size: clamp(2rem, 5vw, 70px); font-weight: 500; }
.theme-official-new h2 { font-size: clamp(1.75rem, 4vw, 44px); font-weight: 500; }
.theme-official-new h3 { font-size: clamp(1.5rem, 3vw, 34px); font-weight: 500; }

/* 首页：为什么选择我们 - 卡片图片半圆角、描述左对齐 */
.theme-official-new .h4_feature-item-img img {
    border-radius: 12px;
}
.theme-official-new .h4_feature-item-content p {
    text-align: left;
}

/* 首页：来自用户的最新分享 - 标题最多两行 */
.theme-official-new .blog-content-title,
.theme-official-new .blog-content-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* AI方案介绍页：适用人群 - 三个卡片内的详情介绍靠右排列，标题不调整 */
.ai-solution-audience .h4_feature-item-content p {
    text-align: right;
}

/* 文章列表页：标题最多显示两行 */
.h2_blog-content-title,
.h2_blog-content-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 隐私政策 / 用户注册协议页：章节标签样式（agreement.html 结构） */
.agreement-page-content .theme-bg {
    background-color: var(--clr-theme-primary, #6563f7);
}
.agreement-page-content .red-bg {
    background-color: #dc3545;
}
.agreement-page-content .theme-bg.white,
.agreement-page-content .red-bg.white {
    color: #fff;
}
.agreement-page-content .b-r {
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    margin: 0.25em 0;
}
.agreement-page-content .blog_details-content-text p {
    margin-bottom: 1em;
}

/* 合作联系页：在线留言表单 */
.contact-form .form-error,
.cooperation-submit-btn.disabled {
    color: #dc3545;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}
.contact-form .char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}
.contact-form .contact-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-form .business-options-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.contact-form .business-option-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: normal;
}
.contact-form .business-option-label input {
    margin: 0;
}

/* 合作联系页：主营业务使用与原来一致的下拉样式（多选） */
.contact-form .subject-option.contact-business-multi {
    position: relative;
    background: transparent;
    z-index: 99;
    color: #7F879E;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    border: 1px solid rgba(27, 42, 82, 0.07);
    border-radius: 8px;
    height: 46px;
    line-height: 46px;
    padding: 0 20px;
    padding-right: 50px;
    cursor: pointer;
}
.contact-form .subject-option.contact-business-multi::before {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Pro";
    content: "\f107";
    margin-top: 1px;
}
.contact-form .subject-option.contact-business-multi.open::before {
    content: "\f106";
}
.contact-form .subject-option.contact-business-multi .current {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-form .subject-option.contact-business-multi .list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 50px 0 rgba(27, 42, 82, 0.2);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    padding: 4px 0;
}
.contact-form .subject-option.contact-business-multi.open .list {
    display: block;
}
.contact-form .subject-option.contact-business-multi .option {
    padding: 0 20px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    color: #7F879E;
    cursor: pointer;
}
.contact-form .subject-option.contact-business-multi .option:hover,
.contact-form .subject-option.contact-business-multi .option.selected {
    font-weight: 500;
    color: var(--clr-body-heading, #1B2A52);
}
