/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Arial", sans-serif;
}

/* 页面主体样式 */
body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 15px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
}

/* 内容区域样式 */
.content {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    min-height: calc(100vh - 180px);
}

/* 工具分组样式 */
.tool-group {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.tool-group-title {
    background-color: #3498db;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 500;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
}

.tool-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.tool-item:hover {
    background-color: #f8f9fa;
}

.tool-name {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.tool-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tool-btn:hover {
    background-color: #2980b9;
}

/* 表单模板通用样式 */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-btn:hover {
    background-color: #2980b9;
}

/* 结果展示样式 */
.result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.result-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.result-content {
    font-size: 14px;
    color: #34495e;
    white-space: pre-wrap;
    line-height: 1.8;
}

/* 列表展示样式 */
.table-container {
    margin-top: 30px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background-color: #3498db;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #34495e;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* 文件上传样式 */
.file-input {
    width: 100%;
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    cursor: pointer;
}

.file-input:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

/* 底部样式 */
.footer {
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .tool-list {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }
}