@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 头部导航 */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.m-header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-logo {
    display: flex;
    align-items: center;
    color: #fff;
}

.m-logo img {
    height: 30px;
    margin-right: 8px;
}

.m-logo-text {
    font-size: 18px;
    font-weight: bold;
}

.m-menu-btn {
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.m-menu-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.m-menu-btn span:nth-child(1) { top: 0; }
.m-menu-btn span:nth-child(2) { top: 9px; }
.m-menu-btn span:nth-child(3) { top: 18px; }

.m-menu-btn.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.m-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.m-menu-btn.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* 导航菜单 */
.m-nav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.m-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.m-nav-list {
    list-style: none;
}

.m-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.m-nav-list li:last-child {
    border-bottom: none;
}

.m-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
}

.m-nav-list li a.active {
    color: #ff8543;
}

.m-nav-mask {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

/* 主内容区 */
.m-main {
    padding-top: 50px;
    padding-bottom: 70px;
}

/* Banner */
.m-banner {
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.m-banner-content {
    animation: fadeInUp 1s ease;
}

.m-banner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.m-banner-logo-en {
    font-size: 14px;
    color: #888;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.m-banner-logo-cn {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 5px;
}

.m-banner-desc {
    font-size: 18px;
    color: #ff8543;
    margin-bottom: 15px;
}

.m-banner-sub {
    font-size: 14px;
    color: #aaa;
}

.m-banner-scroll {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 12px;
    animation: bounce 2s infinite;
}

.m-arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 通用区块样式 */
.m-section {
    padding: 40px 15px;
    background: #fff;
    margin-bottom: 10px;
}

.m-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.m-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.m-section-subtitle {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
}

/* 关于我们 */
.m-about {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.m-about .m-section-title {
    color: #fff;
}

.m-about-content {
    font-size: 14px;
    line-height: 2;
    text-align: center;
    margin-bottom: 30px;
}

.m-highlight {
    color: #ff8543;
    font-weight: bold;
}

.m-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.m-stat-item {
    padding: 15px 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.m-stat-num {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ff8543;
    margin-bottom: 5px;
}

.m-stat-plus {
    font-size: 14px;
}

.m-stat-label {
    font-size: 11px;
    color: #aaa;
}

/* 核心业务 */
.m-service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.m-service-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.m-service-item:active {
    transform: scale(0.98);
    background: #ff8543;
    color: #fff;
}

.m-service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #ff8543 0%, #ff6b35 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-service-icon img {
    width: 28px;
    height: 28px;
}

.m-service-emoji {
    font-size: 28px;
    line-height: 1;
}

.m-service-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.m-service-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

.m-service-item:active .m-service-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* 案例展示 */
.m-cases {
    background: #f5f5f5;
}

.m-case-swiper {
    overflow: hidden;
    position: relative;
}

.m-case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.m-case-img {
    aspect-ratio: 270/450;
    overflow: hidden;
}

.m-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-case-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.m-case-info {
    padding: 15px;
}

.m-case-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.m-case-info p {
    font-size: 12px;
    color: #888;
}


/* 服务流程 */
.m-process {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
    position: relative;
}

.m-process::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ff8543, #ff6b35);
}

.m-process-list {
    position: relative;
    padding-left: 20px;
}

.m-process-list::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff8543, #ff6b35);
}

.m-process-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

.m-process-num {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff8543 0%, #ff6b35 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    z-index: 1;
}

.m-process-text {
    font-size: 14px;
    color: #555;
}

/* 联系我们 */
.m-contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    margin-bottom: 0;
}

.m-contact .m-section-title {
    color: #fff;
}

.m-contact-content {
    margin-bottom: 30px;
}

.m-contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.m-contact-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.m-contact-item:last-child {
    border-bottom: none;
}

.m-contact-label {
    color: #aaa;
    font-size: 14px;
}

.m-contact-value {
    font-size: 14px;
    text-align: right;
}

.m-contact-link {
    color: #ff8543;
}

.m-contact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.m-contact-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.m-contact-stat-num {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #ff8543;
    margin-bottom: 5px;
}

.m-contact-stat-num span {
    font-size: 18px;
}

.m-contact-stat-label {
    font-size: 12px;
    color: #aaa;
}

/* 友情链接 */
.m-friends {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}

.m-friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.m-friends-swiper {
    overflow: hidden;
    padding-bottom: 26px;
}

