/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color-1: #ff6b6b;
    --accent-color-2: #48dbfb;
    --accent-color-3: #1dd1a1;
    --accent-color-4: #feca57;
    --accent-color-5: #ff9ff3;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --text-color: #333;
    --light-text: #f5f6fa;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 40px 0;
}

h2 {
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    color: var(--dark-color);
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
}

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #8A2387, #E94057, #F27121, #e99393);
    background-size: 300% 100%;
    animation: gradient-animation 15s ease infinite;
    color: var(--light-text);
    position: relative;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

@keyframes gradient-animation {
    0% {background-position: 0% 50%}
    50% {background-position: 100% 50%}
    100% {background-position: 0% 50%}
}

/* 顶部导航 */
.top-nav {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 0;
}

.top-nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.top-nav li {
    margin-right: 20px;
    font-size: 14px;
}

.top-nav a:hover {
    color: var(--accent-color-2);
}

.user-auth {
    margin-left: auto;
}

/* 头部主要区域 */
.header-main {
    padding: 20px 0;
}

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

.logo img {
    height: 60px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    width: 40%;
}

.search-bar form {
    width: 100%;
    display: flex;
}

.search-container {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.btn-search {
    padding: 0 25px;
    background-color: var(--accent-color-1);
    color: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: bold;
    font-size: 16px;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: #ff5252;
    transform: scale(1.05);
}

/* 头部按钮 */
.header-actions {
    display: flex;
    gap: 15px;
}

.btn-publish, .btn-join, .btn-recharge {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 16px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-publish {
    background-color: var(--accent-color-3);
    color: white;
}

.btn-join {
    background-color: var(--accent-color-2);
    color: white;
}

.btn-recharge {
    background-color: var(--accent-color-4);
    color: var(--dark-color);
}

.btn-publish:hover, .btn-join:hover, .btn-recharge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-publish:before, .btn-join:before, .btn-recharge:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
    z-index: -1;
}

.btn-publish:hover:before, .btn-join:hover:before, .btn-recharge:hover:before {
    left: 0;
}

/* 主导航 */
.main-nav-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav li a {
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.main-nav li a:hover:after {
    width: 100%;
}

/* 子导航 */
.sub-nav {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    color: var(--dark-color);
}

.sub-nav ul {
    display: flex;
    gap: 20px;
}

.sub-nav li a {
    font-size: 15px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.sub-nav li a:hover {
    background-color: var(--accent-color-5);
    color: white;
}

/* 固定导航 */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8A2387, #E94057, #F27121);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 幻灯片 */
.banner {
    padding: 0;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: var(--border-radius);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

/* 新的幻灯片控制样式 */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.prev, .next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.prev:hover, .next:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 幻灯片指示点 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 公告列表 - 更新为2列 */
.notice-list {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notice-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.notice-more a {
    color: #999;
    font-size: 14px;
}

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

.notice-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.notice-column ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-column ul li:last-child {
    border-bottom: none;
}

.notice-column ul li a {
    color: var(--text-color);
    display: block;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-column ul li a:hover {
    color: var(--primary-color);
}

.notice-date {
    color: #999;
    font-size: 14px;
    margin-left: 10px;
}

/* 商家展示列表 */
.merchants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.merchant-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.merchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.merchant-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.merchant-info {
    padding: 15px;
}

.merchant-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* 信息流列表 - 左右布局 */
.info-list {
    background-color: #f1f5ff;
    padding: 30px 0;
}

.info-layout {
    display: flex;
    gap: 30px;
}

.info-main {
    flex: 0 0 67%;
}

.info-sidebar {
    flex: 0 0 30%;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    border-bottom: 2px solid var(--accent-color-3);
    margin-bottom: 16px;
}

.info-header h2 {
    font-size: 18px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.info-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.info-notice {
    font-size: 14px;
    color: #666;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-category {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 13px;
}

.info-date, .info-location {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-date i, .info-location i {
    font-size: 12px;
    color: #999;
}

.info-more {
    text-align: center;
    margin-top: 20px;
}

.btn-more {
    display: inline-block;
    padding: 3px 45%;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.btn-more:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 排行榜样式 */
.sidebar-header {
    margin-bottom: 15px;
}

.sidebar-header h3 {
    font-size: 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color-3);
}

.ranking-list {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

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

.ranking-item:hover {
    background-color: #f9f9ff;
}

.ranking-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
    color: white;
}

.ranking-item:nth-child(1) .ranking-num {
    background-color: #ff6b6b;
}

.ranking-item:nth-child(2) .ranking-num {
    background-color: #ff9f43;
}

.ranking-item:nth-child(3) .ranking-num {
    background-color: #feca57;
}

.ranking-item:nth-child(n+4) .ranking-num {
    background-color: #a5b1c2;
}

.ranking-content {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片标题展示板块 */
.featured-cards {
    padding: 40px 0;
    background-color: #fff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 200px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .card-image img {
    transform: scale(1.1);
}

/* 新增分类标签 */
.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color-1);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.feature-card:hover .card-category {
    background-color: var(--accent-color-3);
    transform: translateY(-3px);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: var(--transition);
}

.card-overlay h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* 更新卡片元数据 */
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
}

.card-author, .card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-author i, .card-date i {
    font-size: 10px;
}

.feature-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
    padding-bottom: 25px;
}

/* 2列文字列表 */
.text-list {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.text-list .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.text-list-col h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color-3);
    color: var(--dark-color);
}

.text-list-col ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-list-col ul li:last-child {
    border-bottom: none;
}

/* 新增编号样式 */
.list-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    transition: var(--transition);
}

.text-list-col ul li:nth-child(1) .list-num {
    background-color: var(--accent-color-1);
    color: white;
}

.text-list-col ul li:nth-child(2) .list-num {
    background-color: var(--accent-color-4);
    color: var(--dark-color);
}

.text-list-col ul li:nth-child(3) .list-num {
    background-color: var(--accent-color-2);
    color: white;
}

.text-list-col ul li:hover .list-num {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-list-col ul li a {
    display: block;
    color: var(--text-color);
    transition: var(--transition);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-list-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 新增日期样式 */
.list-date {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

/* 友情链接 */
.friend-links {
    background-color: #f5f5f5;
}

.friend-links h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links ul li a {
    color: var(--text-color);
    opacity: 0.8;
}

.friend-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* 底部版权 */
.site-footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.footer-links a {
    color: #ddd;
    margin: 0 5px;
}

.footer-links a:hover {
    color: white;
}

.footer-company, .footer-contact, .footer-copyright {
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .text-list .container {
        grid-template-columns: 1fr;
    }
    
    .notice-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-layout {
        flex-direction: column;
    }
    
    .info-main, .info-sidebar {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .top-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .merchants {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .floating-service {
        right: 10px;
    }
    
    .service-item {
        width: 40px;
        height: 40px;
    }
    
    .service-icon {
        font-size: 16px;
    }
    
    .service-popup {
        width: 150px;
        right: 50px;
    }
    
    .service-qrcode {
        width: 170px;
    }
    
    .qrcode-img {
        width: 120px;
        height: 120px;
    }
    
    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .info-notice {
        padding-left: 15px;
    }
}

@media (max-width: 576px) {
    .main-nav-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .slider {
        height: 250px;
    }
    
    .info-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .feature-card {
        height: 150px;
    }
    
    .floating-service {
        bottom: 20px;
        top: auto;
        right: 10px;
        transform: none;
        flex-direction: row;
    }
    
    .service-popup {
        top: auto;
        bottom: 50px;
        right: 0;
    }
    
    .service-qrcode {
        right: -50px;
    }
}

/* 悬浮客服 */
.floating-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.service-item {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.service-icon {
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-popup {
    position: absolute;
    right: 60px;
    top: 0;
    width: 180px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-item:hover .service-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.service-popup h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.service-popup p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.service-popup a {
    color: var(--primary-color);
    font-weight: 500;
}

.service-popup a:hover {
    text-decoration: underline;
}

.service-qrcode {
    width: 200px;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    margin: 10px auto;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-phone .service-icon {
    color: var(--accent-color-1);
}

.service-qq .service-icon {
    color: #12B7F5;
}

.service-wechat .service-icon {
    color: #07C160;
}

.service-top {
    margin-top: 20px;
}

.service-top .service-icon {
    color: #999;
} 

/* 导航栏会员升级按钮 */
.btn-vip {
    background-color: #222;
    color: #ffc107;
    border: 1px solid #ff3737;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-vip:hover {
    background-color: #333;
    color: #ffca28;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-vip.active {
    background-color: #e01212;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
    color: #ffd54f;
    border-color: #feca57;
}