/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 60px;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand a {
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2c5282;
}


/* 当前页面激活状态 */
.nav-links a.active {
    color: #000;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-brand {
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .container {
        margin-top: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .paper-details {
        margin: 1rem;
    }

    .paper-links {
        flex-direction: column;
    }
}

/* 导航栏额外样式 */
.logo {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.logo-text {
    display: inline-block;
    vertical-align: middle;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.logo-sub {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.05rem;
}

.language-switch {
    margin-left: 2rem;
}

.language-switch a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 移动端样式补充 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle.active i {
        transform: rotate(90deg);
    }

    .language-switch {
        margin: 0.5rem 0;
    }
} 

/* 页面标题通用样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 2rem;
}

.section-title h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-title p {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    padding: 25px 0 15px;
    color: #ecf0f1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 15px;
}

.footer-section {
    flex: 1;
}

/* 联系方式部分 */
.footer-section.contact {
    text-align: left;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.contact-info p {
    margin: 0.3rem 0;
    color: #bdc3c7;
    line-height: 1.4;
}

.contact-info i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
}

/* 友情链接部分 */
.footer-section.links {
    text-align: left;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* 关注我们部分 */
.footer-section.social {
    text-align: left;
}

.qrcode {
    margin-bottom: 0.8rem;
}

.qrcode img {
    width: 110px;
    height: 110px;
    border-radius: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* 版权信息 */
.footer-bottom {
    text-align: center;
    padding-top: 10px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(236, 240, 241, 0.1);
    margin-bottom: 10px;
}

.copyright {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #95a5a6;
    font-size: 0.9rem;
}

.developer-info {
    color: #95a5a6;
}

.visitor-count {
    color: #95a5a6;
}

.visitor-count .count {
    font-weight: normal;
    margin: 0 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-section,
    .footer-section.contact,
    .footer-section.links,
    .footer-section.social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 10px;
    }
} 