/**
 * Contact Form Unified Styles
 * 统一所有页面 Contact Us 区块的表单样式（以 Markets 页面为基准）
 * 覆盖：整体布局、标题样式、输入框、提交按钮、消息提示、间距
 *
 * @package Milestrong
 * @since 2.0.0
 */

/* ========================================
   统一 Contact Section 区块样式 - Markets 风格
   适用页面：Markets, Cases, Products, Dome, Home, Immersive, MS-Series, Videos-Single, Project-Overview-Single
   ======================================== */

/* 区块容器 - 九个页面统一 */
.markets-contact-section,
.cases-contact-section,
.products-contact-section,
.dome-contact-section,
.dome-contact,
.videos-contact-section,
.project-contact-section,
.milestrong-contact-section,
.imm-contact,
.contact-us-section {
    background: #0a0e1a;
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 内容容器 - 九个页面统一 */
.markets-contact-container,
.cases-contact-container,
.products-contact-container,
.dome-contact-container,
.videos-contact-section .contact-wrapper,
.project-contact-section .contact-wrapper,
.milestrong-contact-form-container,
.imm-contact__inner,
.ms-section.ms-contact .ms-container,
.contact-us-container {
    max-width: 1334px!important;
    margin: 0 auto;
}

/* 标题区 - 九个页面统一 */
.markets-contact-header,
.cases-contact-header,
.products-contact-header,
.dome-contact-header,
.videos-contact-section .contact-header,
.project-contact-section .contact-header,
.milestrong-contact-section .contact-header,
.imm-contact__header,
.ms-contact__header,
.contact-us-header {
    text-align: center !important;
    margin-bottom: 60px !important;
}

/* 标题文字 - 九个页面统一 */
.markets-contact-title,
.cases-contact-title,
.products-contact-title,
.dome-contact-title,
.videos-contact-section .contact-title,
.project-contact-section .contact-title,
.milestrong-contact-section .contact-title,
.imm-contact__title,
.ms-contact__title,
.contact-us-title {
    font-size: 48px;
    font-weight: 700;
    color: #017fff;
    margin: 0 0 20px;
    letter-spacing: 2px;
}

/* 标题中的高亮词 */
.contact-us-title .title-highlight,
.products-contact-title .title-contact,
.contact-title .contact-word-1,
.imm-contact__title-blue,
.ms-contact__title-blue {
    color: #017fff;
}

.contact-us-title .title-normal,
.products-contact-title .title-us,
.contact-title .contact-word-2 {
    color: #ffffff;
}

/* 副标题 - 九个页面统一 */
.markets-contact-subtitle,
.cases-contact-subtitle,
.products-contact-subtitle,
.dome-contact-subtitle,
.videos-contact-section .contact-subtitle,
.project-contact-section .contact-subtitle,
.milestrong-contact-section .contact-subtitle,
.imm-contact__subtitle,
.ms-contact__subtitle,
.contact-us-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   统一表单样式 - Markets 风格
   ======================================== */

/* 表单容器 - 九个页面统一 */
.markets-contact-form,
.cases-contact-form,
.products-contact-form,
.dome-contact-form,
.videos-contact-section .contact-form-wrapper,
.project-contact-section .contact-form-wrapper,
.milestrong-contact-form-container form,
.imm-contact__form,
.ms-contact__form,
.contact-form {
    max-width: 1334px !important;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

/* 表单双栏布局 - 九个页面统一 */
.markets-contact-form .form-row,
.cases-contact-form .form-grid-two-columns,
.products-contact-form .form-row,
.dome-form-grid,
.contact-form .form-grid-two-columns,
.milestrong-contact-form-container .form-grid-two-columns,
.imm-contact__grid,
.ms-contact__grid,
.form-row,
.form-grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 130px;
    margin-bottom: 60px;
}

/* 左右两列 - 九个页面统一 */
.markets-contact-form .form-column,
.cases-contact-form .form-column-left,
.cases-contact-form .form-column-right,
.products-contact-form .form-column,
.dome-form-column-left,
.dome-form-column-right,
.contact-form .form-column-left,
.contact-form .form-column-right,
.milestrong-contact-form-container .form-column-left,
.milestrong-contact-form-container .form-column-right,
.imm-contact__col,
.ms-contact__col,
.form-column,
.form-column-left,
.form-column-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 60px !important;
}

