﻿/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("/Content/img/HomeBG.png");
    background-size: 100% 330px;
    background-repeat: no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    flex-direction: column;
    top: 0;
    z-index: 100;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #667eea;
}

.nav-links {
    align-items:center;
    display: flex;
    gap: 30px;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: opacity 0.3s;
    }

        .nav-links a:hover {
            opacity: 0.8;
        }

.login-btn {
    background: #2a52be;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

    .login-btn:hover {
        background: #1e3c8a;
    }

/* 主要内容区域 */
.main-content {
   
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 顶部横幅 */
.banner {
    padding: 0px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

    .banner::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        pointer-events: none;
    }

    .banner h1 {
        font-size: 28px;
        color: #2563eb;
        margin-bottom: 20px;
        font-weight: 600;
    }

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .search-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
}

/* 工具分类区域 */
.tool-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .tool-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

    .tool-icon.blue {
        background: #3b82f6;
    }

    .tool-icon.green {
        background: #10b981;
    }

    .tool-icon.red {
        background: #ef4444;
    }

    .tool-icon.orange {
        background: #f59e0b;
    }

    .tool-icon.purple {
        background: #8b5cf6;
    }

.tool-info {
    flex: 1;
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.tool-desc {
    font-size: 12px;
    color: #64748b;
}

/* 快捷网址区域 */
.quick-links-section {
    margin-top: 40px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.quick-link-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .quick-link-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.quick-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

    .quick-link-icon.blue {
        background: #3b82f6;
    }

    .quick-link-icon.green {
        background: #10b981;
    }

    .quick-link-icon.red {
        background: #ef4444;
    }

    .quick-link-icon.orange {
        background: #f59e0b;
    }

    .quick-link-icon.purple {
        background: #8b5cf6;
    }

.quick-link-info {
    flex: 1;
}

.quick-link-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.quick-link-desc {
    font-size: 12px;
    color: #64748b;
}

/* 右侧悬浮下载按钮 */
.download-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.download-btn {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

    .download-btn:hover {
        background: #e2e8f0;
    }

.download-text {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    padding-bottom:5px;
}

.qr-code-panel {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 16px;
    width: 160px;
    display: none;
}

    .qr-code-panel.show {
        display: block;
    }

.qr-code-title {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    background: #f1f5f9;
    border-radius: 6px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .quick-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .download-sidebar {
        right: 10px;
        padding: 12px;
    }

    .qr-code-panel {
        right: 60px;
        width: 140px;
        padding: 12px;
    }

    .qr-code-image {
        width: 100px;
        height: 100px;

    }
  
}

@media (max-width: 480px) {
    

    .banner {
        padding: 30px 16px;
    }

        .banner h1 {
            font-size: 20px;
        }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .download-sidebar {
        right: 5px;
        padding: 8px;
    }

    .qr-code-panel {
        right: 40px;
        width: 120px;
        padding: 8px;
    }

    .qr-code-image {
        width: 80px;
        height: 80px;
    }
    .top-section {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
        align-items: center;
        flex-direction:column ;
        justify-content: center;
    }

    #chHome {
        display:none;
    
    }
}

/**===============================*/
/* 顶部功能区 */
.top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.feature-card {
    width:330px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #2c3e50;
    }

    .feature-card p {
        font-size: 14px;
        color: #7f8c8d;
        line-height: 1.5;
    }


    /*=======================================*/
/* 背景遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 登录弹窗 */
.login-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

 

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #333;
    }

/* 登录内容区域 */
.login-content {
    display: flex;
    gap: 30px;
}

/* 左侧扫码登录区域 */
.qr-code-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

    .qr-code-section h3 {
        margin-bottom: 10px;
        color: #1877f2;
        font-size: 18px;
    }

    .qr-code-section p {
        margin-bottom: 20px;
        color: #666;
        font-size: 14px;
        text-align: center;
    }

.qr-code {
    width: 380px;
    height: 180px;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .qr-code img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* 右侧表单登录区域 */
.form-section {
    flex: 1;
    padding: 20px;
}

.form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-tab {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

    .form-tab.active {
        color: #1877f2;
        font-weight: bold;
        border-bottom: 2px solid #1877f2;
    }

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

    .form-control:focus {
        outline: none;
        border-color: #1877f2;
        box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
    }

.password-toggle {
    position: relative;
}

    .password-toggle i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #999;
    }

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .remember-me input {
        margin-right: 8px;
    }

.login-btnx {
    width: 100%;
    padding: 12px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .login-btn:hover {
        background-color: #166fe5;
    }


    /*========================用户成功登录*/
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-name {
    font-size: 16px;
    color: white;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px 0;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-info:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dropdown-item:hover {
        background-color: #f5f7fa;
    }

    .dropdown-item i {
        font-size: 16px;
        color: #666;
    }

    .dropdown-item span {
        font-size: 16px;
        color: #333;
    }

#abutoMe {
    display: none;
    height: 210px;
    width: 110px;
    margin-left: 10px;
}

