/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

    /* 底部导航样式 - 与首页保持一致 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 70px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #009c75;
        text-decoration: none;
        padding: 8px 0;
        flex: 1;
    }
    
    .nav-icon {
        width: 12px;
        height: 12px;
        margin-bottom: 2.5px;
        object-fit: contain;
    }
    
    .nav-text {
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .badge {
        position: absolute;
        top: -5px;
        right: 25%;
        background: #ff6b6b;
        color: white;
        border-radius: 10px;
        padding: 2px 6px;
        font-size: 0.65rem;
        min-width: 18px;
        text-align: center;
        font-weight: bold;
    }
    
    /* 活动状态 */
    .nav-item.active {
        color: #009c75;
        font-weight: bold;
    }
    
    .nav-item.active .nav-icon {
        filter: brightness(0.8);
    }

/* 工业风字体 */
@font-face {
    font-family: 'Industry';
    src: url('../fonts/Industry-Bold.ttf') format('truetype');
    font-weight: bold;
}

/* 新增底部导航样式 - 与index.html保持一致 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* 调整导航图标大小 - 与index.html一致 */
.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* 响应式调整 - 与index.html一致 */
@media (max-width: 480px) {
    .nav-icon {
        width: 22px;
        height: 22px;
    }
}

/* 主色调 */
:root {
    --primary-color: #009c75; /* 翡翠绿 */
    --secondary-color: #fee9c5; /* 落雁色 */
    --accent-color: #ff6b6b; /* 强调色(红点) */
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 顶部标题栏 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header h1 {
    font-family: 'Industry', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* 主内容区域 */
.main-content {
    margin: 80px 15px 80px;
    padding: 0 10px;
}

/* 功能模块网格 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.function-card {
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* 图标尺寸统一缩小50% */
.function-icon {
    width: 25px;
    height: 25px;
    margin-bottom: 7.5px;
    object-fit: contain;
}

.function-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 100;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 0;
    flex: 1;
}

.nav-icon {
    width: 12px;
    height: 12px;
    margin-bottom: 2.5px;
    object-fit: contain;
}

.nav-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: -5px;
    right: 25%;
    background: var(--accent-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.65rem;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .main-content {
        margin: 80px auto;
        max-width: 800px;
    }
    
    .function-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .function-card {
        padding: 25px 20px;
    }
    
    .function-icon {
        width: 30px;
        height: 30px;
    }
    
    .function-title {
        font-size: 1.1rem;
    }
    
    .nav-text {
        font-size: 0.85rem;
    }
}

/* 工业风细节 */
.function-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.header {
    background: linear-gradient(to right, #007d63 0%, #00ac85 100%);
}

/* 活动状态 */
.nav-item.active {
    color: var(--primary-color);
    font-weight: bold;
}

.nav-item.active .nav-icon {
    filter: brightness(0.8);
}

/* 通用表单样式 */
.form-input {
    width: 100%;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #40a9ff;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.submit-btn {
    width: 100%;
    height: 40px;
    background: #1890ff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #40a9ff;
}

/* 登录页布局 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 兼容性修复 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .function-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr;
    }
}