/* ============================================
   叩门 - 寻访页面样式（诗意卷轴风格）
   ============================================ */

/* 寻访页面容器 */
.visit-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* ============================================
   水墨背景装饰
   ============================================ */
.ink-bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ink-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.04;
    animation: inkFloat 20s ease-in-out infinite;
}

.ink-blob-1 {
    width: 400px;
    height: 400px;
    background: #2C1810;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.ink-blob-2 {
    width: 300px;
    height: 300px;
    background: #4A3728;
    bottom: 20%;
    left: -80px;
    animation-delay: -7s;
}

.ink-blob-3 {
    width: 250px;
    height: 250px;
    background: #1a1a2e;
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes inkFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ============================================
   顶部标题区
   ============================================ */
.visit-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.visit-title {
    font-family: var(--font-calligraphy);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.header-placeholder {
    width: 40px;
}

/* ============================================
   引导文案 - 诗意卡片样式
   ============================================ */
.visit-intro {
    padding: 32px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.intro-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #FDF8F0 100%);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    border-radius: 2px;
}

.intro-decoration {
    margin-bottom: 16px;
}

.intro-icon {
    font-size: 1.8rem;
    color: var(--accent-red);
    opacity: 0.7;
}

.intro-content {
    margin-bottom: 20px;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.intro-text-secondary {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.intro-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.divider-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    opacity: 0.5;
}

.divider-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* ============================================
   导师创建卡片 - 书卷样式
   ============================================ */
.mentor-creation-card {
    background: var(--bg-card);
    border-radius: 16px;
    margin: 0 16px 24px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.mentor-creation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #D4A574, var(--accent-red));
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
}

.card-seal {
    width: 36px;
    height: 36px;
    background: var(--accent-red);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-calligraphy);
    font-size: 1.1rem;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    transform: rotate(-3deg);
}

.card-title {
    font-family: var(--font-calligraphy);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.creation-form {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    align-items: flex-start;
}

/* 左侧：画像上传 */
.portrait-upload-section {
    flex: 0 0 140px;
}

.upload-area {
    width: 140px;
    height: 180px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FDF8F0 0%, #F5EFE0 100%);
}

.upload-area:hover {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, #FFF8F0 0%, #FDF5E8 100%);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.15);
    transform: translateY(-2px);
}

.upload-area.has-image {
    border-style: solid;
    border-color: var(--accent-red);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
}

.upload-icon {
    font-size: 2rem;
    color: var(--accent-red);
    opacity: 0.6;
}

.upload-text {
    font-family: var(--font-calligraphy);
    font-size: 1.1rem;
    color: var(--text-primary);
}

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

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 右侧：信息输入 */
.mentor-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-textarea {
    min-height: 60px;
}

/* 提交区域 */
.submit-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8B1538 100%);
    color: white;
    border: none;
    padding: 16px 56px;
    border-radius: 8px;
    font-family: var(--font-calligraphy);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 12px;
}

.audit-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* ============================================
   示例模板
   ============================================ */
.examples-section {
    padding: 0 16px 32px;
    position: relative;
    z-index: 1;
}

.examples-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.examples-seal {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #D4A574 0%, #8B4513 100%);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-calligraphy);
    font-size: 1rem;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    transform: rotate(3deg);
}

.examples-title-group {
    text-align: center;
}

.section-title {
    font-family: var(--font-calligraphy);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.example-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), #D4A574);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.example-card:hover::before {
    opacity: 1;
}

.example-portrait {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.example-portrait::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, rgba(255,255,255,0.8));
}

.example-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%);
    transition: all 0.3s ease;
}

.example-card:hover .example-portrait img {
    filter: sepia(0%);
    transform: scale(1.05);
}

.example-info {
    padding: 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(253,248,240,0.5) 0%, var(--bg-card) 100%);
}

.example-name {
    font-family: var(--font-calligraphy);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.example-quote {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   提交成功弹窗
   ============================================ */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal .modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.success-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #D4A574, var(--accent-red));
}

.success-modal.show .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #8B1538 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.success-modal h3 {
    font-family: var(--font-calligraphy);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 400;
}

.success-modal p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.modal-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8B1538 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 768px) {
    .creation-form {
        flex-direction: column;
        align-items: center;
    }

    .portrait-upload-section {
        flex: none;
    }

    .mentor-info-section {
        width: 100%;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .example-portrait {
        height: 160px;
    }

    .intro-card {
        padding: 24px 20px;
        margin: 0 16px;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .intro-text-secondary {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .visit-container {
        max-width: 1200px;
    }

    .creation-form {
        gap: 40px;
    }

    .portrait-upload-section {
        flex: 0 0 180px;
    }

    .upload-area {
        width: 180px;
        height: 220px;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-card {
    animation: fadeInUp 0.6s ease-out;
}

.mentor-creation-card {
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.examples-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* 表单验证错误提示 */
.form-error {
    border-color: #f44336 !important;
}

.error-message {
    font-size: 0.75rem;
    color: #f44336;
    margin-top: 4px;
}
