/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    min-width: 1200px;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #2B61B3;
}

ul, li {
    list-style: none;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* 通用样式 */
.mt20 { margin-top: 20px; }
.mb20 { margin-bottom: 20px; }
.ml20 { margin-left: 20px; }
.mr20 { margin-right: 20px; }

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2B61B3;
}

/* 通用标题样式 */
.section-title {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 2px solid #2B61B3;
    margin-bottom: 20px;
}

/* 通用卡片样式 */
.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #2B61B3;
    color: #fff;
}

.btn-primary:hover {
    background: #1e4c8f;
    color: #fff;
}

/* 通用表单样式 */
.form-control {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #2B61B3;
    outline: none;
}

/* 通用链接样式 */
.card-item,
.image-text-item,
.large-card,
.text-item,
.related-item,
.guess-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 卡片悬浮效果 */
.card-item:hover,
.image-text-item:hover,
.large-card:hover,
.related-item:hover,
.guess-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 文字列表悬浮效果 */
.text-item:hover {
    background-color: #f8f9fa;
}

.text-item:hover .text-title {
    color: #2B61B3;
}

/* 图片悬浮效果 */
.card-img img,
.item-img img,
.large-card-img img,
.related-item img,
.guess-item img {
    transition: all 0.3s ease;
}

.card-img:hover img,
.item-img:hover img,
.large-card-img:hover img,
.related-item:hover img,
.guess-item:hover img {
    transform: scale(1.05);
}

/* 标题悬浮效果 */
.card-title:hover,
.item-title:hover,
.large-card-title:hover,
.text-title:hover {
    color: #2B61B3;
    text-decoration: underline;
}

/* 图片容器溢出隐藏 */
.card-img,
.item-img,
.large-card-img,
.related-item,
.guess-item {
    overflow: hidden;
}

/* 确保所有可点击元素显示为指针 */
[onclick],
[href],
.clickable {
    cursor: pointer;
}

/* 列表页板块悬浮效果 */
.category-item {
    position: relative;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #2B61B3;
    color: #fff;
}

.category-item:hover > a {
    color: #fff;
}

.category-item .sub-category {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 2px solid #2B61B3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
}

.category-item:hover .sub-category {
    display: block;
}

.sub-category li {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.sub-category li:hover {
    background-color: #f5f5f5;
}

.sub-category li:hover a {
    color: #2B61B3;
}

/* 付费发布按钮样式 */
.paid-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paid-publish-btn:hover {
    background: #ff5252;
    color: #fff;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.show {
    display: block;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #666;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.modal .btn {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.modal .btn-login {
    background: #2B61B3;
    color: #fff;
}

.modal .btn-login:hover {
    background: #1e4c8f;
}

.modal .btn-recharge {
    background: #28a745;
    color: #fff;
}

.modal .btn-recharge:hover {
    background: #218838;
} 