/* 全局变量定义 */
:root {
    --primary-color: #07C160;
    --primary-gradient: linear-gradient(135deg, #07C160 0%, #05A54E 100%);
    --hover-gradient: linear-gradient(135deg, #05A54E 0%, #049344 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --section-spacing: 8rem;
}

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero button:hover {
    background: white;
    color: var(--primary-color);
}

/* 服务卡片区域 */
.services {
    padding: var(--section-spacing) 10%;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 案例展示区域 */
.case-studies {
    padding: var(--section-spacing) 10%;
    background: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-smooth);
    padding: 1.5rem;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

/* 案例卡片图片样式 */
.case-study-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.case-study-card:hover img {
    transform: scale(1.05);
}

/* 案例卡片标题样式 */
.case-study-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

/* 案例数据样式 */
.case-study-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.case-study-card p::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

/* 案例详情样式 */
.case-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.case-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.case-details p::before {
    display: none;
}

/* 文章展示区域 */
.articles {
    padding: var(--section-spacing) 10%;
    background: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    color: #666;
    margin-bottom: auto;
    padding-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}
/* 联系我们区域 */
.contact {
    padding: var(--section-spacing) 10%;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

button[type="submit"] {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

button[type="submit"]:hover {
    background: var(--hover-gradient);
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

/* 备案链接样式 */
.beian-link {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.beian-link:hover {
    color: white;
    text-decoration: underline;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    :root {
        --section-spacing: 4rem;
    }

    .feature-item {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .feature-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-study-card,
    .article-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 0 1rem;
    }

    .case-study-card {
        padding: 1rem;
    }

    .case-study-card img {
        height: 180px;
        margin-bottom: 1rem;
    }

    .case-study-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .case-study-card p {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .case-details {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .logo img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* 特点展示区域 */
.features {
    padding: var(--section-spacing) 10%;
    background: white;
    position: relative;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    margin-bottom: 4rem;
    background: white;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.feature-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.feature-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* 滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

/* 图片拖动禁用 */
img {
    user-drag: none;
    -webkit-user-drag: none;
}

/* 服务区域样式补充 */
/* 服务类型展示 */
.service-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-type {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    text-align: center;
}

.service-type:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.service-type h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.service-type ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.service-type ul li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.service-type ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 服务优势说明 */
.service-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
}

.advantage-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .service-types {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-advantages {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .advantage-item {
        padding: 1.5rem;
    }
}
