/* ========================================
   全局变量与基础设置
   ======================================== */
:root {
    /* 莫兰迪色系 - 苔绿色主题 */
    --primary-color: #8A9B7E;
    --primary-light: #A8B89E;
    --primary-dark: #6B7D60;
    --primary-muted: #C5D1BE;
    
    /* 背景色 */
    --bg-primary: #F5F5F2;
    --bg-secondary: #EDEDE8;
    --bg-card: #FFFFFF;
    
    /* 文字颜色 */
    --text-primary: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-light: #999999;
    
    /* 阴影 */
    --shadow-soft: 0 4px 20px rgba(138, 155, 126, 0.12);
    --shadow-medium: 0 8px 30px rgba(138, 155, 126, 0.18);
    --shadow-hover: 0 12px 40px rgba(138, 155, 126, 0.25);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* 圆角 */
    --border-radius: 12px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", 
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ========================================
   导航栏样式
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;  /* 全屏高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: var(--spacing-xl) 2rem;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========================================
   卡片样式
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.card-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image.wide {
    height: 400px;
}

.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.single-card {
    max-width: 900px;
    margin: 0 auto;
}

.centered {
    text-align: center;
}

.large-text {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: var(--spacing-md);
}

.project-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--primary-muted);
}

.project-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.mb-large {
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   占位图样式
   ======================================== */
.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-muted) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.placeholder-img.tall {
    height: 500px;
}

/* ========================================
   画廊样式
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item .placeholder-img {
    height: 300px;
    border-radius: var(--border-radius);
}

.gallery-item.large .placeholder-img {
    height: 100%;
    min-height: 600px;
}

/* ========================================
   列表样式
   ======================================== */
.info-list {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.info-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   表格样式
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-sm);
}

