/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/tech-bg.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* iframe框架布局样式 */
.technology-framework {
    min-height: 600px;
    background: #f8fafc;
    padding: 2rem 0;
}

.framework-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 2rem;
    height: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 左侧技术导航栏 */
.tech-sidebar {
    width: 300px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    flex-shrink: 0;
    position: relative;
}

.sidebar-content {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
}

.sidebar-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.sidebar-content h4 {
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 技术导航 */
.tech-nav-list {
    list-style: none;
    margin-bottom: 2rem;
}

.tech-nav-list li {
    margin-bottom: 0.5rem;
}

.tech-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.tech-nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    transform: translateX(5px);
}

.tech-nav-link.active {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    border-left-color: #3498db;
}

.nav-icon {
    font-size: 1.3rem;
    margin-right: 0.8rem;
    width: 25px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

/* 主内容区域 */
.content-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
}

.current-module {
    color: #495057;
    font-weight: 600;
}

.content-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.control-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* iframe容器 */
.iframe-container {
    flex: 1;
    position: relative;
    background: white;
    margin: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#tech-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator.show {
    opacity: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 技术统计 */
.tech-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* 技术资源 */
.tech-resources {
    background: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.resource-link {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.resource-link:hover {
    background: rgba(46, 204, 113, 0.2);
    color: white;
}

.resource-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* 技术视频 */
.tech-videos {
    padding: 4rem 0;
    background: #fff;
}

.tech-videos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
    position: relative;
}

.tech-videos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 2px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.video-card {
    background: #f8fafc;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    width: 100%;
    height: 250px;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #64748b;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .framework-container {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }

    .tech-sidebar {
        width: 100%;
        order: 2;
        border-radius: 0 0 15px 15px;
    }

    .sidebar-nav {
        padding: 1rem;
    }

    .nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .nav-btn {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
        border-radius: 8px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-btn:hover,
    .nav-btn.active {
        border-left: none;
        border-bottom-color: #60a5fa;
        transform: translateY(-2px);
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .content-main {
        order: 1;
        min-height: 400px;
    }

    .iframe-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .framework-container {
        margin: 0 15px;
        padding: 0;
    }

    .content-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .content-header h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-card {
        margin: 0 15px;
    }

    .tech-stats,
    .tech-videos {
        padding: 2rem 0;
    }

    .tech-stats h2,
    .tech-videos h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-btn {
        padding: 0.8rem 0.3rem;
        font-size: 0.9rem;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .video-container {
        height: 200px;
    }

    .content-controls {
        gap: 0.3rem;
    }

    .fullscreen-btn,
    .refresh-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 全屏模式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #fff;
}

.fullscreen-mode .framework-container {
    width: 100%;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.fullscreen-mode .tech-sidebar {
    display: none;
}

.fullscreen-mode .content-main {
    width: 100%;
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card {
    animation: slideInRight 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* 技术展示页面样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/tech-bg.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 技术容器 - iframe布局 */
.tech-container {
    display: flex;
    min-height: 80vh;
    background: white;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

/* 技术统计 */
.tech-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* 技术资源 */
.tech-resources {
    background: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.resource-link {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.resource-link:hover {
    background: rgba(46, 204, 113, 0.2);
    color: white;
}

.resource-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* 内容区域 */
.tech-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* 内容头部 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
}

.current-module {
    color: #495057;
    font-weight: 600;
}

.content-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.control-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* iframe容器 */
.iframe-container {
    flex: 1;
    position: relative;
    background: white;
    margin: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#tech-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator.show {
    opacity: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 内容底部 */
.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.footer-info {
    color: #6c757d;
}

.separator {
    margin: 0 1rem;
    color: #dee2e6;
}

.footer-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

/* 技术亮点区域 */
.highlights-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.highlight-card:hover::before {
    left: 100%;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.highlight-metric {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 创新成果时间线 */
.innovations-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.innovations-section .section-title {
    color: white;
}

.innovations-section .section-title::after {
    background: linear-gradient(90deg, #fff, #f8f9fa);
}

.innovations-timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem 0;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.innovation-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.innovation-item:nth-child(odd) {
    left: 0;
    text-align: right;
    animation-delay: 0.2s;
}

.innovation-item:nth-child(even) {
    left: 50%;
    text-align: left;
    animation-delay: 0.4s;
}

.innovation-marker {
    position: absolute;
    top: 1rem;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.innovation-item:nth-child(odd) .innovation-marker {
    right: -10px;
}

.innovation-item:nth-child(even) .innovation-marker {
    left: -10px;
}

.innovation-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.innovation-content h4 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: white;
}

.innovation-content p {
    line-height: 1.6;
    opacity: 0.9;
    color: #ecf0f1;
    font-size: 0.95rem;
}

.innovation-item::before {
    content: attr(data-year);
    position: absolute;
    top: -0.5rem;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
}

.innovation-item:nth-child(odd)::before {
    right: 2rem;
}

.innovation-item:nth-child(even)::before {
    left: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .tech-container {
        flex-direction: column;
        margin: 1rem;
    }

    .tech-sidebar {
        width: 100%;
        order: 2;
    }

    .sidebar-content {
        padding: 1.5rem;
    }

    .tech-content {
        order: 1;
        min-height: 60vh;
    }

    .content-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .content-controls {
        justify-content: center;
    }

    .content-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-card {
        padding: 2rem 1.5rem;
    }

    .innovations-timeline {
        max-width: none;
        padding: 1rem 0;
    }

    .timeline-track {
        left: 30px;
    }

    .innovation-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 70px;
        padding-right: 1rem;
    }

    .innovation-marker {
        left: 20px !important;
        right: auto !important;
    }

    .innovation-item::before {
        left: 0 !important;
        right: auto !important;
        top: -2rem;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        padding: 5rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .tech-container {
        margin: 0.5rem;
        border-radius: 10px;
    }

    .sidebar-content {
        padding: 1rem;
    }

    .sidebar-content h3 {
        font-size: 1.2rem;
    }

    .tech-nav-link {
        padding: 0.8rem;
    }

    .nav-icon {
        font-size: 1.1rem;
        margin-right: 0.6rem;
    }

    .iframe-container {
        margin: 0.5rem;
    }

    .highlight-card {
        padding: 1.5rem 1rem;
    }

    .highlight-icon {
        font-size: 3rem;
        height: 60px;
    }

    .innovation-content {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

/* 全屏模式 */
.tech-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
}

.tech-container.fullscreen .tech-sidebar {
    display: none;
}

.tech-container.fullscreen .iframe-container {
    margin: 0;
    border-radius: 0;
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    .footer,
    .tech-sidebar,
    .content-header,
    .content-footer {
        display: none;
    }

    .tech-container {
        box-shadow: none;
        margin: 0;
    }

    .page-header {
        background: none;
        color: black;
        padding: 2rem 0;
    }

    .highlights-section,
    .innovations-section {
        background: none;
        color: black;
        padding: 2rem 0;
    }

    .innovation-content {
        background: #f5f5f5;
        color: black;
    }
} 