* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.container {
    width: 1500px;
    margin: 0 auto;
}

.main-content {
    padding: 40px 0;
}

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

ul {
    list-style: none;
}

/* ========== 出版物页面 ========== */
.page-title-section {
    margin-bottom: 30px;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.year-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    margin-bottom: 50px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.year-arrow {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 36px;
  
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    line-height: 1;
    flex-shrink: 0;
}

.year-arrow:hover {
    color: #0091d7;
}

.year-tabs {
    flex: 1;
    display: flex;
    gap: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.year-tabs::-webkit-scrollbar {
    display: none;
}

.year-tab {
    font-size: 18px;
    color: #999;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.year-tab:hover {
    color: #0091d7;
}

.year-tab.active {
    color: #0091d7;
    font-weight: bold;
}

.year-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0091d7;
    z-index: 2;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.publication-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.publication-item:hover {
    transform: translateY(-5px);
}

.publication-cover {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 15px;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-item h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.publication-item span {
    font-size: 13px;
    color: #999;
}

/* ========== 研究成果页面 ========== */
.research-list {
    margin: 0 auto;
}

.research-item {
    display: flex;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.research-item:hover {
    background: #f8fbff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.research-item:last-child {
    border-bottom: none;
}

.research-date {
    width: 140px;
    flex-shrink: 0;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    padding-top: 5px;
    transition: color 0.3s;
}

.research-item:hover .research-date {
    color: #0091d7;
}

.research-content {
    flex: 1;
    border-left: 1px solid #eee;
    padding-left: 30px;
    transition: border-color 0.3s;
}

.research-item:hover .research-content {
    border-color: #0091d7;
}

.research-content h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.3s;
}

.research-item:hover .research-content h3,
.research-item:hover .research-content h3 a {
    color: #0091d7;
}

.research-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    min-height: calc(1.8em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.research-item:hover .research-content p {
    color: #666;
}

/* ========== 活动列表页面 ========== */
.activities-list {
    margin: 0 auto;
}

.activity-card {
    display: flex;
    background: #fff;
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
    padding: 20px;
    border: 1px solid #ddd;
}

.activity-card:hover {
    background-color: #edf2f6;
}

.activity-image {
    width: 420px;
    flex-shrink: 0;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activity-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 45px;
    line-height: 1.5;
}

.activity-meta p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.activity-meta p strong {
    color: #333;
    font-weight: normal;
}

.activity-meta p strong:first-child {
    margin-right: 20px;
}

.signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    align-self: flex-end;
    transition: all 0.3s;
    text-decoration: none;
}

.signup-btn:hover {
    border-color: #1e4b8c;
    color: #1e4b8c;
}

.signup-btn::after {
    content: "→";
}

/* ========== 活动详情页面 ========== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    border: 1px solid #eee;
}

.detail-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-header h1 {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.detail-meta {
    font-size: 14px;
    color: #999;
}

.detail-meta span {
    margin: 0 10px;
}

.detail-body {
    font-size: 15px;
    color: #333;
    line-height: 2;
}

.detail-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 8px;
}

.attachment-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.attachment-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
}

.attachment-item .icon {
    width: 24px;
    height: 24px;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
}

.attachment-item .icon img {
    width: 24px;
}

.attachment-item span {
    font-size: 14px;
    color: #666;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
     border-left: 1px dashed #eee;
    padding-left: 30px;
    margin: 30px 0;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
   
}

.info-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
        align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.info-item .label {
    color: #999;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.info-item .label img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}
.info-item .value {
    color: #333;
}

.signup-form h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    width: 60px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1e4b8c;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-code {
    width: 80px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    user-select: none;
    letter-spacing: 2px;
}

.btn-submit {
    width: 50%;
    margin-left: 25%;
    padding: 12px;
    background: #e8602c;
    color: #fff;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #d4511f;
}

/* ========== 需求提交页面 ========== */
.demand-page {
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 40px;
}

.demand-page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.demand-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
}

.demand-form .form-group {
    margin-bottom: 25px;
}

.demand-form label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.demand-form textarea {
    width: 100%;
    height: 150px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.demand-form textarea:focus {
    border-color: #1e4b8c;
}

.demand-form .form-group input {
    width: 100%;
}

/* 笔记本屏幕被放大125%时专属优化 */
@media (-webkit-device-pixel-ratio: 1.25) {
    .logo img{
        height: 80px;
        margin-right: 0;
    }
    .banner-title{
        font-size: 44px !important;
    }
    .stats{
        width:1200px;
    }
    .container {
        width: 1200px;
    }
    .ads a img{
        width:100%;
    }
    .platform-item .platform-icon{
        height: 160px;
    }
    .member-showcase{
        width: 900px;
        margin-right:20px;
    }
    .member-item .member-image{
        height:144px;
    }
    .hyright{
        width: 256px;
    }
    .hyright img{
        width:100%;
    }
    .footer-center{
        margin-right: 100px;
    }
}

/* 放大150%时 */
@media (-webkit-device-pixel-ratio: 1.5) {
    .logo img{
        height: 67px;
        margin-right: 0;
    }
    .banner-title{
        font-size: 37px !important;
    }
    .stats{
        width:1000px;
    }
    .container {
        width: 1000px;
    }
    .ads a img{
        width:100%;
    }
    .platform-item .platform-icon{
        height: 133px;
    }
    .member-showcase{
        width: 750px;
        margin-right:16px;
    }
    .member-item .member-image{
        height:120px;
    }
    .hyright{
        width: 213px;
    }
    .hyright img{
        width:100%;
    }
    .footer-center{
        margin-right: 80px;
    }
}

/* ========== 响应式 ========== */
@media (max-width: 1501px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .publications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* iPad / 平板专属优化（769-1501px） */
@media (min-width: 769px) and (max-width: 1501px) {
    .container {
        padding: 0 30px;
    }

    .publications-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .detail-layout {
        grid-template-columns: 1fr 340px;
        gap: 25px;
    }

    .activity-card {
        flex-direction: row;
    }

    .activity-image {
        width: 280px;
        height: 180px;
        flex-shrink: 0;
    }

    .activity-info {
        padding: 25px;
        flex: 1;
    }

    .research-item {
        flex-direction: row;
        gap: 20px;
        padding: 20px;
    }

    .research-date {
        width: auto;
        flex-shrink: 0;
    }

    .research-content {
        padding-left: 20px;
        border-left: 1px solid #eee;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .demand-form {
        padding: 20px;
    }

    .detail-sidebar {
        padding-left: 25px;
        border-left: 1px solid #eee;
    }

    .detail-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .year-tabs {
        gap: 25px;
    }

    .activity-card {
        flex-direction: column;
    }

    .activity-image {
        width: 100%;
        height: 200px;
    }

    .activity-info {
        padding: 20px;
    }

    .research-item {
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
    }

    .research-date {
        width: auto;
        padding-top: 0;
    }

    .research-content {
        padding-left: 0;
        border-left: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .demand-form {
        padding: 15px;
    }

    .detail-sidebar{
        padding-left: 0;
        border-left: none;
        margin: 0;
    }

    .detail-content{
        padding: 25px;
    }

    .demand-page{
        padding: 5px;
    }

    .demand-form .form-group{
        display: block;
    }

    .research-date{
        width: 100%;
    }

    .research-content{
        margin-left: 0px;
        padding-left: 0px;
        border-left: none;
    }
}
