/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #409eff;
}

.nav a {
    margin-left: 30px;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #409eff;
}

/* 主体内容 */
.main {
    min-height: calc(100vh - 200px);
}

/* 区块样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* Banner */
.banner-slide .slide {
    padding: 150px 20px;
    text-align: center;
    color: white;
}

.banner-slide .slide h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-slide .slide p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

.card-body {
    padding: 30px;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #409eff;
    color: white;
}

.btn-primary:hover {
    background: #66b1ff;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* 联系信息 */
.contact-item {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.contact-item h4 {
    font-size: 18px;
    margin: 15px 0 10px;
    color: #333;
}

.contact-item p {
    color: #666;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

/* 后台样式 */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #304156;
    color: white;
    padding: 20px 0;
}

.sidebar h2 {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 15px 20px;
    color: #bfcbd9;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #263445;
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
    background: #f0f2f5;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #fafafa;
    font-weight: bold;
}

/* 表单样式 */
form {
    max-width: 600px;
    margin: 20px 0;
}

form div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    padding: 10px 20px;
    background: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #66b1ff;
}

/* 警告框 */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.alert-success {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.alert-error {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}
