/**
 * 自定义样式
 * 基于moban8205模板扩展
 */

/* ===== Footer间距 ===== */
footer.footer {
  margin-top: 60px;
}

/* ===== 公告栏 ===== */
.announce-section {
    padding: 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.announce-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.announce-bar > i {
    font-size: 20px;
    color: #2D50CE;
    margin-right: 15px;
}

.announce-label {
    font-weight: 600;
    color: #2D50CE;
    margin-right: 10px;
}

.announce-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.announce-slider {
    flex: 1;
    overflow: hidden;
}

.announce-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announce-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.announce-item a:hover {
    color: #2D50CE;
}

/* ===== 分类导航 ===== */
.category-nav {
    padding-top: 60px;
}

.category-item {
    text-align: center;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.category-icon i {
    font-size: 32px;
    color: #fff;
}

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

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ===== 信息卡片 ===== */
.info-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.info-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.info-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.info-card:hover .info-card__image img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.badge-top {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.info-card__content {
    padding: 20px;
}

.info-card__content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1F2A59;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.info-card__meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.info-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 12px;
}

.info-card__desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.6;
}

.info-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

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

/* ===== 热门信息 ===== */
.hot-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.hot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hot-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hot-card__image {
    height: 150px;
    overflow: hidden;
}

.hot-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hot-card:hover .hot-card__image img {
    transform: scale(1.1);
}

.hot-card__content {
    padding: 15px;
}

.hot-card__content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1F2A59;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 8px;
}

.hot-card__views {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== CTA 区域 ===== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 18px;
    color: #999;
    margin-bottom: 30px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .announce-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .announce-label {
        margin-bottom: 10px;
    }

    .category-item {
        margin-bottom: 20px;
    }

    .info-card__image {
        height: 180px;
    }

    .info-card__content h4 {
        font-size: 16px;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-content h3 {
        font-size: 24px;
    }

    .cta-content > p {
        font-size: 16px;
    }
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a {
    background: #fff;
    color: #2D50CE;
    border: 1px solid #e0e0e0;
}

.pagination a:hover {
    background: #2D50CE;
    color: #fff;
    border-color: #2D50CE;
}

.pagination span.current {
    background: #2D50CE;
    color: #fff;
}

/* ===== 消息提示 ===== */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message i {
    font-size: 18px;
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2D50CE;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* ===== 用户信息卡片 ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #666;
}

/* ===== 搜索框 ===== */
.search-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-form input:focus {
    outline: none;
    border-color: #2D50CE;
}

.search-form button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===== 认证页面 ===== */
.auth-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2A59;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #2D50CE;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== 个人中心 ===== */
.user-center {
    padding: 60px 0;
}

.user-sidebar {
    margin-bottom: 30px;
}

.user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

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

.user-avatar i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.8);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.user-nav {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.user-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

.user-nav a:last-child {
    border-bottom: none;
}

.user-nav a:hover,
.user-nav a.active {
    background: #2D50CE;
    color: #fff;
}

.user-nav a.logout {
    color: #dc3545;
}

.user-nav a.logout:hover {
    background: #dc3545;
    color: #fff;
}

.user-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.content-header h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1F2A59;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2D50CE;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1F2A59;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.quick-actions h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2A59;
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.action-btn i {
    font-size: 24px;
    color: #2D50CE;
}

.action-btn span {
    font-size: 14px;
    font-weight: 600;
}

.action-btn:hover {
    background: #2D50CE;
    color: #fff;
}

.action-btn:hover i {
    color: #fff;
}

.info-list-simple {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.info-item:hover {
    background: #e9ecef;
}

.info-item-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item-content h5 a {
    color: #1F2A59;
    text-decoration: none;
}

.info-item-content h5 a:hover {
    color: #2D50CE;
}

.info-item-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.info-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== 内容页面 ===== */
.content-page {
    padding: 60px 0;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.content-body {
    line-height: 1.8;
    color: #333;
}

.content-body p {
    margin-bottom: 15px;
}

.content-body h3,
.content-body h4 {
    margin: 20px 0 10px;
    color: #1F2A59;
}

.content-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-body li {
    margin-bottom: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2D50CE;
    color: #fff;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list i {
    font-size: 20px;
    color: #2D50CE;
    width: 30px;
}

.contact-list span {
    color: #666;
}

/* ===== 帮助中心 ===== */
.help-center {
    padding: 60px 0;
}

.help-intro {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.help-intro h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1F2A59;
    margin-bottom: 10px;
}

.help-intro p {
    color: #666;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-header h5 {
    margin: 0;
}

.faq-header h5 a {
    color: #1F2A59;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.faq-header h5 a:hover {
    color: #2D50CE;
}

.faq-preview {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.contact-support {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    color: #fff;
    text-align: center;
}

.contact-support h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-support p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 120px;
}

.contact-method i {
    font-size: 28px;
}

.contact-method span {
    font-size: 14px;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.results-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.results-info p {
    margin: 0;
    color: #666;
}

.results-info strong {
    color: #2D50CE;
}