/* ==========================================================================
   夜间硬核御姐风格全局样式 - 全新主色 #FE628E 版
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0910; 
    color: #d5d3dc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

/* 顶部导航 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #251b35;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.logo-img {
    height: 38px;
    width: auto;
}

.back-btn {
    color: #FE628E;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #593441;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all 0.3s;
    background: rgba(254, 98, 142, 0.05);
}

.back-btn:hover {
    background: #FE628E;
    color: #0d0b12;
    box-shadow: 0 0 12px rgba(254, 98, 142, 0.4);
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    padding: 0 15px;
}

.alert-info-box {
    background: #171222;
    border: 1px dashed #563241;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    color: #a69ebd;
    margin-bottom: 25px;
}

/* 名片主面板 */
.profile-card {
    background: #130f1c;
    border: 1px solid #251d33;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-header-flex {
    background: linear-gradient(135deg, #2e141f 0%, #170911 100%);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #251d33;
}

.avatar-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(140deg, #ff5393, #FE628E);
    box-shadow: 0 0 15px rgba(254, 98, 142, 0.25);
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

.meta-wrapper {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nickname {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.appid-tag {
    font-size: 13px;
    color: #b5a9cf;
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 10px;
    border-radius: 12px;
    width: fit-content;
}

/* 信息卡内容区域 */
.profile-body {
    padding: 5px 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #1e172a;
    gap: 15px;
}

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

.info-label {
    color: #8c839d;
    font-size: 14px;
    flex-shrink: 0;
}

.info-value {
    color: #e2e0e8;
    font-size: 14px;
    text-align: right;
    word-break: break-all;
}

/* 高亮颜色调配 */
.highlight-u { color: #ffb649; font-weight: bold; }
.highlight-fee { color: #ff5274; font-weight: bold; }
.status-allow { color: #00ffcc; background: rgba(0, 255, 204, 0.08); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.status-deny { color: #6d6779; background: rgba(255, 255, 255, 0.04); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.tour-item { display: inline-block; color: #FE628E; background: rgba(254, 98, 142, 0.06); padding: 2px 6px; border-radius: 4px; margin: 2px; font-size: 12px; border: 1px solid rgba(254, 98, 142, 0.1); }

/* 检索结果展示专属标签 */
.tag-resident {
    background: rgba(0, 184, 217, 0.15);
    color: #00b8d9;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
}

.tag-tour {
    background: rgba(254, 98, 142, 0.15);
    color: #FE628E;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
}

.tag-same-pre {
    background: rgba(254, 98, 142, 0.15);
    color: #FE628E;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
}

/* 规则区域样式 */
.rules-panel {
    background: rgba(255, 94, 116, 0.03);
    border: 1px solid rgba(255, 94, 116, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.rules-title {
    font-size: 14px;
    color: #ff5e7e;
    margin-bottom: 10px;
    font-weight: 600;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    font-size: 13px;
    color: #a39bb8;
    line-height: 1.8;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    padding: 4px 0;
}
.rules-list li:last-child {
    border-bottom: none;
}

/* 全宽大按钮功能区 */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.full-width-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #b04173, #db5582);
    color: #fff;
}
.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(219, 85, 130, 0.4);
    opacity: 0.95;
}

.btn-secondary {
    background: #2e1a22;
    color: #FE628E;
    border: 1px solid #5b3343;
}
.btn-secondary:hover {
    background: #3d222d;
}

.btn-outline {
    background: transparent;
    color: #8c839d;
    border: 1px solid #3d222d;
}
.btn-outline:hover {
    color: #fff;
    border-color: #5b3343;
}

/* 约它功能定制按钮 */
.btn-dating {
    background: linear-gradient(90deg, #ff3366, #FE628E);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
}
.btn-dating:hover {
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
    opacity: 0.95;
}

/* 高级条件检索板块 */
.search-panel {
    background: #130f1c;
    border: 1px solid #251d33;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.panel-title {
    font-size: 16px;
    color: #FE628E;
    margin-bottom: 15px;
    border-left: 3px solid #FE628E;
    padding-left: 8px;
}

.search-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-form label {
    font-size: 13px;
    color: #8c839d;
    margin-bottom: 6px;
}

.search-form select {
    background: #2a161e;
    border: 1px solid #4c2937;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FE628E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.search-form select:focus {
    border-color: #FE628E;
    box-shadow: 0 0 8px rgba(254, 98, 142, 0.2);
}

.search-submit-btn {
    width: 100%;
    background: #3d1f2a;
    color: #fff;
    border: 1px solid #7a4056;
    padding: 11px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.search-submit-btn:hover {
    background: #FE628E;
    color: #0b0910;
}

/* 结果列表 */
.search-results-box {
    margin-top: 20px;
    border-top: 1px solid #251d33;
    padding-top: 15px;
}

.search-results-box h4 {
    font-size: 14px;
    color: #a69ebd;
    margin-bottom: 12px;
}

.author-list {
    list-style: none;
}

.author-list li {
    background: #1a1426;
    border: 1px solid #3b1f2a;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.author-list li:hover {
    border-color: #FE628E;
    background: #311923;
    transform: translateX(2px);
}

.li-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.li-index {
    color: #735a64;
    font-weight: bold;
    font-size: 13px;
    width: 18px;
}

.li-name {
    color: #fff;
    font-weight: 500;
}

.li-right {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #8c839d;
}

.no-data {
    text-align: center;
    color: #635a73;
    font-size: 13px;
    padding: 15px 0;
}

/* 作品展示外部板块 */
.works-showcase-panel {
    background: #130f1c;
    border: 1px solid #251d33;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    margin-top: 20px;
    margin-bottom: 35px;
}

/* 响应式自适应 Grid 核心排版 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #191426;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #251d33;
    transition: all 0.25s ease;
}

.video-card:hover {
    border-color: #FE628E;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(254, 98, 142, 0.15);
}

/* 维持经典海报高宽比 */
.video-cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 153.33%; 
    background: #000;
    overflow: hidden;
}

.video-cover-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-title {
    padding: 8px;
    font-size: 12px;
    color: #d5d3dc;
    line-height: 1.4;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; 
}

.video-loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: #735a64;
    font-size: 13px;
    padding: 30px 0;
}

.works-footer-hint {
    border-top: 1px solid #251d33;
    padding-top: 15px;
    text-align: center;
}

.hint-small-text {
    font-size: 12px;
    color: #8e6f7a;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

/* 页脚版权 */
.footer {
    text-align: center;
    font-size: 12px;
    color: #5e4a52;
    margin-top: 20px;
    padding: 10px 0;
}

/* 返回顶部 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px; 
    background: rgba(41, 22, 30, 0.95);
    color: #FE628E;
    border: 1px solid #5b3343;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #FE628E;
    color: #0b0910;
}

/* ==========================================================================
   移动端弹性断点适配
   ========================================================================== */
@media (max-width: 480px) {
    .search-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
    }
    .info-label, .info-value {
        font-size: 13px;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 移动端锁定一行排两个 */
        gap: 10px;
    }
    .video-title {
        font-size: 11px;
        padding: 6px;
    }
}