/* 修改后的 rus-style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rus-blue: #0039A6;
    --rus-red: #D52B1E;
    --rus-gold: #FFD700;
    --rus-light: #F4F5F7;
    --rus-dark: #1A1A1A;
}

/* 新增俄罗斯景观背景 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.8)),
        url('https://ru.grandibs.com/assets/img/ru.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.form-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 3rem;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,57,166,0.1);
    position: relative;
    border-top: 4px solid var(--rus-blue);
    backdrop-filter: blur(5px);
}

/* 移除滑动效果 */
.form-section {
    background: rgba(255,255,255,0.96);
    border-left: 4px solid var(--rus-red);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    /* 移除transition属性 */
}

.input-group-text-custom {
    background: var(--rus-blue) !important;
    color: white !important;
    min-width: 180px;
    border: none;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    position: relative;
}

/* 保留输入组箭头 */
.input-group-text-custom::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 14px solid var(--rus-blue);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.upload-card {
    border: 2px dashed var(--rus-blue);
    background: rgba(0,57,166,0.03);
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rus-blue) 0%, var(--rus-red) 100%);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    /* 移除hover位移 */
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0,57,166,0.2);
}

/* 修改移动端样式部分 */
/* 移动端全屏优化 */
@media (max-width: 992px) {
    body {
        background: 
            linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.98)),
            url('https://ru.grandibs.com/assets/img/ru.jpg');
        background-position: 65% 40%;
        padding: 0;
        margin: 0;
    }

    .form-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 1.5rem 15px;
        min-height: 100vh;
        box-shadow: none;
        border: none;
        backdrop-filter: blur(2px);
    }

    .form-section {
        margin: 1rem 0;
        padding: 1.2rem;
        border-left-width: 3px;
    }

    /* 输入组优化 */
    .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .input-group-text-custom {
        width: 100%;
        border-radius: 8px !important;
        font-size: 0.95rem;
        padding: 0.8rem 1rem !important;
        min-width: auto;
    }

    .form-control {
        width: 100% !important;
        min-height: 48px;
        padding: 0.8rem 1rem !important;
        font-size: 1rem;
    }

    /* 公司名称专项优化 */
    div[name="company-name-group"] .input-group {
        margin-bottom: 0.8rem;
    }

    div[name="company-name-group"] .input-group-text-custom {
        background: var(--rus-red) !important;
        font-weight: 500;
    }

    /* 上传区域优化 */
    .upload-card {
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .upload-area {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f8f9fa;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: #4361ee;
    background-color: rgba(67, 97, 238, 0.05);
}

.upload-icon {
    font-size: 2rem;
    color: #adb5bd;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.upload-area:hover .upload-icon {
    color: #4361ee;
}

.upload-text {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 5px;
}

.upload-subtext {
    color: #6c757d;
    font-size: 0.85rem;
}

.file-list-container {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.file-list-header {
    background-color: #f1f3f5;
    padding: 12px 15px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.file-list {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    background-color: white;
    transition: background-color 0.2s;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background-color: #edf2ff;
}

.file-icon {
    font-size: 1.6rem;
    margin-right: 12px;
    width: 32px;
    text-align: center;
    color: #6c757d;
}

.file-icon.image {
    color: #3498db;
}

.file-icon.pdf {
    color: #e74c3c;
}

.file-info {
    flex-grow: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.file-actions-btn {
    display: flex;
    gap: 6px;
}

.btn-file {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    background: none;
    border: none;
}

.btn-preview {
    color: #4361ee;
}

.btn-preview:hover {
    background-color: #4361ee;
    color: white;
}

.btn-delete {
    color: #e74c3c;
}

.btn-delete:hover {
    background-color: #e74c3c;
    color: white;
}

.file-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.file-preview.active {
    opacity: 1;
    visibility: visible;
}

.preview-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow: auto;
    width: 500px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.btn-close-preview {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.preview-content img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.no-files {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.no-files i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ced4da;
}

.file-count-badge {
    background-color: #4361ee;
    padding: 3px 8px;
    font-size: 0.85rem;
}

    /* 按钮优化 */
    .btn-primary {
        margin-top: 1.5rem;
        padding: 1rem !important;
        font-size: 1.05rem;
    }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 375px) {
    .form-container {
        padding: 1rem 12px;
    }

    .form-section {
        padding: 1rem;
    }

    .input-group-text-custom {
        font-size: 0.9rem !important;
        padding: 0.7rem 0.9rem !important;
    }
}

/* 横屏模式优化 */
@media (max-width: 992px) and (orientation: landscape) {
    .form-container {
        padding: 1rem 10px;
    }

    .form-section {
        margin: 0.8rem 0;
        padding: 1rem;
    }

    .upload-card {
        min-height: 120px;
    }
}


/* 修改手机输入组布局 */
@media (max-width: 992px) {
    /* 国内手机输入组 */
    .input-group[data-type="phone-cn"] {
        flex-direction: row !important;
        align-items: center;
    }
    
    /* 俄罗斯手机输入组 */
    .input-group[data-type="phone-ru"] {
        flex-direction: row !important;
        align-items: center;
    }

    /* 区号样式 */
    .input-group-text-custom.phone-code {
        width: 80px;
        min-width: 80px;
        border-radius: 8px 0 0 8px !important;
        padding: 0.8rem 1rem;
        justify-content: center;
    }

    /* 输入框样式 */
    input[name="phone_cn"],
    input[name="phone_ru"] {
        border-radius: 0 8px 8px 0 !important;
        flex-grow: 1;
        min-width: calc(100% - 80px);
    }
}

/* 超小屏幕调整 */
@media (max-width: 375px) {
    .input-group-text-custom.phone-code {
        width: 70px;
        min-width: 70px;
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem !important;
    }
}