/* 专利知识产权文章样式 - 柔和圆润设计 */
/* 所有样式限定在 .article-content 类中生效 */

/* 性能优化 - 仅针对文章内容区域 */
.article-content * {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.article-content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-overflow-scrolling: touch;
}

/* 专利知识导读组件 */
.article-content .knowledge-guide-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 255, 0.95) 100%);
    border: 3px solid transparent;
    border-radius: 25px;
    background-clip: padding-box;
    position: relative;
    padding: 0;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(45, 156, 219, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.article-content .knowledge-guide-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 50%, #2d9cdb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.article-content .knowledge-guide-header {
    padding: 35px 40px 25px 40px;
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.03) 0%, rgba(39, 174, 96, 0.03) 100%);
    border-radius: 22px 22px 0 0;
    position: relative;
}

.article-content .knowledge-guide-header::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 25px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #2d9cdb 50%, transparent 100%);
    border-radius: 2px;
    opacity: 0.3;
}

.article-content .knowledge-guide-header::after {
    content: '';
    position: absolute;
    top: 25px;
    right: 35px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #27ae60 50%, transparent 100%);
    border-radius: 1px;
    opacity: 0.2;
}

.article-content .knowledge-guide-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-content .knowledge-guide-icon-box {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.9);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(45, 156, 219, 0.15);
    position: relative;
    z-index: 2;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content .knowledge-guide-icon-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* 移除伪元素，直接使用图片 */
.article-content .knowledge-guide-icon-box::before,
.article-content .knowledge-guide-icon-box::after {
    display: none;
}

.article-content .knowledge-guide-title-text {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.article-content .knowledge-guide-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 8px 0 0 0;
    font-weight: 400;
    font-style: italic;
}

.article-content .knowledge-guide-body {
    padding: 0 40px 35px 40px;
}

.article-content .knowledge-guide-text {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
    margin: 0 0 20px 0;
    padding: 18px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 252, 255, 0.6) 100%);
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.article-content .knowledge-guide-text:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(45, 156, 219, 0.15);
}

.article-content .knowledge-guide-text:last-child {
    margin-bottom: 0;
}

/* 导读组件内文字简化样式 */
.article-content .knowledge-guide-box p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #34495e !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    transition: none !important;
    transform: none !important;
}

.article-content .knowledge-guide-box h1,
.article-content .knowledge-guide-box h2,
.article-content .knowledge-guide-box h3,
.article-content .knowledge-guide-box h4,
.article-content .knowledge-guide-box h5,
.article-content .knowledge-guide-box h6 {
    font-size: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
    transition: none !important;
    transform: none !important;
}

.article-content .knowledge-guide-box h2::before {
    display: none !important;
}

.article-content .knowledge-guide-box ul,
.article-content .knowledge-guide-box ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
    border: none !important;
    transition: none !important;
    transform: none !important;
}

.article-content .knowledge-guide-box li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    transition: none !important;
    transform: none !important;
}

.article-content .knowledge-guide-box li::before {
    display: none !important;
}

.article-content .knowledge-guide-box li:hover {
    transform: none !important;
}

/* 专利问答组件 */
.article-content .patent-faq-container {
    margin: 40px 0;
}

.article-content .patent-faq-title-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 255, 0.95) 100%);
    border: 3px solid transparent;
    border-radius: 20px;
    background-clip: padding-box;
    position: relative;
    padding: 30px 35px;
    margin-bottom: 25px;
    box-shadow: 0 6px 24px rgba(45, 156, 219, 0.12);
}

.article-content .patent-faq-title-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 50%, #2d9cdb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.article-content .patent-faq-main-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.article-content .patent-faq-title-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 100%);
    border-radius: 15px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(45, 156, 219, 0.25);
}

.article-content .patent-faq-title-icon::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.article-content .patent-faq-title-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    flex: 1;
}

.article-content .patent-faq-count {
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45, 156, 219, 0.3);
}

/* 问答项样式 */
.article-content .patent-qa-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 252, 255, 0.9) 100%);
    border: 2px solid transparent;
    border-radius: 18px;
    background-clip: padding-box;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.article-content .patent-qa-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.2) 0%, rgba(39, 174, 96, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.article-content .patent-qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(45, 156, 219, 0.15);
}

.article-content .patent-qa-question {
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-content .patent-qa-q-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-content .patent-qa-q-label {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 156, 219, 0.3);
}

.article-content .patent-qa-q-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

/* 答案样式 */
.article-content .patent-qa-answer {
    border-top: 1px solid rgba(45, 156, 219, 0.1);
}

.article-content .patent-qa-a-header {
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.article-content .patent-qa-a-label {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #27ae60 0%, #2d9cdb 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.article-content .patent-qa-a-text {
    font-size: 16px;
    line-height: 1.7;
    color: #34495e;
    margin: 0;
    flex: 1;
    padding-top: 2px;
}

/* 折叠状态样式 */
.article-content .patent-qa-item.collapsed::before {
    opacity: 0.5;
}

.article-content .patent-qa-item.collapsed {
    box-shadow: 0 2px 8px rgba(45, 156, 219, 0.05);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 基础HTML标签样式 */
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
    margin: 30px 0 20px 0;
}

.article-content h1 {
    font-size: 32px;
    color: #2d9cdb;
}

.article-content h2 {
    font-size: 26px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.05) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
    margin: 35px 0 25px 0;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 100%);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 22px;
    color: #34495e;
}

