 :root {
    --rt-primary-color: #0071e3;
    --rt-primary-light: #3498db;
    --rt-primary-dark: #17365D;
    --rt-bg-color: #f5f5f7;
    --rt-text-color: #000;
    --rt-text-light: #666;
    --rt-card-bg: #fff;
    --rt-border-color: #eee;
    --rt-highlight-bg: #f8f9fa;
}

/* 保留最基本的body设置 */
body {
    margin: 0;
    padding: 0;
}

.container-rt {
    font-family: Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--rt-text-color);
    background-color: var(--rt-bg-color);
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 20px;
    background-color: var(--rt-card-bg);
    box-shadow: 0 0px 0x rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    letter-spacing: 0.5px;
    font-size: 18px;
}

/* DriveWorks布局样式 - 从内联样式迁移而来 */
.overview-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.overview-container > div {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
    background: var(--rt-card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.overview-container > div h3 {
    margin-top: 0;
}

.overview-container > div ul {
    margin-bottom: 0;
}

.overview-image {
    flex: 0 0 33.333%;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.overview-content {
    flex: 0 0 60%;
    padding-right: 15px;
}

.feature-split {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin: 20px 0;
}

.feature-content {
    flex: 0 0 60%;
}

.feature-image {
    flex: 0 0 30%;
    margin-top: 10px;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题统一样式 */
.container-rt h1, 
.container-rt h2, 
.container-rt h3 {
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
    margin: 0;
    padding: 0;
}

.container-rt h1 {
    color: var(--rt-primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.container-rt h2 {
    color: var(--rt-primary-color);
    font-size: 32px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.container-rt h3,
.overview-container > div h3,
.product-section.with-bg h3,
.feature-section h3,
.card h3,
.product-card h3 {
    color: #17365D;
    font-size: 26px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.container-rt h4 {
    color: var(--rt-text-color);
    font-size: 22px;
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.container-rt p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
    font-size: 17px;
}

.container-rt ul, 
.container-rt ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.container-rt li {
    margin-bottom: 8px;
    line-height: 1.7;
    list-style-type: square;
    font-size: 16px;
}

.header-rt {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rt-border-color);
}

.header-title {
    color: var(--rt-primary-color);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.header-subtitle {
    color: var(--rt-text-light);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

.product-section {
    margin: 15px 0;
    padding: 5px 20px;
    border-radius: 12px;
}

.product-section.with-bg {
    background: var(--rt-highlight-bg);
    border-radius: 12px;
    padding: 5px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.product-section.with-bg .product-title {
    margin-bottom: 25px;
}

.product-section.with-bg .comparison-table {
    background: var(--rt-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-section-white {
    margin: 15px 0;
    padding: 5px 5px;
}

.product-title {
    color: var(--rt-primary-color);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rt-primary-light);
    text-align: center;
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    right: -3px;
    height: 2px;
    background-color: var(--rt-primary-light);
}

.feature-section {
    margin: 15px 0;
    padding: 5px 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-section.with-bg {
    background: linear-gradient(135deg, var(--rt-card-bg), var(--rt-highlight-bg));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-section:hover {
    transform: translateY(-2px);
}

.feature-title {
    color: var(--rt-primary-color);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.feature-list {
    flex: 1;
    margin: 0;
    padding-left: 20px;
}

.feature-image .image-note {
    font-size: 12px;
    color: var(--rt-text-light);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.highlight-box {
    background-color: var(--rt-highlight-bg);
    border-left: 4px solid var(--rt-primary-color);
    padding: 5px 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.limitations {
    background-color: rgba(236, 240, 241, 0.7);
    padding: 5px 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.demo-section {
    text-align: center;
    margin: 15px 0;
    padding: 5px 15px;
    background-color: var(--rt-card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin: 15px 0;
}

.card {
    background: var(--rt-card-bg);
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--rt-primary-color);
    font-size: 1.1em;
}

.card-content {
    color: var(--rt-text-light);
    font-size: 0.9em;
    line-height: 1.4;
}

.highlight {
    color: var(--rt-primary-color);
    font-weight: 600;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th {
    background-color: var(--rt-primary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

.comparison-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--rt-highlight-bg);
}

.footer-rt {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--rt-border-color);
    color: var(--rt-text-light);
    font-size: 14px;
}

/* 参数化建模页面特有样式 */
.advantage-section {
    background-image: url('../images/solidworks-background.webp');
    background-size: cover;
    background-position: center;
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}

.advantage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: -1;
}

.advantage-section .product-title {
    color: #fff;
}

.advantage-section .product-title::after {
    background-color: rgba(255, 255, 255, 0.7);
}

.advantage-section .highlight-box {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #fff;
}

/* 图文并排样式 */
.image-with-text {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 25px 0;
}

.image-with-text .text-content {
    flex: 0 0 65%;
}

.image-with-text .image-content {
    flex: 0 0 33.333%;
    text-align: center;
}

.image-with-text img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-with-text img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .container-rt {
        padding: 15px;
        margin: 10px;
    }

    .overview-container,
    .feature-split,
    .feature-content-wrapper {
        flex-direction: column;
    }

    .overview-container > div {
        flex: 1 1 100%;
    }

    .overview-image, 
    .feature-image {
        flex: 0 0 100%;
        margin-bottom: 15px;
        order: -1; /* 在移动设备上图片显示在文字上方 */
    }

    .overview-image,
    .feature-image {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .overview-content {
        flex: 0 0 100%;
        padding-right: 0;
    }

    .header-title {
        font-size: 28px;
    }

    .product-title {
        font-size: 24px;
    }

    .feature-title {
        font-size: 20px;
    }

    .container-rt h1 {
        font-size: 26px;
    }

    .container-rt h2 {
        font-size: 35px;
    }

    .container-rt h3 {
        font-size: 24px;
        margin: 18px 0 12px;
    }

    .container-rt h4 {
        font-size: 20px;
        margin: 15px 0 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .product-section, 
    .feature-section {
        padding: 10px;
        margin: 10px 0;
    }

    .feature-content-wrapper {
        gap: 15px;
    }

    .feature-image {
        margin-top: 0;
    }
    
    .image-with-text {
        flex-direction: column;
    }
    
    .image-with-text .image-content {
        order: -1;
        margin-bottom: 20px;
    }

    .card {
        max-width: 100%;
    }
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.grid-3-cols .card {
    background: var(--rt-card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s; 
}

.grid-3-cols .card:hover {
    transform: translateY(-5px);
}

.grid-3-cols .card-content {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .grid-3-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 产品标题特殊样式 */
h2.product-title {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 5px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    right: -3px;
    height: 2px;
    background: linear-gradient(to right, var(--rt-primary-light), var(--rt-primary-color), var(--rt-primary-light));
}

.nav-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--rt-border-color);
    border-radius: 8px;
    background-color: var(--rt-highlight-bg);
}

.nav-title {
    color: var(--rt-primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rt-border-color);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
}

.nav-item {
    padding: 8px 10px;
    color: var(--rt-text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.nav-item:hover {
    background-color: var(--rt-card-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: var(--rt-primary-color);
}

.nav-item-number {
    color: var(--rt-primary-color);
    font-weight: 600;
    margin-right: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 1200px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4-cols {
        grid-template-columns: 1fr;
    }
}  

/* Specific fix for H2 centering in demo section */
.demo-section > h2.product-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* 
  ==============================================
  新增辅助类 (Helper Classes) - 2025-06-24
  ==============================================
*/

/* 布局与对齐 */
.rt-text-center {
    text-align: center;
}

.rt-block-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 用于将 .product-title 左对齐，同时保留其下划线等核心样式 */
.rt-title-align-left {
    left: 0;
    transform: none;
}

/* 用于将块状标题居中 */
.rt-title-center-block {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    transform: none;
}

/* Flexbox 辅助 */
.rt-flex-reverse {
    flex-direction: row-reverse;
}

/* 间距辅助 (Margin Top) */
.rt-mt-20 { margin-top: 20px !important; }
.rt-mt-30 { margin-top: 30px !important; }
.rt-mt-40 { margin-top: 40px !important; }

/* 特定组件样式 */
.rt-full-width-image {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}  