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

:root {
    --primary-color: #0284c7;
    --secondary-color: #0ea5e9;
    --accent-color: #0284c7;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* 移动端容器优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    display: block;
}

/* 移动端导航菜单遮罩 */
.nav-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 首页横幅 */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    overflow: hidden;
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-desc {
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    min-width: 140px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.9);
}

/* 通用区块样式 */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 60px;
}

/* 关于我们 */
.about {
    background: var(--bg-light);
}

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

.about-text h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--text-light);
}

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

.image-placeholder {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

.image-placeholder svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 服务项目 */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: clamp(25px, 4vw, 40px) clamp(20px, 4vw, 30px);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-icon svg {
    color: white;
    width: 60%;
    height: 60%;
}

.service-card h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 成功案例 */
.cases {
    background: var(--bg-light);
}

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

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-placeholder svg {
    width: 100%;
    height: 100%;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 12px;
    color: var(--text-dark);
}

.case-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: clamp(14px, 1.6vw, 16px);
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 500;
}

/* 联系我们 */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: white;
}

.contact-item h4 {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    word-break: break-all;
}

/* 电话号码加密样式 */
.phone-number {
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.phone-number:hover {
    color: var(--primary-color);
}

.phone-number.phone-revealed {
    cursor: default;
    user-select: text;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: clamp(18px, 2.5vw, 20px);
}

.footer-section h4 {
    font-size: clamp(16px, 2vw, 18px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: clamp(14px, 1.5vw, 16px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(12px, 1.4vw, 14px);
}

.icp-info {
    margin-top: 10px;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(12px, 1.3vw, 14px);
}

.icp-info a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-stats {
        gap: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-info {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 导航栏调整 */
    .navbar {
        padding: 12px 0;
    }

    .nav-brand {
        font-size: 20px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .nav-menu a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero区域调整 */
    .hero {
        padding-top: 60px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* 区块调整 */
    section {
        padding: 70px 0;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .contact-info {
        gap: 20px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-info {
        max-width: 100%;
    }

    /* 页脚调整 */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 12px;
    }

    /* 导航栏 */
    .navbar {
        padding: 10px 0;
    }

    .nav-brand {
        font-size: 18px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    /* Hero */
    .hero {
        padding-top: 55px;
    }

    .hero-content {
        padding: 10px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 120px;
    }

    /* 关于我们 */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    /* 服务项目 */
    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    /* 案例卡片 */
    .case-card {
        border-radius: 10px;
    }

    .case-content {
        padding: 20px;
    }

    .case-tags {
        gap: 8px;
    }

    /* 联系表单 */
    .contact-form {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 15px;
    }

    /* 页脚 */
    .footer-bottom {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .contact-form {
        padding: 20px 15px;
    }
}

/* 平板横屏优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .about-stats {
        gap: 15px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .section-title {
        font-size: 42px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .case-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    section {
        page-break-inside: avoid;
    }
}