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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 容器 */
.wrapper {
    width: 100%;
    overflow-x: hidden;
}

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

/* 头部轮播图样式 */
#header {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 10px;
    list-style: none;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators li.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 轮播内容 */
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.item.active {
    opacity: 1;
}

/* 背景图片 */
.slide-1,
.slide-2,
.slide-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-1 {
    background-image: url('../img/slide1.jpg');
}

.slide-2 {
    background-image: url('../img/slide2.jpg');
}

.slide-3 {
    background-image: url('../img/slide3.jpg');
}

/* 英雄区域 */
.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
}

.hero hgroup {
    margin-bottom: 30px;
}

.hero li {
    list-style: none;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.hero img {
    width: 120px;
    height: auto;
    margin: 20px 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 导航栏 */
.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-wrapper {
    padding: 15px 0;
}

.navbar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: 2px solid #fff;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s;
}

.navbar-nav {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 30px;
}

.navbar-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    transition: all 0.3s;
    border-radius: 4px;
}

.navbar-nav li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 页面区块 */
.page-section {
    padding: 80px 0;
}

/* 标题样式 */
.heading {
    text-align: center;
    margin-bottom: 60px;
}

.heading h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.heading h3 {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* 服务区域 */
.service {
    background: #f8f9fa;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.box-area {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

.box-area:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.box-area-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.box-area h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.box-area-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* 关于我们区域 */
.aboutus {
    background: #fff;
}

.aboutus .heading h2 {
    margin-bottom: 10px;
}

.aboutus .heading p h2 {
    color: #667eea;
    font-size: 2rem;
    margin-top: 20px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

.gototop {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 50px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.gototop:hover {
    background: #764ba2;
    transform: translateY(-5px);
}

.footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.footer ul li {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.footer ul li:hover {
    background: #667eea;
    transform: scale(1.1);
}

.footer p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer p a {
    color: #667eea;
    text-decoration: none;
}

.footer p a:hover {
    text-decoration: underline;
}

/* 响应式设计 - 平板 */
@media (max-width: 992px) {
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

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

    .hero h3 {
        font-size: 1.2rem;
    }

    .navbar-nav {
        gap: 15px;
    }

    .navbar-nav li a {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

    .hero h3 {
        font-size: 1rem;
    }

    .hero li {
        font-size: 1rem;
    }

    .hero img {
        width: 80px;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .heading h2 {
        font-size: 2rem;
    }

    .heading h3 {
        font-size: 0.9rem;
    }

    .page-section {
        padding: 50px 0;
    }

    .navbar-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
    }

    #main-nav.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    .navbar-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav li a {
        display: block;
        padding: 15px 20px;
    }

    .footer p {
        font-size: 0.8rem;
    }

    .footer ul {
        gap: 15px;
    }
}
