/* 字体定义 */
@font-face {
    font-family: 'DingTalk JinBuTi';
    src: url('fonts/DingTalkJinBuTi-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载性能 */
    unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF; /* 仅加载中文字符 */
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'DingTalk JinBuTi', 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

body[data-lang="en"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand .brand-link {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
}

.nav-brand {
    background: transparent;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-background-size: auto;
    background-size: auto;
}

.logo-image::before,
.logo-image::after {
    display: none !important;
    background: transparent !important;
}

.logo-image:hover {
    opacity: 0.9;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.nav-brand .subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: rgba(37, 99, 235, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    background: transparent !important;
    background-color: transparent !important;
}

.hero-logo::before,
.hero-logo::after {
    display: none !important;
    background: transparent !important;
}

.hero-logo-image {
    height: 120px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-background-size: auto;
    background-size: auto;
}

.hero-logo-image::before,
.hero-logo-image::after {
    display: none !important;
    background: transparent !important;
}

.hero-logo-image:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.1s both;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区块样式 */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* 关于我们 */
.about {
    background: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    transform: scale(0.8);
    transform-origin: center top;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 产品服务 */
.products {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    transform: scale(0.8);
    transform-origin: center top;
}

.product-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    background: var(--bg-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 1.25rem;
}

/* 關注我們：整合在聯絡我們區塊內，五個按鈕與上方四塊同寬 */
.contact-social {
    text-align: center;
    padding-top: 0.5rem;
}
.contact-social .social-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    justify-content: stretch;
    padding: 0;
}
.contact-social .social-link {
    min-width: 0;
    padding: 1.25rem 0.75rem;
}

.contact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.5rem 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease;
    min-width: 0;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details {
    display: contents;
}

.contact-details h4 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    padding-top: 0.15em;
}

.contact-details a,
.contact-details p {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    margin: 0;
    margin-top: 0.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 1.5;
    text-align: left;
}

.contact-details a[href^="tel:"] {
    white-space: nowrap;
}

.contact-details p {
    word-break: keep-all;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* 联络表单（转发至 Telegram） */
.contact-form-section {
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-header {
    margin-bottom: 0.75rem;
}

.contact-form-section h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.contact-form-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.contact-telegram-form .form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-telegram-form .form-row {
    margin-bottom: 0.75rem;
}

.contact-telegram-form .form-row-group .form-row {
    margin-bottom: 0;
}

.contact-telegram-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-telegram-form .required {
    color: #dc2626;
}

.contact-telegram-form input,
.contact-telegram-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: var(--bg-white);
    transition: border-color 0.2s ease;
}

.contact-telegram-form input:focus,
.contact-telegram-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-telegram-form textarea {
    resize: vertical;
    min-height: 72px;
}

.contact-telegram-form .form-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.contact-telegram-form .form-desc-inline {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.contact-telegram-form .form-status {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.contact-telegram-form .form-status.success {
    color: var(--secondary-color);
}

.contact-telegram-form .form-status.error {
    color: #dc2626;
}

.contact-telegram-form button[type="submit"] {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-telegram-form button[type="submit"]:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.85);
}

.contact-telegram-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 社交媒体链接（用于 .contact-social 内） */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: currentColor;
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.social-link:hover .social-icon-wrapper {
    transform: scale(1.1);
}

.social-link svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: block;
}

.social-link svg circle,
.social-link svg path,
.social-link svg rect {
    transition: all 0.3s ease;
}

.social-label {
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Facebook */
.social-link.facebook {
    color: #1877f2;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

/* Messenger */
.social-link.messenger {
    color: #0084ff;
}

.social-link.messenger:hover {
    background: #0084ff;
    color: white;
}

/* Instagram */
.social-link.instagram {
    color: #e4405f;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* WhatsApp */
.social-link.whatsapp {
    color: #25d366;
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
}

/* WeChat */
.social-link.wechat {
    color: #07c160;
}

.social-link.wechat:hover {
    background: #07c160;
    color: white;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .language-switcher {
        order: -1;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-logo-image {
        height: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 35px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features,
    .products-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-telegram-form .form-row-group {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
        justify-content: center;
    }

    .contact-social .social-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .social-link {
        padding: 0.875rem 1rem;
        min-width: 90px;
    }

    .contact-social .social-link {
        min-width: 0;
        padding: 1rem 0.5rem;
    }

    .social-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .hero-logo-image {
        height: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo-image {
        height: 30px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .nav-brand .subtitle {
        font-size: 0.75rem;
    }

    .social-links {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .contact-social .social-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }

    .social-link {
        padding: 0.75rem 0.875rem;
        min-width: 80px;
    }

    .contact-social .social-link {
        min-width: 0;
        padding: 0.875rem 0.5rem;
    }
    
    .social-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .social-label {
        font-size: 0.85rem;
    }
}

/* 右下角留言入口按钮 */
.floating-message-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-message-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}
.floating-message-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* 留言弹窗 */
.message-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.message-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.message-popup-box {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}
.message-popup-overlay.is-open .message-popup-box {
    transform: scale(1);
}
.message-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--bg-light);
}
.message-popup-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}
.message-popup-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.message-popup-close:hover {
    background: #e5e7eb;
    color: var(--text-dark);
}
.message-popup-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}
.message-popup-body .contact-telegram-form .form-actions {
    flex-wrap: wrap;
}
.message-popup-body .contact-telegram-form .form-desc-inline {
    width: 100%;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .floating-message-btn {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }
    .message-popup-body .contact-telegram-form .form-row-group {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