.data-table thead {
    background: var(--primary-muted);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
    transition: var(--transition);
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: var(--spacing-lg) 2rem;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ========================================
   多页导航 - 页面标题区域
   ======================================== */
.page-header {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 500;
}

/* ========================================
   子板块标题
   ======================================== */
.subsection {
    margin-bottom: var(--spacing-xl);
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* ========================================
   内容块
   ======================================== */
.content-block {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* ========================================
   按钮样式
   ======================================== */
.hero-buttons {
    margin-top: var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ========================================
   设计图纸 - 完整展示（避免滚动）
   ======================================== */
.drawing-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.drawing-full img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.drawing-img {
    height: 400px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawing-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.placeholder-text.large {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* ========================================
   画廊样式优化
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-caption {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
}

.gallery-caption h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item.large .placeholder-img {
        min-height: 300px;
    }
    
    .section {
        padding: var(--spacing-lg) 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .card-content {
        padding: var(--spacing-sm);
    }
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   前期分析板块 - 8张图片统一格式（完整展示+白底）
   ======================================== */
.analysis-grid {
    /* 4列布局，确保图片上下底平齐 */
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--spacing-md);
}

.analysis-img {
    /* 固定高度，确保所有图片底部对齐 */
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #FFFFFF;  /* 白色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-img img {
    /* 关键：使用object-fit: contain确保图片完整展示，不裁剪 */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  /* 完整展示，允许白边 */
    object-position: center;
    display: block;
}

.analysis-img .placeholder-text {
    /* 占位文字样式 */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 响应式：平板设备改为2列 */
@media (max-width: 1024px) {
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .analysis-img {
        height: 300px;  /* 平板端稍高一些 */
    }
}

/* 响应式：手机设备改为1列 */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr !important;
    }
    
    .analysis-img {
        height: 350px;  /* 手机端更高 */
    }
}

/* ========================================
   前期分析 - 9张图片网格布局
   ======================================== */
.analysis-grid-9 {
    /* 3列布局，9张图 */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--spacing-md);
}

/* 响应式：平板设备改为2列 */
@media (max-width: 1024px) {
    .analysis-grid-9 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 响应式：手机设备改为1列 */
@media (max-width: 768px) {
    .analysis-grid-9 {
        grid-template-columns: 1fr !important;
    }
    
    .analysis-img {
        height: 250px;
    }
}

/* ========================================
   前期分析 - 单张大图布局
   ======================================== */
.analysis-grid-single {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.single-card {
    max-width: 1000px;
    width: 100%;
}

.analysis-img.wide {
    height: 450px;
}

/* ========================================
   方案构思 - 文化意象部分
   ======================================== */
.concept-item {
    margin-bottom: var(--spacing-md);
}

.concept-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.concept-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-left: 1.5rem;
}

/* ========================================
   图片横向滑动容器
   ======================================== */
.image-slider-container {
    margin-top: var(--spacing-lg);
    position: relative;
}

.image-slider {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Webkit浏览器滚动条样式 */
.image-slider::-webkit-scrollbar {
    height: 8px;
}

.image-slider::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.image-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.image-slider::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.slider-item {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}

.slider-item img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: block;
}

.slider-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    letter-spacing: 1px;
}

/* ========================================
   方案构思 - 表格样式
   ======================================== */
.concept-table {
    width: 100%;
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.concept-table thead {
    background: var(--primary-color);
    color: white;
}

.concept-table th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: 1px;
}

.concept-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-secondary);
    line-height: 1.6;
}

.concept-table tbody tr:last-child td {
    border-bottom: none;
}

.concept-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* 响应式：手机端调整 */
@media (max-width: 768px) {
    .slider-item {
        width: 240px;
    }
    
    .slider-item img {
        height: 240px;
    }
    
    .concept-table th,
    .concept-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   结构单元拆解 - 2×2图片网格
   ======================================== */
.image-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.grid-item img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: block;
}

.grid-item.with-caption {
    text-align: center;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

/* ========================================
   文字在右，图片在左（比例2:1）
   ======================================== */
.text-image-layout {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
}

.text-image-layout.reverse {
    flex-direction: row-reverse;
}

.layout-images {
    flex: 2;  /* 图片区占2份 */
}

.layout-text {
    flex: 1;  /* 文字区占1份 */
}

.layout-image-single img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* ========================================
   性能分析 - 全宽大图
   ======================================== */
.full-width-image {
    margin: var(--spacing-lg) 0;
    width: 100%;
}

.full-width-image img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.placeholder-text.large {
    min-height: 400px;
    font-size: 1.5rem;
}

/* ========================================
   性能分析 - 左侧图+右侧表格布局
   ======================================== */
.text-image-table-layout {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-top: var(--spacing-lg);
}

.layout-images-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.image-pair img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.layout-table-right {
    flex: 1.5;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 表格容器 - 用于限制表格高度并添加滚动 */
.table-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--border-radius);
}

/* ========================================
   性能分析 - 左侧表格+右侧文字布局
   ======================================== */
.table-text-layout {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.layout-table-left {
    flex: 1.5;
}

.layout-text-right {
    flex: 1;
}

/* ========================================
   性能分析表格样式
   ======================================== */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.performance-table thead {
    background: var(--primary-color);
    color: white;
}

.performance-table th {
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.performance-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
}

.performance-table tbody tr:last-child td {
    border-bottom: none;
}

.performance-table tbody tr:hover {
    background: var(--bg-secondary);
}

.performance-table.wide {
    font-size: 0.9rem;
}

.performance-table.wide th,
.performance-table.wide td {
    padding: 0.6rem 0.5rem;
}

/* ========================================
   光照分析滑块特殊样式
   ======================================== */
.image-slider.light-analysis .slider-item {
    width: 300px;
}

.image-slider.light-analysis .slider-item img {
    height: 300px;
}

/* ========================================
   设计表现 - 图片完整展示样式
   ======================================== */

/* 鸟瞰图区域 */
#aerial-view .gallery-item .placeholder-img,
#aerial-view .placeholder-img img {
    object-fit: contain !important;
    background: #FFFFFF !important;
    max-height: 70vh !important;  /* 限制最大高度为视口高度的70% */
}

#aerial-view .gallery-item.large .placeholder-img {
    min-height: auto !important;  /* 移除最小高度限制 */
    height: auto !important;      /* 自动高度 */
}

/* 室外透视图区域 */
#exterior-perspective .card-image img {
    width: 100%;
    height: 400px;
    object-fit: contain !important;
    background: #FFFFFF !important;
    display: block;
}

/* 室内透视图区域 */
#interior-perspective .card-image img {
    width: 100%;
    height: 350px;
    object-fit: contain !important;
    background: #FFFFFF !important;
    display: block;
}

/* 通用：设计表现页面所有图片容器 */
#design .card-image,
#design .placeholder-img {
    overflow: visible !important;
}

/* 确保图片不会被裁剪 */
#design img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   设计图纸 - 单列布局样式
   ======================================== */

/* 总平面图和一层平面图 - 高度增加三分之一 */
.drawing-full.enlarged {
    max-height: 100vh !important;  /* 从80vh增加到100vh，约增加25% */
}

