:root {
    --bg-dark: #06101e;
    --border-color: rgba(36, 75, 125, 0.45);
    --gold: #cbb07c;
    --gold-bright: #f5b945;
    --cyan: #38bdf8;
    --text-white: #ffffff;
    --text-sub: #cbd5e1;
    --text-muted: #8493a8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-sub);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* 顶部全局导航栏 */
.global-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(5, 13, 24, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-box {
    background: var(--gold);
    color: #050d18;
    font-weight: 800;
    font-size: 13px;
    padding: 2px 7px;
    border-radius: 3px;
}

.logo-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 26px;
}

.nav-item {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
    position: relative;
}

.nav-item:hover { color: #ffffff; }
.nav-item.active {
    color: var(--gold-bright);
    font-weight: 600;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-bright);
    box-shadow: 0 0 8px rgba(245, 185, 69, 0.6);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-lang {
    color: #64748b;
    font-size: 13px;
}

.nav-btn {
    background: var(--gold);
    color: #050d18;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #dfbc77;
    box-shadow: 0 0 12px rgba(203, 176, 124, 0.4);
}

/* 主内容图片容器 */
.image-page-container {
    max-width: 1200px;
    width: 100%;
    margin: 10px auto 30px;
    padding: 0 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-canvas-wrapper {
    position: relative;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    overflow: hidden;
    background: #06101e;
}

/* 裁切原图静态顶栏，保持唯一单菜单栏 */
.crop-header-wrapper {
    position: relative;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    overflow: hidden;
    background: #06101e;
}

.crop-header-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -62px;
}

.main-image-view {
    width: 100%;
    height: auto;
    display: block;
}

/* 交互热区样式 */
.hotspot-link {
    position: absolute;
    display: block;
    text-decoration: none;
    z-index: 20;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.hotspot-link:hover {
    outline: 2px solid var(--cyan);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    cursor: pointer;
}

.hotspot-tooltip {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 17, 31, 0.95);
    border: 1px solid var(--cyan);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 30;
}

.hotspot-link:hover .hotspot-tooltip {
    opacity: 1;
}

/* 弹窗样式 */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #0a182c;
    border: 1px solid var(--cyan);
    border-radius: 6px;
    max-width: 440px;
    width: 90%;
    padding: 24px;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modal-head h3 { color: #fff; font-size: 16px; }
.modal-close { font-size: 22px; cursor: pointer; color: #94a3b8; }
.modal-close:hover { color: #fff; }

.form-item { margin-bottom: 12px; }
.form-item label { display: block; font-size: 12px; color: #cbd5e1; margin-bottom: 4px; }
.form-control {
    width: 100%;
    padding: 8px 10px;
    background: #050d18;
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    outline: none;
}
.form-control:focus { border-color: var(--cyan); }

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: #050d18;
    border: none;
    padding: 10px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    margin-top: 14px;
    cursor: pointer;
}
.btn-submit:hover { background: #dfbc77; }
