/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease-out;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: fixed;
    background-color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 30px));
    opacity: 0;
    padding: 2rem;
    width: 90%;
    max-width: 1100px;
    min-height: 55vh;
    max-height: 75vh;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.close-button {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.close-button:hover {
    color: var(--highlight-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.promotion-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex: 1;
}

.promotion-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
}

.promotion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.promotion-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 2 rem;
}

.promotion-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
    flex: 1;
}

.dont-show-again {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    border-radius: 4px;
}

.dont-show-again:hover {
    background: var(--accent-color);
}



:root {
    /* 主色调 - 港澳紫 */
    --primary-color: #6A4C93;
    /* 次要色调 - 金色 */
    --secondary-color: #D4AF37;
    /* 深蓝色 - 维港夜景 */
    --accent-color: #1B3C59;
    /* 点缀红色 - 区旗红 */
    --highlight-color: #DE2910;
    /* 背景色 - 淡紫 */
    --bg-light: #F5F3F7;
    /* 文字颜色 */
    --text-dark: #333333;
    --text-light: #FFFFFF;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--bg-light);
    font-size: 14px;
}

main {
    flex: 1;
}

/* 删除原有轮播图样式，添加新的大图片展示区样式 */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-button {
    background-color: var(--highlight-color);
    color: var(--text-light);
}

.video-button:hover {
    background-color: #ff3b1d;
    transform: translateY(-2px);
}

.explore-button {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.explore-button:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 视频模态框样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.video-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .video-container {
        width: 95%;
    }
}

/* 特色部分样式 */
.features {
    padding: 4rem 2rem;
    background-color: white;
    margin-top: 3rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.view-more {
    text-align: center;
    margin-top: 25px;
}

.view-more-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ff7043;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: background-color 0.3s, transform 0.3s;
}

.view-more-button:hover {
    background-color: #f4511e;
    transform: translateY(-2px);
}

/* 更新特色卡片样式 */
.feature-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-item h3 {
    color: #ff7043;
    margin: 12px 16px 8px;
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0 16px 16px;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 页脚样式 */
footer {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 0;
    margin-top: 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #eceff1;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #eceff1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* 新的页脚样式 */
.contact-section {
    flex: 1;
}

.contact-info-simple p {
    color: #eceff1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info-simple strong {
    color: var(--accent-color);
}

.qr-section {
    flex: 1;
}

.qr-codes {
    display: flex;
    gap: 4rem; /* Increased from 1rem for more spacing */
    justify-content: flex-end;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-item img {
    width: 90px; /* Increased from 70px */
    height: 90px; /* Increased from 70px */
    object-fit: cover;
    border-radius: 4px;
}

.qr-item span {
    color: #eceff1;
    font-size: 0.8rem;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0bec5;
}

@media (max-width: 768px) {
    .features {
        padding: 2rem 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 1.2rem;
    }

    /* 移动端页脚样式 */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-section,
    .qr-section {
        flex: none;
    }

    .qr-codes {
        justify-content: center;
        gap: 2.5rem; /* Increased from 1.5rem for more spacing on mobile */
    }

    .qr-item img {
        width: 100px; /* Increased from 80px */
        height: 100px; /* Increased from 80px */
    }

    .contact-info-simple p {
        font-size: 1rem;
        text-align: center;
    }
} 

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-widget.minimized {
    height: 50px;
}

.chat-header {
    background-color: #ff7043;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    margin-bottom: 10px;
}

.message {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background-color: #e3f2fd;
    margin-left: auto;
}

.message.agent {
    background-color: #f5f5f5;
    margin-right: auto;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
}

.chat-input button {
    background-color: #ff7043;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: #f4511e;
}

/* 聊天框显示/隐藏动画 */
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
} 

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(106, 76, 147, 0.1);
    color: var(--primary-color);
}

.nav-links a.active {
    background-color: rgba(106, 76, 147, 0.15);
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(106, 76, 147, 0.3);
}

.nav-auth .auth-button.active {
    background-color: rgba(106, 76, 147, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(106, 76, 147, 0.3);
} 

.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.auth-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}



/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
    border-top: 3px solid var(--primary-color);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* 表单样式 */
.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 76, 147, 0.2);
}

/* 强调文本 */
.highlight-text {
    color: var(--highlight-color);
    font-weight: 500;
}

/* 服务卡片特殊样式 */
.service-card {
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(to right, rgba(106, 76, 147, 0.05), white);
}

/* ===== 移动端响应式设计 ===== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .modal-content {
        width: 95%;
        max-width: 800px;
        padding: 1.5rem;
    }

    .promotion-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 手机设备 (480px - 768px) */
@media (max-width: 768px) {
    /* 弹窗适配 */
    .modal-content {
        width: 98%;
        max-width: none;
        padding: 1rem;
        min-height: 60vh;
        max-height: 80vh;
        margin: 10px;
    }

    .modal h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .promotion-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .promotion-item {
        padding: 1rem;
        min-height: 150px;
    }

    .promotion-item h3 {
        font-size: 1.1rem;
    }

    .promotion-item p {
        font-size: 0.9rem;
    }

    /* 英雄区域适配 */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-dots {
        bottom: 15px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    /* 主要内容适配 */
    .features {
        padding: 2rem 1rem;
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .feature-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .guide-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .view-more {
        margin-top: 2rem;
    }

    .view-more-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* 页脚适配 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 1rem;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    /* 通用样式适配 */
    .card {
        padding: 15px;
        margin: 10px 0;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 12px;
        font-size: 1rem;
    }
}

/* 小屏手机 (320px - 480px) */
@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-button {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .features {
        padding: 1.5rem 0.8rem;
    }

    .features h2 {
        font-size: 1.6rem;
    }

    .feature-item {
        padding: 0.8rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 0.8rem;
        margin: 5px;
    }

    .modal h2 {
        font-size: 1.3rem;
    }

    .promotion-item {
        padding: 0.8rem;
        min-height: 120px;
    }

    .promotion-item h3 {
        font-size: 1rem;
    }

    .promotion-item p {
        font-size: 0.85rem;
    }

    .footer-content {
        padding: 1rem 0.8rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }
}

/* 横屏手机适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-button {
        width: auto;
        max-width: 200px;
    }
} 