/* 右列撑满高度 */
.form-column-right,
.imm-contact__col:last-child,
.ms-contact__col:last-child {
    justify-content: space-between;
}

/* Message 字段撑满剩余空间 */
.form-field-message,
.imm-contact__textarea,
.ms-contact__textarea {
    flex: 1;
}

/* ========================================
   统一输入框样式 - Markets 风格
   覆盖所有页面：Markets, Cases, Products, Dome, Home, Immersive, MS-Series, Videos-Single, Project-Overview-Single
   ======================================== */

.markets-contact-form input[type="text"],
.markets-contact-form input[type="email"],
.markets-contact-form textarea,
.cases-contact-form input[type="text"],
.cases-contact-form input[type="email"],
.cases-contact-form textarea,
.products-contact-form input[type="text"],
.products-contact-form input[type="email"],
.products-contact-form textarea,
.dome-contact-form input[type="text"],
.dome-contact-form input[type="email"],
.dome-contact-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.form-field input,
.form-field textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.dome-form-col input[type="text"],
.dome-form-col input[type="email"],
.dome-form-col textarea,
.imm-contact__input,
.imm-contact__textarea,
.ms-contact__input,
.ms-contact__textarea,
.milestrong-contact-form-container input[type="text"],
.milestrong-contact-form-container input[type="email"],
.milestrong-contact-form-container textarea {
    font-family: inherit;
    width: 100%;
    padding: 24px 60px !important;
    background-color: #1b1a22;
    border: none;
    border-radius: 999px;
    color: #FFFFFF;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

/* Placeholder 样式 */
.markets-contact-form input[type="text"]::placeholder,
.markets-contact-form input[type="email"]::placeholder,
.markets-contact-form textarea::placeholder,
.cases-contact-form input[type="text"]::placeholder,
.cases-contact-form input[type="email"]::placeholder,
.cases-contact-form textarea::placeholder,
.products-contact-form input[type="text"]::placeholder,
.products-contact-form input[type="email"]::placeholder,
.products-contact-form textarea::placeholder,
.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}

/* Focus 状态 */
.markets-contact-form input[type="text"]:focus,
.markets-contact-form input[type="email"]:focus,
.markets-contact-form textarea:focus,
.cases-contact-form input[type="text"]:focus,
.cases-contact-form input[type="email"]:focus,
.cases-contact-form textarea:focus,
.products-contact-form input[type="text"]:focus,
.products-contact-form input[type="email"]:focus,
.products-contact-form textarea:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    background: #1f1f2a;
    border-color: rgba(1, 127, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(1, 127, 255, 0.1);
}

/* Message 文本域 */
.markets-contact-form textarea,
.cases-contact-form textarea,
.products-contact-form textarea,
.contact-form textarea,
.form-field textarea {
    border-radius: 20px;
    min-height: 140px;
    resize: vertical;
    padding: 24px 60px !important;
}

/* ========================================
   统一验证码样式 - Markets 风格
   覆盖所有页面：Markets, Cases, Products, Dome, Home, Immersive, MS-Series, Videos-Single, Project-Overview-Single
   ======================================== */

/* 验证码容器 - 所有页面统一 */
.form-field-captcha,
.form-group-captcha,
.dome-captcha-wrapper,
.imm-contact__captcha-wrap,
.ms-contact__captcha-wrap,
.milestrong-captcha-wrap,
.milestrong-contact-form-container .form-field-captcha {
    position: relative;
}

/* 验证码输入框 - 统一右侧留白 */
.form-field-captcha input,
.form-group-captcha input,
.dome-captcha-wrapper input,
.imm-contact__input--captcha,
.ms-contact__input--captcha,
.milestrong-captcha-input,
.milestrong-contact-form-container input[name="captcha"] {
    padding-right: 140px !important;
}

/* 验证码图片容器 - 统一圆角设计，上下右留白 */
/* 九个页面验证码统一样式：Markets, Cases, Products, Dome, Home, Immersive, MS-Series, Videos, Project-Overview */
.captcha-wrapper,
.captcha-image-inline,
.dome-captcha-image,
.milestrong-captcha-image,
#markets-captcha-image,
#products-captcha-image,
#domeCaptchaImage,
#captcha-image,
#imm-captcha-img,
#ms-captcha-img,
#appt-captcha-image {
    position: absolute !important;
    right: 6px !important;
    top: 9px !important;
    bottom: 6px !important;
    width: 145px !important;
    border-radius: 12px 50px 50px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    height: auto !important;
    transform: none !important;
}

