/* ============================================
   摄汇主义 - 公共样式文件
   整合各页面内联CSS，统一管理
   ============================================ */

/* ========== 无障碍辅助类 ========== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========== 通知铃铛样式（head.php） ========== */
.notification-bell {
    position: relative;
    display: inline-block;
    padding: 0 8px;
}
.notification-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.4;
    min-width: 14px;
    text-align: center;
}
.head-notification-li {
    display: inline-block;
    line-height: 45px;
    vertical-align: middle;
}
.head-notification-li .notification-bell {
    display: inline-flex;
    align-items: center;
    height: 45px;
    color: #fff;
    text-decoration: none;
}
.head-notification-li .notification-bell:hover {
    color: #e0e0e0;
}

/* ========== 左侧固定悬浮分类导航（foot.php） ========== */
.fixed-cate-nav {
    position: fixed;
    left: 2px;
    top: 173px;
    width: 45px;
    background: #00B23D;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 6px 0;
    z-index: 999;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fixed-cate-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.cate-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cate-nav-list li {
    margin: 0;
}
.cate-nav-list li a {
    display: block;
    padding: 8px 0;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all .2s;
    line-height: 1.3;
}
.cate-nav-list li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.cate-nav-list li a.active {
    background: #ff6000;
    color: #fff;
    font-weight: bold;
}

/* ========== 返回顶部按钮（foot.php） ========== */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: #5fb336;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 9999;
}
#back-to-top:hover {
    background: #4a9e28;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 悬浮登录框样式（foot.php） ========== */
.float-login-dialog {
    padding: 5px 0;
}
.float-login-dialog .form-row {
    margin-bottom: 12px;
}
.float-login-input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.float-login-input:focus {
    border-color: #5fb336;
    outline: none;
}
.float-login-dialog .captcha-row {
    display: flex;
    gap: 8px;
}
.float-login-dialog .captcha-input {
    flex: 1;
}
.float-login-dialog .captcha-img {
    width: 100px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.float-login-dialog .options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}
