/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础变量 - 亮色蓝色风格 */
:root {
    --primary-color: #1d4ed8;
    --secondary-color: #2563eb;
    --accent-color: #3b82f6;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #cbd5e1;
    --column-bg: rgba(59, 130, 246, 0.1);
    --gutter-bg: rgba(226, 232, 240, 0.5);
    --margin-bg: rgba(226, 232, 240, 0.5);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --transition: all 0.3s ease;
}

/* 基础样式 */
html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--light-bg);
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(59, 130, 246, 0.05) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(59, 130, 246, 0.05) 2px, transparent 0);
    background-size: 100px 100px;
}

/* 工具类 */
.pL5 { padding-left: 5px; }
.pR5 { padding-right: 5px; }
.pL10 { padding-left: 10px; }
.pR10 { padding-right: 10px; }
.pT20 { padding-top: 20px; }
.mB20 { margin-bottom: 20px; }
.mT15 { margin-top: 15px; }
.w100Percent { width: 100%; }
.fz14 { font-size: 14px; }
.fz24 { font-size: 24px; }
.whiteTxt { color: var(--text-primary); }
.blueTxt { color: var(--primary-color); }
.orangeTxt { color: var(--accent-color); }
.highlightColor { color: var(--primary-color); }
.redTxt { color: #ef4444; }

/* Flex 布局类 */
.rowFlex {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.columnFlex {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 主容器样式 */
body {
    margin: 0;
    padding: 0;
}

.wh_body {
    min-height: 100vh;
    padding: 0;
}

/* 主容器样式 */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    box-sizing: border-box;
}

/* 顶部通栏样式 - 参考 axureux.com */
.top-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
}

.top-header h1 {
    color: #333333 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0;
    line-height: 35px;
    text-align: left;
}

.top-header h1 i{
    background-color: rgb(37 99 235 / 0.1);
    border-radius: 9999px;
    color: rgb(37 99 235 / 1);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-size: 1rem;
}

.top-header .grid {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    text-align: right;
    justify-content: flex-end;
}

.top-header span {
    color: #666666 !important;
    font-size: 0.875rem;
}

.top-header a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    margin-right: 8px;
}

.top-header a:hover {
    color: #5466F5;
    background-color: #fff;
    border-color: #5466F5;
    text-decoration: none;
}

.text-primary-color {
    color: var(--primary-color);
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.text-gray-600 {
    color: #64748b;
}

/* 头部样式 */
.wh_theader {
    width: 100%;
    max-width: 960px;
    border: 1px solid #f2f2f2;
    padding: 2rem 0;
}

.w960 {
    width: 100%;
    max-width: 960px;
    margin: 2rem auto;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px; /* 确保内容较少时也能保持垂直居中的视觉效果 */
}

/* 确保main标签不会影响已移出的wh_middle区域 */
main.w960 {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.w960:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}



/* 链接样式 - 用于顶部标题栏 */
.top-header a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    margin-right: 8px;
}

.top-header a:hover {
    color: #5466F5;
    background-color: #fff;
    border-color: #5466F5;
    transform: translateY(0);
}

/* 移除了columnTitle相关样式，已移至top-header */

/* 输入区域 */
.js-input {
    border-radius: 8px;
    padding: 0 1rem;
    transition: var(--transition);
}

.js-input:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.w33percent {
    box-sizing: border-box;
    width: 33.333%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
}

.w140 {
    width: 140px;
    text-align: left;
    margin-right: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.w140 i{
    font-size:10px;
    font-style: normal;
    color: #ccc;
}


/* 输入框样式 */
.w33percent input[type=text] {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0.75rem;
}

.w33percent input[type=text]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: white;
}

.w33percent input[type=text].orangeTxt {
    color: var(--accent-color);
}

.w33percent .w100Input {
    box-sizing: border-box;
    width: 120px;
    height: 44px;
}

/* 高亮显示区域 */
.hightlight {
    color: var(--text-primary);
    font-weight: 600;
}

.hightlight label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 中间内容区域 */
.wh_middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    flex: 1;
    position: relative;
    z-index: 10;
    padding: 1.5rem 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    min-height: 300px; /* 确保内容较少时也能保持垂直居中的视觉效果 */
}

/* 页面宽度显示线 */
.columnLine {
    height: 2px;
    background-color: var(--primary-color);
    width: 100%;
    position: relative;
}


/* 栅格内容 */
#allContent {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#allContent div {
    height: 160px;
    overflow: hidden;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

#allContent div:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* 栅格列样式 */
.columnMargin {
    background: var(--margin-bg);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.columnColumn {
    background: var(--column-bg);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.columnColumn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent);
}

.columnGutter {
    background: var(--gutter-bg);
    color: var(--primary-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* 悬停效果 */
body.columnBg .gutterGrow .columnGutter,
body.columnBg .columnsGrow .columnColumn,
body.columnBg .marginGrow .columnMargin {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) inset;
    transform: scale(1.05);
    z-index: 20;
}

/* 警告样式 */
.alarm {
    color: #fff;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    margin: 1rem 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 底部样式 */
.wh_tfooter {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.columnTfooter {
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 12px;
    color: #ccc;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding-bottom: 20px;
}


.columnTfooter a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.columnTfooter a:hover {
    color: rgb(37 99 235 / 1);
}

/* 宽度显示区域 */
#pageWidthShow {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .w960 {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .columnTitle h1 {
        font-size: 2rem;
    }
    
    .rowFlex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .w33percent {
        width: 100%;
        padding: 0.5rem 1rem;
    }
    
    #allContent div {
        height: 100px;
        font-size: 12px;
    }
    
    .w33percent .w100Input {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .wh_body {
        padding: 0rem 0.5rem;
    }
    
    .w960 {
        padding: 1rem;
    }
    
    .columnTitle h1 {
        font-size: 1.75rem;
    }
    
    .columnTitle .grid {
        flex-wrap: wrap;
    }
    
    .wh_body .wh_theader a {
        margin-bottom: 0.5rem;
    }
}
.rowFlex{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
}