/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-padding: 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    :root {
        --container-padding: 4%;
    }
}

/* Navigation - Mobile Optimization */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem var(--container-padding);
    }

    .nav-logo {
        margin-bottom: 0.5rem;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
    }

    .nav-search {
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-search input {
        width: calc(100% - 40px);
    }
}

.nav-logo img {
    height: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-search {
    display: flex;
    align-items: center;
}

.nav-search input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 0.5rem;
    width: 200px;
}

.nav-search button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Banner - Mobile Optimization */
.hero-banner {
    margin-top: 80px;
    height: min(540px, 28.125vw);
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--light-bg);
}

.hero-banner .swiper-wrapper {
    transition-timing-function: linear !important;
    will-change: transform;
}

.hero-banner .swiper-slide {
    width: min(960px, 50vw);
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.hero-banner .swiper-slide:hover {
    opacity: 1;
}

/* 导航按钮样式优化 */
.hero-banner .swiper-button-next,
.hero-banner .swiper-button-prev {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
}

.hero-banner .swiper-button-next:after,
.hero-banner .swiper-button-prev:after {
    font-size: 1.2rem;
}

.hero-banner .swiper-pagination-bullet {
    background: var(--secondary-color);
    opacity: 0.7;
    width: 8px;
    height: 8px;
}

.hero-banner .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-banner {
        margin-top: 140px;
        height: 50vw;
    }

    .hero-banner .swiper-slide {
        width: 90vw;
    }

    .hero-banner .swiper-button-next,
    .hero-banner .swiper-button-prev {
        padding: 1rem;
    }

    .hero-banner .swiper-button-next:after,
    .hero-banner .swiper-button-prev:after {
        font-size: 1rem;
    }
}

/* Featured Lots - Mobile Optimization */
.featured-lots {
    padding: 4rem var(--container-padding);
    background-color: var(--white);
}

.featured-lots h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 0.05em;
    position: relative;
}

.featured-lots h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.lots-slider {
    padding: 2rem 0;
}

.lot-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

.lot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.lot-image {
    position: relative;
    overflow: hidden;
}

.lot-image img {
    width: 100%;
    height: clamp(250px, 50vw, 400px);
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lot-card:hover .lot-image img {
    transform: scale(1.05);
}

.lot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}

.lot-number, .lot-date {
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.lot-info {
    padding: clamp(1rem, 3vw, 2rem);
}

.lot-info h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-weight: 500;
    line-height: 1.4;
}

.lot-price {
    color: var(--secondary-color);
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.lot-desc {
    color: var(--text-color);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.8;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.8;
}

.lot-actions {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .featured-lots {
        padding: 3rem var(--container-padding);
    }

    .lot-card {
        margin: 0 auto;
        max-width: 500px;
    }

    .lot-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-lots {
        padding: 2rem var(--container-padding);
    }

    .lot-image img {
        height: 60vw;
    }
}

/* AI Chat Box */
.ai-chat {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.minimize-chat {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.message.ai {
    margin-right: auto;
}

.message.user {
    margin-left: auto;
    text-align: right;
}

.message .sender {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
    display: block;
}

.message p {
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.ai p {
    background: var(--white);
    border: 1px solid #e0e0e0;
}

.message.user p {
    background: var(--secondary-color);
    color: var(--white);
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.chat-input button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background: darken(var(--secondary-color), 10%);
}

/* Typing Animation */
.typing-dots {
    display: inline-block;
    position: relative;
    width: 30px;
    text-align: left;
}

.typing-dots::after {
    content: '...';
    position: absolute;
    left: 0;
    animation: typing 1.5s infinite;
    letter-spacing: 2px;
}

@keyframes typing {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

.message.typing p {
    background: rgba(255, 255, 255, 0.8);
    min-width: 50px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem var(--container-padding);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-left img {
    height: 35px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-left p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-center a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.footer-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.footer-center a:hover {
    color: var(--secondary-color);
}

.footer-center a:hover::after {
    width: 100%;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-right: 380px; /* 为AI聊天框留出空间 */
}

.footer-right a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-right a:hover {
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* AI Chat Box - 调整位置和样式 */
.ai-chat {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 1200px) {
    .footer-right {
        margin-right: 0; /* 在小屏幕上移除右边距 */
    }
    
    .ai-chat {
        width: 300px; /* 减小聊天框宽度 */
    }
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
        padding: 2rem var(--container-padding);
    }

    .footer-left, .footer-center, .footer-right {
        width: 100%;
        margin: 1rem 0;
    }

    .footer-left img {
        height: 35px;
    }

    .footer-center a {
        margin: 0.5rem;
        font-size: 0.9rem;
    }

    .footer-right a {
        margin: 0 0.75rem;
    }

    .footer-right i {
        font-size: 1.5rem;
    }

    .ai-chat {
        width: 90%;
        max-width: 350px;
        right: 5%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem var(--container-padding);
    }

    .footer-center {
        gap: 1rem;
    }

    .footer-center a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-right a {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .footer-left img {
        height: 30px;
    }

    .footer-center a {
        font-size: 0.85rem;
        margin: 0.4rem;
        display: inline-block;
    }

    .footer-right i {
        font-size: 1.25rem;
    }
}

/* About Section */
#about {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

#about h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

#about h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

#about .intro-section,
#about .heritage-section,
#about .vision-section,
#about .business-section {
    margin-bottom: 4rem;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

#about .quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    margin: 2rem 0;
}

#about .business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

#about .business-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#about .business-item:hover {
    transform: translateY(-10px);
}

#about .business-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

#about .business-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

#about .closing-section {
    text-align: center;
    margin-top: 4rem;
}

#about .invitation {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

#about .btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    #about h2 {
        font-size: 2rem;
    }

    #about h3 {
        font-size: 1.5rem;
    }

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

    #about .quote {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #about .business-grid {
        grid-template-columns: 1fr;
    }

    #about h2 {
        font-size: 1.8rem;
    }

    #about h3 {
        font-size: 1.3rem;
    }

    #about p {
        font-size: 1rem;
    }
}

/* AI Chat Box - Mobile Optimization */
@media (max-width: 768px) {
    .ai-chat {
        width: 90%;
        max-width: 350px;
        bottom: 1rem;
        right: 1rem;
    }

    .chat-messages {
        height: 250px;
    }

    .message {
        font-size: 0.9rem;
    }

    .chat-input input {
        font-size: 0.9rem;
    }

    .chat-header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ai-chat {
        width: 92%;
        right: 4%;
        left: 4%;
        max-width: none;
    }

    .chat-messages {
        height: 220px;
    }
}

/* Navigation - Mobile Optimization */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem var(--container-padding);
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .nav-links a {
        font-size: 0.9rem;
        margin: 0 0.75rem;
        white-space: nowrap;
    }

    .nav-search {
        padding: 0.5rem 0;
    }

    .nav-search input {
        width: calc(100% - 50px);
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar {
        position: sticky;
    }

    .nav-logo img {
        height: 28px;
    }

    .nav-links a {
        font-size: 0.85rem;
        margin: 0 0.5rem;
    }

    .nav-search input {
        font-size: 0.85rem;
    }

    .footer-left img {
        height: 30px;
    }

    .footer-center a {
        font-size: 0.85rem;
        margin: 0.4rem;
        display: inline-block;
    }

    .footer-right i {
        font-size: 1.25rem;
    }
} 