.drawing-full.enlarged img {
    max-height: 100vh !important;
}

/* 单列布局容器 */
.single-column-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* 全宽卡片 */
.full-width-card {
    width: 100%;
    max-width: none;
}

/* 全宽图片容器 */
.drawing-img.wide-full {
    height: auto;
    min-height: 1000px;  /* 从500px增加到1000px，2倍 */
    max-height: 140vh;   /* 从70vh增加到140vh，2倍 */
}

.drawing-img.wide-full img {
    width: 100%;
    height: auto;
    max-height: 140vh;   /* 从70vh增加到140vh，2倍 */
    object-fit: contain;
    background: #FFFFFF;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .drawing-full.enlarged {
        max-height: 80vh !important;
    }
    
    .drawing-full.enlarged img {
        max-height: 80vh !important;
    }
    
    .drawing-img.wide-full {
        min-height: 800px;   /* 从400px增加到800px，2倍 */
        max-height: 120vh;   /* 从60vh增加到120vh，2倍 */
    }
    
    .drawing-img.wide-full img {
        max-height: 120vh;   /* 从60vh增加到120vh，2倍 */
    }
}

@media (max-width: 768px) {
    .drawing-full.enlarged {
        max-height: 60vh !important;
    }
    
    .drawing-full.enlarged img {
        max-height: 60vh !important;
    }
    
    .drawing-img.wide-full {
        min-height: 600px;   /* 从300px增加到600px，2倍 */
        max-height: 100vh;   /* 从50vh增加到100vh，2倍 */
    }
    
    .drawing-img.wide-full img {
        max-height: 100vh;   /* 从50vh增加到100vh，2倍 */
    }
}

/* ========================================
   自保障设计 - 图片对排布局（带图名）
   ======================================== */
.image-pair-with-caption {
    display: flex;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.image-item {
    flex: 1;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.placeholder-text.medium {
    min-height: 400px;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.image-caption {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    border-top: 2px solid var(--primary-muted);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .image-pair-with-caption {
        flex-direction: column;
    }
    
    .image-item img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .image-item img {
        max-height: 300px;
    }
    
    .placeholder-text.medium {
        min-height: 250px;
    }
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 1024px) {
    .text-image-layout,
    .text-image-layout.reverse,
    .text-image-table-layout,
    .table-text-layout {
        flex-direction: column;
    }
    
    .layout-text,
    .layout-table-right,
    .layout-text-right {
        flex: none;
        width: 100%;
    }
    
    .grid-item img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .image-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .grid-item img {
        height: 250px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .full-width-image img {
        max-height: 50vh;
    }
}

/* ========================================
   建造模拟 - 构件表专用样式
   ======================================== */

/* 子板块标题 */
.subsection {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-muted);
}

.subsection:last-child {
    border-bottom: none;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: 1px;
}

/* 上方左图右表布局 */
.text-image-layout .layout-images img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.placeholder-text.medium {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-muted) 0%, var(--primary-light) 100%);
    color: var(--primary-dark);
    font-size: 1.2rem;
    border-radius: var(--border-radius);
}

/* 下方横向滑动小图 */
.image-slider-container {
    margin-top: var(--spacing-lg);
}

.slider-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

.image-slider.construction-gallery .slider-item {
    width: 250px;
    flex-shrink: 0;
}

.image-slider.construction-gallery .slider-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.image-slider.construction-gallery .image-caption {
    font-size: 0.85rem;
    padding: var(--spacing-xs) 0;
    border-top: 1px solid var(--primary-muted);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .text-image-layout {
        flex-direction: column;
    }
    
    .layout-images {
        width: 100%;
    }
    
    .layout-table-right {
        width: 100%;
    }
    
    .text-image-layout .layout-images img {
        max-height: 400px;
    }
    
    .placeholder-text.medium {
        min-height: 300px;
    }
    
    .image-slider.construction-gallery .slider-item {
        width: 200px;
    }
    
    .image-slider.construction-gallery .slider-item img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .text-image-layout .layout-images img {
        max-height: 300px;
    }
    
    .placeholder-text.medium {
        min-height: 250px;
    }
    
    .image-slider.construction-gallery .slider-item {
        width: 180px;
    }
    
    .image-slider.construction-gallery .slider-item img {
        height: 140px;
    }
    
    .image-slider.construction-gallery .image-caption {
        font-size: 0.8rem;
    }
}
