/* ============================================================
   Vacancyofjob — 全站通用样式 · 「Ocean Breeze」主题
   Palette: deep teal (#0d9488) · coral (#f97316) · soft cream (#fafaf9)
   ============================================================ */

:root {
    --brand-50: #f0fdfa;
    --brand-100: #ccfbf1;
    --brand-200: #99f6e4;
    --brand-300: #5eead4;
    --brand-400: #2dd4bf;
    --brand-500: #14b8a6;
    --brand-600: #0d9488;
    --brand-700: #0f766e;
    --brand-800: #115e59;
    --accent-100: #fff7ed;
    --accent-200: #fed7aa;
    --accent-300: #fdba74;
    --accent-400: #fb923c;
    --accent-500: #f97316;
    --accent-600: #ea580c;
    --cream: #fafaf9;
    --paper: #ffffff;
    --ink: #1e293b;
    --ink-soft: #475569;
    --ink-mute: #94a3b8;
    --line: rgba(13, 148, 136, 0.10);
    --line-strong: rgba(13, 148, 136, 0.22);
    --shadow-sm: 0 1px 3px rgba(15, 118, 110, 0.06), 0 1px 2px rgba(15, 118, 110, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 118, 110, 0.08), 0 2px 4px rgba(15, 118, 110, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 118, 110, 0.14), 0 4px 8px rgba(15, 118, 110, 0.06);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

/* ===== 全局基础 ===== */
body {
    max-width: 660px;
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background:
        radial-gradient(1000px 400px at 90% -60px, rgba(249, 115, 22, 0.06), transparent 60%),
        radial-gradient(800px 380px at -5% 100px, rgba(13, 148, 136, 0.06), transparent 55%),
        linear-gradient(170deg, #fafaf9 0%, #f5f5f4 50%, #f0f0ee 100%);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

::selection {
    background: rgba(13, 148, 136, 0.18);
    color: var(--brand-800);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-300), var(--brand-500));
    border-radius: 999px;
    border: 2px solid #fafaf9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-500);
}

a {
    transition: color 0.25s ease, opacity 0.25s ease;
}

:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ===== Header ===== */
header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background:
        radial-gradient(280px 90px at 15% 0%, rgba(45, 212, 191, 0.18), transparent 70%),
        radial-gradient(220px 80px at 90% 100%, rgba(249, 115, 22, 0.12), transparent 70%),
        linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
    color: #ffffff;
    height: 58px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.28);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    z-index: 1;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-300) 40%, var(--accent-400) 70%, var(--accent-500));
    opacity: 0.90;
}

/* ===== 导航菜单图标 ===== */
#nav-open {
    display: block;
    position: relative;
    height: 20px;
    filter: brightness(0) invert(1);
    cursor: pointer;
}

#nav-close {
    display: none;
    position: relative;
    height: 22px;
    filter: brightness(0) invert(1);
}

.hubvey-menu-icon {
    padding: 10px;
    margin-right: -10px;
    border-radius: 10px;
    transition: background 0.25s ease;
}

.hubvey-menu-icon:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ===== Logo：图标 + 站名组合 ===== */
.hubvey-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.hubvey-logo-icon {
    height: 36px;
    width: 36px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.30), 0 0 12px rgba(249, 115, 22, 0.20);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.80);
    background: var(--paper);
}

.hubvey-logo-icon:hover {
    transform: scale(1.08) rotate(-6deg);
}

.hubvey-logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    background: linear-gradient(120deg, #ffffff 30%, var(--accent-200) 70%, var(--accent-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(15, 118, 110, 0.15);
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hubvey-logo-title:hover {
    filter: brightness(1.10);
}

/* ===== 导航栏 ===== */
.hubvey-navbar {
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 18px;
    position: relative;
}

/* ===== 侧边菜单 ===== */
.hubvey-menu {
    display: flex;
    width: 62%;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 58px;
    right: 0px;
    padding: 22px 14px;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    box-shadow: -8px 0 40px rgba(15, 118, 110, 0.16);
    border-left: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.hubvey-menu li {
    position: relative;
    width: 100%;
}

.hubvey-menu li a {
    font-size: 0.92rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all 0.28s ease;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: block;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-left: 3px solid transparent;
}

.hubvey-menu li a:hover {
    color: var(--brand-600);
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), rgba(249, 115, 22, 0.06));
    border-left-color: var(--accent-500);
    transform: translateX(4px);
}

