/* 工业设计页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* 基准字体大小，会在JS中根据屏幕宽度动态调整 */
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background: url('../images/bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #fff;
}

.container {
    width: 100%;
    position: relative;
    min-height: 100vh;
}

/* 顶部logo样式 */
.logo-top {
    position: absolute;
    width: 42.75rem;
    height: 7.75rem;
    flex-shrink: 0;
    aspect-ratio: 171/31;
    top: 4rem;
    left: 7rem;
}

.logo-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 右侧垂直导航 */
.top-nav {
    position: fixed;
    top: 50%;
    right: 2.2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    z-index: 999;
}

/* 红色主题增强版按钮 */
.top-nav-item {
    font-size: 1.35rem;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: 1.8rem;

    color: #fff;

    /* 红色增强渐变：亮红（上） → 深红（下） */
    background: linear-gradient(135deg, #FF4F6D, #D82C45);

    /* 外发光 + 内层阴影，让按钮浮起来 */
    box-shadow:
        0 8px 18px rgba(200, 40, 60, 0.35), /* 外阴影 */
        inset 0 2px 4px rgba(255, 255, 255, 0.35); /* 内高光 */

    /* 加细微描边，让按钮边缘更清晰 */
    border: 2px solid rgba(255, 255, 255, 0.25);

    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

/* hover 效果：模拟光源高亮、浮起 */
.top-nav-item:hover {
    transform: translateY(-4px) scale(1.06);

    background: linear-gradient(135deg, #FF5F7A, #C8203B);

    box-shadow:
        0 12px 24px rgba(200, 40, 60, 0.45),
        inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

/* 点击：微缩，模拟物理按压 */
.top-nav-item:active {
    transform: scale(0.95);
}

/* 响应式 */
@media (max-width: 768px) {
    .top-nav {
        right: 1rem;
    }
    .top-nav-item {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
        border-radius: 1.4rem;
    }
}



/* 内容区域样式 */
.content {
    display: flex;
    position: absolute;
    top: 27rem; /* 顶部空间 */
    left: 0;
    width: 100%;
}

/* 侧边logo样式 */
.logo-side {
    position: absolute;
    width: 13.5rem;
    height: 14.625rem;
    flex-shrink: 0;
    left: 16rem;
}

.logo-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 主内容区域样式 */
.main-content {
    position: absolute;
    width: 76.5rem;
    height: auto;
    left: 40rem; /* 16rem + 13.5rem + 6rem */
}


/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 80%;
    height: 80%;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.modal-header {
    position: relative;
    height: 4rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.modal-title {
    font-size: 1.6rem;
    color: #333;
    font-weight: bold;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    z-index: 1001;
}

.modal-iframe-container {
    width: 100%;
    height: calc(100% - 4rem);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式设计 */
@media screen and (max-width: 1920px) {
    html {
        font-size: calc(16px * (100vw / 1920));
    }
} 