/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c5530;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5530;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2c5530;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅样式 */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #1e3a21;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2c5530;
    border-color: #2c5530;
}

.btn-secondary:hover {
    background: #2c5530;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-architecture {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.arch-layer {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.arch-layer:hover {
    transform: scale(1.05);
}

.arch-layer.front {
    background: linear-gradient(135deg, #4caf50, #2c5530);
}

.arch-layer.middle {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.arch-layer.back {
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.arch-layer h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* 设计原则区域 */
.principles {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: 700;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.principle-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.principle-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.principle-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.principle-card p {
    color: #666;
    line-height: 1.6;
}

/* 组织架构图样式 */
.org-structure {
    padding: 80px 0;
    background: white;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 3rem;
}

.org-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.level-title {
    color: #2c5530;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.org-nodes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.org-node {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.org-node:hover {
    border-color: #2c5530;
    transform: translateY(-5px);
}

.org-node h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.org-node p {
    color: #666;
    font-size: 0.9rem;
}

/* 前台、中台、后台样式 */
.front-office .org-node {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
}

.middle-office .org-node {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.back-office .org-node {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.ceo .org-node {
    background: linear-gradient(135deg, #2c5530, #4caf50);
    color: white;
}

.ceo .org-node h4,
.ceo .org-node p {
    color: white;
}

.committee .org-node {
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
    color: white;
}

.committee .org-node h4,
.committee .org-node p {
    color: white;
}

/* 部门详情样式 */
.departments {
    padding: 80px 0;
    background: #f8f9fa;
}

.department-section {
    margin-bottom: 4rem;
}

.department-type {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #2c5530;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.department-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
}

.department-card h4 {
    color: #2c5530;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.department-function {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.positions {
    display: grid;
    gap: 1.5rem;
}

.position {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2c5530;
}

.position h5 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.position p {
    color: #666;
    line-height: 1.6;
}

/* 联系信息样式 */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-mission {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.contact-mission h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* 页脚样式 */
.footer {
    background: #2c5530;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 40px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .platform-architecture {
        width: 100%;
        max-width: 300px;
    }

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

    .org-nodes {
        flex-direction: column;
        align-items: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .department-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .org-node {
        min-width: 150px;
    }
}