/* ============================================
   浙江狮子会官网 - 前端主样式文件
   Zhejiang Lions Clubs Official Website
   ============================================ */

/* ========== 1. CSS自定义变量 ========== */
:root {
    --primary-color: #c41a1a;
    --primary-hover: #a01515;
    --secondary-color: #8b0000;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #1a1a2e;
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --header-bg: #c41a1a;
    --header-height: 80px;
    --footer-bg: #1a1a2e;
    --footer-text: #cccccc;
    --link-color: #c41a1a;
    --link-hover: #8b0000;
    --success-color: #67c23a;
    --warning-color: #e6a23c;
    --danger-color: #f56c6c;
    --info-color: #909399;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* ========== 2. 全局重置和基础样式 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
}

a:focus {
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* ========== 3. 头部导航 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.site-logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.site-logo .logo-text {
    font-size: 1.25rem;
    color: #fff;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav > ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px 2px 0 0;
}

.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.active > a::after {
    width: 70%;
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.main-nav > ul > li > a i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.header-search {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 0 15px;
    transition: var(--transition);
}

.header-search .search-form:focus-within {
    background: rgba(255,255,255,0.25);
}

.header-search .search-form input {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 0;
    width: 160px;
    font-size: 0.875rem;
}

.header-search .search-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-search .search-form button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 8px 0 8px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.header-search .search-form button:hover {
    color: #fff;
}

/* 移动端汉堡菜单按钮 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 1px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== 4. 下拉菜单（支持多级） ========== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    padding: 8px 0;
}

.main-nav > ul > li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu li a i {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* 三级下拉菜单 */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
}

.dropdown-menu li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单箭头指示 */
.main-nav > ul > li.has-sub > a::before {
    content: '▾';
    margin-left: 5px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ========== 5. Banner轮播 ========== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: var(--header-height);
}

.banner-slider .slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.banner-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slider .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    width: 80%;
    max-width: 800px;
}

.banner-slider .slide-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.banner-slider .slide-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.banner-slider .slide-content .banner-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.7s both;
    border: 2px solid transparent;
}

.banner-slider .slide-content .banner-btn:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196,26,26,0.4);
}

/* 轮播左右箭头 */
.banner-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.banner-slider .slider-arrow:hover {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.8);
}

.banner-slider .slider-arrow.prev {
    left: 20px;
}

.banner-slider .slider-arrow.next {
    right: 20px;
}

/* 轮播指示点 */
.banner-slider .slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-slider .slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.banner-slider .slider-dots .dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.banner-slider .slider-dots .dot:hover {
    border-color: #fff;
}

/* ========== 6. 通知公告栏 ========== */
.notice-bar {
    background: var(--bg-gray);
    border-bottom: 2px solid var(--primary-color);
    padding: 12px 0;
}

.notice-bar .notice-inner {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.notice-bar .notice-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 15px;
}

.notice-bar .notice-icon i {
    margin-right: 5px;
}

.notice-bar .notice-scroll {
    flex: 1;
    overflow: hidden;
    height: 30px;
    line-height: 30px;
    position: relative;
}

.notice-bar .notice-scroll ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: noticeScroll 15s linear infinite;
}

