:root {
    --primary-color: #1a1a1a;
    --accent-color: #c9a96e;
    --text-color: #333;
    --light-text: #fff;
    --spacing-unit: 2rem;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-unit);
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    height: 80vh;  /* 从 100vh 改为 80vh */
    background-image: url('../img/hero1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero h1 {
    font-size: 4rem;  /* 稍微调小标题大小 */
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;  /* 稍微调小副标题大小 */
    font-weight: 300;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
}

.featured-exhibition {
    padding: var(--spacing-unit);
    background: #f8f8f8;
    text-align: center;
}

.exhibition-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
}

.exhibition-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.exhibition-image {
    width: 50%;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.exhibition-info {
    width: 50%;
    padding: 3rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.exhibition-info p {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.exhibition-info.expanded p {
    max-height: 1000px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.exhibition-info .toggle-btn {
    display: inline-block;
    margin-left: 6px;
    background: #4a90e2;
    color: white;
    border: none;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 10px;
    vertical-align: baseline;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    top: -1px;
}

.exhibition-info .toggle-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.exhibition-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.exhibition-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    /*background: darken(var(--accent-color), 10%);*/
    background: #4a90e2;
}

.collection-preview {
    padding: var(--spacing-unit);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
    padding: 1rem 2rem;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    padding-bottom: 75%; /* 4:3 比例 */
}

.collection-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 使用cover确保图片填满容器 */
    transition: transform 0.3s ease;
}

.collection-item:hover img {
    transform: scale(1.05);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.collection-item:hover .item-info {
    transform: translateY(-10px);
}

.artwork-desc {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    opacity: 0.9;
}

.about-section {
    padding: 6rem var(--spacing-unit);
    background: var(--primary-color);
    color: var(--light-text);
}

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

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.about-content > p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.service-item {
    text-align: left;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 1rem;
}

.service-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.service-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    flex-grow: 1;
}

.team-section {
    margin-top: 4rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h4 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--accent-color);
}

.team-member p {
    font-size: 1rem;
    opacity: 0.9;
}

.timeline {
    margin-top: 4rem;
    padding: 2rem 0;
    position: relative;
}

.timeline-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    position: relative;
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-section {
    padding: var(--spacing-unit);
    background: #f8f8f8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
}

.footer-links a, .footer-social a {
    color: var(--light-text);
    text-decoration: none;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

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

/* 添加响应式支持 */
@media (max-width: 992px) {
    .collection-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .collection-slider {
        grid-template-columns: 1fr;
    }
}
