/* 龙岗财税协会前台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; background: #f5f7fa; line-height: 1.7; }
a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

/* 顶部栏 */
.top-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
.top-bar-inner { display: flex; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.logo-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid #1e50a2; display: flex; align-items: center; justify-content: center; color: #1e50a2; font-size: 28px; font-weight: 700; flex-shrink: 0; }
.logo-text h1 { font-size: 22px; color: #1e50a2; margin: 0 0 2px; font-weight: 600; }
.logo-text p { font-size: 12px; color: #6b7280; margin: 0; letter-spacing: 0.5px; }

/* 导航栏 */
.site-header { background: #1e6fdf; position: sticky; top: 0; z-index: 100; }
.nav-bar { height: 50px; display: flex; align-items: center; justify-content: space-between; }
.main-nav ul { display: flex; list-style: none; height: 50px; }
.main-nav li { height: 50px; }
.main-nav a { display: flex; align-items: center; height: 50px; padding: 0 28px; color: #fff; font-size: 15px; transition: all .2s; position: relative; }
.main-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.main-nav li.active a { background: #fff; color: #1e6fdf; font-weight: 600; }
.main-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--secondary-color, #d4af37);
    border-radius: 2px 2px 0 0;
}
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }
.mobile-menu-toggle svg { display: block; }

/* 焦点图 + 公告区 */
.hero-section { background: #fff; padding: 20px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; }
.slider { position: relative; height: 0; padding-bottom: 46%; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.slider .slide-item { position: absolute; inset: 0; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 40px 20px 16px; font-size: 16px; }
.slider-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 8px; }
.slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all .2s; }
.slider-dots span.active { background: #fff; width: 24px; border-radius: 5px; }

.notice-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.notice-header { background: #1e6fdf; color: #fff; padding: 13px 16px; font-size: 16px; font-weight: 500; }
.notice-list { list-style: none; flex: 1; }
.notice-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px dashed #e5e7eb; transition: background .2s; }
.notice-list li:hover { background: #f9fafb; }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { color: #333; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }
.notice-list a:hover { color: #1e6fdf; }
.notice-list .date { color: #9ca3af; font-size: 13px; white-space: nowrap; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: #1e6fdf; flex-shrink: 0; margin-right: 10px; }

/* 横幅标语区（居中一张图，两侧留白） */
.banner-bar {
    padding: 30px 0;
    background: transparent !important;
}
.banner-bar .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 12px;
    overflow: hidden;
}
.banner-bar .banner-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    background: #eef2ff;
}
.banner-bar .banner-text {
    position: absolute;
    top: 0; bottom: 0; left: 20px; right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.42);
    color: #fff;
    text-align: center;
    border-radius: 12px;
}
.banner-bar h3 { font-size: 28px; font-weight: 500; letter-spacing: 8px; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.banner-bar p { font-size: 15px; opacity: 0.92; margin-top: 10px; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }

/* 板块标题 */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 18px; color: #1e50a2; padding-left: 12px; border-left: 4px solid #1e6fdf; margin: 0; font-weight: 600; }
.section-header .more { color: #666; font-size: 14px; }
.section-header .more:hover { color: #1e6fdf; }

/* 协会动态 */
.news-section { padding: 30px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.news-card-img { width: 100%; height: 170px; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card-title { font-size: 15px; color: #333; margin-bottom: 10px; line-height: 1.5; font-weight: 500; }
.news-card-title a { color: #333; }
.news-card-title a:hover { color: #1e6fdf; }
.news-card-summary { font-size: 13px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 会员风采 */
.gallery-section { padding: 30px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* 关于协会 + 协会制度 */
.info-section { padding: 30px 0 60px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.info-box { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.info-box h3 { font-size: 17px; color: #1e50a2; padding-left: 10px; border-left: 4px solid #1e6fdf; margin-bottom: 16px; }
.info-box p { font-size: 14px; color: #555; line-height: 1.9; margin-bottom: 10px; }
.about-summary p { font-size: 14px; color: #555; line-height: 1.9; margin-bottom: 10px; text-align: justify; }
.info-list { list-style: none; }
.info-list li { padding: 12px 0; border-bottom: 1px dashed #e5e7eb; }
.info-list li:last-child { border-bottom: none; }
.info-list a { color: #333; font-size: 14px; }
.info-list a:hover { color: #1e6fdf; }
.about-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; }
.about-list a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-list .about-date { color: #9ca3af; font-size: 12px; flex-shrink: 0; }
.about-box .more-row { margin-top: 14px; text-align: right; }

/* 页脚 */
.site-footer { background: #2c3e50; color: #fff; padding: 40px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { font-size: 16px; margin-bottom: 18px; color: #fff; font-weight: 600; padding-left: 12px; border-left: 3px solid #1e6fdf; }
.footer-col p { color: #b8c5d6; font-size: 14px; line-height: 1.8; }
.footer-col p span { color: #fff; }
.footer-link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-col a { color: #b8c5d6; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-contact p { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #3a4d61; padding: 20px 0; text-align: center; color: #8794a3; font-size: 13px; }
.footer-bottom a { color: #8794a3; margin: 0 12px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-link-row { gap: 6px 16px; }
}

/* 通用页面区域 */
.section { padding: 30px 0; }
.page-section .page-content { margin-top: 0; }
.page-section .breadcrumb { margin-bottom: 16px; }

/* 内容页 */
.page-content { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 32px; margin: 30px auto; max-width: 900px; }
.page-content h1, .page-content h2, .page-content h3 { color: #1e50a2; margin: 20px 0 12px; }
.page-content h1 { font-size: 26px; border-bottom: 2px solid #eef2ff; padding-bottom: 14px; }
.page-content p { margin-bottom: 14px; color: #555; line-height: 1.9; }
.page-content ul, .page-content ol { margin: 14px 0 14px 24px; }
.page-content-list { max-width: 100%; }
.page-content-list h1 { margin-bottom: 6px; border-bottom: none; padding-bottom: 0; }

.article-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.article-header h1 { font-size: 26px; color: #1e50a2; margin-bottom: 12px; }
.article-meta { color: #9ca3af; font-size: 13px; margin-top: 8px; display: flex; gap: 18px; flex-wrap: wrap; }
.article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.article-body { color: #444; line-height: 1.9; font-size: 15px; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }

.breadcrumb { padding: 14px 0; color: #6b7280; font-size: 14px; }
.breadcrumb a { color: #1e6fdf; }
.breadcrumb a:hover { text-decoration: underline; }

/* 分类列表页 */
.category-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.category-main { min-width: 0; }
.category-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 20px; }
.sidebar-card h4 { font-size: 16px; color: #1e50a2; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #eef2ff; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 10px 0; border-bottom: 1px dashed #e5e7eb; }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { color: #374151; font-size: 14px; }
.sidebar-card a:hover { color: #1e6fdf; }
.sidebar-card a::before { content: '›'; color: #1e6fdf; margin-right: 6px; }
.sidebar-card li.active a { color: #1e6fdf; font-weight: 600; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow .2s, transform .2s;
}
.news-list-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.news-list-thumb { width: 180px; height: 120px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.news-list-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-list-body h3 a { color: #1e50a2; }
.news-list-body h3 a:hover { color: #1e6fdf; }
.news-list-body p { color: #6b7280; font-size: 14px; line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #9ca3af; }
.news-list-meta .top-tag { background: #fee2e2; color: #991b1b; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { outline: none; border-color: #1e6fdf; box-shadow: 0 0 0 3px rgba(30,111,223,0.1); }
textarea.form-control { min-height: 130px; resize: vertical; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 26px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all .2s; font-weight: 500; }
.btn-primary { background: #1e6fdf; color: #fff; }
.btn-primary:hover { background: #1a5fc0; box-shadow: 0 4px 12px rgba(30,111,223,0.25); }
.btn-secondary { background: #f3f4f6; color: #374151; }
.btn-secondary:hover { background: #e5e7eb; }

.search-box { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.search-box .form-control { width: auto; }

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

.alert { padding: 13px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a { padding: 7px 14px; border: 1px solid #e5e7eb; border-radius: 6px; text-decoration: none; color: #4b5563; transition: all .2s; }
.pagination a.active, .pagination a:hover { background: #1e6fdf; color: #fff; border-color: #1e6fdf; }

.empty { text-align: center; padding: 50px; color: #9ca3af; }

/* 联系页面 */
.card-grid { display: grid; gap: 24px; }
.contact-info { text-align: center; }
.contact-info h2 { margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #e5e7eb; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { width: 40px; height: 40px; border-radius: 50%; background: #eef2ff; color: #1e6fdf; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-text { text-align: left; }
.contact-info-text small { display: block; color: #9ca3af; font-size: 12px; margin-bottom: 2px; }
.contact-info-text span { color: #374151; font-size: 14px; }
.contact-form h2 { margin-bottom: 20px; }

/* 单页/文章页优化 */
.page-article { max-width: 860px; margin: 0 auto; }
.page-single { max-width: 900px; margin: 0 auto; }
.category-layout .page-content { margin: 0; }

/* 相关文章 */
.related-articles { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 24px; margin-top: 24px; }
.related-articles h3 { font-size: 17px; color: #1e50a2; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.related-articles ul { list-style: none; margin: 0; }
.related-articles li { padding: 10px 0; border-bottom: 1px dashed #e5e7eb; }
.related-articles li:last-child { border-bottom: none; }
.related-articles a { color: #374151; }
.related-articles a:hover { color: #1e6fdf; }
.related-articles a::before { content: '•'; color: #1e6fdf; margin-right: 8px; }

/* 会员风采 */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; text-decoration: none; color: #333; transition: transform .2s, box-shadow .2s; }
.member-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.member-photo { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #eef2ff; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #1e6fdf; font-weight: 600; background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%); }
.member-no-photo.lg { font-size: 72px; }
.member-info { padding: 18px; text-align: center; }
.member-info h3 { font-size: 17px; color: #1e50a2; margin-bottom: 6px; }
.member-title { color: #6b7280; font-size: 13px; margin-bottom: 6px; }
.member-company { color: #9ca3af; font-size: 12px; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-tag { display: inline-block; background: #dbeafe; color: #1e50a2; padding: 3px 10px; border-radius: 20px; font-size: 12px; }

/* 会员详情 */
.member-detail { max-width: 800px; }
.member-detail-header { display: flex; gap: 28px; align-items: center; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #f3f4f6; }
.member-detail-photo { width: 160px; height: 160px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #eef2ff; }
.member-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-detail-info { flex: 1; }
.member-detail-info h1 { font-size: 24px; color: #1e50a2; margin-bottom: 8px; border-bottom: none; padding-bottom: 0; }
.member-detail-info .member-title { font-size: 15px; color: #6b7280; margin-bottom: 10px; }
.member-detail-info .member-tag { margin-bottom: 14px; }
.member-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #6b7280; }
.member-intro h3 { font-size: 17px; color: #1e50a2; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.member-intro .article-body { color: #555; line-height: 1.9; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1.5fr 1fr; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-nav a { padding: 0 20px; font-size: 14px; }
    .category-layout { grid-template-columns: 1fr 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .main-nav { position: fixed; top: 50px; left: 0; right: 0; background: #1e6fdf; display: none; padding: 10px 0; z-index: 99; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; height: auto; }
    .main-nav a { height: auto; padding: 12px 20px; }
    .mobile-menu-toggle { display: block; }
    .hero-grid, .news-grid, .gallery-grid, .info-grid, .category-layout, .card-grid { grid-template-columns: 1fr; }
    .slider { padding-bottom: 56%; }
    .notice-list li { padding: 12px; }
    .notice-list a { font-size: 13px; }
    .banner-bar { padding: 20px 0; }
    .banner-bar .banner-img { height: 160px; }
    .banner-bar h3 { font-size: 18px; letter-spacing: 4px; }
    .banner-bar p { font-size: 13px; }
    .logo-icon { width: 44px; height: 44px; font-size: 22px; }
    .logo-text h1 { font-size: 16px; }
    .logo-text p { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom a { display: inline-block; margin: 0 8px 8px; }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .member-detail-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .notice-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .notice-list .date { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .news-list-thumb { width: 100%; height: 180px; }
    .news-list-item { flex-direction: column; }
    .page-content { padding: 22px; }
    .contact-info { text-align: left; }
    .member-grid { grid-template-columns: 1fr; }
}
