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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 40px 0;
}

/* 头部/导航栏 */
header {
    background: url('img/header.jpg') no-repeat center top/100% auto;
    width: 96%;
    margin: 5px auto 0;
    padding-top: 54%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

nav {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-shrink: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #4CAF50;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-menu-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

/* 首页内容区域 */
.home-section {
    background-color: white;
    width: 96%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 60px;
    position: relative;
    z-index: 10;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.home-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.feature-item {
    flex: 1 1 280px;
    min-width: 0;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.feature-item h3 {
    margin-bottom: 20px;
    color: #4CAF50;
    font-size: 24px;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 页脚图片 */
footer {
    background: url('img/footer.jpg') no-repeat center top/100% auto;
    width: 96%;
    margin: 20px auto 0;
    padding-top: 54%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 底部信息 */
.site-info {
    text-align: center;
    padding: 20px 16px;
    background-color: #222;
    color: #ccc;
    font-size: 13px;
    line-height: 1.8;
}

.site-info p {
    margin: 0;
}

.site-info .company-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.site-info .company-address {
    padding: 0 10px;
    word-break: break-all;
}

.site-info .icp-link {
    margin-top: 8px;
}

.site-info a {
    color: white;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    header {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding-top: 120%;
    }

    nav {
        padding: 8px 0;
    }

    nav .container {
        position: relative;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 12px;
        gap: 8px;
    }

    .logo {
        font-size: 13px;
        letter-spacing: 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 8px 0;
    }

    .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .home-section {
        width: 100%;
        margin: 12px 0;
        padding: 30px 16px;
        border-radius: 0;
    }

    .home-section h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .features {
        gap: 12px;
    }

    .feature-item {
        flex: 1 1 100%;
        margin: 0;
        padding: 16px;
    }

    .feature-item h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-item p {
        font-size: 14px;
    }

    footer {
        width: 100%;
        margin: 12px 0 0;
        border-radius: 0;
        padding-top: 60%;
    }

    .site-info {
        padding: 16px 12px;
        font-size: 12px;
    }

    .site-info .company-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 12px;
    }

    header {
        padding-top: 130%;
    }
}
