
/* 全局变量：工程蓝图纸风格 */
:root {
    --blueprint-blue: #004b87;
    --blueprint-light: #0066cc;
    --blueprint-dark: #003366;
    --line-white: rgba(255, 255, 255, 0.9);
    --line-dim: rgba(255, 255, 255, 0.3);
    --paper-bg: #f0f0f0;
    --text-main: #ffffff;
    --font-tech: 'Courier New', Courier, monospace;
    --font-display: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--blueprint-blue);
    color: var(--text-main);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通用工具类 */
a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* 头部导航 */
.blueprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--line-white);
    background: var(--blueprint-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.project-info {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    display: flex;
    gap: 1.5rem;
}

.label {
    color: var(--line-dim);
    text-transform: uppercase;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    border: 2px solid var(--line-white);
    padding: 0.2rem 0.8rem;
}

.main-nav a {
    margin-left: 2rem;
    font-family: var(--font-tech);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--line-white);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--line-dim);
    overflow: hidden;
}

/* CSS生成网格背景 */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--line-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.scale-ruler {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: var(--font-tech);
    border-top: 2px solid var(--line-white);
    padding-top: 0.5rem;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* 图纸展示区 */
.blueprint-gallery {
    padding: 4rem 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin: 4rem 0 2rem;
    font-family: var(--font-tech);
}

.section-header h2 {
    font-size: 1.5rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.line-deco {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--line-white),
        var(--line-white) 10px,
        transparent 10px,
        transparent 20px
    );
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    grid-auto-rows: 300px;
    grid-auto-flow: dense; /* 关键：紧凑排列不同尺寸的卡片 */
}

.reverse-layout {
    direction: rtl; /* 简单的布局变化技巧 */
}

.reverse-layout .drawing-card {
    direction: ltr;
}

.drawing-card {
    position: relative;
    border: 1px solid var(--line-dim);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, border-color 0.3s;
    cursor: crosshair;
}

.drawing-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 尺寸变体 */
.large { grid-column: span 2; grid-row: span 2; }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

.card-frame {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    transition: filter 0.5s;
}

.drawing-card:hover .card-frame img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 75, 135, 0.9);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    border-top: 1px solid var(--line-white);
}

.drawing-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-overlay p {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--line-dim);
}

/* 技术规格表 */
.specs-table-section {
    padding: 4rem 2rem;
    background: var(--blueprint-dark);
    border-top: 1px solid var(--line-dim);
}

.specs-table-section h3 {
    font-family: var(--font-tech);
    margin-bottom: 2rem;
    text-align: center;
}

.tech-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    font-family: var(--font-tech);
    font-size: 0.9rem;
}

.tech-table th, .tech-table td {
    border: 1px solid var(--line-dim);
    padding: 1rem;
    text-align: left;
}

.tech-table th {
    background: rgba(255,255,255,0.1);
    text-transform: uppercase;
}

.status-approved { color: #4caf50; }
.status-pending { color: #ff9800; }

/* 页脚 */
.blueprint-footer {
    padding: 3rem 2rem;
    border-top: 2px solid var(--line-white);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: var(--blueprint-blue);
}

.signature-block {
    display: flex;
    gap: 3rem;
}

.sig-item {
    display: flex;
    flex-direction: column;
}

.role {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--line-dim);
    margin-bottom: 0.5rem;
}

.name {
    font-family: 'Brush Script MT', cursive; /* 模拟手写签名 */
    font-size: 1.5rem;
    color: var(--line-white);
}

.copyright {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--line-dim);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .blueprint-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .main-nav a {
        margin: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .large, .wide {
        grid-column: span 1;
    }
    
    .tall {
        grid-row: span 1;
    }
    
    .blueprint-footer {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
    
    .signature-block {
        flex-direction: column;
        gap: 1.5rem;
    }
}
