/* ============================================================ */
/* 记录.ui.css - 记录页基础 + UI组件 */
/* ============================================================ */

/* ===== Base ===== */
body {
    background-image: url('../png/背景.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0c0f;
    color: #e0e0e0;
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    min-height: 100vh;
}
[data-theme="dark"] body {
    background-color: #0a0c0f;
}

/* ===== 导航栏 ===== */
.glass-nav {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(10, 12, 15, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}
.glass-nav-scrolled {
    background-color: rgba(5, 7, 10, 0.92);
}
.animate-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* ===== 返回首页按钮（原样） ===== */
.prev-page-btn,
.mobile-prev-page-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background-color: #3366ff;
    color: white;
    border-radius: 50px;
    border: 3px solid #3366ff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: upright;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}
.prev-page-btn {
    width: 50px;
    height: 160px;
    font-size: 18px;
}
.mobile-prev-page-btn {
    width: 40px;
    height: 120px;
    font-size: 14px;
    display: none;
}
.prev-page-btn:hover,
.mobile-prev-page-btn:hover {
    background-color: #1a4bcc;
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
}
@media (max-width: 768px) {
    .prev-page-btn { display: none; }
    .mobile-prev-page-btn {
        display: flex;
        width: 36px;
        height: 120px;
        font-size: 13px;
        right: 8px;
    }
}

/* ============================================================ */
/* 记录页UI组件 */
/* ============================================================ */

/* ===== 截图卡片 ===== */
.screenshot-card {
    background: rgba(15, 15, 25, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.screenshot-card:hover {
    transform: translateY(-8px);
    border-color: #3366ff;
    box-shadow: 0 15px 30px rgba(51, 102, 255, 0.2);
}
.screenshot-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.screenshot-card:hover img {
    transform: scale(1.03);
}
.img-placeholder {
    width: 100%;
    height: 240px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
}

/* ===== 固定进度条 ===== */
#fixedProgress {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    z-index: 30;
    background: rgba(10, 12, 15, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 20px 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
#fixedProgress.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* ★ 淡出时彻底干掉入场动画，否则 opacity 会被 animation-fill-mode: both 压制 */
#fixedProgress.fade-out {
    animation: none !important;
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-20px) !important;
    pointer-events: none !important;
}
#fixedProgress #progressText {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 6px;
    min-height: 22px;
    transition: opacity 0.3s ease;
}
#fixedProgress #progressWrapper {
    width: 100%;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    height: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
#fixedProgress #progressFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3366ff, #66ccff);
    border-radius: 8px;
    transition: width 0.3s ease;
}
#fixedProgress #completionBanner {
    text-align: center;
    padding: 10px 0 0 0;
    color: #66bb6a;
    font-weight: bold;
    font-size: clamp(15px, 2.2vw, 18px);
    transition: opacity 0.6s ease, max-height 0.6s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}
#fixedProgress #completionBanner.show {
    opacity: 1;
    max-height: 60px;
}
#fixedProgress #completionBanner i {
    margin-right: 8px;
}
@media (max-width: 768px) {
    #fixedProgress {
        top: 56px;
        padding: 8px 14px 10px 14px;
        width: 94%;
    }
    #fixedProgress #progressText {
        font-size: 11px;
    }
}

/* ===== 复制按钮 ===== */
.copy-qq-btn {
    background: #3366ff;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.copy-qq-btn:hover {
    background: #1a4bcc;
    transform: scale(1.02);
}

/* ===== 模态框 ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-image-container {
    position: relative;
    cursor: grab;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-image-container.grabbing {
    cursor: grabbing;
}
#modalImage {
    max-width: 100%;
    max-height: 100%;
    transition: none;
    transform-origin: center center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    width: auto;
    height: auto;
}
.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.zoom-btn,
.zoom-reset {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}
.zoom-btn:hover,
.zoom-reset:hover {
    background: rgba(51, 102, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}
.zoom-btn:active,
.zoom-reset:active {
    transform: scale(0.92);
}

/* ===== 滚动动画 ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}
.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background: #3366ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    font-size: 20px;
    color: white;
    border: none;
    outline: none;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #1a4bcc;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(51, 102, 255, 0.4);
}
.back-to-top:active {
    transform: scale(0.95);
}

.mobile-back-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #3366ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    font-size: 20px;
    color: white;
}
.mobile-back-btn.visible {
    opacity: 1;
    visibility: visible;
}
.mobile-back-btn:hover {
    background: #1a4bcc;
    transform: scale(1.1);
}
@media (min-width: 769px) {
    .mobile-back-btn { display: none; }
}

/* ===== 移动端遮罩优化 ===== */
body:has(.modal.active) .glow-toggle-container {
    z-index: 50 !important;
}

/* ============================================================ */
/* ★ 原生替代 Tailwind 的样式（已移除 CDN） */
/* ============================================================ */

