/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 通用容器样式 */
.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 列表样式 */
ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

li:hover {
    background-color: #f9f9f9;
}

li a {
    display: block;
    color: #3498db;
    text-decoration: none;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

/* 主要按钮 */
.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 次要按钮 */
.btn-secondary {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.btn-secondary:hover {
    background-color: #bdc3c7;
    color: #34495e;
}

/* 强调按钮 */
.btn-accent {
    background-color: #2ecc71;
    color: white;
}

.btn-accent:hover {
    background-color: #27ae60;
}

/* 首页操作区 */
.home-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* 表单样式 */
fieldset {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
}

legend {
    padding: 0 15px;
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: bold;
}

/* 单选按钮样式 */
input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

label {
    cursor: pointer;
    padding: 8px 0;
    display: inline-block;
}

/* 提交按钮 */
input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

/* 错误信息 */
.error-message {
    color: #e74c3c;
    font-weight: bold;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

/* 投票结果样式 */
.vote-result {
    font-size: 1.1em;
    padding: 12px 0;
}

/* 底部操作区 */
.action-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* 管理后台链接 */
.admin-link {
    text-align: center;
    margin-top: 40px;
}