@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500&family=YouYuan&display=swap');

:root {
    --primary-color: #4A90E2;
    --secondary-color: #666;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --bg-color: #f9f9f9;
    --dark-bg: #2c3e50;
    --border-radius: 5px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "YouYuan", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--text-color);
    font-weight: bold;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "YouYuan", "Microsoft YaHei", sans-serif;
    font-size: 16px;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #725a31;
}

/* 导航栏样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.logo {
    float: left;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 导航菜单样式 */
.main-menu {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-menu > li > a:hover {
    color: var(--primary-color);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
    padding: 10px 0;
}

.main-menu li:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 英雄区域样式 */
#hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.pexels.com/photos/1573236/pexels-photo-1573236.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 60px;
}

#hero .container {
    max-width: 800px;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 不规则布局样式 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-bottom: 40px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.masonry-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

.masonry-item.medium {
    grid-column: span 2;
    grid-row: span 1;
}

.masonry-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.item-overlay p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.btn-overlay {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-overlay:hover {
    background-color: #725a31;
}

/* 快速链接样式 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-link-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-link-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 页脚样式 */
#footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
}

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

.social-icons a {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

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

/* 内页通用样式 */
.page-header {
    height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/1573236/pexels-photo-1573236.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
}

.breadcrumb li {
    margin: 0 5px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section {
        padding: 50px 0;
    }
    
    #hero h2 {
        font-size: 2.5rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-item.large,
    .masonry-item.medium {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    #header .container {
        padding: 0 15px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    #hero {
        height: 70vh;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #hero h2 {
        font-size: 1.6rem;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-item.large,
    .masonry-item.medium,
    .masonry-item.small {
        grid-column: span 1;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
} 

