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

html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
    color: #fff;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #000 url("/assets/img/bg_main.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}

#screenshotBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-globe {
    position: relative;
    z-index: 10000;
}

.lang-globe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-globe-btn:hover,
.lang-globe.is-open .lang-globe-btn {
    background: rgba(255, 255, 255, .12) !important;
}

.lang-globe.is-busy .lang-globe-btn {
    opacity: .55;
    pointer-events: none;
}

.lang-globe-icon {
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}

.lang-globe-label {
    display: none;
}

.lang-globe-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    max-height: min(70vh, 360px);
    overflow: auto;
    padding: 6px;
    border-radius: 14px;
    background: rgba(18, 14, 32, .96);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
}

.lang-globe.is-open .lang-globe-menu {
    display: block;
}

.lang-globe-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.lang-globe-item:hover,
.lang-globe-item.is-active {
    background: rgba(102, 126, 234, .35);
}

.lang-globe-item .flag {
    width: 1.4em;
    text-align: center;
}

.lang-globe-item .name {
    flex: 1;
}

.shot-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

.shot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.page {
    position: relative;
    z-index: 3;
    width: 920px;
    max-width: calc(100vw - 120px);
    height: auto;
    min-height: 640px;
    margin: 56px auto 72px;
    padding: 18px 28px 22px;
    box-sizing: border-box;
}

.yichangtu {
    display: flex;
    align-items: center;
    position: relative;
    top: 8px;
}

.yichangtu img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.logo-text {
    color: #fff;
    margin: 0 8px;
    line-height: 30px;
    font-size: 16px;
}

.yyt_su {
    line-height: 30px;
    font-size: 22px;
    margin: 0 6px;
}

h2 {
    font-weight: 700;
    color: #fff;
    font-size: 28px;
    margin: 28px 0 10px;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.45);
    margin-bottom: 18px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 24px;
}

.filters select {
    width: 168px;
    height: 38px;
    background: #fff;
    color: #222;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    padding: 0 8px;
}

.aixin {
    text-align: center;
    margin-top: 28px;
}

.heart-wrap {
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.ballon {
    width: 150px;
    height: auto;
    mix-blend-mode: screen;
    animation: scaleDraw 2s ease-in-out infinite;
}

@keyframes scaleDraw {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wait {
    color: #fff;
    font-size: 20px;
    margin-top: 18px;
}

.dibu {
    text-align: center;
    margin-top: 16px;
}

.promise {
    color: #fff;
    font-size: 18px;
}

.time {
    color: #fff;
    font-size: 18px;
    margin-top: 8px;
}

.time div {
    display: inline;
}

.list-page {
    overflow: auto;
    background: #0b0b0f;
}

.list-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 14px 16px;
    background: rgba(10,10,14,.92);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.list-bar .lang-globe {
    justify-self: end;
}

.list-bar .lang-globe-btn {
    width: 34px;
    height: 34px;
}

.list-bar .lang-globe-menu {
    right: 0;
}

.back { color: #c9b3ff; text-decoration: none; }
.list-place { text-align: center; font-weight: 700; }
.list-wrap { padding: 18px 16px 40px; max-width: 860px; margin: 0 auto; }

.empty {
    text-align: center;
    padding: 60px 16px;
    color: #ddd;
}
.empty p { margin-top: 16px; color: #aaa; }

.cards { display: grid; gap: 14px; }
.card {
    background: #17171e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { color: #cfcfd6; font-size: 14px; line-height: 1.6; }
.contact { margin-top: 10px; color: #d7b8ff; font-size: 14px; }

/* 前台在线编辑：默认无边框；只有点进内容框内才显示白边并可编辑 */
#capture.editable-box {
    border: 1px solid transparent;
    outline: none !important;
    border-radius: 0;
    transition: border-color .1s ease;
    -webkit-user-modify: read-only;
    user-modify: read-only;
    cursor: default;
}
#capture.editable-box.is-focused {
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: none;
    -webkit-user-modify: read-write;
    user-modify: read-write;
    cursor: text;
    outline: none !important;
}
#capture.editable-box .filters,
#capture.editable-box .filters *,
#capture.editable-box .heart-wrap,
#capture.editable-box .heart-wrap *,
#capture.editable-box #clock {
    -webkit-user-modify: read-only !important;
    user-modify: read-only !important;
    cursor: pointer;
}
#screenshotBtn,
#screenshotBtn *,
#langGlobe,
#langGlobe * {
    -webkit-user-modify: read-only !important;
    user-modify: read-only !important;
}
#capture.editable-box img {
    max-width: 100%;
}

@media (max-width: 900px) {
    #screenshotBtn {
        top: 8px;
        right: 8px;
        left: auto;
        gap: 6px;
        max-width: calc(100vw - 16px);
        flex-wrap: nowrap;
    }
    .lang-globe-btn {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
    }
    .lang-globe-icon {
        width: 20px;
        height: 20px;
    }
    .shot-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 4px;
        border-radius: 40px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .page {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        /* 给右上角地球+截图留出空间，避免叠住 Logo */
        margin: 56px 0 72px;
        padding: 12px 14px 20px;
    }
    .yichangtu {
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 4px;
        top: 0;
        max-width: 100%;
    }
    .yichangtu img {
        width: 32px;
        height: 32px;
        flex: 0 0 auto;
    }
    .logo-text {
        font-size: 13px;
        line-height: 1.35;
        margin: 0 4px;
        min-width: 0;
        max-width: calc(100% - 44px);
        word-break: break-word;
    }
    .yyt_su {
        font-size: 16px;
        margin: 0 2px;
        line-height: 1.2;
    }
    h2 {
        font-size: 18px;
        margin-top: 14px;
        line-height: 1.35;
        word-break: break-word;
    }
    .filters {
        flex-wrap: wrap;
        gap: 10px;
        margin: 8px 0 18px;
    }
    .filters select {
        width: calc(50% - 5px);
        min-width: 0;
        height: 36px;
        font-size: 13px;
    }
    .wait, .promise, .time {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 4px;
        word-break: break-word;
    }
    .ballon { width: 110px; }
    .lang-globe-menu {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 24px);
    }
}
