/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #0a0e17;
    background-image: 
        radial-gradient(circle at 25% 10%, rgba(68, 108, 207, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 80%, rgba(120, 60, 200, 0.15) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow-x: hidden;
}

/* 密码验证弹窗 */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.password-container {
    background: rgba(18, 26, 43, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 120, 255, 0.2);
    text-align: center;
}

.password-title {
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00bfff, #9932cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.password-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(100, 150, 255, 0.5);
    border-radius: 8px;
    background: rgba(10, 14, 23, 0.6);
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.password-btn {
    padding: 12px 32px;
    background: linear-gradient(90deg, #00bfff, #9932cc);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.error-tip {
    color: #ff4444;
    margin-top: 10px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 导航页主体 */
.nav-container {
    display: none;
    width: 90%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
}

.nav-title {
    font-size: 36px;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #00bfff, #9932cc, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    position: relative;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
}

/* 板块网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* 单个板块样式 */
.nav-card {
    background: rgba(18, 26, 43, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 120, 255, 0.2);
}

.nav-card:hover::before {
    left: 100%;
}

/* 8种不同的CSS绘制图标 */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 191, 255, 0.1);
}

/* 图标1：科技圆环 */
.icon-1 {
    position: relative;
    width: 60px;
    height: 60px;
}
.icon-1::before, .icon-1::after {
    content: '';
    position: absolute;
    border: 2px solid #00bfff;
    border-radius: 50%;
}
.icon-1::before {
    width: 60px;
    height: 60px;
    border-left-color: transparent;
    animation: rotate 4s linear infinite;
}
.icon-1::after {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    border-right-color: transparent;
    animation: rotate 3s linear reverse infinite;
}

/* 图标2：像素方块 */
.icon-2 {
    display: grid;
    grid-template-columns: repeat(3, 15px);
    grid-template-rows: repeat(3, 15px);
    gap: 2px;
}
.icon-2 div {
    background: #9932cc;
    border-radius: 2px;
    animation: blink 2s ease infinite alternate;
}
.icon-2 div:nth-child(2), .icon-2 div:nth-child(4), .icon-2 div:nth-child(6), .icon-2 div:nth-child(8) {
    animation-delay: 0.5s;
}

/* 图标3：数据折线 */
.icon-3 {
    width: 60px;
    height: 40px;
    position: relative;
}
.icon-3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff69b4 25%, transparent 25%, transparent 50%, #00bfff 50%, #00bfff 75%, transparent 75%);
    background-size: 10px 10px;
}
.icon-3 div {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ff69b4;
    top: 50%;
    transform: translateY(-50%);
    clip-path: polygon(0 50%, 25% 0, 50% 50%, 75% 100%, 100% 50%);
}

/* 图标4：任务管理 - 赚钱目标 */
.icon-4 {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 科技光环背景 */
.icon-4::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid #00bfff;
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}
/* 金色奖杯形状 */
.icon-4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 5px 5px 0 0;
    animation: pulse 2s ease infinite alternate;
}
/* 奖杯底座 */
.icon-4 div:nth-child(1) {
    position: absolute;
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, #9932cc, #ff69b4);
    border-radius: 4px;
    top: 40px;
    animation: float 2s ease infinite alternate;
}
/* 钻石符号 */
.icon-4 div:nth-child(2) {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00ff99;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 20px;
    animation: blink 2s ease infinite alternate;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
}
/* 金币装饰 */
.icon-4 div:nth-child(3) {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    top: 10px;
    right: 15px;
    animation: float 2s ease infinite alternate;
    animation-delay: 0.5s;
    box-shadow: -15px 0 0 #ff69b4, -7px -7px 0 #00bfff;
}

/* 图标5：六边形 */
.icon-5 {
    width: 50px;
    height: 50px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #00bfff, #9932cc);
    animation: pulse 3s ease infinite alternate;
}

/* 图标6：代码符号 */
.icon-6 {
    font-size: 40px;
    color: #ff69b4;
    position: relative;
}
.icon-6::before {
    content: '<>';
    animation: float 3s ease infinite alternate;
}
.icon-6::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #ff69b4;
    bottom: 0;
    left: 0;
    animation: stretch 2s ease infinite alternate;
}

/* 图标7：雷达扫描 */
.icon-7 {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    border: 2px solid #00ff99;
}
.icon-7 div {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff99);
    top: 50%;
    left: 0;
    transform-origin: left center;
    animation: scan 2s linear infinite;
}

/* 图标8：渐变方块 */
.icon-8 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00bfff, #9932cc, #ff69b4);
    background-size: 200% 200%;
    border-radius: 8px;
    animation: gradient 3s ease infinite;
}

/* 图标9：文案符号 */
.icon-9 {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-9::before {
    content: '"';
    font-size: 60px;
    color: #ff69b4;
    animation: float 3s ease infinite alternate;
}
.icon-9::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #00bfff;
    bottom: 10px;
    left: 10px;
    animation: stretch 2s ease infinite alternate;
}
.icon-9 div {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #9932cc;
    top: 20px;
    right: 10px;
    animation: float 2.5s ease infinite alternate;
    animation-delay: 0.5s;
}

/* 图标10：销售员管理 */
.icon-10 {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-10::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 40px;
    background: #00bfff;
    border-radius: 15px 15px 5px 5px;
    animation: pulse 2s ease infinite alternate;
}
.icon-10::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 20px;
    background: #9932cc;
    border-radius: 20px;
    top: 40px;
    animation: float 2s ease infinite alternate;
    animation-delay: 0.5s;
}
.icon-10 div {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    top: 15px;
    left: 26px;
    box-shadow: -12px 0 0 #fff, 12px 0 0 #fff;
    animation: blink 2s ease infinite alternate;
    animation-delay: 1s;
}

/* 动画定义 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}
@keyframes stretch {
    0% { width: 20px; }
    100% { width: 40px; }
}
@keyframes scan {
    0% { transform: rotate(-90deg); }
    100% { transform: rotate(90deg); }
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 板块文字样式 */
.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}
.card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-title {
        font-size: 28px;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .nav-card {
        padding: 20px 15px;
    }
    .icon-box {
        width: 60px;
        height: 60px;
    }
}