﻿/* 
幕墙规范查询平台 - 主样式表
微信风格 + 百度风格首页
完全独立于 Bootstrap
*/

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #07c160;
    text-decoration: none;
}
a:hover {
    color: #06ad56;
}

/* ========== 微信风格导航栏 ========== */
.wechat-nav {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    height: 56px;
    max-width: 280px;
    margin: 0;
    padding: 0 12px;
}

.nav-tab {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #999;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    flex: none;
}

.nav-tab:hover {
    background: #f0f0f0;
    color: #07c160;
}

.nav-tab:active {
    background: #e0e0e0;
}
/* ========== 百度风格首页 ========== */
.main-area {
    padding: 70px 20px 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
}

.logo-icon i {
    font-size: 36px;
    color: white;
}

.site-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.site-subtitle {
    text-align: center;
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

/* 搜索框 */
.search-box-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 24px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-box:focus-within {
    border-color: #07c160;
    box-shadow: 0 2px 12px rgba(7, 193, 96, 0.15);
}

.search-icon {
    color: #999;
    font-size: 18px;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
    background: transparent;
    color: #1a1a1a;
}

.search-input::placeholder {
    color: #bbb;
}

.search-btn {
    background: #07c160;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #06ad56;
}

/* 热门标签 */
.hot-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-label {
    font-size: 13px;
    color: #999;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 14px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
}

.tag:hover {
    background: #e8f5e9;
    color: #07c160;
}

/* ========== 快捷入口卡片 ========== */
.quick-entry {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.entry-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.entry-icon i {
    font-size: 22px;
}

.entry-info {
    flex: 1;
}

.entry-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.entry-info p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.entry-arrow {
    color: #ccc;
    font-size: 14px;
}

/* ========== 统计 ========== */
.stats-bar {
    padding: 20px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .site-title {
        font-size: 22px;
    }
    .search-input {
        font-size: 14px;
    }
    .search-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .main-area {
        padding: 50px 16px 20px;
    }
}






/* ===== 按钮样式（登录/注册用） ===== */
.btn-primary-green {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-primary-green:hover {
    background: linear-gradient(135deg, #06ad56, #059c4b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7,193,96,0.3);
}
.btn-primary-green:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.form-footer-link {
    color: #07c160;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}
.form-footer-link:hover {
    text-decoration: underline;
}


/* 通用浮起效果 - 与entry-card一致 */
.hover-float {
    transition: all 0.2s;
    cursor: pointer;
}
.hover-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #07c160 !important;
}
/* 搜索按钮浮起但颜色保持白色 */
.search-btn.hover-float:hover,
a[href="/register"].hover-float:hover {
    color: white !important;
}