.hubvey-menu.open {
    display: flex;
    flex-direction: column;
}

.hubvey-menu.open #nav-open {
    display: none;
}

.hubvey-menu.open #nav-close {
    display: block;
}

#hubvey-menu {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }
    100% {
        opacity: 1;
        width: 62%;
    }
}

/* ===== 游戏卡片 ===== */
.hubvey-game-item {
    border-radius: var(--radius-lg);
    position: relative;
    padding: 7px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.32s ease, border-color 0.32s ease;
    overflow: hidden;
    border: 1px solid var(--line);
}

.hubvey-game-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.40);
}

.hubvey-game-item a {
    text-decoration: none;
}

/* ===== 游戏封面图 ===== */
.hubvey-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(30, 41, 59, 0.04);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hubvey-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.hubvey-game-item:hover .hubvey-game-cover img {
    transform: scale(1.06);
}

/* ===== 游戏标题 & 文字 ===== */
.hubvey-game-item h3 {
    color: var(--brand-600);
    margin: 5px 0px;
    font-size: 0.75rem;
    font-weight: 700;
}

.hubvey-game-item p {
    color: var(--ink);
    margin: 0px;
    font-size: 1rem;
}

.hubvey-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 7px 5px 4px;
}

.hubvey-game-info p:first-child {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
}

.hubvey-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: 0.88rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.hubvey-game-info p:last-child {
    font-size: 0.78rem;
    color: var(--ink-mute);
    line-height: 1.45em;
    max-height: 4.35em;
    margin-top: 3px;
}

/* ===== 通用右侧按钮 ===== */
.common-game-right {
    display: flex;
    width: 20%;
    height: 30px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-radius: 999px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.common-game-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ===== 推荐区块 ===== */
.hubvey-recomed-div {
    margin: 0px 10px;
    border-radius: var(--radius-lg);
    padding: 10px 0px;
}

.hubvey-detail-recomed-div {
    margin: 10px 20px;
    border-radius: var(--radius-lg);
    padding: 10px 0px;
}

/* ===== 分类标题栏 ===== */
.hubvey-common-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px 15px;
    background:
        radial-gradient(200px 55px at 10% 0%, rgba(253, 186, 116, 0.20), transparent 70%),
        linear-gradient(120deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.22);
    border-bottom: 3px solid var(--accent-500);
}

.hubvey-common-recommend-title::before,
.hubvey-common-recommend-title::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-300);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(253, 186, 116, 0.80);
}

.hubvey-common-recommend-title::before {
    left: 16px;
}

.hubvey-common-recommend-title::after {
    right: 16px;
}

.hubvey-common-recommend-title p {
    color: #ffffff;
    font-size: 1.02rem;
    margin: 0;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1.6px;
    text-shadow: 0 1px 6px rgba(15, 118, 110, 0.20);
}

.hubvey-common-recommend-title img {
    display: none;
}

/* ===== 网格布局 ===== */
.hubvey-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.hubvey-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.hubvey-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

/* ===== Footer ===== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px 26px;
    background: linear-gradient(165deg, #134e4a 0%, #115e59 50%, #0f3d3a 100%);
    text-align: center;
    position: relative;
    margin-top: 26px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-300) 35%, var(--accent-400) 65%, var(--accent-500));
}

.hubvey-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hubvey-footer-links a {
    font-size: 0.74em;
    color: rgba(204, 251, 241, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(253, 186, 116, 0.20);
    background: rgba(255, 255, 255, 0.05);
}

.hubvey-footer-links a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(253, 186, 116, 0.45);
    transform: translateY(-1px);
}

footer .hubvey-copyright {
    font-size: 0.78em;
    color: rgba(204, 251, 241, 0.58);
    margin: 10px 0px;
    letter-spacing: 0.4px;
}

/* ===== 回到顶部 / 回到首页 ===== */
#back-top,
#back-home {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.3s ease;
}

#back-top:hover,
#back-home:hover {
    opacity: 1;
    transform: scale(1.15);
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.55rem;
    gap: 10PX;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    transition: box-shadow 0.3s;
    z-index: 9;
}

#flow:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== 游戏详情页 ===== */
.hubvey-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 1rem;
    border-radius: var(--radius-md);
}

.game-detail-iframe {
    width: 100%;
}

.hubvey-game-detail-img {
    width: 80%;
}

.hubvey-game-detail-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.hubvey-detail-info {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0px 20px;
    order: 1;
}

