/* AeroCore Free Extensions 样式 */

/* ========== 移动端底栏 ========== */
.afe-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e2736;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: none;
}

@media (max-width: 768px) {
    .afe-mobile-bottom-bar {
        display: flex;
    }
    
    /* 为移动端底栏留出空间 */
    body {
        padding-bottom: 70px;
    }
}

.afe-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8b95a5;
    padding: 5px 10px;
    transition: color 0.3s;
}

.afe-bottom-item:hover,
.afe-bottom-item.active {
    color: #409EFF;
}

.afe-bottom-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.afe-bottom-label {
    font-size: 11px;
    font-weight: 500;
}

/* ========== 通知铃铛 ========== */
.afe-notification-bell {
    position: relative;
    display: inline-block;
}

.afe-bell-link {
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.afe-bell-icon {
    font-size: 24px;
    display: inline-block;
}

.afe-bell-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
}

/* 通知下拉面板 */
.afe-notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 10000;
    overflow: hidden;
}

.afe-notification-bell:hover .afe-notification-dropdown,
.afe-notification-bell.active .afe-notification-dropdown {
    display: block;
}

@media (max-width: 768px) {
    .afe-notification-dropdown {
        right: -60px;
        width: 280px;
    }
}

.afe-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.afe-dropdown-header h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.afe-dropdown-header a {
    font-size: 12px;
    color: #409EFF;
    text-decoration: none;
}

.afe-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
}

.afe-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

.afe-dropdown-footer {
    padding: 10px 16px;
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

#afe-mark-all-read {
    background: none;
    border: none;
    color: #409EFF;
    cursor: pointer;
    font-size: 13px;
}

#afe-mark-all-read:hover {
    text-decoration: underline;
}

/* ========== 通知中心页面 ========== */
.afe-notification-page {
    padding: 40px 0;
    min-height: 60vh;
}

.afe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.afe-page-header {
    margin-bottom: 30px;
}

.afe-page-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.afe-page-header p {
    margin: 0;
    color: #666;
}

.afe-notification-actions {
    margin-bottom: 20px;
}

.afe-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.afe-btn:hover {
    border-color: #409EFF;
    color: #409EFF;
}

.afe-btn-primary {
    background: #409EFF;
    border-color: #409EFF;
    color: #fff;
}

.afe-btn-primary:hover {
    background: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}

.afe-notification-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.afe-notification-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.afe-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.afe-notification-item:last-child {
    border-bottom: none;
}

.afe-notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid #409EFF;
}

.afe-notification-item.read {
    background: #fff;
    opacity: 0.8;
}

.afe-notification-content {
    flex: 1;
}

.afe-notification-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.afe-notification-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.afe-notification-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.afe-mark-read-btn {
    background: none;
    border: 1px solid #409EFF;
    color: #409EFF;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.afe-mark-read-btn:hover {
    background: #409EFF;
    color: #fff;
}

.afe-notification-link {
    color: #409EFF;
    text-decoration: none;
    font-size: 13px;
    margin-left: 15px;
}

.afe-notification-link:hover {
    text-decoration: underline;
}

.afe-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

.afe-error {
    padding: 40px 20px;
    text-align: center;
    color: #ff4d4f;
}

.afe-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.afe-page-info {
    color: #666;
    font-size: 14px;
}

.afe-page-buttons {
    display: flex;
    gap: 10px;
}

/* ========== 前台投稿 ========== */
.afe-frontend-post-page {
    padding: 40px 0;
    min-height: 60vh;
}

.afe-post-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.afe-form-group {
    margin-bottom: 25px;
}

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

.afe-required {
    color: #ff4d4f;
}

.afe-form-group input[type="text"],
.afe-form-group input[type="file"],
.afe-form-group select,
.afe-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.afe-form-group input:focus,
.afe-form-group select:focus,
.afe-form-group textarea:focus {
    outline: none;
    border-color: #409EFF;
}

.afe-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.afe-form-tip {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.afe-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.afe-form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.afe-message-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.afe-message-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.afe-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
}

.afe-login-required p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.afe-disabled {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .afe-notification-dropdown {
        width: 280px;
        right: -40px;
    }
    
    .afe-post-form {
        padding: 20px;
    }
    
    .afe-form-actions {
        flex-direction: column;
    }
    
    .afe-notification-item {
        flex-direction: column;
    }
    
    .afe-notification-link {
        margin-left: 0;
        margin-top: 10px;
    }
}