.article-content h4 {
    font-size: 20px;
    color: #34495e;
}

.article-content h5 {
    font-size: 18px;
    color: #34495e;
}

.article-content h6 {
    font-size: 16px;
    color: #7f8c8d;
}

/* 段落样式 */
.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
    margin: 0 0 18px 0;
    text-align: justify;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* 列表样式 */
.article-content ul, 
.article-content ol {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
    margin: 20px 0;
    padding-left: 30px;
    transition: all 0.3s ease;
}

.article-content li {
    position: relative;
    /*padding: 8px 0 8px 25px;*/
    margin: 12px 0;
    transition: transform 0.3s ease, color 0.3s ease;
    will-change: transform;
}

.article-content ul li {
    list-style: none;
    will-change: transform;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 100%);
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.article-content ul li:hover {
    transform: translateX(8px);
    color: #2d9cdb;
}

.article-content ul li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(45, 156, 219, 0.3);
}

.article-content ol li {
    padding-left: 10px;
}

/* 文本格式化 */
.article-content strong, 
.article-content b {
    font-weight: 700;
    color: #2c3e50;
}

.article-content em, 
.article-content i {
    font-style: italic;
    color: #34495e;
}

/* 链接样式 */
.article-content a {
    color: #2d9cdb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(45, 156, 219, 0.1);
    margin: 20px 0;
    display: block;
}

/* 代码样式 */
.article-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: rgba(45, 156, 219, 0.1);
    color: #2d9cdb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-content pre {
    background: #f8f9fa;
    border: 1px solid rgba(45, 156, 219, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    color: #34495e;
    padding: 0;
}

/* 引用样式 */
.article-content blockquote {
    border-left: 4px solid #2d9cdb;
    background: rgba(45, 156, 219, 0.05);
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #34495e;
}

/* 表格样式 - 整体渐变设计 */
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(45, 156, 219, 0.15);
    position: relative;
    background: linear-gradient(135deg, 
        rgba(45, 156, 219, 0.02) 0%, 
        rgba(255, 255, 255, 1) 15%, 
        rgba(255, 255, 255, 1) 85%, 
        rgba(39, 174, 96, 0.02) 100%);
}

/* 表格整体渐变边框 */
.article-content table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #2d9cdb 0%, #27ae60 50%, #2d9cdb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.article-content th, 
.article-content td {
    padding: 16px 20px;
    text-align: left;
    border: none;
    position: relative;
}

/* 表头样式 - 整体渐变 */
.article-content thead {
    background: linear-gradient(90deg, #2d9cdb 0%, #27ae60 100%);
    border-radius: 18px 18px 0 0;
}

.article-content th {
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.article-content th:first-child {
    border-top-left-radius: 18px;
}

.article-content th:last-child {
    border-top-right-radius: 18px;
}

/* 表格行样式 */
.article-content tr {
    transition: transform 0.3s ease;
    will-change: transform;
}

.article-content tbody tr {
    background: rgba(255, 255, 255, 0.8);
}

.article-content tbody tr:nth-child(even) {
    background: rgba(248, 252, 255, 0.6);
}

.article-content tbody tr:hover {
    background: linear-gradient(90deg, 
        rgba(45, 156, 219, 0.08) 0%, 
        rgba(45, 156, 219, 0.12) 50%, 
        rgba(39, 174, 96, 0.08) 100%);
    transform: translateX(3px);
}

/* 表格数据单元格 */
.article-content td {
    color: #34495e;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(45, 156, 219, 0.08);
}

/* 最后一行去掉底部边框 */
.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:last-child td:first-child {
    border-bottom-left-radius: 18px;
}

.article-content tbody tr:last-child td:last-child {
    border-bottom-right-radius: 18px;
}

/* 分割线样式 */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #2d9cdb 50%, transparent 100%);
    margin: 40px 0;
    border-radius: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content .knowledge-guide-header,
    .article-content .knowledge-guide-body {
        padding: 25px 20px;
    }
    
    .article-content .knowledge-guide-title-row {
        gap: 15px;
    }
    
    .article-content .knowledge-guide-icon-box {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }
    
    .article-content .knowledge-guide-title-text {
        font-size: 22px;
    }
    
    .article-content .knowledge-guide-text {
        padding: 15px 20px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .article-content .patent-faq-title-card {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .article-content .patent-qa-question,
    .article-content .patent-qa-a-header {
        padding: 20px 20px;
    }
    
    .article-content .patent-qa-item {
        border-radius: 15px;
    }
    
    .article-content .patent-qa-q-label,
    .article-content .patent-qa-a-label {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .article-content .patent-qa-q-text {
        font-size: 16px;
    }
    
    .article-content .patent-qa-a-text {
        font-size: 15px;
    }
    
    .article-content .knowledge-guide-header::before,
    .article-content .knowledge-guide-header::after {
        display: none;
    }
    
    /* 移动端基础标签样式调整 */
    .article-content h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 22px;
        padding: 18px 20px;
        margin: 30px 0 20px 0;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content h4 {
        font-size: 18px;
    }
    
    .article-content p {
        font-size: 15px;
    }
    
    .article-content ul, 
    .article-content ol {
        font-size: 15px;
        padding-left: 25px;
    }
    
    .article-content ul li::before {
        left: -18px;
        width: 6px;
        height: 6px;
        top: 10px;
    }
}

/* 文字选择优化 */
.article-content * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.article-content .knowledge-guide-text,
.article-content .patent-qa-q-text,
.article-content .patent-qa-a-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 