/* 全局样式 */
:root {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #3949ab;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --danger-color: #e53935;
    --success-color: #43a047;
    --max-width: 1200px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
    border: none;
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn.primary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 20px;
    font-weight: 400;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* 导航栏 */
header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.cta-buttons {
    animation: fadeIn 1.5s ease;
}

.cta-buttons .btn {
    margin: 0 10px;
}

.cta-buttons {
    animation: fadeIn 1.5s ease;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* 关于我们 */
.about {
    padding: 120px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 16px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* 服务内容 */
.services {
    padding: 100px 0;
}

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

.service-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 35, 126, 0.1);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05) 0%, rgba(57, 73, 171, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(57, 73, 171, 0.1) 100%);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* 金铲铲家政 */
.jcc {
    padding: 120px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.jcc-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.jcc-text {
    flex: 1;
}

.jcc-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.jcc-text p {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 16px;
}

.jcc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--success-color);
    font-size: 20px;
    margin-right: 10px;
}

.mini-program {
    background-color: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mini-program:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.mini-program h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.mini-program p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.qrcode {
    margin-top: 15px;
    text-align: center;
}

.qrcode img {
    max-width: 150px;
}

.jcc-image {
    flex: 1;
}

.jcc-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact {
    padding: 120px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 35, 126, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(57, 73, 171, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scale(1.1);
}

.contact-card:hover .contact-icon i {
    color: #fff;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--dark-color);
    font-weight: 600;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 20px;
    color: #fff;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
}

.footer-links ul li,
.footer-services ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li,
.footer-contact ul li {
    color: #aaa;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .jcc-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-image,
    .jcc-image {
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: #fff;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .footer-content > div {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex-basis: 50%;
        margin-bottom: 20px;
    }
    
    .jcc-features {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
} 