/* ============================================
   sponsor.css - 赞助商管理系统前台样式
   ============================================ */

/* --- 1. 审核状态横幅 --- */
.sp-status-bar {
    padding: 12px 20px;
    border-left: 4px solid;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}
.sp-status-bar.pending  { background: #FFF3E0; border-color: #FF9800; color: #E65100; }
.sp-status-bar.approved { background: #E8F5E9; border-color: #4CAF50; color: #2E7D32; }
.sp-status-bar.rejected { background: #FFEBEE; border-color: #F44336; color: #C62828; }
.sp-status-bar.draft    { background: #E3F2FD; border-color: #2196F3; color: #1565C0; }

/* --- 2. 管理员工具栏 --- */
.sp-admin-toolbar {
    background: #263238;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.sp-admin-toolbar .sp-admin-badge {
    background: #FF6F00;
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}
.sp-admin-toolbar .sp-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    text-decoration: none;
    color: #fff;
}
.sp-admin-toolbar .sp-btn-accept { background: #4CAF50; }
.sp-admin-toolbar .sp-btn-reject { background: #F44336; }
.sp-admin-toolbar .sp-btn-accept:hover { background: #388E3C; }
.sp-admin-toolbar .sp-btn-reject:hover { background: #D32F2F; }

/* --- 3. 登录页 --- */
.sp-login {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}
.sp-login h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}
.sp-login .sp-login-hint {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}
.sp-login input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.sp-login input[type="text"]:focus {
    border-color: #1976D2;
    outline: none;
}
.sp-login .sp-login-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(90deg, #1976D2, #1565C0);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.sp-login .sp-login-btn:hover { opacity: 0.9; }

/* --- 4. 已登录菜单 --- */
.sp-menu {
    max-width: 600px;
    margin: 40px auto;
}
.sp-menu-header {
    text-align: center;
    margin-bottom: 20px;
}
.sp-menu-header h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 6px;
}
.sp-menu-header p {
    color: #999;
    font-size: 14px;
}
.sp-menu-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.sp-menu-item:hover {
    border-color: #1976D2;
    box-shadow: 0 2px 8px rgba(25,118,210,0.15);
    transform: translateX(4px);
    color: #333;
    text-decoration: none;
}
.sp-menu-item .sp-menu-icon {
    font-size: 28px;
    margin-right: 16px;
    width: 40px;
    text-align: center;
}
.sp-menu-item .sp-menu-text {
    font-size: 16px;
    font-weight: 500;
}
.sp-menu-item .sp-menu-desc {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}
.sp-menu-item.logout {
    border-color: #FFCDD2;
    color: #C62828;
}
.sp-menu-item.logout:hover {
    border-color: #F44336;
    box-shadow: 0 2px 8px rgba(244,67,54,0.15);
    color: #C62828;
}

/* --- 5. 表单美化 --- */
.sp-form .sub_ul li {
    padding: 15px 0;
    border-bottom: 1px solid #F5F5F5;
}
.sp-form .sub_ul li:last-child { border-bottom: none; }

.sp-form .sub_ul li > p {
    text-align: left;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
}

.sp-form .ipt2 {
    width: 100%;
    max-width: 600px;
    padding: 10px 14px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.sp-form .ipt2:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.1);
}

.sp-form textarea.ipt2 {
    min-height: 150px;
    resize: vertical;
}

.sp-form .sub_ul li span:not(.clr_r):not(.error):not(.correct):not(.sp-charcount):not(.sp-autosave) {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.sp-form .uploadbtn {
    background: #1976D2;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    width: auto;
    height: auto;
}
.sp-form .uploadbtn:hover { background: #1565C0; }
.sp-form .clearbtn {
    background: #E0E0E0;
    color: #666;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 4px;
    width: auto;
    height: auto;
}
.sp-form .clearbtn:hover { background: #BDBDBD; }

.sp-form .clr_r { color: #F44336; }

/* 提交按钮区 */
.sp-submit-area {
    text-align: center;
    padding: 30px 0;
}
.sp-submit-btn {
    display: inline-block;
    padding: 12px 48px;
    background: linear-gradient(90deg, #1976D2, #1565C0);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
}
.sp-submit-btn:hover { opacity: 0.9; color: #fff; text-decoration: none; }

/* --- 6. 自动保存状态 --- */
.sp-autosave {
    display: inline-block;
    margin-left: 15px;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.3s;
    vertical-align: middle;
}
.sp-autosave.saving    { background: #F5F5F5; color: #999; }
.sp-autosave.saved     { background: #E8F5E9; color: #2E7D32; }
.sp-autosave.error     { background: #FFEBEE; color: #C62828; }
.sp-autosave.countdown { background: #FFF3E0; color: #E65100; }

/* --- 7. 字数计数器 --- */
.sp-charcount {
    display: inline-block;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}
.sp-charcount.ok       { background: #E8F5E9; color: #2E7D32; }
.sp-charcount.warning  { background: #FFF3E0; color: #E65100; }
.sp-charcount.over     { background: #FFEBEE; color: #C62828; }

/* --- 8. 展品列表 --- */
.sp-product-list {
    margin: 20px 0;
}
.sp-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 8px;
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
    transition: all 0.2s;
}
.sp-product-item:hover {
    background: #F5F9FF;
    border-color: #BBDEFB;
}
.sp-product-item .sp-product-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.sp-product-item .sp-product-actions a {
    padding: 4px 14px;
    background: #E3F2FD;
    color: #1565C0;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.sp-product-item .sp-product-actions a:hover {
    background: #BBDEFB;
}
.sp-product-add {
    display: block;
    text-align: center;
    padding: 14px;
    border: 2px dashed #BBDEFB;
    border-radius: 6px;
    color: #1976D2;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    margin-top: 8px;
}
.sp-product-add:hover {
    background: #E3F2FD;
    border-color: #1976D2;
    text-decoration: none;
}

/* --- 9. 响应式 --- */
/* --- 10. 展品详情页返回栏 --- */
.sp-back-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 0 0 20px;
    background: #F5F9FF;
    border: 1px solid #BBDEFB;
    border-radius: 6px;
}
.sp-back-bar a {
    color: #1976D2;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}
.sp-back-bar a:hover {
    color: #0D47A1;
}
.sp-back-bar .sp-back-icon {
    margin-right: 6px;
    font-size: 18px;
}
.sp-back-bar .sp-back-sep {
    color: #BDBDBD;
    margin: 0 12px;
}

/* --- 11. 赞助商/展品详情页头部增强 --- */
.sp-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #CDE2FF;
}
.sp-detail-header .exhibitor-logo {
    flex-shrink: 0;
}
.sp-detail-info {
    flex: 1;
}
.sp-detail-info h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 4px;
}
.sp-detail-info p {
    font-size: 14px;
    color: #999;
    margin: 0;
}
.sp-detail-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.sp-detail-badge {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    background: #FAFAFA;
}

/* --- 12. 展品详情页文章增强 --- */
.sp-article {
    padding: 30px 0;
}
.sp-article-title {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}
.sp-article-gallery {
    max-width: 800px;
    margin: 0 auto 30px;
}
.sp-article-gallery img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sp-article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 30px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid #F0F0F0;
}
.sp-article-body h3 {
    text-align: center;
    color: #1565C0;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E3F2FD;
}
.sp-article-body p {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    text-indent: 2em;
    margin-bottom: 12px;
}

/* --- 13. 赞助商详情页企业介绍增强 --- */
.sp-company-intro {
    padding: 25px 0;
}
.sp-company-intro .introduce-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.sp-company-intro .introduce-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 24px;
    background: #1976D2;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.sp-company-intro .introduce-content a:hover {
    background: #1565C0;
}

/* --- 14. 展品列表卡片增强 --- */
.sp-product-card .introduce-item {
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.sp-product-card .introduce-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.sp-product-card .introduce-item-content h3 a {
    color: #333;
    transition: color 0.2s;
}
.sp-product-card .introduce-item-content h3 a:hover {
    color: #1976D2;
}
.sp-product-card .more a {
    color: #1976D2;
    font-weight: 500;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .sp-login { margin: 20px 15px; padding: 25px 20px; }
    .sp-menu { margin: 20px 15px; }
    .sp-form .ipt2 { max-width: 100%; }
    .sp-admin-toolbar { flex-wrap: wrap; gap: 8px; }
    .sp-admin-toolbar .sp-btn { margin-left: 0; }
    .sp-submit-btn { padding: 12px 30px; }
    .sp-article-title { font-size: 22px; }
    .sp-article-body { padding: 20px 15px; }
    .sp-back-bar { padding: 10px 15px; }
    .sp-detail-header { flex-wrap: wrap; gap: 10px; }
}