/* 悬停效果 */
.captcha-wrapper:hover,
.captcha-image-inline:hover,
.dome-captcha-image:hover,
.milestrong-captcha-image:hover,
#markets-captcha-image:hover,
#products-captcha-image:hover,
#domeCaptchaImage:hover,
#captcha-image:hover,
#imm-captcha-img:hover,
#ms-captcha-img:hover,
#appt-captcha-image:hover {
    background: #f5f5f5 !important;
    opacity: 0.9 !important;
}

/* 验证码图片尺寸 - 统一 */
/* 注意：#captcha-image, #imm-captcha-img, #ms-captcha-img 本身就是 img 元素，不需要再选 img 子元素 */
.captcha-wrapper img,
.captcha-image-inline img,
.dome-captcha-image img,
.milestrong-captcha-image img {
    max-width: 90% !important;
    max-height: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    border: none !important;
}

/* ========================================
   统一 Submit 按钮 - Markets 风格
   九个页面统一：Markets, Cases, Products, Dome, Home, Immersive, MS-Series, Videos-Single, Project-Overview-Single
   ======================================== */

.submit-button,
.dome-submit-button,
#contact-submit-btn,
#imm-contact-submit,
#ms-contact-submit,
.imm-contact__submit,
.ms-contact__submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    gap: 10px;
    padding: 16px 60px;
    background: linear-gradient(90deg, #017fff 0%, #0066cc 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 127, 255, 0.3);
    min-width: 600px;
    border: 2px solid #ffffff;
}

.submit-button:hover,
.dome-submit-button:hover,
#contact-submit-btn:hover,
#imm-contact-submit:hover,
#ms-contact-submit:hover,
.imm-contact__submit:hover,
.ms-contact__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 127, 255, 0.4);
}

.submit-button:disabled,
.dome-submit-button:disabled,
#contact-submit-btn:disabled,
#imm-contact-submit:disabled,
#ms-contact-submit:disabled,
.imm-contact__submit:disabled,
.ms-contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 提交按钮箭头图标 */
.submit-arrow,
.dome-submit-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 30px;
    transform: rotate(-45deg);
}

.submit-arrow::before,
.dome-submit-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: translate(-30%, -40%) rotate(45deg);
}

.submit-arrow::after,
.dome-submit-arrow::after {
    content: '';
    position: absolute;
    top: 54%;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: #ffffff;
    transform: translateY(50%);
}

/* ========================================
   统一 form-submit 容器
   九个页面统一
   ======================================== */

