/* Header 水平排列优化 */
.header {
    width: 100%;
    padding:0.5rem 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}



.header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: nowrap;
}

.header .logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.header .logo .subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.header .nav {
    display: flex;
    align-items: center;
}

.header .login-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.header .login-btn:hover {
    background-color: #0056b3;
}

.info-box{
    margin-top: 1rem;
    margin-bottom: 2rem;
    min-height: 100px;
}

/* 工具网格区域 */
.nav-link-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1E9FFF 0%, #0d8ae0 100%);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 159, 255, 0.4);
    background: linear-gradient(135deg, #0d8ae0 0%, #1E9FFF 100%);
}

.tool-item:active {
    transform: translateY(0);
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    text-align: center;
    line-height: 1.2;
}

.tool-type {
    font-size: 0.75rem;
    opacity: 0.9;
    text-align: center;
    line-height: 1.2;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        padding: 0 1rem;
    }
    
    .header .logo h1 {
        font-size: 1.5rem;
    }
    
    .header .logo img {
        width: 40px;
        height: 40px;
    }
    
    .header .login-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header .logo {
        justify-content: center;
    }
    
    /* 移动端工具网格响应式 */
    .nav-link-box {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .tool-name {
        font-size: 0.8rem;
    }
    
    .tool-type {
        font-size: 0.7rem;
    }
}