:root {
    --primary-color: rgb(183, 158, 109);
    --primary-color-dark: rgb(187, 161, 107);
    --accent-color: rgb(187, 161, 107);
    --text-color: rgb(187, 161, 107);
    --light-gray: #f9fafb;
    --border-color: #ebebe5;
}

@font-face {
  font-family: 'SWSJC';
  src: url('assets/font/swsjc.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: rgb(239,237,238);
    --el-color-primary:rgb(183, 158, 109);
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
}

/* Element UI Overrides */
.el-menu.el-menu--horizontal {
    border-bottom: none;
}

.el-menu--horizontal > .el-menu-item.is-active,
.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
    border-bottom: 2px solid rgb(183, 158, 109);
    color: rgb(183, 158, 109) !important;
    background-color: transparent !important;
}

.el-card {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.el-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.el-button--primary {
    background-color: rgb(183, 158, 109);
    border-color: rgb(183, 158, 109);
    color: #fff; /* Set text color to white for contrast */
}

.el-button--primary:active {
    background-color: rgb(183, 158, 109);
    border-color: rgb(183, 158, 109);
}

.el-button--primary:focus {
    background-color: rgb(183, 158, 109);
    border-color: rgb(183, 158, 109);
}


.el-button--primary:hover {
    background-color: rgb(183, 158, 109) ;
    border-color: rgb(183, 158, 109) ;
}

.el-button--default:hover {
    background-color: rgba(183, 158, 109, 0.539);
    border-color: rgb(183, 158, 109);
    color: #fff; /* Ensure text is visible on hover */
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: var(--accent-color);
}

/* Custom Styles */
.page-banner {
    background-image: none;
    background-size: cover;
    background-position: center;
    color: white;
}

/* 兼容性样式 - Scene 3 所需 */
.cinema-aspect-ratio {
    aspect-ratio: 2.35 / 1;
}

/* 对于不支持 aspect-ratio 的浏览器 */
@supports not (aspect-ratio: 2.35 / 1) {
    .cinema-aspect-ratio {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: calc(100% / 2.35);
    }
    
    .cinema-aspect-ratio > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.video-aspect-ratio {
    aspect-ratio: 16 / 9;
}

/* 对于不支持 aspect-ratio 的浏览器 */
@supports not (aspect-ratio: 16 / 9) {
    .video-aspect-ratio {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 9/16 = 0.5625 */
    }
    
    .video-aspect-ratio > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.compat-object-cover {
    object-fit: cover;
}

.compat-flex {
    display: flex;
}

/* 对于不支持 object-fit 的浏览器 */
@supports not (object-fit: cover) {
    .compat-object-cover {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
    }
}

.page-banner .overlay {
    background-color: rgba(100, 95, 71, 0);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.news-content, .case-content {
    line-height: 1.8;
}

.news-content img, .case-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
