/* 采访页面独立样式 - 复用主题变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主背景色：深沉的海军蓝黑 */
    --bg-primary: #121420;
    --bg-secondary: #1a1d2e;
    --bg-tertiary: #24283b;
    /* 卡片色：明显亮出的中灰色 */
    --bg-card: #50505e;
    /* 渐变色：金黄色系 */
    --gradient-primary: linear-gradient(135deg, #FFB75E 0%, #ED8F03 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #F5A623 0%, #F76B1C 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    --text-primary: #e4e7f1;
    --text-secondary: #a0a8c1;
    --text-muted: #6b7280;

    /* 强调色统一为金色系 */
    --accent-purple: #F5A623;
    --accent-pink: #f5576c;
    --accent-blue: #F5A623;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;

    /* 边框带有微弱的金色发光感 */
    --border-color: rgba(245, 166, 35, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景动画 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 87, 108, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(79, 172, 254, 0.04) 0%, transparent 50%);
    animation: bgFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-20px, 15px);
    }

    66% {
        transform: translate(15px, -10px);
    }
}

/* 容器 */
.interview-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* 头部 */
.interview-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.interview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 分区卡片 */
.section-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    /* 外发光阴影：金色晕染 */
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    /* 弱发光边框 */
    border: 1px solid rgba(245, 166, 35, 0.3);
    transition: var(--transition);
    position: relative;
}

.section-card:hover {
    border-color: rgba(245, 166, 35, 0.6);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* 每个分区不同的左边框颜色 */
.section-card[data-section="who"]::before {
    background: var(--gradient-primary);
}

.section-card[data-section="good-before"]::before {
    background: var(--gradient-accent);
}

.section-card[data-section="bad"]::before {
    background: var(--gradient-secondary);
}

.section-card[data-section="good-expect"]::before {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.section-card[data-section="action"]::before {
    background: var(--gradient-warm);
}

.section-card[data-section="turn"]::before {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 1.15rem;
    font-weight: 600;
}

.section-title .section-emoji {
    font-size: 1.3rem;
}

/* 表单项 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-left: 2px;
}

.form-label .question-num {
    color: var(--accent-purple);
    font-weight: 600;
    margin-right: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #191B28;
    /* 深色输入框 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* 极弱的边框或去掉 */
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    /* 内阴影增加深度 */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(245, 166, 35, 0.5);
    /* 聚焦时亮起金边 */
    background: #1d202f;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 性别选择 */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.radio-label:hover {
    border-color: var(--accent-gold);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"]:checked+.radio-text {
    color: var(--accent-gold);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--accent-gold);
    background: rgba(245, 166, 35, 0.1);
}

/* 尝试方法轮次 */
.attempt-round {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attempt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.attempt-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.btn-remove-attempt {
    background: none;
    border: 1px solid rgba(245, 87, 108, 0.3);
    color: var(--accent-pink);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-remove-attempt:hover {
    background: rgba(245, 87, 108, 0.15);
    border-color: var(--accent-pink);
}

.btn-add-attempt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-attempt:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(245, 166, 35, 0.05);
}

/* 改变清单 */
.changes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.change-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.change-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.change-item .form-input {
    flex: 1;
}

/* 提交按钮 */
.submit-section {
    margin-top: 2rem;
    text-align: center;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 24px;
    /* 更圆角点如参考图 */
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 2rem auto;
    /* 居中 */
    min-width: 240px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    /* 金色阴影 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-submit .btn-icon {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

/* 清空按钮 */
.btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    margin-top: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-all:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background: rgba(245, 87, 108, 0.05);
}

.btn-submit .btn-text {
    position: relative;
    z-index: 1;
}

/* 头部控制区 */
.interview-header {
    justify-content: space-between;
}

.header-controls {
    display: flex;
    align-items: center;
}

/* 字数控制 */
.word-limit-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.word-limit-section label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.word-limit-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-limit {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-limit:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple);
    color: white;
}

.word-limit-section input[type="number"] {
    width: 80px;
    height: 36px;
    text-align: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.word-limit-section input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.word-limit-unit {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 加载覆盖层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.loading-content {
    text-align: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.8;
}

/* 结果区域 */
.result-section {
    margin-top: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: resultAppear 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #10b981, #34d399);
}

@keyframes resultAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-header h3 .result-icon {
    font-size: 1.3rem;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.result-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: var(--text-primary);
    line-height: 2;
    font-size: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 600px;
    overflow-y: auto;
}

/* 结果区滚动条 */
.result-content::-webkit-scrollbar {
    width: 8px;
}

.result-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.result-content::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}

/* 错误提示 */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(245, 87, 108, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: toastIn 0.4s ease-out;
    max-width: 400px;
}

.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: toastIn 0.4s ease-out;
    max-width: 400px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .interview-container {
        padding: 1rem 1rem 3rem;
    }

    .interview-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem 1.25rem;
        gap: 1rem;
    }

    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .header-controls {
        justify-content: center;
    }

    .section-card {
        padding: 1.25rem 1.25rem;
    }

    .attempt-round {
        padding: 1rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-section {
        padding: 1.25rem;
    }

    .word-limit-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* textarea 滚动条 */
.form-textarea::-webkit-scrollbar {
    width: 6px;
}

.form-textarea::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.form-textarea::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 3px;
}