:root {
    --primary-color: #4a90e2;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 120px;
    padding-top: 60px;
}

.container{
    max-width: 100%;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #f8f9fa, #ffffff);
}

.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.form-card {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    z-index: 1000;
    width: 100%;
    background-color: #f8f9fa;
}

/* 按钮加载状态 */
.btn-loading {

    display: inline-block;
    animation: spin 1.5s linear infinite;
    margin-right: 5px;
    border-radius: 50%;
    border: 4px dashed #555050;
    margin-top: 6px;
    width: 14px;
    height: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 调整列表布局 */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    position: relative;
}

.news-card.success {
    border: 2px solid var(--success-color);
}
.news-card.fail {
    border: 2px solid var(--danger-color);
}

.card-text {
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
}

.thumbnail {
    width: 100%;
    height: 180px;
    border-radius: 8px 8px 0 0;
    border-radius: 8px;
    transition: transform 0.3s;
    position: absolute;
    z-index: 1;
}

.card-body{
    z-index: 2;
    padding: 0.2rem;
}

/* 卡片增强效果 */


.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover::before {
    opacity: 0.3;
}

/* 图片美化 */


.thumbnail:hover {
    transform: scale(1.03);
}

/* 进度条动画 */
.progress-bar {
    transition: width 0.6s ease, background-color 0.3s;
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

/*状态标志*/
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.status-success {
    border: 2px solid #28a745;
}

.status-error {
    border: 2px solid #dc3545;
}

.progress-wrapper {
    position: fixed;
    height: 40px;
    bottom: 70px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 20px;
}

.animated-background {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
    animation: colorSlide 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes colorSlide {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 50% 0%;
    }
}

.retry-btn {
    cursor: pointer;
    color: #dc3545 !important;
}

/* 登录模态框样式 */
.auth-modal .modal-content {
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.auth-modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-bottom: none;
}

.auth-input {
    border-radius: 8px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: #3498db;
    box-shadow: none;
}

.auth-btn {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border: none;
    border-radius: 25px;
    padding: 8px 25px;
    transition: transform 0.2s ease;
}

.auth-btn:hover {
    transform: scale(1.05);
}

.auth-switch {
    color: #3498db;
}

.auth-switch:hover {
    color: #2c3e50;
    text-decoration: none;
}

#toastContainer{
    opacity: 0.8;
}