:root {
    --color-pearl: #FAFAFA;
    --color-sandstone: #696969;
    --color-deepblue: #2A3B4C;
    --color-copper: #D4A373;
    --font-playfair: 'Playfair Display', serif;
    --font-opensans: 'Open Sans', sans-serif;
    --font-fira: 'Fira Code', monospace;
    --spacing-module: 80px;
    --spacing-inner: 24px;
    --spacing-margin: 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-opensans);
    background: linear-gradient(45deg, 
        rgba(245, 240, 230, 1) 0%,
        rgba(235, 230, 220, 1) 33%,
        rgba(225, 220, 210, 1) 66%,
        rgba(215, 210, 200, 1) 100%
    );
    background-attachment: fixed;
    color: var(--color-deepblue);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(212, 163, 115, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(212, 163, 115, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-margin);
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--color-deepblue);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    width: 100%;
    max-width: 600px;
    margin: 160px auto 0;
    position: relative;
    overflow: visible;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 16px;
    overflow: visible;
    background-color: var(--color-pearl);
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    width: 100%;
    height: auto;
    max-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 500px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%) translateZ(-100px) scale(0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    background-color: var(--color-pearl);
    will-change: transform, opacity;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0) translateZ(0) scale(1);
    z-index: 3;
}

.carousel-item.prev {
    opacity: 0.7;
    transform: translateX(-100%) translateZ(-50px) scale(0.9);
    z-index: 2;
}

.carousel-item.next {
    opacity: 0.7;
    transform: translateX(100%) translateZ(-50px) scale(0.9);
    z-index: 2;
}

.carousel-item img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-arrow {
    background: rgba(42, 59, 76, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(42, 59, 76, 0.5);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Content Transition */
.transition {
    padding: var(--spacing-module) var(--spacing-margin);
    text-align: center;
}

.divider {
    width: 30%;
    height: 1px;
    background: var(--color-sandstone);
    margin: 0 auto 32px;
}

.quote {
    font-family: var(--font-playfair);
    font-size: 24px;
    font-weight: 200;
    color: var(--color-sandstone);
}

/* AI Chat Interface */
.ai-chat-section {
    padding: var(--spacing-module) var(--spacing-margin);
    max-width: 1200px;
    margin: 0 auto;
}

.chat-container {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 240px;
    transition: height 0.3s ease;
    border: 1px solid rgba(105, 105, 105, 0.1);
}

.chat-container.expanded {
    height: 600px;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid rgba(105, 105, 105, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 250, 250, 0.95);
    border-radius: 16px 16px 0 0;
}

.chat-header h3 {
    font-family: var(--font-playfair);
    color: var(--color-deepblue);
    margin: 0;
}

.minimize-btn {
    background: none;
    border: none;
    color: var(--color-sandstone);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
}

.minimize-btn:hover {
    color: var(--color-copper);
}

.chat-messages {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 16px;
    background: rgba(250, 250, 250, 0.5);
}

.message {
    margin-bottom: 12px;
    max-width: 80%;
    animation: messageAppear 0.3s ease;
}

.message.loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-copper);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.message.user {
    margin-left: auto;
    background: var(--color-deepblue);
    color: white;
    border-radius: 16px 16px 0 16px;
    padding: 12px 16px;
}

.message.ai {
    margin-right: auto;
    background: rgba(105, 105, 105, 0.1);
    color: var(--color-deepblue);
    border-radius: 16px 16px 16px 0;
    padding: 12px 16px;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid rgba(105, 105, 105, 0.1);
    display: flex;
    gap: 12px;
    background: rgba(250, 250, 250, 0.95);
    border-radius: 0 0 16px 16px;
}

.chat-input textarea {
    flex: 1;
    border: 1px solid rgba(105, 105, 105, 0.2);
    border-radius: 8px;
    padding: 12px;
    resize: none;
    font-family: var(--font-opensans);
    transition: border-color 0.3s ease;
    background: white;
}

.chat-input textarea:disabled {
    background: rgba(250, 250, 250, 0.5);
    cursor: not-allowed;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--color-copper);
    box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.2);
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-copper);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.send-btn:hover {
    transform: rotate(15deg);
    background: #c18f5f;
}

/* Footer */
.footer {
    background: var(--color-deepblue);
    color: var(--color-pearl);
    padding: var(--spacing-module) var(--spacing-margin);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer:hover {
    opacity: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info a {
    color: var(--color-pearl);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-copper);
}

.slogan {
    font-style: italic;
    font-size: 14px;
}

.slogan p {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-pearl);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 24px;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon.linkedin { color: #0077B5; }
.social-icon.github { color: #333; }
.social-icon.instagram { color: #E4405F; }
.social-icon.behance { color: #1769FF; }
.social-icon.douyin { 
    color: #000000; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.social-icon.bilibili { 
    color: #00A1D6; 
}
.social-icon.xiaohongshu {
    color: #FF2442;
}
.social-icon.wechat { 
    color: #07C160; 
}
.social-icon.kuaishou {
    color: #FF0000;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-deepblue);
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid var(--color-copper);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    border-color: var(--color-deepblue);
    box-shadow: 0 0 10px rgba(212, 163, 115, 0.3);
}

.logo-text {
    font-family: var(--font-playfair);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .carousel-nav {
        padding: 0 5%;
    }

    .ai-chat-section {
        padding: var(--spacing-module) 20px;
    }

    .chat-container {
        height: 300px;
    }

    .chat-container.expanded {
        height: 500px;
    }

    .footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .social-icons {
        gap: 40px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .hero {
        margin: 60px auto 0;
    }

    .carousel-item img {
        max-height: 60vh;
    }
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-pearl);
    width: 90%;
    max-width: 400px;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.contact-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-playfair);
    color: var(--color-deepblue);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-sandstone);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-deepblue);
}

.modal-body {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(212, 163, 115, 0.1);
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(212, 163, 115, 0.2);
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--color-copper);
}

.contact-item span {
    font-size: 16px;
    color: var(--color-deepblue);
}

.carousel-item.hidden {
    opacity: 0;
    transform: translateX(200%) translateZ(-100px) scale(0.8);
    pointer-events: none;
} 