/* 右侧浮动按钮 */
.contact-buttons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.contact-btn {
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tg-btn {
    background: linear-gradient(45deg, #3399ff, #0066cc);
    color: white;
}

.wa-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

.contact-btn:hover {
    transform: translateX(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* 模态框通用样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 450px;
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: translateY(40px);
    opacity: 0;
}

@keyframes modalAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Telegram主题样式 */
.tg-theme {
    background: linear-gradient(135deg, #0a1929, #132f4c);
    color: white;
    border: 2px solid rgba(51, 153, 255, 0.5);
}

.tg-theme .modal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tg-theme .close-btn {
    color: #3399ff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tg-theme .close-btn:hover {
    color: #66b2ff;
    transform: scale(1.2);
}

.tg-theme .modal-title {
    font-size: 1.4rem;
    color: #66b2ff;
    font-weight: 600;
    text-transform: uppercase;
}

.tg-theme .modal-body {
    padding: 35px 30px 30px;
    text-align: center;
}

.tg-theme .main-title {
    font-size: 1.8rem;
    color: #66b2ff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tg-theme .sub-heading {
    font-size: 1.5rem;
    color: #b3e0ff;
    margin-bottom: 25px;
    font-weight: 500;
}

.tg-theme .modal-icon {
    font-size: 4rem;
    color: #3399ff;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.tg-theme .modal-text {
    color: #e6f2ff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.tg-theme .action-btn {
    background: linear-gradient(45deg, #3399ff, #0066cc);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(51, 153, 255, 0.4);
}

.tg-theme .action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(51, 153, 255, 0.6);
}

/* WhatsApp主题样式 */
.wa-theme {
    background: linear-gradient(135deg, #052d23, #064e3b);
    color: white;
    border: 2px solid rgba(37, 211, 102, 0.5);
}

.wa-theme .modal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-theme .close-btn {
    color: #25D366;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wa-theme .close-btn:hover {
    color: #8cffb6;
    transform: scale(1.2);
}

.wa-theme .modal-title {
    font-size: 1.4rem;
    color: #25D366;
    font-weight: 600;
    text-transform: uppercase;
}

.wa-theme .modal-body {
    padding: 35px 30px 30px;
    text-align: center;
}

.wa-theme .main-title {
    font-size: 1.8rem;
    color: #25D366;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.wa-theme .sub-heading {
    font-size: 1.5rem;
    color: #8cffb6;
    margin-bottom: 25px;
    font-weight: 500;
}

.wa-theme .modal-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.wa-theme .modal-text {
    color: #e6f2ff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.wa-theme .action-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.wa-theme .action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 25px 0;
}

.tg-theme .divider {
    background: rgba(51, 153, 255, 0.2);
}

.wa-theme .divider {
    background: rgba(37, 211, 102, 0.2);
}

/* 联系我们弹窗 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #0a1929, #132f4c);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
    opacity: 1;
}

@keyframes modalAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-modal .modal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal .modal-title {
    font-size: 1.4rem;
    color: #3399ff;
    font-weight: 600;
}

.contact-modal .modal-close {
    color: #3399ff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-modal .modal-close:hover {
    color: #66b2ff;
    transform: scale(1.2);
}

.contact-modal .contact-section {
    padding: 30px;
}

.contact-modal .contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-modal .contact-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-modal .contact-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal .contact-option:hover {
    transform: translateY(-5px);
}

.contact-modal .contact-option:hover:before {
    opacity: 1;
}

.contact-modal .tg-option:hover {
    box-shadow: 0 8px 25px rgba(51, 153, 255, 0.3);
}

.contact-modal .wa-option:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tg-icon-large {
    color: #3399ff;
}

.wa-icon-large {
    color: #25D366;
}

.contact-modal .contact-option-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contact-modal .tg-title {
    color: #3399ff;
}

.contact-modal .wa-title {
    color: #25D366;
}

.contact-modal .contact-info {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-modal .action-btn {
    border: none;
    border-radius: 50px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-modal .tg-btn {
    background: linear-gradient(45deg, #3399ff, #0066cc);
    color: white;
    box-shadow: 0 5px 15px rgba(51, 153, 255, 0.3);
}

.contact-modal .tg-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(51, 153, 255, 0.5);
}

.contact-modal .wa-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-modal .wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.contact-modal .footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.contact-modal .contact-text {
    text-align: center;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
}

@media (max-width: 480px) {
    .back-to-top {
        padding: 10px 20px;
        font-size: 0.9rem;
        right: 15px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .contact-buttons {
        right: 15px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}