/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e31837;
    --secondary-color: #2196F3;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --gray: #666;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #c41530;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* 图片区块样式 */
.image-section {
    margin-top: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
	max-width: 88.75em;
	height: auto;
	margin: 0 auto;
}

.image-section:first-of-type {
    margin-top: 70px;
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* 联系我们区块 */
.contact-section {
    background-position: center top;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-overlay {
    display: none;
}

.contact-section .container {
    position: relative;
    z-index: 2;
    max-width: 88.75em;
    width: 100%;
    padding: 0;
}

.contact-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 4rem 2rem 4rem 0;
    min-height: 600px;
}

/* 表单内容盒子 */
.contact-form-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    margin-right: 2rem;
}

.contact-form-box h2 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* 表单样式 */
.contact-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
	margin-bottom: 15px;
    width: 100%;
    padding: 0.65rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c41530, #e31837);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit i {
    font-size: 0.95rem;
}



/* 页脚 */
.footer {
    background: var(--white);
    color: var(--dark-color);
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-info p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-stats i {
    color: var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-column i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: #e31837;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: #c41530;
    transform: translateY(-5px) scale(1.1);
}

.back-to-top.show {
    display: flex;
}

/* 右侧浮动按钮 */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 120px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3);
    transition: all 0.3s;
    white-space: nowrap;
}

.floating-btn:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.4);
}

.floating-btn i {
    font-size: 1.2rem;
}

.floating-btn span {
    font-size: 0.95rem;
}

/* 微信按钮特殊样式 */
.wechat-btn {
    background: linear-gradient(135deg, #07c160, #00d976);
}

.wechat-btn:hover {
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

/* 微信二维码浮动图片 */
.wechat-qrcode {
    position: fixed;
    right: 210px;
    bottom: 120px;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 997;
    animation: slideInRight 0.3s ease-out;
}

.wechat-qrcode.show {
    display: block;
}

.wechat-qrcode img {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.qrcode-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.qrcode-close:hover {
    background: #c41530;
    transform: rotate(90deg);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式 - 浮动按钮 */
@media (max-width: 768px) {
    .floating-buttons {
        right: 15px;
        bottom: 90px;
        gap: 10px;
    }
    
    .floating-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .floating-btn span {
        display: none;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .wechat-qrcode {
        right: 80px;
        bottom: 90px;
    }
    
    .wechat-qrcode img {
        width: 160px;
        height: 160px;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }

    /* 联系区块在移动端调整 */
    .contact-section {
        background-size: cover !important;
        background-position: center !important;
    }
    
    .contact-wrapper {
        justify-content: center;
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .contact-form-box {
        max-width: 100%;
        margin-right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .service-guarantee {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        padding: 1.2rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .contact-form-box {
        padding: 1.5rem 1rem;
    }

    .contact-form-box h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 40px;
        max-width: 150px;
    }
    
    .logo h2 {
        font-size: 1.2rem;
    }

    .contact-form-box {
        padding: 1.2rem 0.8rem;
    }

    .contact-form-box h2 {
        font-size: 1.2rem;
    }

    .method-icon {
        width: 40px;
        height: 40px;
    }

    .method-icon i {
        font-size: 1.2rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.info {
    border-left-color: var(--secondary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* 加载动画 */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    z-index: 1;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray);
    transition: all 0.3s;
    z-index: 2;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-header .form-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 模态框中的表单样式 */
.modal-content .contact-form {
    margin-bottom: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content .form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--white);
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

.modal-content .btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-content .btn-submit:hover {
    background: linear-gradient(135deg, #c41530, #e31837);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.modal-notifications {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.modal-notifications .notification-item {
    font-size: 0.88rem;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* 点击提示样式 - 仅policy区块 */
#policy {
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

#policy::after {
    content: '点击定制方案';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(227, 24, 55, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#policy:hover::after {
    opacity: 1;
}

#policy:hover {
    filter: brightness(0.95);
}

/* 客户领取成功滚动消息 */
.success-notifications {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.notification-scroll {
    position: relative;
    height: 100%;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    color: var(--gray);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    opacity: 0;
    transition: all 0.6s ease;
    line-height: 1.5;
}

/* 确保第一条消息默认可见（即使JavaScript未执行） */
.notification-item:first-child {
    top: 0;
    opacity: 1;
}

/* 当前显示的消息 */
.notification-item.active {
    top: 0 !important;
    opacity: 1 !important;
}

/* 即将进入的消息（从下方） */
.notification-item.next {
    top: 100%;
    opacity: 0;
}

/* 即将离开的消息（向上滑出） */
.notification-item.prev {
    top: -100%;
    opacity: 0;
}

.notification-item i {
    font-size: 1rem;
    color: #4caf50;
    flex-shrink: 0;
}

.notification-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式 - 模态框 */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .trust-item {
        flex-direction: row;
        justify-content: center;
    }
    
    #policy::after {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }
    
    .success-notifications {
        height: 55px;
    }
    
    .notification-item {
        font-size: 0.85rem;
        padding: 0.7rem 0;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
