/* =============================================
   东方营养学会官网 - 主样式表
   主色调：#016738（墨绿色）
   参考原站完整还原
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #016738;
    --primary-dark: #014f2b;
    --primary-light: #e8f5e9;
    --accent: #c41230;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --white: #fff;
    --border: #e0e4e8;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --radius: 4px;
}

html { font-size: 16px; }
body {
    font-family: "Microsoft YaHei","微软雅黑","PingFang SC","Helvetica Neue",Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-width: 1200px;
}
a { color: var(--text); text-decoration: none; transition: all .3s ease; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }
.container { width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ========================================
   顶部 - top_bg / top_logo / top_menu
   ======================================== */
.top_bg {
    background: url('/images/top_bg.jpg') center top no-repeat;
    background-size: cover;
    height: 6px;
    background-color: var(--primary);
}
.top_logo {
    background: #fff;
    padding: 16px 0 12px;
}
.top_logo .container {
    display: flex;
    align-items: center;
    position: relative;
}
.top_logo .container > a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    color: var(--primary) !important;
}
.logo-placeholder {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
}
.logo-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.top_right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.all_re_lang {
    text-align: right;
}
.vip_login {
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
}
.vip_login:hover { color: var(--primary-dark); }

.top_search {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    width: 180px;
    height: 34px;
    background: #f9f9f9;
}
.top_search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    color: var(--text-muted);
}
.top_search a {
    width: 36px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.top_search a img { width: 16px; height: 16px; }

/* 主导航 */
.top_menu {
    background: var(--primary);
    height: 52px;
    border-bottom: 3px solid var(--primary-dark);
}
.top_menu .container { height: 100%; }
.top_menu ul {
    display: flex;
    height: 100%;
    justify-content: space-between;
}
.top_menu ul li {
    flex: 1;
    text-align: center;
}
.top_menu ul li a {
    display: block;
    color: #fff;
    font-size: 15px;
    height: 52px;
    line-height: 52px;
    white-space: nowrap;
    transition: background .2s;
}
.top_menu ul li a:hover,
.top_menu ul li.active a {
    background: var(--primary-dark);
    color: #fff;
}
.top_menu ul li.highlight a {
    background: var(--accent);
    font-weight: 700;
}
.top_menu ul li.highlight a:hover {
    background: #a00f28;
}

/* ========================================
   Banner Swiper
   ======================================== */
.index_top_swiper { background: #fff; overflow: hidden; }
.swiper-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}
.swiper-wrapper {
    display: flex;
    height: 100%;
}
.swiper-slide {
    flex: 0 0 100%;
    height: 100%;
}
.swiper-slide a { display: block; width: 100%; height: 100%; }
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
}
.banner-placeholder-text {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.swiper-pagination { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.swiper-pagination-bullet {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: all .3s; display: inline-block;
}
.swiper-pagination-bullet-active { background: #fff; transform: scale(1.3); }

/* ========================================
   Announcement Bar (公告跑马灯)
   ======================================== */
.index_news { background: #fff; }
.index_topNotice {
    display: flex;
    align-items: center;
    height: 46px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.index_topNotice_title {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    height: 30px;
    line-height: 30px;
    border-radius: 3px;
    margin-right: 14px;
    letter-spacing: 2px;
}
.index_topNotice_content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 46px;
    line-height: 46px;
}
.index_topNotice_content .str1_wrap { display: flex; }
.index_topNotice_content .str1_wrap a {
    display: inline-block;
    font-size: 14px;
    color: var(--text);
    padding-right: 60px;
    white-space: nowrap;
    flex-shrink: 0;
}
.index_topNotice_content .str1_wrap a:hover { color: var(--primary); }

/* ========================================
   Section Title
   ======================================== */
.index_leftLine_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.index_leftLine_title span {
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.index_bottomLine_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.pull-right { font-style: normal; font-weight: 400; }
.pull-right a { font-size: 13px; color: var(--text-muted); }
.pull-right a:hover { color: var(--primary); }

/* ========================================
   一行三块：新闻 / 通知公告 / 右侧图片
   ======================================== */
.index_news .container {
    display: flex;
    gap: 24px;
    padding: 20px 15px;
}

.index_news_news { flex: 1; min-width: 0; }
.index_news_first { margin-bottom: 12px; }
.index_news_first .news-first-img {
    width: 100%;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 10px;
}
.index_news_first img.news-first-img {
    object-fit: cover;
    padding: 0;
}
.index_news_first .img-label {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 3px;
}
.index_news_firsttitle h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.index_news_news_content ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dotted var(--border);
}
.index_news_news_content ul li a { flex: 1; min-width: 0; }
.index_news_news_content ul li a h5 {
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index_news_news_content ul li a:hover h5 { color: var(--primary); }
.index_news_news_content ul li span {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 12px;
    white-space: nowrap;
}

.index_news_notice {
    width: 360px;
    flex-shrink: 0;
}
.index_news_notice_content ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dotted var(--border);
}
.index_news_notice_content ul li a { flex: 1; min-width: 0; }
.index_news_notice_content ul li a p {
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index_news_notice_content ul li a:hover p { color: var(--primary); }
.index_news_notice_content ul li span {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 12px;
    white-space: nowrap;
}
.index_news_notice_content ul li:first-child { font-weight: 600; }

.index_news_moment {
    width: 240px;
    flex-shrink: 0;
}
.moment-img {
    width: 100%;
    height: 70px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: transform .3s;
}
.moment-img:hover { transform: translateY(-2px); }
.moment-img.join { height: 60px; font-size: 14px; }

/* ========================================
   三张横幅宣传图
   ======================================== */
.index_fullBg { background: #fff; padding: 20px 0; }
.index_imgText { padding: 20px 0; }
.index_imgText_content {
    display: flex;
    gap: 20px;
}
.yq_jjsszn { flex: 1; }
.promo-banner {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    transition: transform .3s, box-shadow .3s;
}
.promo-banner:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ========================================
   学术交流 / 科普知识 / 精彩瞬间（三列）
   ======================================== */
.index_fullPd { background: #fff; padding: 20px 0; }
.index_fullPd .container {
    display: flex;
    gap: 20px;
}
.index_meeting { flex: 1; min-width: 0; }
.index_meeting ul li,
.index_policy ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dotted var(--border);
}
.index_meeting ul li a,
.index_policy ul li a { flex: 1; min-width: 0; }
.index_meeting ul li a h5,
.index_policy ul li a h5 {
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index_meeting ul li a:hover h5,
.index_policy ul li a:hover h5 { color: var(--primary); }
.index_meeting ul li span,
.index_policy ul li span {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    white-space: nowrap;
}
.index_policy { flex: 1; min-width: 0; }
.index_meeting2 { flex: 1; min-width: 0; }

.index_news_moment_content {
    position: relative;
    height: 200px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 4px;
}
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-inner .item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
}
.carousel-inner .item.active { opacity: 1; z-index: 1; }
.moment-carousel-img {
    width: 100%;
    height: 180px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    object-fit: cover;
}
.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    list-style: none;
    transition: all .3s;
}
.carousel-indicators li.active { background: #fff; transform: scale(1.2); }

/* ========================================
   最新成果 / 科技服务 / 出版物 三卡片
   ======================================== */
.index_imgTextMat { gap: 20px; }
.index_imgText_item {
    flex: 1;
    padding: 28px 24px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    background: #f8f9fa;
    transition: transform .3s, box-shadow .3s;
}
.index_imgText_item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.index_imgText_item h4 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.index_imgText_item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}
.index_imgText_item a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}
.imgText_item_img {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    opacity: .9;
}

/* ========================================
   视频专区
   ======================================== */
.index_video {
    padding: 24px 0 30px;
    background: #fff;
}
.index_video_content {
    display: flex;
    gap: 20px;
}
.index_video_item {
    flex: 1;
    transition: transform .3s;
}
.index_video_item:hover { transform: translateY(-3px); }
.video-thumb-placeholder {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.video-thumb-placeholder .play-icon {
    font-size: 40px;
    color: rgba(255,255,255,.85);
    text-shadow: 0 0 10px rgba(0,0,0,.3);
}
.video-thumb-placeholder .duration-label {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}
.index_video_item p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.index_video_item > span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   友情链接
   ======================================== */
.foot_link {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px 0;
}
.foot_link_box {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.foot_link_label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding: 6px 16px 6px 0;
    margin-right: 8px;
    line-height: 28px;
    position: relative;
}
.foot_link_label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    height: 24px;
    width: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.foot_link ul {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.foot_link ul li a {
    display: inline-block;
    padding: 5px 16px;
    background: #f6f8fa;
    border: 1px solid #e8ecf0;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    transition: all .25s ease;
}
.foot_link ul li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(1,103,56,.12);
}

/* ========================================
   页脚
   ======================================== */
.foot {
    background: #1a2a3a;
    padding: 42px 0 34px;
    color: #a0b0c0;
}
.foot .container {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.foot .container > div {
    flex: 1;
    padding: 0 36px;
}
.foot .container > div:first-child { padding-left: 0; }
.foot .container > div:last-child  { padding-right: 0; }
.foot .container > div:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.08);
}

/* 共享标题样式 */
.foot h4 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,.08);
    position: relative;
    letter-spacing: 1px;
}
.foot h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* 理事会 */
.foot_aboutUs p { font-size: 13px; line-height: 1.85; }

/* 网站导航 — 双栏排布 */
.foot_navigation ul {
    columns: 2;
    column-gap: 20px;
}
.foot_navigation ul li { padding: 4px 0; break-inside: avoid; }
.foot_navigation ul li a { font-size: 13px; color: #a0b0c0; }
.foot_navigation ul li a:hover { color: #5dade2; }

/* 联系我们 */
.foot_callUs ul li { font-size: 13px; padding: 4px 0; }
.foot_callUs ul li a { color: #5dade2; }

.copyRight {
    background: #141f2b;
    padding: 14px 0;
    text-align: center;
    color: #667788;
    font-size: 12px;
    line-height: 2;
}
.copyRight a { color: #667788; }
.copyRight a:hover { color: #5dade2; }

/* ========================================
   通用占位页面
   ======================================== */
.page-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    margin: 30px auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-placeholder .placeholder-content {
    text-align: center;
    color: var(--text-muted);
}
.page-placeholder .placeholder-icon { font-size: 64px; margin-bottom: 16px; }
.page-placeholder h2 { font-size: 24px; color: var(--text); margin-bottom: 8px; }

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .foot .container {
        flex-direction: column;
        gap: 28px;
    }
    .foot .container > div {
        padding: 0;
    }
    .foot .container > div:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding-bottom: 28px;
    }
    .foot_navigation ul {
        columns: 2;
    }
}

/* ========================================
   表单验证提示
   ======================================== */
.validation-summary {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 16px;
    margin-bottom: 16px;
    color: #721c24;
    font-size: 14px;
    list-style: none;
}
.validation-summary li { padding: 2px 0; }

.field-error {
    color: #c41230;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}