.notice-bar .notice-scroll ul li {
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notice-bar .notice-scroll ul li a {
    color: var(--text-color);
    font-size: 0.9rem;
}

.notice-bar .notice-scroll ul li a:hover {
    color: var(--primary-color);
}

.notice-bar .notice-more {
    flex-shrink: 0;
    margin-left: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

.notice-bar .notice-more:hover {
    color: var(--primary-color);
}

@keyframes noticeScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ========== 7. 内容区块 ========== */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.875rem;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 10px;
}

/* 新闻列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.news-item {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-item .news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-item:hover .news-img img {
    transform: scale(1.08);
}

.news-item .news-body {
    padding: 20px;
}

.news-item .news-body .news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-item .news-body .news-date i {
    margin-right: 5px;
}

.news-item .news-body h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .news-body h3 a {
    color: var(--text-color);
}

.news-item .news-body h3 a:hover {
    color: var(--primary-color);
}

.news-item .news-body .news-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 图文展示列表 */
.media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.media-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.media-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-item:hover img {
    transform: scale(1.08);
}

.media-item .media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.media-item .media-overlay h4 {
    color: #fff;
    font-size: 1rem;
}

/* ========== 8. 卡片式布局 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: center;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card .card-icon {
    width: 70px;
    height: 70px;
    margin: 30px auto 15px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--secondary-color);
    transform: rotateY(180deg);
}

.card .card-body {
    padding: 0 20px 30px;
}

.card .card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.card .card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.card .card-body .card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 25px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.card .card-body .card-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========== 9. 详情页样式 ========== */
.detail-page {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
}

.detail-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.detail-main {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.detail-main .detail-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-main .detail-meta {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

.detail-main .detail-meta span {
    margin-right: 20px;
}

.detail-main .detail-meta i {
    margin-right: 5px;
}

.detail-main .detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.detail-main .detail-content p {
    margin-bottom: 16px;
}

.detail-main .detail-content img {
    max-width: 100%;
    margin: 20px auto;
    border-radius: var(--radius-sm);
}

.detail-main .detail-content h2,
.detail-main .detail-content h3,
.detail-main .detail-content h4 {
    margin-top: 25px;
    margin-bottom: 12px;
}

.detail-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-nav a {
    color: var(--text-light);
    max-width: 45%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-nav a:hover {
    color: var(--primary-color);
}

/* ========== 10. 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.875rem;
    transition: var(--transition);
    background: #fff;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(196,26,26,0.05);
}

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

.pagination .disabled:hover {
    border-color: var(--border-color);
    color: #ccc;
    background: #fafafa;
}

.pagination .prev,
.pagination .next {
    font-size: 0.85rem;
}

/* ========== 11. 侧边栏导航 ========== */
.sidebar {
    width: 100%;
}

.sidebar .sidebar-widget {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: hidden;
}

.sidebar .widget-title {
    font-size: 1.125rem;
    padding: 15px 20px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.sidebar .widget-title i {
    margin-right: 8px;
}

.sidebar .sidebar-menu {
    padding: 10px 0;
}

.sidebar .sidebar-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar .sidebar-menu li a:hover,
.sidebar .sidebar-menu li a.active {
    background: rgba(196,26,26,0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

.sidebar .sidebar-menu li a i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.sidebar .widget-content {
    padding: 15px 20px;
}

.sidebar .widget-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== 12. 面包屑导航 ========== */
.breadcrumb-bar {
    background: var(--bg-gray);
    padding: 12px 0;
    margin-top: var(--header-height);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-bar .breadcrumb-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb-bar .breadcrumb-inner a {
    color: var(--text-light);
}

.breadcrumb-bar .breadcrumb-inner a:hover {
    color: var(--primary-color);
}

.breadcrumb-bar .breadcrumb-inner span {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-bar .breadcrumb-inner .current {
    color: var(--primary-color);
}

/* ========== 13. 页脚样式 ========== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 50px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--footer-text);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--footer-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-col .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col .contact-info li i {
    margin-right: 10px;
    margin-top: 4px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: var(--footer-text);
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom .footer-links {
    margin-bottom: 8px;
}

.footer-bottom .footer-links a {
    margin: 0 10px;
}

/* ========== 14. 表单样式 ========== */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fff;
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196,26,26,0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.form-control::placeholder {
    color: #bbb;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: auto;
}

.form-tips {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger-color);
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-submit {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* 搜索表单 */
.search-page-form {
    display: flex;
    max-width: 600px;
    margin: 30px auto;
}

.search-page-form .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.search-page-form .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 25px;
}

/* ========== 15. 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate {
    opacity: 0;
}

.animate.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* 悬停放大效果 */
.hover-zoom {
    transition: transform 0.4s ease;
}

.hover-zoom:hover {
    transform: scale(1.03);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 5px;
}

.tag-red {
    background: rgba(196,26,26,0.1);
    color: var(--primary-color);
}

.tag-gray {
    background: var(--bg-gray);
    color: var(--text-light);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 页面加载进度条 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.page-loader .loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    width: 0;
    transition: width 0.3s ease;
}

/* 通用区块标题 */
.block-title {
    text-align: center;
    padding: 40px 0 30px;
}

.block-title h2 {
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.block-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.block-title p {
    color: var(--text-light);
    margin-top: 10px;
}

/* ========== 16. 响应式布局 ========== */

/* PC端 - 小于1200px */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .banner-slider .slide-content h2 {
        font-size: 2rem;
    }

    .banner-slider {
        height: 420px;
    }

    .detail-container {
        grid-template-columns: 1fr 260px;
        gap: 20px;
    }

    .header-search .search-form input {
        width: 130px;
    }
}

/* 平板端 - 小于992px */
@media screen and (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .banner-slider {
        height: 350px;
    }

    .banner-slider .slide-content h2 {
        font-size: 1.75rem;
    }

    .banner-slider .slide-content p {
        font-size: 1rem;
    }

    .main-nav > ul > li > a {
        padding: 0 14px;
        font-size: 0.9rem;
    }

    .site-logo .logo-text {
        font-size: 1.1rem;
    }

    .news-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .detail-main {
        padding: 20px;
    }

    .footer-col .contact-info li {
        font-size: 0.85rem;
    }

    .banner-slider .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .banner-slider .slider-arrow.prev {
        left: 15px;
    }

    .banner-slider .slider-arrow.next {
        right: 15px;
    }

    .header-search .search-form input {
        width: 110px;
    }
}

/* 手机端 - 小于768px */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* 汉堡菜单显示 */
    .hamburger-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .main-nav.open {
        left: 0;
    }

    .main-nav > ul {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .main-nav > ul > li {
        height: auto;
        width: 100%;
        flex-direction: column;
    }

    .main-nav > ul > li > a {
        padding: 12px 20px;
        color: var(--text-color);
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav > ul > li > a::after {
        display: none;
    }

    .main-nav > ul > li:hover > a {
        background: rgba(196,26,26,0.05);
        color: var(--primary-color);
    }

    .main-nav > ul > li.has-sub > a::before {
        content: '▸';
        margin-left: auto;
    }

    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
        background: var(--bg-gray);
        border-radius: 0;
    }

    .dropdown-menu.open {
        display: block;
    }

    .dropdown-menu li a {
        padding-left: 35px;
        font-size: 0.875rem;
    }

    .dropdown-menu .dropdown-menu li a {
        padding-left: 50px;
    }

    .dropdown-menu .dropdown-menu {
        top: 0;
        left: 0;
        margin-top: 0;
    }

    /* 头部搜索 */
    .header-search {
        display: none;
    }

    .header-search.mobile-show {
        display: block;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        padding: 10px 15px;
        background: var(--header-bg);
    }

    .header-search.mobile-show .search-form {
        background: rgba(255,255,255,0.2);
    }

    .header-search.mobile-show .search-form input {
        width: 100%;
    }

    /* Banner */
    .banner-slider {
        height: 250px;
    }

    .banner-slider .slide-content {
        width: 90%;
    }

    .banner-slider .slide-content h2 {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .banner-slider .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        display: none;
    }

    .banner-slider .slide-content .banner-btn {
        padding: 8px 24px;
        font-size: 0.85rem;
    }

    .banner-slider .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .banner-slider .slider-arrow.prev {
        left: 10px;
    }

    .banner-slider .slider-arrow.next {
        right: 10px;
    }

    .banner-slider .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    /* 通知栏 */
    .notice-bar .notice-icon {
        padding: 3px 10px;
        font-size: 0.8rem;
    }

    .notice-bar .notice-more {
        display: none;
    }

    /* 区块 */
    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* 新闻列表 */
    .news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-item .news-img {
        height: 180px;
    }

    .news-item .news-body {
        padding: 15px;
    }

    /* 图文列表 */
    .media-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .media-item img {
        height: 160px;
    }

    /* 卡片 */
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .card .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
        margin-top: 20px;
    }

    .card .card-body {
        padding: 0 15px 20px;
    }

    /* 页脚 */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-col h3 {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .footer-bottom {
        margin-top: 20px;
        padding: 12px 0;
        font-size: 0.8rem;
    }

    .footer-bottom .footer-links a {
        margin: 0 6px;
    }

    /* 面包屑 */
    .breadcrumb-bar {
        padding: 10px 0;
    }

    .breadcrumb-bar .breadcrumb-inner {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    /* 详情页 */
    .detail-page {
        padding-top: calc(var(--header-height) + 15px);
        padding-bottom: 30px;
    }

    .detail-main {
        padding: 15px;
    }

    .detail-main .detail-title {
        font-size: 1.35rem;
    }

    .detail-main .detail-meta span {
        margin-right: 10px;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* 表单 */
    .form-container {
        padding: 20px;
    }

    /* 回到顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* 超小屏手机 - 小于480px */
@media screen and (max-width: 480px) {
    .banner-slider {
        height: 200px;
    }

    .banner-slider .slide-content h2 {
        font-size: 1.1rem;
    }

    .banner-slider .slide-content .banner-btn {
        padding: 6px 18px;
        font-size: 0.8rem;
    }

    .news-item .news-img {
        height: 160px;
    }

    .media-item img {
        height: 130px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .banner-slider,
    .breadcrumb-bar,
    .notice-bar {
        display: none !important;
    }

    .detail-page {
        padding-top: 0;
    }

    .detail-container {
        display: block;
    }

    .detail-main {
        box-shadow: none;
        padding: 0;
    }
}
