/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #2c3e50;
    margin: 1rem 0;
}

.card p {
    color: #34495e;
    margin-bottom: 1rem;
}

/* 特色内容区域 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* 学习生活页面特定样式 */
.study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #34495e;
}

.resource-list li:last-child {
    border-bottom: none;
}

/* 校园活动页面特定样式 */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.activity-calendar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.calendar-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.calendar-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.calendar-item ul {
    list-style: none;
    padding: 0;
}

.calendar-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #34495e;
}

.calendar-item li:last-child {
    border-bottom: none;
}

/* 生活服务页面特定样式 */
.service-section {
    margin-bottom: 3rem;
}

.service-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.service-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-info ul {
    list-style: none;
    padding: 0;
}

.service-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #34495e;
}

.service-info li:last-child {
    border-bottom: none;
}

.service-guide {
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #34495e;
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* 留言板页面特定样式 */
.message-form-container {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.message-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #34495e;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    display: block;
    margin-top: 0.5rem;
}

.form-tip {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.btn-submit {
    background-color: #2ecc71;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-submit:hover {
    background-color: #27ae60;
}

.message-guidelines {
    max-width: 800px;
    margin: 0 auto;
}

.message-guidelines ul {
    list-style: none;
    padding: 0;
}

.message-guidelines li {
    padding: 0.5rem 0;
    color: #34495e;
    position: relative;
    padding-left: 1.5rem;
}

.message-guidelines li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .study-grid {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .activity-calendar {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-item {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
    }

    .contact-item:last-child {
        border-bottom: none;
    }

    .message-form-container,
    .message-guidelines {
        padding: 1rem;
    }

    .btn-submit {
        padding: 0.8rem 1rem;
    }
} 