:root {
    --bg: #f4f1eb;
    --bg-alt: #e9eef3;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: #f7f4ee;
    --surface-muted: #edf1f5;
    --surface-strong: #ffffff;
    --text: #223042;
    --text-strong: #111827;
    --text-muted: #697586;
    --line: rgba(96, 112, 131, 0.18);
    --line-strong: rgba(67, 83, 103, 0.24);
    --primary: #35506b;
    --primary-deep: #24384d;
    --primary-hover: #263c52;
    --primary-soft: #e8edf3;
    --primary-border: rgba(53, 80, 107, 0.20);
    --accent: #a67c52;
    --accent-strong: #7d5a36;
    --accent-soft: #f4ebdf;
    --accent-border: rgba(166, 124, 82, 0.22);
    --success-bg: #edf6f0;
    --success-text: #2f6848;
    --warning-bg: #faf1e7;
    --warning-text: #8d5e34;
    --error-bg: #f9ece9;
    --error-text: #a14443;
    --shadow: 0 20px 48px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.06);
    --shadow-strong: 0 28px 60px rgba(17, 24, 39, 0.14);
    --header-bg: linear-gradient(135deg, #0f1720 0%, #172331 58%, #223345 100%);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(166, 124, 82, 0.10), transparent 34%),
        radial-gradient(circle at top right, rgba(53, 80, 107, 0.10), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    color: var(--text);
    line-height: 1.7;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 240px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.site-body * {
    min-width: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-decoration-color: rgba(53, 80, 107, 0.35);
}

img,
iframe {
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--text-strong);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

p {
    margin: 0 0 12px;
}

strong {
    color: var(--text-strong);
    font-weight: 600;
}

pre {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #111a24, #182433);
    color: #e8edf3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: auto;
    font-size: 0.85rem;
}

code {
    font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
    background: rgba(52, 80, 107, 0.08);
    color: var(--text-strong);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.page,
.mobile-page,
.site-footer {
    position: relative;
    z-index: 1;
}

.mobile-bottom-nav {
    position: relative;
    z-index: 30;
}

.site-header,
.mobile-topbar {
    position: relative;
    z-index: 20;
}

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.91));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(166, 124, 82, 0),
        rgba(166, 124, 82, 0.32),
        rgba(53, 80, 107, 0.18),
        rgba(166, 124, 82, 0)
    );
}

.card.soft {
    background: linear-gradient(180deg, rgba(247, 244, 238, 0.96), rgba(255, 255, 255, 0.92));
    border-color: rgba(96, 112, 131, 0.14);
}

.hero-card {
    background:
        radial-gradient(circle at top right, rgba(166, 124, 82, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 238, 0.96) 60%, rgba(232, 237, 243, 0.92));
    border-color: rgba(166, 124, 82, 0.18);
    box-shadow: var(--shadow);
}

.hero-card::before {
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(166, 124, 82, 0.08),
        rgba(166, 124, 82, 0.55),
        rgba(53, 80, 107, 0.40),
        rgba(166, 124, 82, 0.08)
    );
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.alert {
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(47, 104, 72, 0.18);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: rgba(141, 94, 52, 0.20);
}

.alert-error,
.alert-danger {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(161, 68, 67, 0.20);
}

.alert-info {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-border);
}

.hint {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.tag {
    display: inline-block;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-right: 6px;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.08);
}

.form-errors {
    border-radius: 14px;
    border: 1px solid rgba(161, 68, 67, 0.20);
    background: var(--error-bg);
    color: var(--error-text);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.form-row {
    margin-bottom: 18px;
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-strong);
    font-size: 0.94rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select {
    width: 100%;
    border: 1px solid rgba(67, 83, 103, 0.20);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"])::placeholder,
textarea::placeholder {
    color: #9aa4b2;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.14);
    background: #fff;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: var(--accent);
    box-shadow: none;
}

input[type="file"] {
    padding: 11px 12px;
    background: var(--surface-soft);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1.1em),
        calc(100% - 13px) calc(1.1em);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

ul.errorlist {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--error-text);
    font-size: 0.9rem;
}

.form-help {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.signup-password-hint {
    margin: 6px 0 0;
    line-height: 1.55;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.form-actions form,
.mobile-inline-form {
    margin: 0;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
}

.social-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(96, 112, 131, 0.04), rgba(96, 112, 131, 0.24), rgba(96, 112, 131, 0.04));
}

.social-divider-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(66, 133, 244, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 252, 0.94));
    color: #5e6978;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.social-divider-badge-google {
    border-color: rgba(66, 133, 244, 0.16);
}

.social-divider-badge-line {
    border-color: rgba(6, 199, 85, 0.18);
}