.float-login-dialog .options-row a {
    color: #5fb336;
    text-decoration: none;
}
.float-login-submit {
    width: 100%;
    height: 40px;
    background: #5fb336;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}
.float-login-submit:hover {
    background: #4a9e28;
}
.float-login-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.float-login-dialog .register-row {
    text-align: center;
    font-size: 12px;
    color: #666;
}
.float-login-dialog .register-row a {
    color: #5fb336;
    text-decoration: none;
}

/* ========== 友情链接样式（index.php） ========== */
.friend-links-wrap {
    margin: 0 auto;
    padding: 0 40px;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    font-size: 13px;
}
.friend-links-title {
    color: #000;
    font-weight: bold;
}
.friend-links a {
    color: #000;
    text-decoration: none;
}
.friend-links a:hover {
    text-decoration: underline;
}
.friend-logo {
    max-height: 26px;
    vertical-align: middle;
}

/* ========== 作品详情页EXIF信息样式（album_detail.php） ========== */
.sidebar-exif-info {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}
.sidebar-exif-info h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: bold;
}
.sidebar-exif-info .exif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-exif-info .exif-list li {
    font-size: 12px;
    color: #666;
    line-height: 22px;
    display: flex;
}
.sidebar-exif-info .exif-list li span {
    display: inline-block;
    width: 60px;
    color: #999;
    flex-shrink: 0;
}
.sidebar-exif-info .exif-empty {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ========== 作品详情页下载按钮样式（album_detail.php） ========== */
.toolbar a.download {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.toolbar a.download:hover {
    opacity: 1;
}
.toolbar a.download::before {
    content: "⬇";
    font-size: 16px;
}

/* ========== 作品详情页作者区域样式（album_detail.php） ========== */
div.sidebar-region .sidebar-author {
    height: auto;
    min-height: 80px;
    padding-bottom: 15px;
}
div.sidebar-region .sidebar-author .author-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-start;
}
div.sidebar-region .sidebar-author .author-actions a {
    width: 70px;
    flex: none;
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
}

/* ========== 注册页行政区域选择样式（register.php） ========== */
.region-country-li {
    margin-bottom: 10px;
}
.region-country-li select {
    width: 100%;
}
.region-cn-li {
    margin-bottom: 15px;
    font-size: 0;
}
.region-cn-li .region-item {
    display: inline-block;
    width: 32%;
    margin-right: 2%;
    vertical-align: top;
    font-size: 14px;
}
.region-cn-li .region-item:last-child {
    margin-right: 0;
}
.region-cn-li .region-item select,
.region-cn-li .region-item input {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .region-cn-li .region-item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* ========== 注册页邮箱验证码按钮样式（register.php） ========== */
.email-captcha-li {
    position: relative;
}
.email-captcha-li .form-control {
    padding-right: 110px;
}
.email_captcha_btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.email_captcha_btn:hover {
    background: #3a7bc8;
}
.email_captcha_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== 注册页必填提示样式（register.php） ========== */
.required-field {
    display: flex;
    align-items: center;
    gap: 8px;
}
.required-field .required-tip {
    flex-shrink: 0;
    font-size: 13px;
    color: #e74c3c;
    font-weight: normal;
    order: 2;
    line-height: 1.4;
}
.required-field .form-control {
    flex: 1;
    min-width: 0;
    order: 1;
}
.required-field.email-captcha-li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.required-field.email-captcha-li .form-control {
    flex: 1;
    min-width: 0;
    order: 1;
    width: auto;
}
.required-field.email-captcha-li .email_captcha_btn {
    flex-shrink: 0;
    padding: 7px 16px;
}

/* ========== 用户设置页行政区域编辑样式（setting.php） ========== */
.line-wrap .region-edit-wrap {
    width: 489px;
}
.line-wrap .region-edit-wrap #edit_country {
    width: 100%;
    margin-bottom: 10px;
    display: block;
    height: 40px;
    box-sizing: border-box;
}
.line-wrap .region-edit-wrap .region-cn-row {
    font-size: 0;
}
.line-wrap .region-edit-wrap .region-cn-row .region-item {
    display: inline-block;
    width: 32%;
    margin-right: 2%;
    vertical-align: top;
    font-size: 14px;
}
.line-wrap .region-edit-wrap .region-cn-row .region-item:last-child {
    margin-right: 0;
}
.line-wrap .region-edit-wrap .region-cn-row .region-item select,
.line-wrap .region-edit-wrap .region-cn-row .region-item input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
}
@media (max-width: 480px) {
    .line-wrap .region-edit-wrap .region-cn-row .region-item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
}
.form-basic select {
    background-color: #fff;
}

/* ========== 用户主页横幅样式（inc.banner.php） ========== */
.banner-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.audit-status-tag {
    background: #ff6000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}
.space-follow-btn,
.space-message-btn,
.report-btn {
    padding: 4px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    color: #fff;
}
.space-follow-btn {
    background: #5fb336;
}
.space-follow-btn.followed {
    background: #999;
}
.space-message-btn {
    background: #5fb336;
}
.report-btn {
    background: #999;
    cursor: pointer;
}
.user-level-info {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.reputation-score {
    font-size: 14px;
    font-weight: bold;
}
.downgraded-tip {
    font-size: 11px;
    color: #e74c3c;
}
.reputation-score.rep-level-1 { color: #e74c3c; }
.reputation-score.rep-level-2 { color: #f39c12; }
.reputation-score.rep-level-3 { color: #5cb85c; }
.reputation-score.rep-level-4 { color: #3498db; }

/* ========== 作品详情页作者区域按钮样式（album_detail.php） ========== */
.follow-btn,
.message-btn {
    width: 70px;
    flex: none;
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    line-height: 18px;
    display: inline-block;
    box-sizing: border-box;
    height: 28px;
    margin: 0;
    color: #fff;
}
.follow-btn.follow {
    background: #5fb336;
}
.follow-btn.followed {
    background: #999;
}
.message-btn {
    background: #5fb336;
}
