* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mt20 { margin-top: 20px; }

/* 表单 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-item {
    margin-bottom: 15px;
}

.form-item label {
    margin-right: 10px;
    font-weight: bold;
    color: #555;
}

input, select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.module-check {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.module-check label {
    font-weight: normal;
    cursor: pointer;
}

/* 按钮 */
.btn-primary {
    background: #764ba2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #667eea;
}

.btn-danger {
    background: #ff4757;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* 表格 */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th {
    background: #f8f9fa;
    font-weight: bold;
}

/* AI页面样式 */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.tab.active, .tab:hover {
    background: white;
    color: #764ba2;
    font-weight: bold;
}

.panel { display: none; }
.panel.active { display: block; }

textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    resize: none;
    margin-bottom: 15px;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 80px;
    white-space: pre-wrap;
    line-height: 1.6;
}
.input-group {
    margin-bottom: 12px;
}
.input-group label {
    font-weight: 500;
    color: #333;
}
.input-group textarea, .input-group select {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}