.form-submit,
.dome-form-submit,
.markets-contact-form .form-submit,
.contact-form-container .form-submit,
.imm-contact__submit-wrap,
.ms-contact__submit-wrap {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* ========================================
   统一隐私声明
   九个页面统一
   ======================================== */

.form-privacy,
.imm-contact__privacy,
.ms-contact__privacy {
    text-align: center;
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.form-privacy p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   统一消息提示样式
   ======================================== */

.form-message,
.dome-form-message {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.form-message.success,
.dome-form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-message.error,
.dome-form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Markets 页面的消息容器 */
#markets-form-messages,
#cases-form-messages,
#contact-form-messages {
    max-width: 600px;
    margin: 16px auto 0;
    min-height: 24px;
}

#markets-success-message,
#markets-error-message,
#cases-success-message,
#cases-error-message,
#contact-success-message,
#contact-error-message {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

#markets-success-message,
#cases-success-message,
#contact-success-message {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

#markets-error-message,
#cases-error-message,
#contact-error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* hidden 工具类 */
.hidden {
    display: none !important;
}

/* ========================================
   响应式设计 - Pad 端（768px - 1199px）
   ======================================== */

@media (max-width: 1199px) and (min-width: 768px) {
    /* 区块间距 - 九个页面统一 */
    .markets-contact-section,
    .cases-contact-section,
    .products-contact-section,
    .dome-contact-section,
    .dome-contact,
    .videos-contact-section,
    .project-contact-section,
    .milestrong-contact-section,
    .imm-contact,
    .ms-contact,
    .contact-us-section {
        padding: 80px 0;
    }

    /* 内容容器 - 九个页面统一 */
    .markets-contact-container,
    .cases-contact-container,
    .products-contact-container,
    .dome-contact-container,
    .videos-contact-section .contact-wrapper,
    .project-contact-section .contact-wrapper,
    .milestrong-contact-form-container,
    .imm-contact__inner,
    .ms-section.ms-contact .ms-container,
    .contact-us-container {
        padding: 0 30px;
    }

    /* 标题 - 九个页面统一 */
    .markets-contact-title,
    .cases-contact-title,
    .products-contact-title,
    .dome-contact-title,
    .videos-contact-section .contact-title,
    .project-contact-section .contact-title,
    .milestrong-contact-section .contact-title,
    .imm-contact__title,
    .ms-contact__title,
    .contact-us-title {
        font-size: 40px;
    }

    /* 表单改为单栏 - 九个页面统一 */
    .markets-contact-form .form-row,
    .cases-contact-form .form-grid-two-columns,
    .products-contact-form .form-row,
    .dome-form-grid,
    .contact-form .form-grid-two-columns,
    .milestrong-contact-form-container .form-grid-two-columns,
    .imm-contact__grid,
    .ms-contact__grid,
    .form-row,
    .form-grid-two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* 提交按钮 - 九个页面统一 */
    .submit-button,
    .dome-submit-button,
    #contact-submit-btn,
    #imm-contact-submit,
    #ms-contact-submit {
        width: 100%;
        min-width: unset;
    }
}

/* ========================================
   响应式设计 - Mobile 端（<768px）
   ======================================== */

@media (max-width: 767px) {
    /* 区块间距 - 九个页面统一 */
    .markets-contact-section,
    .cases-contact-section,
    .products-contact-section,
    .dome-contact-section,
    .dome-contact,
    .videos-contact-section,
    .project-contact-section,
    .milestrong-contact-section,
    .imm-contact,
    .ms-contact,
    .contact-us-section {
        padding: 60px 0;
    }

    /* 内容容器 - 九个页面统一 */
    .markets-contact-container,
    .cases-contact-container,
    .products-contact-container,
    .dome-contact-container,
    .videos-contact-section .contact-wrapper,
    .project-contact-section .contact-wrapper,
    .milestrong-contact-form-container,
    .imm-contact__inner,
    .ms-section.ms-contact .ms-container,
    .contact-us-container {
        padding: 0 20px;
    }

    /* 标题区 - 九个页面统一 */
    .markets-contact-header,
    .cases-contact-header,
    .products-contact-header,
    .dome-contact-header,
    .videos-contact-section .contact-header,
    .project-contact-section .contact-header,
    .milestrong-contact-section .contact-header,
    .imm-contact__header,
    .ms-contact__header,
    .contact-us-header {
        margin-bottom: 40px;
    }

    /* 标题 - 九个页面统一 */
    .markets-contact-title,
    .cases-contact-title,
    .products-contact-title,
    .dome-contact-title,
    .videos-contact-section .contact-title,
    .project-contact-section .contact-title,
    .milestrong-contact-section .contact-title,
    .imm-contact__title,
    .ms-contact__title,
    .contact-us-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    /* 副标题 - 九个页面统一 */
    .markets-contact-subtitle,
    .cases-contact-subtitle,
    .products-contact-subtitle,
    .dome-contact-subtitle,
    .videos-contact-section .contact-subtitle,
    .project-contact-section .contact-subtitle,
    .milestrong-contact-section .contact-subtitle,
    .imm-contact__subtitle,
    .ms-contact__subtitle,
    .contact-us-subtitle {
        font-size: 14px;
    }

    /* 表单单列布局 - 九个页面统一 */
    .markets-contact-form .form-row,
    .cases-contact-form .form-grid-two-columns,
    .products-contact-form .form-row,
    .dome-form-grid,
    .contact-form .form-grid-two-columns,
    .milestrong-contact-form-container .form-grid-two-columns,
    .imm-contact__grid,
    .ms-contact__grid,
    .form-row,
    .form-grid-two-columns {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
    }

    .markets-contact-form .form-column,
    .cases-contact-form .form-column-left,
    .cases-contact-form .form-column-right,
    .products-contact-form .form-column,
    .dome-form-column-left,
    .dome-form-column-right,
    .contact-form .form-column-left,
    .contact-form .form-column-right,
    .milestrong-contact-form-container .form-column-left,
    .milestrong-contact-form-container .form-column-right,
    .imm-contact__col,
    .ms-contact__col,
    .form-column,
    .form-column-left,
    .form-column-right {
        gap: 16px;
    }

    /* 输入框 - 九个页面统一 */
    .markets-contact-form input[type="text"],
    .markets-contact-form input[type="email"],
    .markets-contact-form textarea,
    .cases-contact-form input[type="text"],
    .cases-contact-form input[type="email"],
    .cases-contact-form textarea,
    .products-contact-form input[type="text"],
    .products-contact-form input[type="email"],
    .products-contact-form textarea,
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea,
    .imm-contact__input,
    .imm-contact__textarea,
    .ms-contact__input,
    .ms-contact__textarea,
    .milestrong-contact-form-container input[type="text"],
    .milestrong-contact-form-container input[type="email"],
    .milestrong-contact-form-container textarea {
        padding: 14px 20px;
        font-size: 14px;
    }

    /* 文本域 - 九个页面统一 */
    .markets-contact-form textarea,
    .cases-contact-form textarea,
    .products-contact-form textarea,
    .contact-form textarea,
    .imm-contact__textarea,
    .ms-contact__textarea,
    .milestrong-contact-form-container textarea {
        min-height: 120px;
    }

    /* 验证码区域缩小 - Mobile */
    .form-field-captcha input,
    .form-group-captcha input,
    .dome-captcha-wrapper input,
    .imm-contact__input--captcha,
    .ms-contact__input--captcha,
    .milestrong-captcha-input {
        padding-right: 110px !important;
    }

    /* 验证码容器缩小 - Mobile */
    .captcha-wrapper,
    .captcha-image-inline,
    .dome-captcha-image,
    .milestrong-captcha-image,
    #markets-captcha-image,
    #products-captcha-image,
    #domeCaptchaImage,
    #captcha-image,
    #imm-captcha-img,
    #ms-captcha-img,
    #appt-captcha-image {
        width: 140px !important;
        right: 4px !important;
        top: 4px !important;
        bottom: 4px !important;
        border-radius: 10px 50px 50px 10px !important;
    }

    /* 提交按钮全宽 - 九个页面统一 */
    .submit-button,
    .dome-submit-button,
    #contact-submit-btn,
    #imm-contact-submit,
    #ms-contact-submit {
        width: 100%;
        min-width: unset;
        padding: 14px 30px;
        font-size: 16px;
    }

    /* 隐私声明 */
    .form-privacy,
    .form-privacy p,
    .imm-contact__privacy,
    .ms-contact__privacy {
        font-size: 11px;
    }
}

