/* ========================================
   恒创新域建站 - 全局样式表
   风格：飞盘潮流风 | 浅青柠 + 纯白 + 蜜桃粉
   ======================================== */

:root {
    --color-lime: #C4F86E;
    --color-white: #FFFFFF;
    --color-pink: #FFB5C5;
    --color-dark: #2D3436;
    --color-gray: #F5F7FA;
    --color-text: #4A5568;
    --shadow-soft: 0 10px 40px rgba(196, 248, 110, 0.2);
    --shadow-card: 0 8px 30px rgba(255, 181, 197, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--color-white);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   左侧固定导航
   ======================================== */
.left-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-lime) 0%, var(--color-white) 100%);
    padding: 40px 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 30px rgba(0,0,0,0.08);
}

.nav-logo {
    text-align: center;
    margin-bottom: 40px;
}

.nav-logo img {
    width: 180px;
    height: 60px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.nav-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 2px;
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
}

.nav-menu li {
    margin-bottom: 12px;
}

.nav-menu a {
    display: block;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark);
    background: rgba(255,255,255,0.6);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--color-pink);
    transform: scaleY(0);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--color-white);
    color: var(--color-dark);
    transform: translateX(8px);
    box-shadow: var(--shadow-card);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: scaleY(1);
}

/* 导航分组标题（孤立页面分组） */
.nav-menu .nav-group-title {
    margin: 18px 0 6px;
    padding: 6px 20px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-pink);
    border-top: 1px dashed rgba(255, 181, 197, 0.5);
    list-style: none;
}

.nav-menu .nav-group-title:first-child {
    border-top: none;
    margin-top: 0;
}

.nav-menu .nav-group-title span {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--color-lime);
}

.nav-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed var(--color-pink);
}

.nav-contact p {
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 8px;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-lime);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-soft);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   右侧内容区 - 阶梯攀升布局
   ======================================== */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 60px 80px;
    background: var(--color-gray);
}

.section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section:nth-child(odd) {
    margin-left: 0;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-lime), var(--color-pink));
    border-radius: 3px;
}

/* ========================================
   Hero Banner
   ======================================== */
.hero-banner {
    position: relative;
    height: 90vh;
    background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-white) 50%, var(--color-pink) 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    box-shadow: var(--shadow-soft);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 40px;
}

.hero-content h2 {
    font-size: 64px;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 30px;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 22px;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto 50px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(196, 248, 110, 0.4);
    background: var(--color-dark);
    color: var(--color-lime);
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--color-pink);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--color-lime);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--color-white);
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   卡片样式
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(196, 248, 110, 0.3);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.card-desc {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--color-lime), var(--color-pink));
    color: var(--color-dark);
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
}

.card-link:hover {
    filter: brightness(1.1);
    transform: translateX(5px);
}

/* ========================================
   资讯列表
   ======================================== */
.news-section {
    background: var(--color-white);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
}

.news-category {
    margin-bottom: 50px;
}

.news-category h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 5px solid var(--color-lime);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-item {
    background: var(--color-gray);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.news-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-item-content {
    padding: 20px;
}

.news-item-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-item-excerpt {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: 80px 80px 40px;
    margin-top: 100px;
    border-radius: 30px 30px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-lime);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    font-size: 15px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-lime);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #999;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .main-content {
        margin-left: 240px;
        padding: 40px 50px;
    }
    
    .section:nth-child(even) {
        margin-left: 40px;
    }
}

@media (max-width: 992px) {
    .left-nav {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .left-nav.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 100px 30px 40px;
    }
    
    .section:nth-child(even) {
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ========================================
   步骤列表样式（design-service.html 专用）
   ======================================== */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.step-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.step-item.step-reverse {
    direction: rtl;
}

.step-item.step-reverse > * {
    direction: ltr;
}

.step-number {
    font-size: 72px;
    font-weight: 900;
    color: var(--color-lime);
    line-height: 1;
    opacity: 0.8;
}

.step-body h3 {
    font-size: 24px;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.step-body p {
    color: var(--color-text);
    margin-bottom: 15px;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    color: var(--color-text);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-pink);
    font-weight: bold;
}

.step-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

/* CTA 区域样式 */
.cta-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: var(--color-white);
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--color-lime);
    color: var(--color-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 248, 110, 0.4);
}

/* 案例卡片增强 */
.case-card {
    overflow: hidden;
}

.case-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 20px;
}

.card-body h4 {
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.card-body p {
    font-size: 14px;
    color: var(--color-text);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .step-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-item.step-reverse {
        direction: ltr;
    }
    
    .step-number {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .step-list {
        gap: 40px;
    }
    
    .step-number {
        font-size: 36px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}

/* ========================================
   design-service.html 专用样式
   ======================================== */

.design-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(255, 181, 197, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; /* 改为居中对齐 */
    text-align: center;
}

.design-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 181, 197, 0.25);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-lime), var(--color-pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 25px; /* 顶部增加30px间距，水平居中 */
    font-size: 24px;
    color: var(--color-white);
    flex-shrink: 0;
}

.design-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    max-width: 100%;
}

.design-card p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.5px;
    max-width: 90%; /* 限制文字宽度，避免触边 */
}

/* 步骤列表样式 */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background: var(--color-gray);
    border-radius: 16px;
    transition: var(--transition);
}

.step-item:nth-child(odd) {
    margin-left: 0;
}

.step-item:nth-child(even) {
    margin-left: 60px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-dark);
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

/* 案例网格 */
.case-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.case-item:hover {
    transform: scale(1.02);
}

.case-item img {
    object-fit: cover;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .step-item:nth-child(even) {
        margin-left: 0;
    }
    
    .design-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .design-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 15px;
    }
}
