/* 陪玩平台前台样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* 导航栏 */
.navbar-custom {
    background: #fff;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c !important;
}

.navbar-default .navbar-nav > li > a {
    color: #333;
    font-size: 16px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a {
    color: #e74c3c;
    background: transparent;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: #3498db;
}

/* 按钮 */
.btn-primary {
    background: #e74c3c;
    border-color: #e74c3c;
}

.btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 分页 */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.pagination > li > a,
.pagination > li > span {
    color: #e74c3c;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    color: #c0392b;
}

/* 表单 */
.form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* 标签 */
.label-primary {
    background-color: #e74c3c;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 18px;
    }
    
    .clerk-header {
        flex-direction: column;
    }
    
    .clerk-header-info {
        margin-left: 0 !important;
        margin-top: 20px;
    }
    
    .clerk-avatar-large {
        width: 100% !important;
        height: auto !important;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px 0;
}

.loading::after {
    content: "加载中...";
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 0;
    color: #999;
}

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

/* 评分星星 */
.rating-stars {
    color: #f39c12;
}

/* 标签组 */
.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag-primary {
    background: #e74c3c;
    color: #fff;
}

/* 头像 */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-md {
    width: 80px;
    height: 80px;
}

.avatar-lg {
    width: 120px;
    height: 120px;
}

/* 提示框 */
.alert-custom {
    border-radius: 5px;
    padding: 15px;
}

/* 阴影效果 */
.shadow-sm {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.shadow-lg {
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* 过渡动画 */
.transition {
    transition: all 0.3s ease;
}

/* 文本省略 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.text-ellipsis-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 间距工具类 */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }
