@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@400;600&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --secondary: #2e7d32;
    --accent: #ff8f00;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background-color: #fafafa;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 跳过链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* 头部导航 */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/background.jpg') center/cover no-repeat;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #ff9800;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 主要内容区域 */
.section {
    padding: 5rem 0;
}

.section-alt-bg {
    background-color: #f5f7fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
    padding: 0 1.5rem;
    background: white;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 1rem;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    z-index: 0;
}

/* 人物介绍 */
.people-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.person-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.person-card:nth-child(1) {
    animation-delay: 0.2s;
}

.person-card:nth-child(2) {
    animation-delay: 0.4s;
}

.person-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.person-img {
    height: 750px;
    overflow: hidden;
    position: relative;
}

.person-img:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.person-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.person-card:hover .person-img img {
    transform: scale(1.05);
}

.person-info {
    padding: 2rem;
}

.person-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.person-info .person-title {
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* 时间线 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    animation: fadeInRight 0.8s forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
    font-size: 1.5rem;
    border: 4px solid #f5f7fa;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* 著作卡片 */
.works-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.work-card:nth-child(1) {
    animation-delay: 0.2s;
}

.work-card:nth-child(2) {
    animation-delay: 0.4s;
}

.work-card:nth-child(3) {
    animation-delay: 0.6s;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.work-img {
    height: 590px;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-card:hover .work-img img {
    transform: scale(1.05);
}

.work-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.work-info .work-meta {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1rem;
}

.work-info p {
    margin-bottom: 1.5rem;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 0;
    position: relative;
}

.btn-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.btn-text:hover:after {
    width: 100%;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text i {
    margin-left: 0.3rem;
    transition: transform var(--transition);
}

.btn-text:hover i {
    transform: translateX(4px);
}

/* 核心概念卡片 */
.issues-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.issue-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.issue-card:nth-child(1) {
    animation-delay: 0.2s;
}

.issue-card:nth-child(2) {
    animation-delay: 0.4s;
}

.issue-card:nth-child(3) {
    animation-delay: 0.6s;
}

.issue-card:nth-child(4) {
    animation-delay: 0.8s;
}

.issue-card:nth-child(5) {
    animation-delay: 1.0s;
}

.issue-card:nth-child(6) {
    animation-delay: 1.2s;
}

.issue-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.issue-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.issue-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* AI与社会专题 */
#ai-society {
    padding: 0;
}

.ai-society-content {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary), #1b5e20);
    border-radius: var(--border-radius);
    overflow: hidden;
    color: white;
}

.ai-society-text {
    flex: 1;
    padding: 4rem;
}

.ai-society-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.ai-society-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.ai-society-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

/* 引用部分 */
.quote-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 200px;
}

.quote {
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.8;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 0 2rem;
}

.quote.active {
    opacity: 1;
}

.quote:before, .quote:after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    opacity: 0.2;
}

.quote:before {
    top: -30px;
    left: -20px;
}

.quote:after {
    bottom: -60px;
    right: -20px;
}

.quote-author {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.quote-author.active {
    opacity: 1;
}

.quote-nav {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 1rem;
}

.quote-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.quote-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* 页脚 */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-column p,
.footer-column a {
    color: #bdbdbd;
    margin-bottom: 0.8rem;
    display: block;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdbdbd;
    font-size: 0.9rem;
}

/* 子页面样式 */
.subpage-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.subpage-container h1 {
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
}

.subpage-container h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.subpage-cover {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-cover img {
    max-width: 250px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.subpage-cover img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.subpage-container h2 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.subpage-container p {
    text-indent: 2em;
    margin-bottom: 1.2rem;
}

.subpage-container blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 5px solid var(--accent);
    background-color: #fff8e1;
    font-family: 'Noto Serif SC', serif;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.return-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 2rem;
    transition: var(--transition);
}

.return-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* AI分析页面 */
.ai-main-container {
    max-width: 1100px;
    margin: 4rem auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ai-tabs-nav {
    display: flex;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0;
}

.ai-tab-button {
    flex: 1;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.ai-tab-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.ai-tab-button.active {
    color: white;
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.ai-content-wrapper {
    padding: 2.5rem 3rem;
}

.ai-tab-content {
    display: none;
    animation: contentFadeIn 0.5s ease;
}

.ai-tab-content.active {
    display: block;
}

@keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-content-wrapper h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.ai-page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.ai-content-wrapper h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-content-card {
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.chart-container {
    max-width: 700px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

th {
    background-color: var(--secondary);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 4rem 0;
    }
    
    .ai-society-content {
        flex-direction: column;
    }
    
    .ai-society-text {
        padding: 2rem;
    }
    
    .ai-society-icon {
        font-size: 8rem;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 1rem;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-icon {
        left: 0;
    }
    
    .quote {
        font-size: 1.4rem;
        padding: 0 1.5rem;
    }
    
    .ai-tabs-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .logo span {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .quote {
        font-size: 1.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}