:root {
    --primary: #165DFF;
    --primary-light: #4080FF;
    --primary-dark: #0E42D2;
    --primary-glass: rgba(22, 93, 255, 0.08);
    --primary-glass-dark: rgba(22, 93, 255, 0.15);
    --secondary: #6B7280;
    --success: #00B42A;
    --warning: #FF7D00;
    --danger: #F53F3F;
    --dark: #1D2129;
    --light: #F9FAFB;
    --border: #E5E7EB;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-light: linear-gradient(135deg, var(--primary-light), var(--primary));
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 64px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}
label {
    display: inline-block;
    margin-bottom: .5rem;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    cursor: pointer
}
button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.navbar-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar-item {
    list-style: none;
}

.navbar-link {
    color: var(--secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-link:hover, .navbar-link.active {
    color: var(--primary);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.navbar-cta {
    background: var(--gradient);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.navbar-cta:hover {
    background: var(--gradient-light);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

/* 汉堡按钮基础样式（默认隐藏，移动端显示） */
.navbar-hamburger {
    display: none;
    font-size: 1.25rem;
    color: var(--dark);
    padding: 0.5rem; /* 扩大点击区域 */
}

.navbar-hamburger:hover {
    color: var(--primary);
    transform: scale(1.05); /* 点击反馈 */
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    z-index: 40;
    padding: 1rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

/* 移动端菜单激活状态（显示） */
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 加深阴影区分层级 */
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-item a {
    color: var(--secondary);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.mobile-menu-item a:hover, .mobile-menu-item a.active {
    color: var(--primary);
}

.mobile-cta {
    margin-top: 0.5rem;
    background: var(--gradient);
    color: white;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.mobile-cta:hover {
    background: var(--gradient-light);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

/* 头部区域 */
.header {
    padding: 60px 0 40px;
    background-color: var(--primary-glass);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: var(--primary-glass-dark);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.header-tag {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.header-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-desc {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.header-stat-item {
    display: flex;
    flex-direction: column;
}

.header-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.header-stat-label {
    font-size: 0.875rem;
    color: var(--secondary);
}

/* 主内容区 */
.main {
    padding: 3rem 0;
}

/* SSL检测表单样式 */
.form-box {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

#sslForm {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#domain {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

#domain:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.orange-btn {
    background-color: var(--warning);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.2);
}

.orange-btn:hover {
    background-color: #FF9A2E;
    box-shadow: 0 6px 16px rgba(255, 125, 0, 0.25);
}

/* 结果显示样式 */
#result {
    margin-bottom: 2rem;
}

.content.tools {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.money_box {
    padding: 1.5rem;
}

.query_box_item {
    margin-bottom: 1rem;
}

.query_title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.query_title i {
    color: var(--primary);
}

.query_title_a {
    color: var(--primary);
    font-weight: 500;
}

.rs_detail_checktime {
    color: var(--secondary);
    font-size: 0.875rem;
    margin-left: auto;
}

.ssl-sx-btn {
    margin-left: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.sslDataList {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background-color: rgba(0, 180, 42, 0.05);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sslDataList.error {
    background-color: rgba(245, 63, 63, 0.05);
}

.sslDataList i {
    font-size: 2rem;
    color: var(--success);
    margin-right: 1rem;
}

.sslDataList.error i {
    color: var(--danger);
}

.sslDataList1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--success);
}

.sslDataList.error .sslDataList1 {
    color: var(--danger);
}

.sslDataList2 {
    color: var(--secondary);
}

.sslDataList3 {
    margin-left: auto;
    text-align: right;
}

.ssl_detail {
    margin-top: 2rem;
}

.ssl_det01a {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.ssl_det01a span{
    border-radius: 4px 4px 0 0;
    padding: 8px 24px;
    background: linear-gradient(-10deg,#165DFF);
    color: #fff !important;
    font-size: 14px;
}

.ssl_det01b {
    display: flex;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ssl_det01b label {
    font-weight: 500;
    color: var(--secondary);
}

.ssl_det01b p {
    flex: 1;
}

.status {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

pre {
    background-color: #0d1117;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
}

.hljs-tag {
    color: #7ee787;
}

.hljs-string {
    color: #a5d6ff
}

.hljs-comment {
    color: #8b949e;;
}

/* 证书链样式 */
.ssl_item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* 图标与文字顶部对齐，避免错乱 */
    margin-bottom: 1.5rem;
}

.ssl_item:nth-child(1) .ssl_det01c {
    background: url("../image/chains-serve.png") no-repeat;
    background-size: 100%;
}

.ssl_item:last-child .ssl_det01c {
    background: url("../image/chains-root-golden.png") no-repeat;
    background-size: 100%;
}

.ssl_det01c {
    width: 70px;
    height: 100px;
    margin-right: 32px;
    position: relative;
    background: url("../image/chains-ca.png") no-repeat;
    background-size: 100%;
}

.ssl_det01c:after {
    content: '';
    width: 1px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    background: #999;
    z-index: -1;
}

/* 提示框样式 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--dark);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 页脚区 */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links-title {
    font-size: 1rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计（移动端核心修复） */
@media (max-width: 768px) {
    /* 1. 导航栏：隐藏PC菜单，显示汉堡按钮 */
    .navbar-menu {
        display: none !important; /* 强制隐藏，避免优先级冲突 */
    }
    .navbar-hamburger {
        display: block !important; /* 显示汉堡按钮 */
        font-size: 1.5rem; /* 放大按钮，提升点击辨识度 */
    }
    .navbar-container {
        padding: 0 1rem; /* 适配小屏幕内边距 */
    }

    /* 2. 移动端菜单优化 */
    .mobile-menu {
        padding: 1.5rem 1rem; /* 减少左右内边距，避免溢出 */
    }
    .mobile-menu-item a {
        padding: 0.75rem 0; /* 扩大点击区域 */
        font-size: 1.05rem; /* 放大字体，提升可读性 */
    }

    /* 3. SSL检测表单：垂直排列 */
    #sslForm {
        flex-direction: column;
    }
    #domain {
        width: 100%;
        min-width: auto; /* 取消最小宽度限制 */
    }

    /* 4. 检测结果布局优化 */
    .query_title {
        flex-direction: column;
        align-items: flex-start; /* 标题左对齐，避免错乱 */
    }
    .rs_detail_checktime {
        margin-left: 0;
        margin-top: 0.5rem; /* 与标题拉开距离 */
    }
    .sslDataList {
        flex-direction: column;
        text-align: center; /* 内容居中，适配小屏幕 */
    }
    .sslDataList3 {
        margin-left: 0;
        text-align: center;
        margin-top: 1rem; /* 与左侧内容拉开距离 */
    }
    .ssl_det01b {
        flex-direction: column;
    }
    .ssl_det01b label {
        margin-bottom: 0.25rem;
    }

    /* 5. 证书链图标适配 */
    .ssl_det01c {
        width: 50px; /* 缩小图标，避免占满屏幕 */
        height: 80px;
        margin-right: 16px; /* 减少右边距 */
    }
    
}