/* index.html 特化样式 */

body {
    background-color: #212121; /* 强制背景一致 */
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background-color: #383838;
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: #ffffff;
    margin-top: 0;
}

.card h1 {
    color: #00e676;
    margin-top: 0;
}

.card p {
    color: #e4e4e7;
    line-height: 1.6;
}

.card a {
    color: #00e676;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.card-image {
    display: block;
    margin: 12px auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background-color: #303030;
}

/* footer */
.footer {
    text-align: center;
    margin: 60px 0 20px 0;
    font-size: 14px;
    color: #888;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 顶栏 Topbar */
.topbar {
    background-color: #1c1c1c;
    height: 52px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    box-sizing: border-box;
    position: fixed; /* 可保持顶部悬浮，也可改为fixed */
    top: 0;
    z-index: 1000;
}

/* 左侧标题 */
.topbar-title {
    color: #e4e4e7;
    font-size: 20px;
    font-weight: bold;
}

/* 右侧导航栏 */
.topbar-nav a {
    color: #e4e4e7;
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: #00e676;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #212121;
    margin: 0;
    padding: 0;
    color: #e4e4e7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* 使容器垂直居中 */
}

.container {
    width: 100%;
    max-width: 700px;
    background-color: #383838;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.form-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 24px;
}

.text-form textarea.content-area {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #5e5f6b;
    background-color: #303030;
    color: #f1f1f1;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.signature-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #5e5f6b;
    background-color: #303030;
    color: #f1f1f1;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 20px;
}

.button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    padding: 10px 24px;
    background-color: #565869;
    color: #ffffff;
    border: none;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #6b6d7e;
}

.success-message {
    text-align: center;
    color: #00e676;
    font-weight: bold;
    margin-top: 20px;
}

/* 模态遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 模态框主体 */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    transform: translate(-50%, -50%);
    background-color: #383838;
    color: #e4e4e7;
    border: 1px solid #5e5f6b;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* 标题栏 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e2e2e;
    padding: 10px;
    border-bottom: 1px solid #5e5f6b;
    font-weight: bold;
}

/* 关闭按钮 */
.modal-close {
    background: none;
    border: none;
    color: #e4e4e7;
    font-size: 18px;
    cursor: pointer;
}

/* 内容区域 */
.modal-body {
    padding: 20px;
    text-align: center;
    font-size: 16px;
}

/* 保持原按钮风格 */
.modal button:hover {
    background-color: #6b6d7e;
}
