/* ============================================================
   随州市互联网文化行业协会官网 - 公共样式
   ============================================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5fb4;
    --primary-dark: #12417c;
    --primary-light: #eaf2fc;
    --red: #c41e3a;
    --red-light: #fdf0f2;
    --teal: #0d7377;
    --teal-light: #e8f5f5;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #e5e5e5;
    --bg: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
    --radius: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

.container {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
}

/* ---------- 顶部信息条 ---------- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    height: 36px;
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span, .top-bar a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 24px;
    font-size: 13px;
}

.top-bar a:hover {
    color: #ffffff;
}

/* ---------- 头部导航 ---------- */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.35);
    overflow: hidden;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .name-cn {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
    line-height: 1.3;
    white-space: nowrap;
}

.logo-text .name-en {
    font-size: 11px;
    color: var(--text-lighter);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 0 22px;
    height: 88px;
    line-height: 88px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.main-nav > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav > li:hover > a,
.main-nav > li.active > a {
    color: var(--primary);
}

.main-nav > li:hover > a::after,
.main-nav > li.active > a::after {
    width: 60%;
}

.main-nav .dropdown {
    position: absolute;
    top: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 168px;
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 6px 0;
    z-index: 99;
}

.main-nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav .dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
}

.main-nav .dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 26px;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 8px;
}

/* ---------- 页面横幅 ---------- */
.page-banner {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #12417c 0%, #1a5fb4 55%, #2d7cd6 100%);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.page-banner::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.page-banner.red {
    background: linear-gradient(135deg, #8f1628 0%, #c41e3a 55%, #d9455c 100%);
}

.page-banner.teal {
    background: linear-gradient(135deg, #084e51 0%, #0d7377 55%, #14908f 100%);
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    letter-spacing: 1px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-lighter);
}

.breadcrumb .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--primary);
}

/* ---------- 通用版块 ---------- */
.section {
    padding: 70px 0;
}

.section.bg-gray {
    background: var(--bg);
}

.section-head {
    text-align: center;
    margin-bottom: 46px;
}

.section-head .en {
    display: block;
    font-size: 13px;
    color: var(--text-lighter);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-head h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
}

.section-head.red h2::after {
    background: var(--red);
}

.section-head.teal h2::after {
    background: var(--teal);
}

.section-head .desc {
    margin-top: 14px;
    color: var(--text-light);
    font-size: 15px;
}

/* ---------- 栏目页签 ---------- */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-nav a {
    padding: 9px 26px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.25s ease;
}

.tab-nav a:hover,
.tab-nav a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- 新闻列表 ---------- */
.news-list {
    background: var(--white);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px dashed var(--border);
    transition: all 0.25s ease;
}

.news-item:hover {
    background: var(--primary-light);
}

.news-item .date {
    width: 74px;
    text-align: center;
    border-right: 1px solid var(--border);
    margin-right: 20px;
    flex-shrink: 0;
}

.news-item .date .day {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.news-item .date .ym {
    font-size: 12px;
    color: var(--text-lighter);
}

.news-item .info {
    flex: 1;
    min-width: 0;
}

.news-item .info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:hover .info h3 {
    color: var(--primary);
}

.news-item .info p {
    font-size: 13px;
    color: var(--text-lighter);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item .tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 3px;
    background: var(--primary-light);
    color: var(--primary);
    margin-left: 16px;
    flex-shrink: 0;
}

/* ---------- 卡片列表 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card .cover {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card .cover .ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.card .cover .ph.blue { background: linear-gradient(135deg, #1a5fb4, #3d8be0); }
.card .cover .ph.red { background: linear-gradient(135deg, #a01730, #d9536a); }
.card .cover .ph.teal { background: linear-gradient(135deg, #0d7377, #2ba3a1); }
.card .cover .ph.gold { background: linear-gradient(135deg, #9a6a1f, #d4a54a); }
.card .cover .ph.purple { background: linear-gradient(135deg, #5b3a8e, #8c66c9); }
.card .cover .ph.dark { background: linear-gradient(135deg, #2c3e50, #4a627e); }
.card .cover .ph.gray { background: linear-gradient(135deg, #4b5563, #6b7280); }

.card .body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card .body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card:hover .body h3 {
    color: var(--primary);
}

.card .body p {
    font-size: 13.5px;
    color: var(--text-lighter);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card .body .meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-lighter);
}

/* ---------- 文章详情 ---------- */
.article-page {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 50px;
}

.article-page h1.article-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 18px;
}

.article-meta {
    text-align: center;
    font-size: 13px;
    color: var(--text-lighter);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
}

.article-meta span {
    margin: 0 14px;
}

.article-content p {
    margin-bottom: 18px;
    text-indent: 2em;
    font-size: 15.5px;
    line-height: 2;
    color: #444;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 14px;
    color: var(--primary-dark);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 14px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 18px 0;
    color: var(--text-light);
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 46px;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.25s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 95, 180, 0.35);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: #a01730;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.35);
}

/* ---------- 底部 ---------- */
.site-footer {
    background: #1b2735;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
}

.footer-top {
    padding: 56px 0 46px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-top h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 1px;
}

.footer-top h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}

.footer-top p {
    margin-bottom: 10px;
    line-height: 1.9;
}

.footer-top a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-top a:hover {
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li::before {
    content: "›";
    margin-right: 8px;
    color: var(--primary);
}

.footer-qrcode {
    display: flex;
    gap: 20px;
}

.qr-item {
    text-align: center;
}

.qr-box {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom .links {
    margin-top: 6px;
}

.footer-bottom .links a {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 10px;
}

.footer-bottom .links a:hover {
    color: #fff;
}

/* ---------- 浮动工具 ---------- */
.float-tools {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-tools a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

.float-tools a:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .header-inner {
        height: 72px;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow-hover);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav.open {
        max-height: 640px;
    }

    .main-nav > li > a {
        height: auto;
        line-height: 1.5;
        padding: 14px 24px;
        text-align: center;
    }

    .main-nav > li > a::after {
        display: none;
    }

    .main-nav .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .card-grid, .card-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .top-bar .container span:nth-child(2) {
        display: none;
    }

    .logo-text .name-cn {
        font-size: 17px;
    }

    .logo-text .name-en {
        display: none;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .card-grid, .card-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .article-page {
        padding: 24px 20px;
    }

    .section {
        padding: 46px 0;
    }
}

/* ---------- 会员卡片（照片展示） ---------- */
.member-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.member-photo {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 10px 12px 14px;
    text-align: center;
}

.member-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.member-level {
    display: inline-block;
    font-size: 11px;
    color: var(--primary);
    background: #e6f0ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.member-industry {
    display: block;
    font-size: 11px;
    color: var(--text-light);
}

/* 当有照片时，member-logo 在卡片中也需要适配高度 */
.member-card .member-logo {
    height: 120px;
    border-radius: 0;
    font-size: 16px;
}
