/* 首页特定样式 */

/* 首页英雄区域特定样式 */
.hero {
  background: url("../img/bg/bg (1).JPG");
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-content {
    max-width: 800px;
}

/* 品牌价值区域 */
.brand-value {
    padding: 100px 0;
    background-color: var(--background-color);
    position: relative;
}

.brand-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.brand-text {
    animation: slideInLeft 1s ease;
}

.brand-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.brand-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: slideInRight 1s ease 0.3s both;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--light-text);
}

/* 空间预览区域 */
.space-preview {
    padding: 100px 0;
    background-color: var(--white);
}

.space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.space-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    animation: fadeIn 0.8s ease;
}

.space-item:nth-child(2) {
    animation-delay: 0.2s;
}

.space-item:nth-child(3) {
    animation-delay: 0.4s;
}

.space-item:nth-child(4) {
    animation-delay: 0.6s;
}

.space-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.space-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.space-item:hover .space-image img {
    transform: scale(1.05);
}

.space-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.space-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    margin: 0;
    font-family: var(--font-primary);
}

.space-description {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* 文化活动区域 */
.events {
    padding: 100px 0;
    background-color: var(--background-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.event-card {
    display: flex;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    animation: fadeIn 0.8s ease;
    height: auto; /* 改为自适应高度 */
}

.event-card:nth-child(2) {
    animation-delay: 0.2s;
}

.event-card:nth-child(3) {
    animation-delay: 0.4s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-date {
    background-color: #003366;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    display: block;
    font-size: 32px;
    font-weight: bold;
}

.event-month {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.event-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 18px;
    font-family: var(--font-primary);
    height: auto; /* 改为自适应高度 */
    overflow: visible;
    display: block;
}

.event-time, .event-location {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.event-info .btn {
    margin-top: auto;
}

/* 精选产品区域 */
.featured-products {
    padding: 100px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    animation: fadeIn 0.8s ease;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 320px;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-info {
    padding: 18px;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

.product-title {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.product-author {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.product-price {
    margin-bottom: 16px;
    color: #e8c5a1;
    font-size: 20px;
    font-weight: bold;
}

.product-card .btn-secondary {
    width: 100%;
    transition: background-color 0.3s ease;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

.product-card:nth-child(5) {
    animation-delay: 0.4s;
}

.product-card:nth-child(6) {
    animation-delay: 0.5s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-author {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* CTA区域 */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a4a 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(232, 197, 161, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(232, 197, 161, 0.1) 0%, transparent 50%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 600px;
    }
    
    .brand-value {
        padding: 80px 0;
    }
    
    .brand-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .space-preview {
        padding: 80px 0;
    }
    
    .events {
        padding: 80px 0;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .featured-products {
        padding: 80px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
    
    .product-image img {
        height: 300px;
    }
    
    .cta {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 500px;
    }
    
    .brand-value {
        padding: 60px 0;
    }
    
    .space-preview {
        padding: 60px 0;
    }
    
    .space-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .events {
        padding: 60px 0;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: auto;
    }
    
    .featured-products {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image img {
        height: 250px;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .brand-value {
        padding: 40px 0;
    }
    
    .brand-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .space-preview {
        padding: 40px 0;
    }
    
    .space-grid {
        grid-template-columns: 1fr;
    }
    
    .space-image img {
        height: 250px;
    }
    
    .events {
        padding: 40px 0;
    }
    
    .featured-products {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .cta {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}