@charset "utf-8";
/* CSS Document */
    :root {
        --primary: #2563eb;
        --primary-dark: #1e40af;
        --accent: #f59e0b;
        --error: #ef4444;
        --gray-light: #f8fafc;
        --gray-border: #e2e8f0;
        --text-dark: #1e293b;
        --text-muted: #64748b;
    }
    body { 
        background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); 
        font-family: 'Apple System', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        color: var(--text-dark);
        min-height: 100vh;
    }
    .container-wrap { max-width: 1080px; margin: 0 auto; padding: 1rem; }
    @media (min-width: 768px) { .container-wrap { padding: 2.5rem 1rem; } }
    
    .card-custom {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
        border: 1px solid rgba(255,255,255,0.8);
        overflow: hidden;
    }
    .card-header-custom {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        padding: 1.5rem 0.5rem 1.5rem;
        text-align: center;
    }
    .card-header-custom h3 { font-weight: 600; margin: 0; font-size: 1.4rem; }
    .card-header-custom p { margin: 0.5rem 0 0; opacity: 0.9; font-size: 0.9rem; }

    /* ====== 会议时间地点信息 ====== */
    .event-info {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.4rem 0;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        font-size: 0.85rem;
        opacity: 0.95;
        line-height: 1.6;
    }
    .event-info-item {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        white-space: nowrap;
        padding: 0 0.6rem;
    }
    .event-info-item i {
        font-size: 0.9rem;
        opacity: 0.85;
    }
    .event-info-divider {
        width: 1px;
        height: 0.8em;
        background: rgba(255,255,255,0.35);
        flex-shrink: 0;
    }
    @media (max-width: 480px) {
        .event-info {
            flex-direction: column;
            gap: 0.25rem;
        }
        .event-info-divider {
            width: 2rem;
            height: 1px;
        }
        .event-info-item {
            padding: 0;
            white-space: normal;
            text-align: center;
        }
    }

    .card-body-custom { padding:1.5rem 0.5rem 1.5rem; }
    @media (min-width: 768px) { .card-body-custom { padding: 2.5rem 2rem; } }

    .form-group-custom { margin-bottom: 1.25rem; }
    
    .input-group-custom { position: relative; display: flex; align-items: stretch; width: 100%; flex-wrap: nowrap; }
    .input-icon-wrap {
        display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem;
        background-color: var(--gray-light); border: 1px solid var(--gray-border);
        border-right: 0; border-radius: 6px 0 0 6px; color: var(--text-muted); font-size: 1.1rem;
        white-space: nowrap; flex-shrink: 0;
    }
    .input-icon-wrap .label-text {
        font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
    }
    .input-icon-wrap .label-required::after { content: " *"; color: var(--error); }
    
    .form-control-custom {
        display: block; width: 100%; padding: 0.65rem 0.75rem; font-size: 1rem;
        color: var(--text-dark); background-color: #fff; background-clip: padding-box;
        border: 1px solid var(--gray-border); border-radius: 6px;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        flex: 1 1 auto; min-width: 0;
    }
    .input-group-custom .form-control-custom { border-radius: 0 6px 6px 0; }
    .form-control-custom:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); outline: none; }
    
    .btn-code {
        position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
        height: calc(100% - 10px); background: rgba(37, 99, 235, 0.1); color: var(--primary);
        border: none; border-radius: 6px; padding: 0 0.75rem; font-size: 0.85rem; font-weight: 600;
        cursor: pointer; transition: all 0.2s; white-space: nowrap; z-index: 10;
    }
    .btn-code:hover { background: rgba(37, 99, 235, 0.2); }
    .btn-code:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
    
    /* PC端 */
    @media (min-width: 768px) {
        .input-code-wrap .form-control-custom { padding-right: 120px; }
    }
    /* 移动端修复：标签+输入框同行，按钮独占下一行 */
    @media (max-width: 767.98px) {
        .input-group-custom.input-code-wrap {
            flex-wrap: wrap;
            row-gap: 0.5rem;
        }
        .input-code-wrap .input-icon-wrap {
            flex: 0 0 auto;
            width: auto;
            min-width: 5.5rem; 
            max-width: none;
            border-radius: 6px 0 0 6px;
        }
        .input-code-wrap .form-control-custom {
            flex: 1 1 0%;
            min-width: 0;
            width: auto;
            border-radius: 0 6px 6px 0 !important;
            padding-right: 0.75rem !important;
        }
        .input-code-wrap .btn-code {
            position: static !important;
            transform: none !important;
            right: auto !important;
            top: auto !important;
            flex: 0 0 100%;
            height: 44px;
            margin: 0;
            border-radius: 6px;
            font-size: 0.95rem;
        }
    }

    .select-arrow { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 2.5rem; }

    .btn-submit {
        width: 100%; padding: 0.85rem; font-size: 1.05rem; font-weight: 600;
        color: #fff; background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
        border: none; border-radius: 6px; cursor: pointer; transition: transform 0.1s;
        box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
    }
    .btn-submit:hover { filter: brightness(1.05); }
    .btn-submit:active { transform: scale(0.98); }
	.btn-submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none;
    }

    .checkbox-wrap {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding-left: 1.5rem;
    }
    .checkbox-wrap input { margin-top: 0.25rem; flex-shrink: 0; }
    .checkbox-wrap label {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 0;
        line-height: 1.5;
        word-break: break-word;
    }
    
    .msg-tips { 
        font-size: 0.85rem; 
        color: var(--text-muted); 
        margin-top: 0.5rem;
        height: auto;
        min-height: 0;
        line-height: 1.0;
        transition: all 0.2s ease;
    }
    .msg-tips:empty {
        display: none;
    }
    .msg-tips.success { color: #10b981; }
    
    .form-row-custom { display: flex; flex-wrap: wrap; margin-right: -8px; margin-left: -8px; }
    .form-col-custom { width: 100%; padding-right: 8px; padding-left: 8px; }
    @media (min-width: 768px) { .form-col-custom { width: 50%; } }

    /* ================= 表单校验变红逻辑样式 ================= */
    .form-control-custom.is-invalid, .custom-select.is-invalid {
        border-color: var(--error) !important;
    }
    .input-group-custom .form-control-custom.is-invalid {
        border-color: var(--error) !important;
    }
    .input-group-custom.has-invalid .input-icon-wrap {
        border-color: var(--error);
        background-color: #fef2f2;
        color: var(--error);
    }
    .invalid-feedback-custom {
        display: none;
        width: 100%;
        margin-top: 0.35rem;
        font-size: 0.8rem;
        color: var(--error);
        align-items: center;
        gap: 4px;
    }
    .invalid-feedback-custom.show { display: flex; }
/* ====== Language Switcher - 活力橙 (Fixed Top-Right) ====== */
.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(249,115,22,0.3);
}
.lang-btn {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid #f97316;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #f97316;
}
.lang-btn:first-child { border-radius: 20px 0 0 20px; }
.lang-btn:last-child  { border-radius: 0 20px 20px 0; border-left: 0; }

/* 激活态：橙色实底白字 */
.lang-btn.active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}
/* 非激活 hover */
.lang-btn:not(.active):hover {
    background: #fff7ed;
    color: #ea580c;
}

@media (max-width: 480px) {
    .lang-switcher { top: 0.5rem; right: 0.5rem; }
    .lang-btn { padding: 0.25rem 0.7rem; font-size: 0.75rem; }
}
