/* 科学依据页面专用样式 */

.science-main-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* 科学依据标题 */
.science-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.science-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.science-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.science-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* 通用section头部 */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 10px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 理论基础部分 */
.theory-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.theory-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.theory-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.theory-card:hover::before {
    transform: scaleX(1);
}

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

.theory-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.theory-card-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.theory-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.theory-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.theory-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.theory-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.theory-badge-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theory-badge i {
    font-size: 0.875rem;
}

/* 评估维度部分 */
.dimensions-section {
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.dimension-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dimension-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.dimension-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.dimension-card-last {
    background: rgba(255, 251, 230, 0.9);
    border-left-color: #fbbf24;
}

.dimension-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-1);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.dimension-card-last .dimension-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.dimension-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-right: 80px;
}

.dimension-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.dimension-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.dimension-reference {
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.dimension-reference span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* RPI指数计算方法部分 */
.calculation-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.calculation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.calculation-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.calculation-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.calculation-subsection {
    margin-bottom: 2rem;
}

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

.calculation-subsection h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.calculation-subsection p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.dimension-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dimension-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dimension-list-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.dimension-list-item i {
    color: var(--primary-color);
    font-size: 0.5rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.dimension-list-item span {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 双视角评估设计部分 */
.perspective-design-section {
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.perspective-design-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.perspective-design-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.perspective-design-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.perspective-design-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.perspective-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.perspective-feature i {
    font-size: 1rem;
}

/* 研究应用部分 */
.applications-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.application-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.application-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-align: center;
}

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

.application-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.application-card:hover .application-icon {
    transform: rotate(360deg) scale(1.1);
}

.application-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.application-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.application-count {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 使用限制与说明部分 */
.limitations-section {
    background: rgba(255, 251, 230, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(251, 191, 36, 0.3);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.limitations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.limitation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.limitation-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.limitation-bullet {
    width: 12px;
    height: 12px;
    background: #fbbf24;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.limitation-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.limitation-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 底部操作按钮 */
.science-cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.science-cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.science-cta-button.primary {
    background: var(--gradient-1);
    color: white;
}

.science-cta-button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.science-cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.science-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
}

.back-home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.back-home-link:hover {
    color: white;
    transform: translateY(-2px);
}

.back-home-link i {
    font-size: 1rem;
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .science-main-content {
        padding: 2rem 1rem;
    }

    .science-header {
        margin-bottom: 2rem;
    }

    .science-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .science-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .science-header p {
        font-size: 1rem;
    }

    .theory-section,
    .dimensions-section,
    .calculation-section,
    .perspective-design-section,
    .applications-section,
    .limitations-section {
        margin-bottom: 2rem;
    }

    .theory-cards,
    .perspective-design-cards,
    .application-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .theory-card,
    .calculation-card,
    .perspective-design-card,
    .application-card {
        padding: 1.5rem;
    }

    .dimensions-section {
        padding: 1.5rem;
    }

    .dimension-card {
        padding: 1.5rem;
        padding-right: 1rem;
    }

    .dimension-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .dimension-card h3 {
        padding-right: 0;
        font-size: 1.25rem;
    }

    .dimension-card h4 {
        font-size: 0.95rem;
    }

    .dimension-card p {
        font-size: 0.95rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .application-cards {
        gap: 1.5rem;
    }

    .application-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .limitations-section {
        padding: 1.5rem;
    }

    .limitation-item {
        padding: 1.25rem;
    }

    .science-cta-section {
        flex-direction: column;
        gap: 1rem;
    }

    .science-cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .science-main-content {
        padding: 1.5rem 0.75rem;
    }

    .science-header h1 {
        font-size: 1.5rem;
    }

    .science-header p {
        font-size: 0.95rem;
    }

    .theory-card,
    .calculation-card,
    .perspective-design-card,
    .application-card {
        padding: 1.25rem;
    }

    .dimensions-section {
        padding: 1.25rem;
    }

    .dimension-card {
        padding: 1.25rem;
    }

    .dimension-card h3 {
        font-size: 1.1rem;
    }

    .dimension-card h4 {
        font-size: 0.9rem;
    }

    .dimension-card p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .theory-card-header h2,
    .calculation-card h2 {
        font-size: 1.5rem;
    }

    .theory-card h3,
    .calculation-subsection h3 {
        font-size: 1.1rem;
    }

    .theory-card p,
    .calculation-subsection p {
        font-size: 0.9rem;
    }

    .perspective-design-card h3 {
        font-size: 1.1rem;
    }

    .perspective-design-card p {
        font-size: 0.9rem;
    }

    .application-card h3 {
        font-size: 1.1rem;
    }

    .application-card p {
        font-size: 0.9rem;
    }

    .limitations-section {
        padding: 1.25rem;
    }

    .limitation-content h3 {
        font-size: 1rem;
    }

    .limitation-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .science-header h1 {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }
}

/* 导航链接激活状态 */
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active::before {
    opacity: 1;
}

