/* =========================================================
   朗中志愿者考勤平台 - volunteer 模板公共样式
   1:1 还原设计稿自定义样式（Tailwind 负责工具类，本文件只放
   设计稿 <style> 中的自定义类：logo-box / nav 下划线 / banner /
   卡片阴影 / 悬浮按钮 / 联系浮层等），全部页面共用
   ========================================================= */

/* Logo 圆形容器（设计稿 .logo-box） */
.logo-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* 顶部导航下划线效果（设计稿 nav a） */
#lzvNav a, header nav a {
    transition: all 0.2s ease;
    position: relative;
}
header nav a:hover { color: #2563eb; }
header nav a:hover::after {
    content: "";
    width: 60%;
    height: 2px;
    background: #2563eb;
    position: absolute;
    bottom: -4px;
    left: 20%;
}
header nav a.active { color: #2563eb; }
header nav a.active::after {
    content: "";
    width: 60%;
    height: 2px;
    background: #2563eb;
    position: absolute;
    bottom: -4px;
    left: 20%;
}

/* 卡片阴影 / 图片盒子（设计稿 @layer utilities） */
.card-shadow { box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06); }
.img-box {
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 首页 Banner（设计稿 banner-* 全套） */
.banner-wrap { width: 100%; padding-top: 40px; padding-bottom: 40px; }
.banner-inner {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .banner-inner { flex-direction: row; align-items: stretch; }
}
.banner-text { flex: 0 0 48%; padding: 44px 40px; background: #ffffff; }
.banner-text h1 { font-size: 42px; font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 14px; }
.banner-text h1 span { color: #2563eb; }
.banner-text p { color: #475569; font-size: 16px; margin-bottom: 30px; line-height: 1.7; }
.banner-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    background: #2563eb; color: #ffffff; padding: 12px 28px;
    border-radius: 999px; font-size: 15px; font-weight: 500; transition: 0.2s;
    display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-outline {
    border: 1px solid #cbd5e1; color: #334155; padding: 12px 28px;
    border-radius: 999px; font-size: 15px; background: #ffffff; transition: 0.2s;
    display: inline-block; cursor: pointer;
}
.btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.banner-slider { flex: 0 0 52%; height: 100%; position: relative; background: #0f172a; overflow: hidden; }
@media (max-width: 767px) { .banner-slider { flex: 0 0 100%; height: 280px; } }
.banner-slider img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slide-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: 0.2s; }
.slide-dots span.active { background: #ffffff; width: 22px; border-radius: 999px; }
.slide-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.35); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; font-size: 14px;
}
.slide-arrow:hover { background: rgba(0,0,0,0.55); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* 右侧悬浮按钮（设计稿 float-*） */
.float-btns { position: fixed; right: 20px; bottom: 32px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
    width: 52px; height: 52px; border-radius: 50%;
    background: #ffffff; color: #2563eb;
    box-shadow: 0 4px 16px rgba(15,23,42,0.14);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 17px; cursor: pointer; border: none; transition: all 0.25s ease;
}
.float-btn .fb-label { font-size: 10px; margin-top: 1px; line-height: 1; }
.float-btn:hover { transform: translateY(-3px); color: #1d4ed8; box-shadow: 0 8px 22px rgba(37,99,235,0.25); }
#backTopBtn { opacity: 0; visibility: hidden; transform: translateY(8px); }
#backTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* 联系我们浮层 */
.contact-pop {
    position: fixed; right: 20px; bottom: 120px; width: 250px;
    background: #ffffff; border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.16);
    padding: 18px; z-index: 61; display: none;
}
.contact-pop.show { display: block; animation: lzvPopIn 0.25s ease; }
@keyframes lzvPopIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端抽屉 */
#lzvMobileMenu.open { transform: translateX(0) !important; }

/* 内容区图片/表格防溢出 */
.lzv-content img, .lzv-content video { max-width: 100%; height: auto; }
.lzv-content table { max-width: 100%; display: block; overflow-x: auto; }

/* 通用轻提示 toast */
#lzvToast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
    background: rgba(17,24,39,0.9); color: #fff; padding: 10px 22px;
    border-radius: 8px; font-size: 14px; z-index: 9999; transition: opacity .3s;
}

/* =========================================================
   顶部导航 & 按钮 精致化（v2）
   毛玻璃导航 + 渐变品牌名 + 胶囊菜单 + 立体渐变按钮
   ========================================================= */
.lzv-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
    transition: box-shadow .3s ease, background .3s ease;
}
.lzv-header.lzv-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px -12px rgba(37, 99, 235, 0.25);
}

/* 品牌徽标 */
.logo-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.55);
    border: 2px solid #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.logo-box img { border-radius: 11px; }
.lzv-brand { line-height: 1.15; }
.lzv-brand .t1 {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6 55%, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lzv-brand .t2 { display: block; font-size: .62rem; color: #94a3b8; letter-spacing: 2px; }

/* 桌面导航胶囊（覆盖旧下划线方案） */
.lzv-nav { gap: 4px; }
.lzv-nav a {
    padding: 8px 18px !important;
    border-radius: 999px;
    font-weight: 500;
    color: #475569 !important;
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lzv-nav a::after { display: none !important; }
.lzv-nav a:hover {
    color: #1d4ed8 !important;
    background: #eff6ff;
    transform: translateY(-1px);
}
.lzv-nav a.active {
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .6);
}
.lzv-nav a.active::after { display: none !important; }

/* 立体渐变主按钮（登录/注册等） */
.lzv-btn-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff !important;
    padding: 10px 26px !important;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lzv-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255,255,255,.3);
    color: #fff !important;
}
.lzv-btn-cta:active { transform: translateY(0); }
/* 扫光 */
.lzv-btn-cta::before {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.lzv-btn-cta:hover::before { left: 130%; }

/* 次按钮（如志愿者登录描边款） */
.lzv-btn-ghost {
    padding: 9px 24px !important;
    border-radius: 999px;
    font-weight: 600;
    color: #2563eb !important;
    border: 1.5px solid #bfdbfe;
    background: #fff;
    transition: all .2s ease;
}
.lzv-btn-ghost:hover { background: #eff6ff; border-color: #60a5fa; transform: translateY(-1px); }

/* 汉堡按钮 */
#lzvMenuBtn {
    width: 42px; height: 42px;
    border-radius: 12px;
    color: #2563eb;
    background: #eff6ff;
    transition: background .2s ease, transform .2s ease;
}
#lzvMenuBtn:hover { background: #dbeafe; transform: scale(1.05); }

/* 移动抽屉菜单项美化 */
#lvzMobileNav a, #lzvMobileMenu nav a { border-radius: 12px; margin: 2px 12px; transition: all .2s ease; }
#lzvMobileMenu nav a:hover { transform: translateX(4px); }