/* ---- 关键帧（替代 Tailwind 的 fadeInUp） ---- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in-up-delay-1 { animation: fadeInUp 0.8s ease-out 0.2s forwards; }
.animate-fade-in-up-delay-2 { animation: fadeInUp 0.8s ease-out 0.4s forwards; }
.animate-fade-in-up-delay-3 { animation: fadeInUp 0.8s ease-out 0.6s forwards; }
.animate-fade-in-up-delay-4 { animation: fadeInUp 0.8s ease-out 0.8s forwards; }

/* ---- 通用工具 ---- */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.max-w-sm  { max-width: 24rem; }
.pb-20     { padding-bottom: 5rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
.gap-3     { gap: 0.75rem; }

/* ---- 导航栏 ---- */
.nav-wrap { }
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}
.nav-logo {
    font-size: 1.5rem;
    color: #3366ff;
}
.nav-desktop {
    display: none;
    gap: 2rem;
}
.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: #3366ff; }
.nav-link-active { color: #3366ff; font-weight: 500; }
.nav-mobile-back,
.nav-mobile-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    font-size: 1.25rem;
    margin-right: 1rem;
}
.nav-mobile-menu { color: #3366ff; font-size: 1.5rem; margin-right: 0; }
.nav-cta {
    display: none;
    background: #3366ff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-cta:hover { background: #1a4bcc; }
.nav-mobile-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
}
.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}
.nav-mobile-link {
    color: #d1d5db;
    text-decoration: none;
    padding: 0.5rem 0;
}
.nav-mobile-link:hover { color: #3366ff; }
.nav-mobile-link-active { color: #3366ff; font-weight: 500; }
.nav-mobile-cta {
    background: #3366ff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .nav-mobile-back,
    .nav-mobile-menu { display: none; }
    .nav-cta { display: block; }
    .nav-mobile-panel { display: none; }
}

/* ---- Hero ---- */
.h-screen { height: 100vh; }
.hero-rec {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-rec-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.hero-rec-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-rec-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}
.hero-rec-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-rec-sub {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-rec-btn {
    background: #3366ff;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-rec-btn:hover { background: #1a4bcc; }

/* ---- 移动端顶栏 ---- */
.mobile-bar {
    position: sticky;
    top: 4rem;
    z-index: 30;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid #374151;
    padding: 0.75rem 1rem;
}
.mobile-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-bar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3366ff;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-bar-btn:hover { background: rgba(51,102,255,0.1); }
.mobile-bar-actions { display: flex; gap: 1rem; }

@media (min-width: 768px) {
    .mobile-bar { display: none; }
}

/* ---- 截图区 ---- */
.screenshots-section { padding: 5rem 0; }
.section-h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
}
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
@media (min-width: 768px) {
    .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.loading-indicator {
    text-align: center;
    color: #9ca3af;
    padding: 2rem 0;
}

/* ---- 联系区 ---- */
.contact-section { padding: 5rem 0; }
.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}
.contact-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3366ff;
    margin-bottom: 1rem;
}
.contact-header-desc {
    color: #9ca3af;
    max-width: 28rem;
    margin: 0 auto;
}
.contact-card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-card {
    background: rgba(31, 41, 55, 0.7);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(51,102,255,0.3);
}
.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.contact-value {
    font-weight: 700;
    color: #3366ff;
}
.contact-tip-wrap { text-align: center; }
.contact-tip { color: #888; font-size: 0.875rem; }
.copy-toast {
    margin-top: 1rem;
    text-align: center;
    color: #4ade80;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}
.copy-toast.show { opacity: 1; }

/* ---- 底部按钮 ---- */
.btn-primary-block {
    display: block;
    width: 200px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #3366ff;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    margin: 0 auto;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary-block:hover { background: #1a4bcc; }
@media (min-width: 768px) { .btn-primary-block { display: none; } }

/* ---- 页脚 ---- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-col { }
.footer-logo {
    font-size: 1.5rem;
    color: #3366ff;
    margin-bottom: 1rem;
}
.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-text { color: #9ca3af; }
.footer-list {
    list-style: none;
    padding: 0;
}
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-list a:hover { color: #fff; }
.footer-list-plain { color: #9ca3af; }
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.2s;
}
.footer-social a:hover { color: #fff; }
.footer-copyright {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}
.footer-copyright p { margin-bottom: 0.25rem; }

/* ---- 模态框的绝对定位按钮（原 Tailwind 类） ---- */
.modal .absolute { position: absolute; }
.modal .top-4 { top: 1rem; }
.modal .right-4 { right: 1rem; }
.modal .bg-black\/50 { background: rgba(0,0,0,0.5); }
.modal .text-white { color: #fff; }
.modal .rounded-full { border-radius: 9999px; }
.modal .w-10 { width: 2.5rem; }
.modal .h-10 { height: 2.5rem; }
.modal .flex { display: flex; }
.modal .items-center { align-items: center; }
.modal .justify-center { justify-content: center; }
.modal .hover\:bg-black\/70:hover { background: rgba(0,0,0,0.7); }
.modal .z-20 { z-index: 20; }
.modal .rounded-lg { border-radius: 0.5rem; }
.modal .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }