/* 导航栏 */
.navbar {
    position: fixed; /* 固定位置 */
    top: 0;
    width: 100%;
    overflow: hidden;
    background-color: #333;
    z-index: 1000; /* 确保在其他元素之上 */
}

.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.navbar a.active {
    background-color: #4CAF50;
    color: white;
}

/* 页面内容区域 */
.content {
    padding: 16px;
    margin-top: 60px; /* 假设导航栏高度为60px */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
}

h1 {
    margin: 20px 0;
    text-align: center;
}

.container {
    display: flex;
    max-width: 1200px; /* 设置最大宽度 */
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto; /* 居中对齐 */
}

.left-column,
.middle-column,
.right-column {
    padding: 20px;
}

.left-column {
    flex: 2; /* 左侧栏占据更多空间 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.left-column label {
    margin-bottom: 10px;
    display: block;
}

.left-column textarea {
    width: 100%;
    height: 440px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    overflow-y: auto;
}

.left-column .char-count {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.middle-column {
    flex: 1; /* 中间栏较窄 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-column button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.middle-column button:hover {
    background-color: #0056b3;
}

.right-column {
    flex: 2; /* 右侧栏与左侧相同大小 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-column img {
    max-width: 100%;
    max-height: 440px;
}

.right-column p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: auto;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .left-column,
    .middle-column,
    .right-column {
        flex: 1 1 100%; /* 每个栏占据整个宽度 */
    }
}

/* 页脚基础样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #999;
    text-decoration: none;
}

.footer-content a:hover {
    color: white;
}
