/* 全局样式表 - Global Styles */

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* 为固定头部留出空间 */
}

/* ==========================================================================
   头部组件样式 - Header Component Styles
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
}

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

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.header__nav-item {
    margin: 0;
}

.header__nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link:hover,
.header__nav-link:focus {
    background-color: #f3f4f6;
    color: #2563eb;
    outline: none;
}

.header__nav-link--active {
    background-color: #2563eb;
    color: #ffffff;
}

.header__nav-link--active:hover,
.header__nav-link--active:focus {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* 移动端汉堡菜单按钮 */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.header__menu-toggle:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.header__menu-toggle-line {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡菜单动画效果 */
.header__menu-toggle--active .header__menu-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle--active .header__menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle--active .header__menu-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   响应式设计 - Responsive Design
   ========================================================================== */

/* 桌面设备 (1024px 及以上) */
@media (min-width: 1024px) {
    .hero__container,
    .services__container,
    .about__container,
    .contact__container {
        padding: 0 40px;
    }
}

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .header__container {
        padding: 0 16px;
    }
    
    .header__nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .header__nav--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .header__nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .header__nav-item {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .header__nav-item:last-child {
        border-bottom: none;
    }
    
    .header__nav-link {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        text-align: left;
    }
    
    .header__menu-toggle {
        display: flex;
    }
    
    /* 内容区块平板适配 */
    .hero__container,
    .services__container,
    .about__container,
    .contact__container {
        padding: 0 24px;
    }
    
    /* 英雄区平板适配 */
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    /* 服务区平板适配 */
    .services {
        padding: 80px 0;
    }
    
    .services__header {
        margin-bottom: 60px;
    }
    
    .services__title {
        font-size: 2rem;
    }
    
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }
    
    /* 关于区平板适配 */
    .about {
        padding: 80px 0;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__title {
        font-size: 2rem;
        text-align: center;
    }
    
    .about__description {
        text-align: center;
    }
    
    /* 联系区平板适配 */
    .contact {
        padding: 80px 0;
    }
    
    .contact__title {
        font-size: 2rem;
    }
    
    .contact__info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
}

/* 手机设备 (414px 及以下) */
@media (max-width: 414px) {
    body {
        padding-top: 70px;
    }
    
    .header {
        height: 70px;
    }
    
    .header__container {
        padding: 0 12px;
    }
    
    .header__logo-img {
        width: 100px;
        height: 33px;
        object-fit: cover;
    }
    
    .header__nav {
        top: 70px;
    }
    
    .header__nav-list {
        padding: 16px;
    }
    
    .header__nav-link {
        padding: 14px 0;
        font-size: 16px;
    }
    
    /* 内容区块手机适配 */
    .hero__container,
    .services__container,
    .about__container,
    .contact__container {
        padding: 0 16px;
    }
    
    /* 英雄区手机适配 */
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero__cta-button,
    .hero__secondary-button {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* 服务区手机适配 */
    .services {
        padding: 60px 0;
    }
    
    .services__header {
        margin-bottom: 40px;
    }
    
    .services__title {
        font-size: 1.75rem;
    }
    
    .services__subtitle {
        font-size: 1rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-card__title {
        font-size: 1.25rem;
    }
    
    /* 关于区手机适配 */
    .about {
        padding: 60px 0;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__title {
        font-size: 1.75rem;
    }
    
    .about__description {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .about__highlight {
        padding: 16px;
    }
    
    .about__highlight-title {
        font-size: 1.125rem;
    }
    
    /* 联系区手机适配 */
    .contact {
        padding: 60px 0;
    }
    
    .contact__title {
        font-size: 1.75rem;
    }
    
    .contact__subtitle {
        font-size: 1rem;
    }
    
    .contact__info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact__item {
        padding: 20px;
    }
    
    .contact__item-title {
        font-size: 1rem;
    }
}

/* 超小手机设备 (375px 及以下) */
@media (max-width: 375px) {
    .header__container {
        padding: 0 10px;
    }
    
    .header__logo-img {
        width: 90px;
        height: 30px;
        object-fit: cover;
    }
    
    /* 内容区块超小手机适配 */
    .hero__container,
    .services__container,
    .about__container,
    .contact__container {
        padding: 0 12px;
    }
    
    /* 英雄区超小手机适配 */
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__cta-button,
    .hero__secondary-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* 服务区超小手机适配 */
    .services__title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    /* 关于区超小手机适配 */
    .about__title {
        font-size: 1.5rem;
    }
    
    /* 联系区超小手机适配 */
    .contact__title {
        font-size: 1.5rem;
    }
    
    .contact__item {
        padding: 16px;
    }
}

/* ==========================================================================
   内容区块样式 - Content Sections Styles
   ========================================================================== */

/* 通用容器样式 */
.hero__container,
.services__container,
.about__container,
.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   英雄区样式 - Hero Section Styles
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    max-width: 500px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__cta-button,
.hero__secondary-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero__cta-button {
    background-color: #ffffff;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero__cta-button:hover,
.hero__cta-button:focus {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.hero__secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero__secondary-button:hover,
.hero__secondary-button:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   服务区样式 - Services Section Styles
   ========================================================================== */

.services {
    padding: 100px 0;
    background-color: #f8fafc;
}

.services__header {
    text-align: center;
    margin-bottom: 80px;
}

.services__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.services__subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.service-card__description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   关于区样式 - About Section Styles
   ========================================================================== */

.about {
    padding: 100px 0;
    background-color: white;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.about__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 40px;
}

.about__highlights {
    display: grid;
    gap: 24px;
}

.about__highlight {
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.about__highlight-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.about__highlight-text {
    color: #6b7280;
    line-height: 1.5;
}

.about__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__image-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   联系区样式 - Contact Section Styles
   ========================================================================== */

.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

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

.contact__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.contact__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact__content {
    max-width: 800px;
    margin: 0 auto;
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact__item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact__item-icon {
    width: 48px;
    height: 48px;
    background-color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact__item-content {
    flex: 1;
}

.contact__item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.contact__item-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact__item-link:hover,
.contact__item-link:focus {
    color: #93c5fd;
    text-decoration: underline;
    outline: none;
}

.contact__item-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
