/* ===== LiteMonitor 官网公共样式 ===== */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #1e1f22;
    font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
    color: #eee;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

a { color: #8dffd7; }

/* ===== 顶部导航 ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(30, 31, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav:hover {
    background: rgba(30, 31, 34, 0.85);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
    color: #8dffd7;
}

/* 导航菜单容器 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

/* 导航链接组 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 10px 16px;
    border-radius: 6px;
    margin: 0 2px;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #8dffd7;
    background: rgba(29, 209, 161, 0.08);
}

.nav-links a.active {
    color: #8dffd7;
    font-weight: 600;
    background: rgba(29, 209, 161, 0.12);
}

/* 下划线效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1dd1a1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a.active::after {
    width: 80%;
    background: #1dd1a1;
}

/* GitHub 按钮 */
.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-left: 12px;
    border: 1px solid rgba(29, 209, 161, 0.4);
    border-radius: 8px;
    color: #8dffd7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-github:hover {
    border-color: #1dd1a1;
    background: rgba(29, 209, 161, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 209, 161, 0.2);
}

.nav-github svg {
    transition: transform 0.3s ease;
}

.nav-github:hover svg {
    transform: scale(1.1);
}

/* 移动端汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger div {
    width: 100%;
    height: 2px;
    background: #ccc;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

/* 移动端菜单遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99;
    backdrop-filter: blur(4px);
}

/* 移动端侧边菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(30, 31, 34, 0.95);
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu a {
    padding: 14px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 4px;
}

.mobile-menu a:hover {
    color: #8dffd7;
    background: rgba(29, 209, 161, 0.08);
}

.mobile-menu a.active {
    color: #8dffd7;
    background: rgba(29, 209, 161, 0.12);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 15px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #8dffd7;
}

/* 响应式 - 平板和手机 */
@media (max-width: 768px) {
    .nav { padding: 14px 20px; }
    
    .nav-logo { font-size: 18px; }
    
    .nav-links { 
        display: none;
    }
    
    .nav-github { 
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.open div:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.open div:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open div:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .mobile-menu.active {
        right: 0;
    }
}

@media (max-width: 640px) {
    .mobile-menu {
        width: 100%;
    }
}

/* ===== 主视觉区（首页） ===== */
.hero {
    width: 100%;
    padding: 70px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
}

.glass {
    padding: 48px 50px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 35px rgba(0, 0, 0, 0.35);
    max-width: 780px;
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(24px);
    animation: rise-in 0.7s ease forwards;
}

@keyframes rise-in {
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    margin: 0 0 15px 0;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.version {
    font-size: 20px;
    margin: 10px 0 22px;
    color: #8dffd7;
    font-weight: 600;
}

.version .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1dd1a1;
    margin-right: 8px;
    box-shadow: 0 0 0 rgba(29, 209, 161, 0.6);
    animation: pulse 2s infinite;
    vertical-align: 1px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 209, 161, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(29, 209, 161, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 209, 161, 0); }
}

/* ===== 按钮 ===== */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(15, 168, 121, 0.4);
    transition: all 0.25s ease;
}
.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(15, 168, 121, 0.6);
    color: #fff;
}
.btn-download:active { transform: translateY(-1px); }
.btn-download svg { width: 20px; height: 20px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid rgba(29, 209, 161, 0.6);
    color: #8dffd7;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s ease;
}
.btn-outline:hover {
    background: rgba(29, 209, 161, 0.12);
    transform: translateY(-2px);
}

.dl-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

.btn-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 功能卡片 ===== */
.features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.feature-card {
    padding: 20px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(29, 209, 161, 0.45);
    transform: translateY(-3px);
}

.feature-card .icon {
    font-size: 26px;
    margin-bottom: 10px;
    display: block;
}

.feature-card .title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.feature-card .desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #bbb;
}

.feature-card a { color: #8dffd7; text-decoration: none; }
.feature-card a:hover { text-decoration: underline; }

/* ===== 区块标题 ===== */
.section {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 56px 0 8px;
    letter-spacing: 1px;
}

.section-sub {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 28px;
}

/* ===== 子页面头部 ===== */
.page-hero {
    padding: 64px 20px 36px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.page-hero .subtitle { margin-bottom: 0; }

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    padding: 18px 20px 0;
    margin: 0 auto;
    max-width: 860px;
}

.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #8dffd7; }
.breadcrumb .sep { opacity: 0.5; }

/* ===== 截图展示 ===== */
.screenshots {
    width: 100%;
    max-width: 860px;
    margin: 20px auto 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
}

.screenshots img {
    width: 92%;
    max-width: 840px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.screenshots img:hover {
    transform: scale(1.015);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.shot-caption {
    font-size: 13.5px;
    color: #999;
    text-align: center;
    margin-top: -6px;
}

/* ===== 内容卡片 / 列表 ===== */
.card {
    max-width: 780px;
    margin: 0 auto 24px;
    padding: 30px 34px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #8dffd7;
}

.card h2 .icon { margin-right: 8px; }

.card p, .card li {
    font-size: 15px;
    line-height: 1.85;
    color: #ccc;
}

.card ul { padding-left: 20px; margin: 0; }

.card a { color: #8dffd7; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* 详情页大卡片网格 */
.grid-2 {
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-2 .card { margin: 0; }

/* 更新日志 */
.changelog h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #8dffd7;
}

.changelog .date {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.changelog ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.9;
    font-size: 14.5px;
    color: #ccc;
}

/* 下载页信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.info-table th, .info-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-table th {
    color: #999;
    font-weight: 500;
    width: 130px;
    white-space: nowrap;
}

.info-table td { color: #ddd; }

/* 下载大按钮区 */
.dl-box { text-align: center; }

/* ===== 滚动淡入 ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 页脚 ===== */
footer {
    padding: 30px 20px 26px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.9;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

footer a { color: #8dffd7; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .glass { padding: 36px 24px; }
    h1 { font-size: 32px; }
    .page-hero h1 { font-size: 27px; }
    .subtitle { font-size: 15px; }
    .features, .grid-2 { grid-template-columns: 1fr; }
    .nav { padding: 14px 18px; }
    .nav-links .nav-item-text { display: none; }
    .card { padding: 24px 20px; }
}
