/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B0000; /* 深红色，代表传统文化 */
    --secondary-color: #333333;
    --text-color: #555555;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --font-main: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    --font-serif: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif; /* 衬线字体用于标题 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* 导航栏 */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo h1 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 24px;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 首页 Banner */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/20251212-tula.jpeg'); /* 临时使用Unsplash图片作为背景 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 通用 Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-title .divider {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

.section-title p {
    color: #999;
    font-size: 14px;
    letter-spacing: 2px;
}

/* 关于我们 */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

.about-image {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 业务领域 */
.bg-light {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 企业文化 */
.culture-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.culture-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.culture-icon {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
}

.culture-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 50%;
}

.culture-item h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 联系我们 */
.bg-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.contact-box {
    text-align: center;
}

.contact-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-color);
}

/* 底部 */
footer {
    background-color: #000;
    color: #888;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #888;
}

footer a:hover {
    color: var(--primary-color);
}

/* 动画类 */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: var(--secondary-color);
    }

    nav {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 100%;
        background-color: var(--white);
        transition: right 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}
