/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* 顶部提示横幅样式 */
.notification-banner {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #ffeeba;
}

.notification-banner p {
    margin: 0;
    font-size: 16px;
}


/* 页面容器 */
header, main, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 0.5em;
}

/* 社群区域 */
.community-section {
    background-color: #eaf2f8;
    border: 1px solid #d4e6f1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.community-item h3 {
    margin-bottom: 15px;
    font-weight: normal;
}

.community-item h3 .group-status {
    color: #e74c3c; /* 红色字体 */
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
}

.telegram-item {
    margin-top: 25px; /* 与上方的QQ群拉开距离 */
    padding-top: 25px;
    border-top: 1px solid #d4e6f1; /* 添加一条分割线 */
}


/* 提交区域 */
.submit-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.share-tip {
    font-size: 14px;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 0 15px;
}

#submit-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#code-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    text-align: center;
    text-transform: uppercase;
}

/* 按钮通用样式 */
button, .action-btn {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

button:hover, .action-btn:hover {
    background-color: #2980b9;
}

.copy-btn {
    background-color: #95a5a6;
    font-size: 12px;
    padding: 5px 8px;
    margin-left: 5px;
}

.copy-btn:hover {
    background-color: #7f8c8d;
}

/* 邀请码列表 */
.code-list-section {
    margin-top: 20px;
}

#code-list .code-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.code-info {
    flex-grow: 1;
}

.code-text {
    font-size: 20px;
    font-weight: bold;
    color: #e67e22;
    letter-spacing: 2px;
    margin: 0;
}

.code-status {
    font-size: 14px;
    color: #27ae60;
}

.code-actions button {
    margin-left: 10px;
    background-color: #2ecc71;
}

.code-actions .report-btn {
    background-color: #e74c3c;
}

.code-actions button:hover {
    opacity: 0.8;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

.code-item-placeholder {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* 教程链接样式 */
.tutorial-link {
    margin-top: 15px;
    font-size: 14px;
}
.tutorial-link a {
    color: #2980b9;
    text-decoration: none;
}
.tutorial-link a:hover {
    text-decoration: underline;
}

/* 教程文本区域样式 */
.tutorial-text-area {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap; /* 关键样式：让长句子能自动换行 */
    word-wrap: break-word;
}
