/* Demo Page Styles */
body.layout--demo {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.layout--demo #main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    float: none !important;
    position: static !important;
}

body.layout--demo .page {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

.demo-container {
    max-width: 1000px;
    width: calc(100% - 40px);
    margin: 0 auto !important;
    padding: 20px;
    box-sizing: border-box;
    display: block;
    position: relative;
    left: 0;
    right: 0;
}

/* 通用段落两端对齐样式 */
.demo-container p {
    text-align: justify;
}

.demo-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.demo-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

.authors {
    text-align: center;
    margin-bottom: 30px;
    font-family: "Times New Roman", Times, serif;
}

.author-list {
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #333;
    font-style: italic;
}

.author-name {
    font-weight: normal;
    color: #333;
}

.author-name.corresponding {
    font-weight: normal;
}

.author-superscript {
    font-size: 0.8em;
    vertical-align: super;
    color: #333;
}

.affiliations {
    margin-top: 20px;
    font-size: 1.0em;
    line-height: 1.5;
    color: #555;
}

.affiliation {
    margin-bottom: 8px;
    font-style: normal;
}

.affiliation-number {
    font-size: 0.9em;
    vertical-align: super;
    margin-right: 2px;
    color: #333;
}

.conference {
    text-align: center;
    font-weight: bold;
    color: #cc6600;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.abstract {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    line-height: 1.6;
    border-left: 4px solid #0066cc;
}

.abstract p {
    text-align: justify;
}

.abstract h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.demo-section {
    margin: 50px 0;
}

.demo-section h2 {
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* Performance emphasis styles */
.performance-note {
    font-size: 0.65em;
    color: #666;
    font-weight: normal;
    font-style: italic;
    margin-left: 10px;
}

.highlight-performance {
    font-size: 0.7em;
    color: #e74c3c;
    font-weight: 600;
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ffcccc;
    margin-left: 15px;
    display: inline-block;
    animation: subtle-pulse 2s ease-in-out infinite;
}

.highlight-benchmark {
    font-size: 0.7em;
    color: #0066cc;
    font-weight: 600;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #b3d9ff;
    margin-left: 15px;
    display: inline-block;
    animation: subtle-pulse-blue 2s ease-in-out infinite;
}

@keyframes subtle-pulse-blue {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.real-world-emphasis {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    border: 2px solid #0066cc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    position: relative;
}

.real-world-emphasis::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0066cc, #4a90e2, #0066cc);
    border-radius: 14px;
    z-index: -1;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.real-world-emphasis p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.real-world-emphasis strong {
    color: #0066cc;
}

.real-world-emphasis em {
    color: #e74c3c;
    font-weight: 600;
    font-style: normal;
}

.video-demo {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Integrated demo styles for compact layout */
.integrated-demo {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.integrated-demo h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.4em;
    text-align: center;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.demo-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.spectral-analysis-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-top: 15px;
}

.spectral-analysis-section h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    text-align: center;
    font-weight: 600;
}

.spectral-image-container {
    text-align: center;
}

.spectral-analysis-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    background: white;
    padding: 10px;
    margin-bottom: 12px;
}

.spectral-caption {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.simulation-tips {
    margin-top: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 3px solid #0066cc;
    border-radius: 6px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.video-demo h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    align-items: start;
    justify-items: center;
    max-width: 100%;
}

.video-item {
    text-align: center;
    width: 100%;
    max-width: 450px;
}

.video-item h4 {
    color: #555;
    margin-bottom: 12px;
    font-size: 1.0em;
    font-weight: 600;
    line-height: 1.3;
}

.video-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    aspect-ratio: 16/9;
}

.video-item video:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.description {
    margin-top: 15px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    text-align: justify;
}

.feature-list li:before {
    content: "✓";
    color: #0066cc;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.demo-image-section {
    margin: 40px 0;
    text-align: center;
    padding: 20px 0;
}

.demo-overview-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    background: white;
    padding: 10px;
}

/* Real Recording Demo Grid Styles (4 columns) */
.real-recording-demo-grid {
    margin: 30px 0;
}

.real-demo-table-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
    margin-bottom: 10px;
    padding: 0 15px;
}

.real-header-item {
    text-align: center;
    padding: 8px 0;
    border-bottom: 2px solid #0066cc;
}

/* Artificial Demo Grid Styles (5 columns) */
.artificial-demo-grid {
    margin: 30px 0;
}

.demo-table-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
    margin-bottom: 10px;
    padding: 0 15px;
}

.header-item {
    text-align: center;
    padding: 8px 0;
    border-bottom: 2px solid #0066cc;
}

.method-name {
    font-weight: 600;
    color: #333;
    font-size: 1.0em;
    margin-bottom: 2px;
}

.method-info {
    font-size: 0.7em;
    color: #666;
    font-weight: normal;
    line-height: 1.2;
}

.demo-row {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.real-recording-demo-grid .video-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: start;
    justify-items: center;
    max-width: 100%;
}

.real-recording-demo-grid .video-row .video-item {
    text-align: center;
    width: 100%;
    max-width: none !important;
}

.real-recording-demo-grid .video-row .video-item video {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    border: 1px solid #ddd;
    background: #000;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

.real-recording-demo-grid .video-row .video-item video:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.artificial-demo-grid .video-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: start;
    justify-items: center;
    max-width: 100%;
}

.video-row .video-item {
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.video-row .video-item h4 {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
}

.video-row .video-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: none;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: transparent;
}

.video-row .video-item video:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }
    
    .video-item {
        max-width: 350px;
    }
    
    .real-demo-table-header {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .demo-table-header {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .method-name {
        font-size: 0.9em;
    }
    
    .method-info {
        font-size: 0.6em;
    }
    
    .real-recording-demo-grid .video-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .real-recording-demo-grid .video-row .video-item {
        max-width: none !important;
    }
    
    .artificial-demo-grid .video-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .video-row .video-item {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 20px;
    }
    
    .video-item {
        max-width: 100%;
    }
    
    .real-demo-table-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .demo-table-header {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .method-name {
        font-size: 0.8em;
    }
    
    .method-info {
        font-size: 0.55em;
    }
    
    .real-recording-demo-grid .video-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .real-recording-demo-grid .video-row .video-item {
        max-width: none !important;
        margin: 0 auto;
    }
    
    .artificial-demo-grid .video-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-row .video-item {
        max-width: 150px;
    }
    
    .demo-title {
        font-size: 2em;
    }
    
    .demo-container {
        padding: 15px;
    }
    
    .abstract {
        padding: 20px;
    }
    
    .video-demo {
        padding: 20px;
    }
    
    .integrated-demo {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .integrated-demo h3 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    
    .demo-content-wrapper {
        gap: 20px;
    }
    
    .spectral-analysis-section {
        padding: 15px;
        margin-top: 10px;
    }
    
    .spectral-analysis-section h4 {
        font-size: 1.0em;
        margin-bottom: 12px;
    }
    
    .spectral-analysis-image {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .spectral-caption {
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    .author-list {
        font-size: 1.0em;
        line-height: 1.6;
    }
    
    .affiliations {
        font-size: 0.95em;
    }
    
    .demo-image-section {
        margin: 30px 0;
        padding: 15px 0;
    }
    
    .demo-overview-image {
        padding: 5px;
        border-radius: 8px;
    }
}
