/* 全局样式 */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1A3C6D 0%, #2A5A9D 100%);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: #4DA8DA;
    transform: translateY(-2px);
}

.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.lang-switch a.active {
    color: #4DA8DA;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .material-icons {
    font-size: 28px;
    color: #fff;
}

/* 认证弹窗 */
.auth-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInFromBottom 0.5s ease-out forwards;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    color: #1A3C6D;
    transform: rotate(90deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 26px;
    color: #1A3C6D;
    font-weight: 700;
}

.auth-header p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 切换按钮 */
.auth-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.toggle-btn.active {
    background: #fff;
    color: #1A3C6D;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #1A3C6D;
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #4DA8DA;
    box-shadow: 0 0 5px rgba(77, 168, 218, 0.3);
}

.cta-btn {
    background: linear-gradient(135deg, #1A3C6D 0%, #4DA8DA 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.large-btn {
    padding: 15px 40px;
    font-size: 18px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.social-login {
    background: #fff;
    color: #1A3C6D;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.social-login i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.social-login span {
    flex: 1;
    text-align: center;
}

.social-login:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-login i {
    color: #DB4437;
}

.wechat-login i {
    color: #07C160;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4DA8DA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 3000;
    display: none;
    animation: slideInFromRight 0.3s ease-out;
}

/* 智能聊天助手 */
.chat-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1A3C6D 0%, #4DA8DA 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.chat-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: scaleIn 0.3s ease-out forwards;
}

.chat-container.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #1A3C6D 0%, #4DA8DA 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-chat:hover {
    transform: rotate(90deg);
}

.chat-messages {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.assistant-message, .user-message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.5s ease-out;
}

.assistant-message {
    align-self: flex-start;
    background: #f0f4f8;
    border-bottom-left-radius: 5px;
}

.user-message {
    align-self: flex-end;
    background: #1A3C6D;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.message-content {
    word-wrap: break-word;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #4DA8DA;
}

.send-btn {
    background: none;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.send-btn:hover {
    transform: translateX(3px);
}

.send-btn svg {
    width: 24px;
    height: 24px;
    fill: #1A3C6D;
}

/* 社交分享弹窗 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.share-content {
    background: #fff;
    width: 450px;
    max-width: 90%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: slideInFromBottom 0.5s ease-out forwards;
}

.share-header {
    background: linear-gradient(135deg, #1A3C6D 0%, #4DA8DA 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.share-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.close-share {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-share:hover {
    transform: rotate(90deg);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.share-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
}

.share-option svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.share-option:hover svg {
    transform: scale(1.1);
}

.share-option span {
    font-size: 14px;
    color: #333;
}

.share-link {
    display: flex;
    padding: 0 20px 20px;
}

.share-link input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    outline: none;
}

.copy-btn {
    padding: 10px 15px;
    background: #1A3C6D;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #2A5A9D;
}

.qrcode-poster-container {
    text-align: center;
    padding: 0 20px 20px;
}

.qrcode-poster-container img {
    width: 200px;
    height: auto;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-poster-btn {
    margin-top: 10px;
}

.share-close-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 auto 20px;
    text-align: center;
}

/* 主视觉区 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1A3C6D 0%, #4DA8DA 80%, #E6F0FA 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    text-align: left;
}

.hero-content {
    max-width: 100%;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: slideIn 1s ease-out;
}

.hero-content p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-out;
}

.hero-content .highlight {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.share-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-image {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 800px;
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: slideIn 1s ease-out;
}

/* 产品分类 */
.product-categories {
    padding: 100px 50px;
    background: #fff;
    text-align: center;
}

.product-categories h2 {
    font-size: 36px;
    color: #1A3C6D;
    margin-bottom: 50px;
    font-weight: 700;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: #4DA8DA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.dual-screen-icon::before {
    content: "🖥️";
}

.accessory-icon::before {
    content: "🔧";
}

.custom-icon::before {
    content: "⚙️";
}

.portable-dual-screen-icon::before {
    content: "📺";
}

.category-card h3 {
    font-size: 20px;
    color: #1A3C6D;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* 产品展示 */
.gallery {
    padding: 100px 50px;
    background: #f5f5f5;
    text-align: center;
}

.gallery h2 {
    font-size: 36px;
    color: #1A3C6D;
    margin-bottom: 50px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 解决方案 */
.solutions {
    padding: 100px 50px;
    background: #fff;
    text-align: center;
}

.solutions h2 {
    font-size: 36px;
    color: #1A3C6D;
    margin-bottom: 20px;
    font-weight: 700;
}

.solutions p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* 新闻页面 */
.news {
    padding: 100px 50px;
    background: #f5f5f5;
    text-align: center;
}

.news h2 {
    font-size: 36px;
    color: #1A3C6D;
    margin-bottom: 50px;
    font-weight: 700;
}

.news-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.news-content h3 {
    font-size: 24px;
    color: #1A3C6D;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 预订区 */
.reservation {
    padding: 100px 50px;
    background: #fff;
    text-align: center;
}

.reservation h2 {
    font-size: 36px;
    color: #1A3C6D;
    margin-bottom: 20px;
    font-weight: 700;
}

.reservation p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-form input {
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

.reservation-form input:focus {
    outline: none;
    border-color: #4DA8DA;
}

/* 联系我们 */
.contact {
    padding: 100px 50px;
    background: #f5f5f5;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    color: #1A3C6D;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
footer {
    padding: 40px;
    background: linear-gradient(135deg, #1A3C6D 0%, #2A5A9D 100%);
    color: #fff;
    text-align: center;
    font-size: 14px;
}

/* 动画 */
@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInFromBottom {
    0% { transform: translateY(100px); opacity: 0; }
    80% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutToBottom {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100px); opacity: 0; }
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .hero {
        padding: 0 50px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content .highlight {
        font-size: 20px;
    }

    .category-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .category-card {
        width: 45%;
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1A3C6D;
        padding: 20px 0;
        position: absolute;
        top: 100%;
        left: 0;
        margin: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transform: translateY(-100%);
        opacity: 0;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links.closing {
        animation: slideUp 0.3s ease-out forwards;
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .lang-switch {
        margin-top: 10px;
    }

    .hero {
        flex-direction: column;
        height: auto;
        padding: 80px 200px;
        justify-content: center;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hero-content .highlight {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-image img {
        max-width: 100%;
        width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    .category-grid {
        flex-direction: column;
        align-items: center;
    }

    .category-card {
        width: 100%;
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .auth-modal-content {
        width: 90%;
        padding: 20px;
    }

    .social-login-buttons {
        gap: 8px;
    }

    .reservation-form {
        max-width: 100%;
    }

    .chat-container {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 15px;
    }

    .logo {
        font-size: 18px;
        font-weight: 600;
    }

    .menu-toggle .material-icons {
        font-size: 24px;
    }

    .nav-links {
        top: 100%;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links a {
        font-size: 12px;
    }

    .lang-switch a {
        font-size: 12px;
    }

    .hero {
        padding: 110px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .hero-content .highlight {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .hero-image img {
        max-height: 250px;
    }

    .cta-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .auth-modal-content {
        padding: 15px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
    }
    
    .chat-assistant {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-icon {
        width: 50px;
        height: 50px;
    }
    
    .chat-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .chat-container {
        width: 280px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}