* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏 */
.navbar {
    background: #16213e;
    color: #fff;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu li a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background: #0f3460;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

/* 页脚 */
footer {
    background: #16213e;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content a {
    color: #e94560;
    margin: 0 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #16213e;
        padding: 20px;
    }
    .nav-menu.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}

/* 通用卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 按钮 */
.btn-primary {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #c23152;
}

/* 表单通用 */
input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* 网格 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 页面标题 */
.page-title {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    opacity: 0.9;
}