/* 示例项目子页面共用样式 */

/* 导航栏 */
.smartpls-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    height: var(--nav-height);
}

.smartpls-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 36px;
    width: auto;
}

.nav-logo-text {
    font-size: 12px;
    color: var(--color-text-light);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu-link {
    display: block;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu-link:hover {
    color: var(--color-blue);
    background: rgba(4, 122, 240, 0.06);
}

.nav-menu-link.active {
    color: var(--color-blue);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-download,
.btn-nav-buy {
    padding: 8px 20px;
    font-size: 14px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 6px;
    padding: 0;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端菜单面板 */
.nav-mobile-panel {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-mobile-panel.open {
    transform: translateX(0);
}

.nav-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.nav-mobile-item {
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
}

.nav-mobile-link.active {
    color: var(--color-blue);
    font-weight: 600;
}

.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-mobile-download,
.btn-mobile-buy {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
}

.nav-placeholder {
    height: var(--nav-height);
}

/* 面包屑导航 */
.sp-breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.sp-breadcrumb a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
}

.sp-breadcrumb a:hover {
    text-decoration: underline;
}

.sp-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* 子页面内容区域 */
.sp-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.sp-detail h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 32px;
    line-height: 1.3;
}

.sp-detail h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.sp-detail h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 32px 0 16px;
}

.sp-detail p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 20px;
}

.sp-detail a {
    color: var(--color-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(4, 122, 240, 0.3);
    text-underline-offset: 3px;
}

.sp-detail a:hover {
    text-decoration-color: var(--color-blue);
}

.sp-detail ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

.sp-detail li {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 8px;
}

/* 模型图片 */
.sp-model-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin: 24px 0 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 下载按钮 */
.sp-download-section {
    background: var(--color-light-bg);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
}

.sp-download-section h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.sp-detail .sp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-blue);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    margin-top: 8px;
}

.sp-detail .sp-download-btn:hover {
    background: #0369d1;
    color: #fff;
    text-decoration: none;
}

.sp-download-btn svg {
    width: 18px;
    height: 18px;
}

.sp-data-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
}

/* 参考文献 */
.sp-references {
    margin-top: 40px;
}

.sp-references h2 {
    font-size: 22px;
}

.sp-references p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
    padding-left: 20px;
    text-indent: -20px;
}

/* 页脚 */
footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
    padding: 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

.footer-brand-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-contact {
    flex-shrink: 0;
}

.footer-contact-title {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-blue);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--color-blue);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0 24px;
}

.footer-bottom {
    text-align: center;
}

.footer-notice {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-notice strong {
    color: rgba(255, 255, 255, 0.7);
}

.footer-notice-en {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .sp-detail h1 {
        font-size: 26px;
    }

    .sp-detail h2 {
        font-size: 20px;
    }

    .sp-download-section {
        padding: 24px;
    }

    .footer-main {
        flex-direction: column;
        gap: 36px;
    }

    .footer-container {
        padding: 48px 16px 32px;
    }
}