.m-friends-swiper .swiper-slide {
    width: auto;
}

.m-friends-swiper .swiper-pagination {
    bottom: 0 !important;
}

.m-friends-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #d8dde6;
    opacity: 1;
}

.m-friends-swiper .swiper-pagination-bullet-active {
    background: #ff8543;
}

.m-friend-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e9f0;
    border-radius: 18px;
    background: #fff;
    color: #4d5a6a;
    font-size: 13px;
    line-height: 1;
}

.m-friend-link:active {
    border-color: #ff8543;
    color: #ff8543;
}

/* 在线留言 */
.m-message {
    background: #f5f5f5;
}

.m-message-form {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.m-meta-input {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: -1;
}

.m-form-group {
    margin-bottom: 15px;
}

.m-form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.m-form-input,
.m-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.m-form-input:focus,
.m-form-textarea:focus {
    outline: none;
    border-color: #ff8543;
}

.m-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.m-form-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff8543 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.m-form-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 底部导航 */
.m-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    height: calc(60px + constant(safe-area-inset-bottom));
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.m-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    transition: all 0.3s ease;
}

.m-bottom-nav-item:active {
    color: #ff8543;
    background: #f5f5f5;
}

.m-bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.m-bottom-nav-text {
    font-size: 11px;
}

/* 底部版权 */
.m-footer {
    background: #1a1a2e;
    color: #666;
    text-align: center;
    padding: 20px 15px 80px;
    font-size: 12px;
}

.m-footer-inner p {
    margin: 5px 0;
}

/* 联系详情富文本容器 */
.m-rich-content {
    width: 100%;
    overflow: hidden;
}

.m-rich-content img,
.m-rich-content video,
.m-rich-content iframe {
    max-width: 100% !important;
    height: auto !important;
}

.m-rich-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.m-rich-content th,
.m-rich-content td {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.m-rich-content p,
.m-rich-content li,
.m-rich-content a,
.m-rich-content span,
.m-rich-content h1,
.m-rich-content h2,
.m-rich-content h3,
.m-rich-content h4,
.m-rich-content h5,
.m-rich-content h6 {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.m-rich-content pre,
.m-rich-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* 平板适配 */
@media screen and (min-width: 768px) {
    .m-banner-logo-cn {
        font-size: 48px;
    }

    .m-banner-desc {
        font-size: 24px;
    }

    .m-section {
        padding: 60px 30px;
    }

    .m-section-title {
        font-size: 32px;
    }

    .m-service-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .m-stats {
        max-width: 600px;
        margin: 0 auto;
    }

    .m-contact-stats {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* 案例详情页 */
.m-main:has(.m-case-detail) {
    padding-bottom: 0;
}

.m-case-detail {
    padding-top: 0;
    background: #f5f5f5;
    min-height: 100vh;
}

.m-case-detail-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 50px;
}

.m-case-back {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    margin-right: 16px;
    white-space: nowrap;
}

.m-case-detail-header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-case-detail-images {
    padding: 0;
}

.m-case-detail-img {
    width: 100%;
    line-height: 0;
}

.m-case-detail-img img {
    width: 100%;
    display: block;
}

.m-case-card {
    cursor: pointer;
}

/* 案例详情 - 简介区域 */
.m-case-detail-intro {
    background: #fff;
    padding: 20px 16px;
    margin-bottom: 2px;
}

.m-case-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.m-case-detail-subtitle {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.m-case-detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 案例详情 - 免责声明 */
.m-case-detail-disclaimer {
    padding: 20px 16px;
    background: #f5f5f5;
}

.m-case-detail-disclaimer p {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

.m-case-detail-disclaimer a {
    color: #ff8543;
    text-decoration: none;
}

/* 案例详情 - 底部按钮 */
.m-case-detail-footer {
    display: flex;
    gap: 12px;
    padding: 20px 16px 80px;
    background: #f5f5f5;
}

.m-case-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.m-case-btn-back {
    background: linear-gradient(135deg, #ff8543 0%, #ff6b35 100%);
    color: #fff;
}

.m-case-btn-top {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.m-case-disclaimer {
    padding: 0 15px;
    margin-top: -20px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #999;
    line-height: 1.7;
    text-align: justify;
}

.m-case-disclaimer a {
    color: #666;
    text-decoration: underline;
}
}