/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background-color: #0d2b5c;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #4facfe;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(rgba(13, 43, 92, 0.8), rgba(13, 43, 92, 0.8)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    min-height: 44px; /* 移动端触摸目标 */
}

.btn-primary:hover {
    background-color: #c0392b;
}

/* 通用 Section */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #0d2b5c;
    margin-bottom: 10px;
}

/* 核验工具 */
.tools-section {
    background: white;
    border-radius: 10px;
    margin-top: -50px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input, .search-box select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    min-height: 44px; /* 移动端触摸目标 */
}

.search-box input {
    flex: 1;
    max-width: 500px;
}

.search-box button {
    padding: 12px 30px;
    background-color: #0d2b5c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-height: 44px; /* 移动端触摸目标 */
}

.result-area {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}

.risk-high { background-color: #ffebee; color: #c62828; }
.risk-safe { background-color: #e8f5e9; color: #2e7d32; }

/* 案例展示区 */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    border: 1px solid #0d2b5c;
    background: transparent;
    color: #0d2b5c;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px; /* 移动端触摸目标 */
}

.filter-btn.active, .filter-btn:hover {
    background-color: #0d2b5c;
    color: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
}
.tag.telecom { background-color: #3498db; }
.tag.network { background-color: #9b59b6; }
.tag.finance { background-color: #2ecc71; }
.tag.impersonate { background-color: #e67e22; }

.case-body {
    padding: 20px;
}

.case-body h3 {
    margin-bottom: 10px;
    color: #333;
}

.case-footer {
    background-color: #fff3cd;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #856404;
    border-top: 1px solid #ffeeba;
}

/* 防范指南 */
.guide-section {
    background-color: #0d2b5c;
    color: white;
    text-align: center;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.guide-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4facfe;
}

/* 页脚 */
footer {
    background-color: #0a2146;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0d2b5c;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 5px 5px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 5px 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px;
        margin: 0;
    }
}