.social-provider-block + .social-provider-block {
    margin-top: 10px;
}

.social-provider-grid {
    display: grid;
    gap: 10px;
}

.social-login-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    text-align: center;
}

.social-provider-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.language-switcher-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-bottom: 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-switcher-select {
    width: auto;
    min-width: 120px;
    min-height: 38px;
    margin: 0;
    padding: 8px 36px 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
}

.language-switcher-submit {
    min-width: auto;
}

.custom-file-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-file-input input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-file-input-button {
    min-width: auto;
    margin: 0;
}

.custom-file-input-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.toolbar-top {
    justify-content: space-between;
    align-items: flex-start;
}

.toolbar-center {
    justify-content: space-between;
    align-items: center;
}

.no-margin {
    margin-bottom: 0 !important;
}

.choice-list {
    display: grid;
    gap: 12px;
}

.choice-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--surface-soft), rgba(255, 255, 255, 0.88));
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-label:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.choice-input {
    width: auto !important;
    flex-shrink: 0;
}

.choice-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.interview-config-list {
    display: grid;
    gap: 8px;
}

.interview-config-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, var(--surface-soft), rgba(255, 255, 255, 0.92));
}

.interview-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.interview-config-toggle {
    flex: 1;
    min-width: 0;
    width: auto;
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.interview-config-toggle:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.interview-config-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 0;
}

.interview-config-count-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.interview-config-count.is-hidden {
    display: none;
}

.interview-config-count-input {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    padding: 8px 10px;
    text-align: center;
}

.interview-config-summary {
    display: grid;
    gap: 10px;
}

.interview-config-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface-soft), rgba(255, 255, 255, 0.92));
}

.interview-config-status {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(35, 56, 77, 0.18);
    transition: all 0.2s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1b2e40 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(35, 56, 77, 0.20);
}

.btn:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--surface-soft));
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--accent-strong);
    border-color: var(--accent-border);
}

.btn-danger {
    background: linear-gradient(135deg, #a94c48 0%, #8f3a36 100%);
    border-color: rgba(161, 68, 67, 0.30);
    box-shadow: 0 12px 24px rgba(143, 58, 54, 0.18);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #943f3b 0%, #7d322e 100%);
}

.btn-google-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #4285f4 0deg, #34a853 120deg, #fbbc05 225deg, #ea4335 310deg, #4285f4 360deg);
    box-shadow:
        0 18px 38px rgba(66, 133, 244, 0.16),
        0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-google-circle::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.btn-google-circle:hover {
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 22px 42px rgba(66, 133, 244, 0.22),
        0 8px 20px rgba(15, 23, 42, 0.10);
    filter: saturate(1.05);
}

.btn-google-circle:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.24);
    outline-offset: 3px;
}

.btn-google-circle-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-google-circle-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.btn-line-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b900 0%, #06c755 56%, #20d264 100%);
    box-shadow:
        0 18px 38px rgba(6, 199, 85, 0.20),
        0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-line-circle::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(26, 215, 99, 0.98), rgba(4, 186, 76, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-line-circle:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 22px 42px rgba(6, 199, 85, 0.26),
        0 8px 20px rgba(15, 23, 42, 0.10);
    filter: saturate(1.05);
}

.btn-line-circle:focus-visible {
    outline: 3px solid rgba(6, 199, 85, 0.22);
    outline-offset: 3px;
}

.btn-line-circle-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-line-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 34px;
    padding: 0 8px;
    border-radius: 18px 18px 18px 7px;
    background: #fff;
    color: #00b900;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
}

.social-login-caption {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.interview-carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

.interview-carousel-card::before {
    display: none;
}

.interview-carousel-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(244, 246, 248, 0.98), rgba(236, 240, 244, 0.98));
}

.interview-carousel-slides {
    display: grid;
    width: 100%;
    height: 100%;
    justify-items: center;
    align-items: center;
}

.interview-carousel-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: scale(1.015);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.interview-carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.interview-carousel-slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    background: transparent;
}

.interview-carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.interview-carousel-indicator {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.16),
        inset 0 0 0 1px rgba(96, 112, 131, 0.18);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.interview-carousel-indicator:hover {
    transform: translateY(-1px);
}

.interview-carousel-indicator.is-active {
    width: 30px;
    background: rgba(255, 255, 255, 0.92);
}

.interview-carousel-indicator:focus-visible {
    outline: 3px solid rgba(53, 80, 107, 0.22);
    outline-offset: 2px;
}

.interview-carousel-actions {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
}

.table-scroll,
.mobile-scroll-x {
    overflow-x: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .interview-carousel-slide,
    .interview-carousel-indicator {
        transition: none;
    }
}