.hubvey-detail-info h2 {
    color: var(--ink);
    font-size: 1rem;
    margin: 10px;
    font-weight: 600;
}

.hubvey-detail-info p:first-child {
    color: var(--brand-600);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin: 14px 0 6px;
    text-align: center;
}

.hubvey-detail-info p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 10px 0px;
    line-height: 1.65;
}

.hubvey-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

/* ===== 游戏说明 ===== */
.hubvey-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 20px;
    background: var(--paper);
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand-500);
    position: relative;
    overflow: hidden;
}

.hubvey-game-instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-300), var(--accent-500));
}

.hubvey-game-instructions p {
    color: var(--ink-soft);
    line-height: 1.7rem;
    font-size: 0.95rem;
    margin: 4px 0;
}

/* ===== 游戏按钮 ===== */
.hubvey-game-gameplay-button {
    display: flex;
    background: transparent;
    border-radius: 999px;
    margin: 10px;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -140px;
    right: -10px;
    filter: drop-shadow(0 12px 22px rgba(15, 118, 110, 0.32));
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 2;
}

.hubvey-game-gameplay-button:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 16px 30px rgba(13, 148, 136, 0.42));
}

.hubvey-game-gameplay-button img {
    width: 120px;
    height: 120px;
}

.hubvey-game-gameplay-button p {
    color: #fff;
    margin: 0px;
}

/* ===== 游戏 iframe 区域 ===== */
.hubvey-game-iframe {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
}

#iframe-menu-btn {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
}

#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px;
    position: absolute;
    height: 50px;
    cursor: pointer;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.18));
    transition: transform 0.25s ease;
    z-index: 5;
}

#iframe-back-btn:hover {
    transform: translateX(-3px) scale(1.05);
}

/* ===== 新闻详情（关于/隐私等长文页） ===== */
.hubvey-news-detail {
    color: var(--ink-soft);
    text-align: start;
    padding: 1.4rem 1.3rem;
    margin: 22px 14px 0;
    line-height: 1.75;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hubvey-news-detail h3 {
    color: var(--brand-600);
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.hubvey-news-detail h4 {
    color: var(--ink);
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-500);
}

.hubvey-news-detail p {
    margin: 10px 0;
}

.hubvey-news-detail a {
    color: var(--brand-600);
    text-decoration: none;
    border-bottom: 1px dashed var(--brand-200);
}

.hubvey-news-detail a:hover {
    color: var(--brand-700);
    border-bottom-style: solid;
}

.hubvey-news-detail ul {
    padding-left: 6px;
}

.hubvey-news-detail li {
    margin: 8px 0;
}

.hubvey-news-detail img {
    width: 100%;
    object-fit: contain;
}

/* ===== 404 错误页 ===== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page h1 {
    font-size: 2em;
    color: var(--brand-600);
}

.error-page p {
    font-size: 1.4em;
    color: var(--ink-soft);
    padding: 1rem;
}

.error-page img {
    width: 100%;
    padding: 2rem 1rem;
}

.error-page a img {
    width: 130px;
    padding: 0;
    transition: transform 0.3s ease;
}

.error-page a img:hover {
    transform: scale(1.08);
}

/* ===== 游戏标记 ===== */
.hubvey-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: -10px;
    left: -10px;
    filter: drop-shadow(0 3px 6px rgba(15, 118, 110, 0.25));
    z-index: 2;
}

.hubvey-game-mark img {
    width: 50px;
    height: 25px;
}

.hubvey-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 0px;
    left: -10px;
    z-index: 2;
}

.hubvey-game-new img {
    width: 50px;
    height: 50px;
}

.hubvey-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#hubvey-game-body {
    margin-top: 20px;
}

/* ===== iframe 侧边菜单 ===== */
.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(180deg, #ffffff, var(--cream));
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 0vh;
    right: 0px;
    z-index: 8;
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 10px 10px;
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 40px rgba(15, 118, 110, 0.14);
}

.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 1rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.iframe-list-item a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: space-between;
    align-items: center;
}

.iframe-list-item a img {
    margin: 0px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    box-shadow: var(--shadow-sm);
}

.iframe-list-item a p {
    margin: 0px 20px;
    position: relative;
}

.iframe-list-item-close a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: end;
    align-items: center;
}

.iframe-list-item-close img {
    margin: 0px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

#iframe-close-btn {
    right: 0px;
    top: 0px;
}
