* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #333;
    font-size: 24px;
    margin: 10px 0;
}


.model-selector select {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    transition: all 0.2s ease;
}

.model-selector select:hover {
    border-color: #007bff;
}

.model-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

h2 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    line-height: 1.5em;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px; font-family: '微软雅黑';
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.result-container {
    line-height: 2em;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.result-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* Markdown 样式 */
.result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.result-content th,
.result-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.result-content th {
    background-color: #f5f5f5;
}

.result-content tr:nth-child(even) {
    background-color: #fafafa;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    h1 {
        font-size: 20px;
        text-align: center;
    }

    .model-selector select {
        width: 100%;
    }

    textarea {
        min-height: 100px;
    }

    button {
        width: 100%;
        padding: 10px;
    }
}

/* 模型选择器样式 */
.model-selector {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    display: none;
    border-radius: 8px;
    border: 1px solid #eee;
}

.model-selector > label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
}

.model-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.model-option {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.model-option input[type="radio"] {
    margin-top: 4px;
    margin-right: 10px;
}

.model-option .model-name {
    font-weight: bold;
    margin-right: 10px;
}

.model-option .model-desc {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .model-option {
        min-width: 100%;
    }
    
    .model-options {
        gap: 10px;
    }
}

/* 禁用状态的按钮样式 */
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.example-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding: 8px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.copy-tip {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    display: flex;
    align-items: center;
    color: #d32f2f;
}

.tip-icon {
    margin-right: 10px;
    font-size: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .example-text {
        font-size: 13px;
        padding: 6px;
    }

    .copy-tip {
        padding: 10px;
        font-size: 13px;
    }
}

.quick-fill {
    margin: 0;
    text-align: right;
}

.fill-button {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.fill-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
}

.fill-icon {
    font-size: 16px;
}

/* 填充动画效果 */
@keyframes fillEffect {
    0% { background-color: #ffffff; }
    50% { background-color: #e3f2fd; }
    100% { background-color: #ffffff; }
}

.filled {
    animation: fillEffect 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quick-fill {
        text-align: center;
    }

    .fill-button {
        width: 100%;
    }
}

/* 数据规划容器样式 */
.data-plan-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.data-plan-actions {
    margin-bottom: 20px;
    text-align: right;
}

.secondary-button {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secondary-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
}

.refresh-icon {
    font-size: 16px;
}

.data-plan-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: white;
}

.data-plan-table th,
.data-plan-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-plan-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.data-plan-table tr:hover {
    background-color: #f8f9fa;
}

.generate-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.generate-btn:hover {
    background-color: #218838;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .data-plan-actions {
        text-align: center;
        margin-bottom: 15px;
    }

    .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .data-plan-table {
        overflow-x: auto;
    }

    .data-plan-table table {
        min-width: 600px;
    }

    .data-plan-table th,
    .data-plan-table td {
        padding: 8px;
        font-size: 13px;
    }

    .generate-btn {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* 行业选择器样式 */
.industry-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.industry-selector label {
    display: inline-block;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    margin: 0;
}

.industry-selector select {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.industry-selector select:hover {
    border-color: #007bff;
}

.industry-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.quick-fill {
    margin: 0;
    text-align: right;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .industry-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .industry-selector label {
        margin-bottom: 5px;
    }

    .industry-selector select {
        width: 100%;
    }

    .quick-fill {
        text-align: center;
        width: 100%;
    }

    .fill-button {
        width: 100%;
    }
} 