/* ========================================
   响应式设计 - 超小屏幕 Mobile 端（<480px）
   ======================================== */

@media (max-width: 480px) {
    .markets-contact-title,
    .cases-contact-title,
    .products-contact-title,
    .dome-contact-title,
    .videos-contact-section .contact-title,
    .project-contact-section .contact-title,
    .milestrong-contact-section .contact-title,
    .imm-contact__title,
    .ms-contact__title,
    .contact-us-title {
        font-size: 24px;
    }

    .markets-contact-section,
    .cases-contact-section,
    .products-contact-section,
    .dome-contact-section,
    .dome-contact,
    .videos-contact-section,
    .project-contact-section,
    .milestrong-contact-section,
    .imm-contact,
    .ms-contact,
    .contact-us-section {
        padding: 50px 0;
    }

    /* 超小屏幕验证码保持一体 - 不换行 */
    /* 验证码始终在输入框内部，保持嵌入式设计 */
}

/* ========================================
   全局 Toast 浮窗通知
   统一所有 Contact Us 表单的成功/失败反馈
   ======================================== */

#ms-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 48px);
}

.ms-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    border: 1px solid transparent;
}

.ms-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.ms-toast--hiding {
    opacity: 0;
    transform: translateX(40px);
}

.ms-toast--success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.ms-toast--error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.ms-toast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 1px;
}

.ms-toast__text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: inherit;
}

.ms-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    margin-top: -1px;
    transition: opacity 0.2s ease;
}

.ms-toast__close:hover {
    opacity: 1;
}

/* 移动端：全宽底部弹出 */
@media (max-width: 600px) {
    #ms-toast-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }

    .ms-toast {
        transform: translateY(20px);
    }

    .ms-toast--visible {
        transform: translateY(0);
    }

    .ms-toast--hiding {
        transform: translateY(20px);
    }
}
