
/* 全局变量定义 */
:root {
    --primary-color: #032B44; /* 主色调，深蓝色，传达信任与稳重 */
    --background-color: #F5F5F5; /* 背景色，灰色，提供温和的衬托 */
    --accent-color: #FF7E00; /* 点缀色，橙色，用于突出关键信息和按钮 */
    --text-color: #333333; /* 正文字体颜色 */
    --heading-color: #032B44; /* 标题颜色 */
    --shadow-color: rgba(0, 0, 0, 0.1); /* 阴影颜色 */
    --transition-speed: 0.3s; /* 过渡速度 */
    --font-family: 'Roboto', sans-serif; /* 全站字体 */
    --border-radius: 10px; /* 通用圆角半径 */
}

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

/* 设置字体和背景 */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-color); /* 导航栏阴影 */
}

/* 导航链接样式 */
.navbar a {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.navbar a:hover {
    color: var(--accent-color); /* 悬停时颜色变化 */
}

/* 设置页面滚动行为 */
html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 头部大图封面样式 */
.hero {
    height: 100vh;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 43, 68, 0.6); /* 遮罩层，增强文字可读性 */
}

.hero-title {
    position: relative;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 文字阴影 */
    animation: slideIn 1s forwards; /* 动画效果 */
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 各模块通用样式 */
.section {
    min-width: 500px; /* 确保每个模块宽度不低于500px */
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列布局 */
    align-items: center;
    gap: 40px;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

.section:nth-child(odd) {
    background-color: var(--background-color);
}

.section-content {
    max-width: 600px;
}

.section-content h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 2em;
}

.section-content p {
    color: #666666;
    margin-bottom: 20px;
}

/* 图片样式 */
.section img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.section img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px var(--shadow-color);
}

/* 按钮样式 */
.button {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: darkorange; /* 按钮悬停颜色变化 */
}

/* 功能模块样式 */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.feature-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.feature-item p {
    color: #555555;
    line-height: 1.5;
}

/* 用户评价模块样式 */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.testimonial {
    max-width: 600px;
}

.testimonial img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 圆形头像 */
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.testimonial p {
    font-style: italic;
    color: #666666;
    margin-bottom: 10px;
}

.testimonial span {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
}

/* 团队介绍模块样式 */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-member {
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member .icon {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2em;
}

.team-member p {
    color: #555555;
    font-size: 0.9em;
}

/* 联系方式模块样式 */
.contact {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact h3 {
    margin-bottom: 20px;
    font-size: 2em;
}

.contact .contact-info {
    margin-bottom: 30px;
}

.contact .button {
    background-color: var(--accent-color);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.contact .button:hover {
    background-color: darkorange;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #dddddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: #ffffff;
}

td {
    background-color: #ffffff;
}

code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* 动效相关类 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.icon-rotate {
    display: inline-block;
    transition: transform 0.5s ease;
}

.icon-rotate:hover {
    transform: rotate(360deg);
}

.slide-in-left {
    animation: slideInLeft 1s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section {
        grid-template-columns: 1fr;
        padding: 40px 10px;
    }

    .feature-item {
        flex: 1 1 100%;
    }

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

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

    .button {
        padding: 10px 15px;
    }

    .section-content h3 {
        font-size: 1.5em;
    }

    .section-content p {
        font-size: 0.9em;
    }

    .testimonial img {
        width: 80px;
        height: 80px;
    }
}

/* 图片装饰效果 */
.decorative-image {
    border-radius: 15px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px var(--shadow-color);
}

/* 提示信息样式 */
.reference-note {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 126, 0, 0.8);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    z-index: 1000;
}

