:root {
    --primary-color: #E60012; /* 中国红 */
    --secondary-color: #FFD700; /* 金色 */
    --bg-color: #FFF5E6; /* 米白/浅粉 */
    --text-color: #333;
    --white: #fff;
    --nav-height: 60px;
    --header-height: 50px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: var(--nav-height);
    padding-top: var(--header-height);
}

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

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(to right, #E60012, #FF4500);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-title {
    font-size: 1.2rem;
    font-weight: bold;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    padding: 5px;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.1);
}

/* 通用样式 */
.content {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #cc0010;
}

.btn-block {
    display: block;
    width: 100%;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 九宫格瀑布流 */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.member-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 10px;
    border: 1px solid #ffe6e6;
}

.member-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.member-info {
    padding: 5px;
}

.member-name {
    font-weight: bold;
    color: var(--primary-color);
}

.member-meta {
    font-size: 0.8rem;
    color: #888;
}

/* 提示框 */
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.alert-error { background-color: #fdecea; color: #dc3545; }
.alert-success { background-color: #d4edda; color: #155724; }

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}
