/* 表格生成工具样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
header p {
    font-size: 1.1rem;
    opacity: 0.9;
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.intro {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.intro h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.intro ol {
    margin-left: 2rem;
    margin-bottom: 2rem;
}
.intro li {
    margin-bottom: 0.5rem;
}
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.form-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-area:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}
.upload-area input[type="file"] {
    display: none;
}
.upload-area label {
    display: block;
    cursor: pointer;
}
.upload-area .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}
.upload-area .text {
    font-size: 1.1rem;
    color: #666;
}
.upload-area .hint {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}
.主播-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.主播-info h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.主播-info .info-item {
    display: flex;
    margin-bottom: 0.5rem;
}
.主播-info .info-label {
    width: 120px;
    font-weight: 500;
    color: #555;
}
.主播-info .info-value {
    flex: 1;
    color: #333;
}
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}
button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
#generateBtn {
    background: #667eea;
    color: white;
}
#generateBtn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
#resetBtn {
    background: #f0f0f0;
    color: #333;
}
#resetBtn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}
.result {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.result h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table th,
table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #667eea;
}
table tr:hover {
    background-color: #f8f9fa;
}
.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}
.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}
.download-btn.secondary {
    background: #17a2b8;
}
.download-btn.secondary:hover {
    background: #138496;
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    main {
        padding: 0 1rem;
    }
    .form-section,
    .intro,
    .result {
        padding: 1.5rem;
    }
    .form-actions,
    .download-buttons {
        flex-direction: column;
    }
    button,
    .download-btn {
        width: 100%;
    }
}
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}