* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: #ffffff;
    color: #2c5f7a;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #b8d4e8;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a90a4;
}

.privacy-notice {
    font-size: 0.9em;
    color: #6b9bb8;
    margin: 0;
    font-style: italic;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.tool-nav {
    background: #e8f4f8;
    padding: 20px 40px;
    border-bottom: 1px solid #b8d4e8;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 10px 20px;
    border: 1px solid #a8c5d6;
    background: white;
    color: #5a9bb8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: #d4e8f2;
    border-color: #7db3d3;
    color: #4a90a4;
}

.tool-btn.active {
    background: #b8d4e8;
    color: #2c5f7a;
    border-color: #7db3d3;
}

main {
    padding: 40px;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-header {
    margin-bottom: 30px;
}

.tool-header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #4a90a4;
}

.tool-description {
    color: #6b9bb8;
    font-size: 0.95em;
}

.tool-form {
    background: #f0f7fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #d4e8f2;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a90a4;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #b8d4e8;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7db3d3;
    box-shadow: 0 0 0 3px rgba(125, 179, 211, 0.1);
}

/* Placeholder 样式 - 让示例文本更淡 */
.form-group input::placeholder {
    color: #b8d4e8;
    opacity: 0.6;
    font-style: italic;
}

.form-group input::-webkit-input-placeholder {
    color: #b8d4e8;
    opacity: 0.6;
    font-style: italic;
}

.form-group input::-moz-placeholder {
    color: #b8d4e8;
    opacity: 0.6;
    font-style: italic;
}

.form-group input:-ms-input-placeholder {
    color: #b8d4e8;
    opacity: 0.6;
    font-style: italic;
}

.form-group select option {
    padding: 8px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6b9bb8;
    font-size: 0.85em;
}

.submit-btn {
    background: #7db3d3;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #5a9bb8;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-container {
    background: #f0f7fa;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #d4e8f2;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h3 {
    font-size: 1.5em;
    color: #4a90a4;
}

.copy-btn {
    background: #7db3d3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #5a9bb8;
}

.result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #b8d4e8;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b9bb8;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #4a90a4;
}

.tab-btn.active {
    color: #4a90a4;
    border-bottom-color: #7db3d3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.result-info {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6b9bb8;
    min-width: 120px;
}

.info-value {
    color: #333;
    word-break: break-all;
}

.result-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.result-section h4 {
    margin-bottom: 15px;
    color: #4a90a4;
    font-size: 1.1em;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table thead {
    background: #e8f4f8;
}

.result-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #4a90a4;
    border-bottom: 2px solid #b8d4e8;
}

.result-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    word-break: break-all;
}

.result-table tbody tr:hover {
    background: #e8f4f8;
}

.raw-output {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #c33;
}

footer {
    background: #e8f4f8;
    padding: 20px;
    text-align: center;
    color: #6b9bb8;
    font-size: 0.9em;
    border-top: 1px solid #b8d4e8;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7db3d3;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2em;
    }

    main {
        padding: 20px;
    }

    .tool-nav {
        padding: 15px 20px;
    }
}

