/* === 淘宝暗色配色变量 === */
:root {
  --max: 1100px;
  --radius: 12px;
  
  /* 重新定义主色：顺滑四色渐变（蓝→紫→粉→红） */
  --tb-primary: linear-gradient(135deg, #456df0 0%, #a06ce8 35%, #fc60aa 70%, #ff456c 100%);
  --tb-dark: #111;
  --tb-gray: #1a1a1a;
  --tb-light: #333;
  --tb-white: #fff;
  
  /* 头部渐变 */
  --header-gradient: linear-gradient(135deg, #456df0 0%, #ff456c 75%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    background-color: var(--tb-dark);
    color: var(--tb-white);
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px;
}

/* === 头部样式统一 === */
header {
    background: var(--header-gradient);
    color: var(--tb-white);
    padding: clamp(30px, 5vw, 50px) 20px;
    text-align: center;
    margin-bottom: 30px;
}

.back-home a {
    color: var(--tb-white);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* === 服务介绍区域 === */
.service-intro {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    /* 移除text-align: center，改为flex布局实现内容居中但文字左对齐 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-intro h1 {
    text-align: center; /* 标题保持居中 */
    margin-bottom: 15px;
}

.service-intro-content {
    text-align: left; /* 内容文字左对齐 */
    width: 100%; /* 确保宽度充满容器 */
    max-width: 800px; /* 限制最大宽度，提高阅读体验 */
}

/* === 联系按钮区域 === */
.contact-section {
    text-align: center;
    margin: 30px 0;
}

.contact-btn {
    background: var(--tb-primary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.35);
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* === 案例展示区域 === */
.case-showcase {
    margin: 40px 0;
    text-align: center;
}

.case-showcase h2 {
    margin-bottom: 20px;
    text-align: center;
}

.case-examples {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    justify-content: center;
}

@media (min-width: 480px) {
    .case-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .case-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .case-examples {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-examples img {
    border: 2px solid var(--tb-light);
    border-radius: 8px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-examples img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* === 服务特点网格 === */
.service-features {
    margin: 50px 0;
    text-align: center;
}

.service-features h2 {
    margin-bottom: 30px;
    color: var(--tb-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--radius);
    text-align: left;
}

.feature-item h3 {
    color: var(--tb-white);
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-item p {
    color: #ccc;
    line-height: 1.6;
}

/* === 服务流程 === */
.service-process {
    margin: 50px 0;
    text-align: center;
}

.service-process h2 {
    margin-bottom: 40px;
    color: var(--tb-white);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
    }
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--tb-primary);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3 {
    color: var(--tb-white);
    margin-bottom: 10px;
    font-size: 18px;
}

.step p {
    color: #ccc;
    font-size: 14px;
}

/* === 页脚 === */
footer {
    background-color: var(--tb-gray);
    color: #aaa;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}