

/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: #5c6ac4;
    transition: color 0.3s ease;
}

a:hover {
    color: #3f49a0;
    text-decoration: none;
}

/* 容器样式 */
.bodydiv {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.jumbotron {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%) !important;
    color: white;
    padding: 3rem 1rem !important;
    margin-bottom: 2rem !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.jumbotron h1 {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jumbotron p {
    font-size: 1.2rem !important;
    opacity: 0.9;
}

.jumbotron .btn-primary {
    background-color: white;
    color: #ff9a9e;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.jumbotron .btn-primary:hover {
    background-color: #ff9a9e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* 提醒框样式 */
.alert {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem !important;
    transition: transform 0.3s ease;
}

.alert:hover {
    transform: translateY(-2px);
}

.alert-success {
    background-color: #e8f5e8 !important;
    color: #2e7d32 !important;
}

.alert-info {
    background-color: #e3f2fd !important;
    color: #1565c0 !important;
}

.alert-warning {
    background-color: #fff3e0 !important;
    color: #e65100 !important;
}

.alert-danger {
    background-color: #ffebee !important;
    color: #c62828 !important;
}

/* 搜索框样式 */
.input-group {
    border-radius: 50px;
    overflow: hidden;
}

/* 改进的表单元素样式 - 解决输入框未居中和功能键尺寸问题 */
.form-control {
    border: 2px solid #e0e0e0 !important;
    border-radius: 25px !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    margin: 0 auto 1rem auto; /* 添加居中样式 */
    max-width: 100%;
}

.form-control:focus {
    border-color: #ff9a9e !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 154, 158, 0.25) !important;
}

/* 提交按钮样式优化 - 修复功能键尺寸问题 */
.btn-primary {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto;
}

.btn-primary:hover {
    background-color: #764ba2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 按钮组样式 */
.input-group-btn .btn {
    border: 2px solid #e0e0e0 !important;
    border-left: none !important;
    border-radius: 0 50px 50px 0 !important;
    background-color: white;
    color: #666;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group-btn .btn:hover {
    background-color: #ff9a9e;
    color: white;
    border-color: #ff9a9e !important;
}

/* 表白卡片样式 */
.panel {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem !important;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.panel-info {
    background-color: white;
}

.panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    padding: 1.2rem !important;
    font-weight: 600;
    border-bottom: none !important;
}

.panel-heading strong {
    font-size: 1.1rem;
}

.panel-body {
    padding: 1.5rem !important;
    background-color: white;
}

.panel-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

/* 时间标签样式 */
.shijian,
.shijian2 {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    opacity: 0.8;
}

.shijian2 {
    color: #999;
}

/* 分页样式 */
.pagination {
    justify-content: center !important;
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
}

.pagination li a {
    border: none !important;
    border-radius: 50% !important;
    margin: 0 5px;
    padding: 0.8rem 1.2rem;
    color: #666;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #ff9a9e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pagination .active a {
    background-color: #ff9a9e !important;
    color: white !important;
}

/* 底部样式 */
.panel-default {
    background-color: #f8f9fa !important;
    border-radius: 16px !important;
    padding: 1.5rem;
    text-align: center;
}

/* 响应式设计 */
@media only screen and (max-width: 767px) {
    .jumbotron {
        padding: 2rem 1rem !important;
    }
    
    .jumbotron h1 {
        font-size: 2.2rem !important;
    }
    
    .panel {
        margin-bottom: 1.5rem !important;
    }
    
    .pagination li a {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .col-lg-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* 移动端优化表单样式 */
    .form-control {
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.7rem 2rem !important;
        font-size: 1rem !important;
    }
}