:root {
    --primary-color: #1f2937;
    --primary-hover: #374151;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --background-color: #f9fafb;
    --container-background: white;
    --tab-background: #f3f4f6;
    --tab-active-background: white;
    --success-color: #10b981;
    --error-color: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 40px 20px;
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: var(--container-background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.site-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-profile {
    cursor: pointer;
}

.user-profile .icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.user-profile:hover .icon {
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--container-background);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: 80px;
    box-sizing: border-box;
}

.slogan-container {
    text-align: center;
    margin-bottom: 40px;
}

.slogan {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 8px;
    font-weight: 600;
}

.slogan-en {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.tabs {
    display: inline-flex;
    background-color: var(--tab-background);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 32px;
    border-bottom: none;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-button .icon {
    width: 18px;
    height: 18px;
}

.tab-button:hover {
    color: var(--text-primary);
}

.tab-button.active {
    background-color: var(--tab-active-background);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-button.active::after {
    content: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-section {
    position: relative;
    margin-bottom: 24px;
}

textarea {
    width: 100%;
    height: 250px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 69, 82, 0.1);
}

.info-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.info-tip .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.upload-area {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--background-color);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: white;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.upload-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 4px;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    margin-top: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-button:hover {
    background-color: var(--primary-hover);
}

.submit-button .icon {
    width: 18px;
    height: 18px;
}

.result-area {
    margin-top: 32px;
    padding: 20px;
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.result-header .icon.success {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.result-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.link-container a {
    flex: 1;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    word-break: break-all;
}

.link-container a:hover {
    text-decoration: underline;
}

.copy-button {
    padding: 6px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: var(--tab-background);
    color: var(--text-primary);
}

.copy-button .icon {
    width: 18px;
    height: 18px;
}

.copy-feedback {
    margin: 8px 0 0;
    text-align: right;
    color: #1e8a5f;
    font-size: 0.8125rem;
    font-weight: 500;
}

.error-area {
    margin-top: 32px;
    padding: 16px;
    background-color: #fff1f2;
    border: 1px solid #ffccd0;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-area::before {
    content: "⚠️";
    font-size: 1.1em;
}

.error-area p {
    margin: 0;
}
