﻿.search-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bookmark {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

    .bookmark:hover {
        background-color: #dee2e6;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

.btn-bookmark {
    padding: 8px 15px;
    margin: 5px;
}

.table th {
    background-color: #f8f9fa;
}

.badge {
    font-weight: normal;
}

/* 验证码样式 */
.verification-code {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 5px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    user-select: none;
}

/* 登录表单样式 */
.login-card {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.type_title {
    font-size:15px;
    font-weight:300;
}
.type_a_btn {
    line-height:30px;
    margin-top:3px;
    padding:0 5px;
    color:#000;
    text-decoration:none;
    font-size:18px;
}
.type_a_btn:hover {
    text-decoration:underline;
    color:#ff0000;
}

/* 消息容器样式 */
#messageContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    max-width: 500px;
}

    #messageContainer .alert {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: none;
        border-radius: 8px;
    }

    /* 动画效果 */
    #messageContainer .alert {
        animation: slideInRight 0.3s ease-out;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 表单验证样式 */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: #dc3545;
}

.validation-summary-errors {
    color: #dc3545;
    margin-bottom: 1rem;
}

    .validation-summary-errors ul {
        margin-bottom: 0;
        padding-left: 1rem;
    }

/* 表单样式 */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn {
    transition: all 0.15s ease-in-out;
}

    .btn:disabled {
        opacity: 0.65;
    }

/* 卡片样式 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    font-weight: 500;
}
.truncate-text {
    display: inline-block;
    max-width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    vertical-align: middle;
}

    .truncate-text:hover {
        position: relative;
        z-index: 1000;
    }

    .truncate-text[title]:hover::after {
        content: attr(title);
        position: absolute;
        left: 0;
        top: 100%;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        white-space: normal;
        max-width: 400px;
        z-index: 1001;
        font-size: 12px;
        line-height: 1.4;
    }

/* 书签链接样式增强 */
.bookmark-link {
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    background: white;
    color: #495057;
    font-weight: 500;
}

    .bookmark-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-color: #1a73e8;
        color: #1a73e8;
        text-decoration: none;
    }

/* 类型标题样式 */
.type_title {
    color: #2c3e50;
    font-weight: 600;
    border-left: 4px solid #1a73e8;
    padding-left: 12px;
}

/* 搜索框样式优化 */
.search-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .search-box .form-control,
    .search-box .form-select {
        border: none;
        border-radius: 6px;
    }

    .search-box .btn {
        border-radius: 6px;
        font-weight: 600;
    }

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-to-top:hover {
        background: linear-gradient(135deg, #0d47a1, #1a73e8);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
    }

    .back-to-top:active {
        transform: translateY(0);
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

/* 响应式设计 */
@@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
/* 消息模态框通用样式 */
.modal-message-icon {
    animation: pulse 2s infinite;
}

.modal-success-icon {
    color: #28a745;
}

.modal-error-icon {
    color: #dc3545;
}

.modal-warning-icon {
    color: #ffc107;
}

.modal-info-icon {
    color: #17a2b8;
}

/* 加载动画 */
.btn-loading {
    position: relative;
    padding-right: 40px;
}

.btn-loading .spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 响应式调整 */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 5px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.modal.fade .modal-dialog {
    animation: fadeIn 0.3s ease-out;
}

.modal.fade:not(.show) .modal-dialog {
    animation: fadeOut 0.3s ease-out;
}