/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary-color: #FF6B6B; /* 改为更活泼的粉红色 */
    --secondary-color: #4ECDC4; /* 浅绿色 */
    --accent-color: #FFE66D; /* 亮黄色 */
    --text-color: #333;
    --light-text: #fff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 布局容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* 按钮样式 */
.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
}

.primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
    margin-left: 15px;
}

.secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    position: relative;
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-color);
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    padding: 8px 20px !important;
    border-radius: 2px;
}

.contact-btn:hover {
    background-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 英雄视频区域 */
.hero-video {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    color: var(--light-text);
}

.overlay h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 700px;
}

.overlay p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    margin-top: 20px;
}

/* 冷笑话容器样式 */
.joke-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    max-width: 500px;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.random-joke {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 10px;
}

.joke-btn {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.joke-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: scale(1.05);
}

/* 卡片表情符号 */
.card-emoji {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    animation: wobble 2s infinite alternate;
}

@keyframes wobble {
    0% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(-10deg) scale(1); }
}

/* 浮动梗图 */
.floating-meme {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    animation: float 5s infinite ease-in-out;
    max-width: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: rotate(5deg);
}

.floating-meme img {
    max-width: 100%;
    display: block;
}

@keyframes float {
    0% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(5deg); }
}

/* 朋友表情 */
.friend-emoji {
    display: inline-block;
    margin-left: 5px;
    animation: pulse 1s infinite alternate;
}

/* 服务区域样式 */
.services {
    background-color: var(--light-text);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.service-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    flex-basis: 30%;
    background-color: var(--light-gray);
    padding: 40px 30px;
    border-radius: 5px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--light-text);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.learn-more i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.learn-more:hover i {
    transform: translateX(5px);
    margin-left: 8px;
}

/* 作品展示区样式 */
.showcase {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.section-header.dark h2 {
    color: var(--secondary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    color: var(--light-text);
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-hover h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.portfolio-hover p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.portfolio-hover a {
    color: var(--light-text);
    background-color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 2px;
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    text-align: center;
    width: fit-content;
}

.portfolio-item:hover .portfolio-hover a {
    transform: translateY(0);
    opacity: 1;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.view-all-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 客户评价区域样式 */
.testimonials {
    background-color: var(--light-text);
    padding: 100px 0;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    overflow: hidden;
}

.testimonial {
    flex: 0 0 100%;
    padding: 0 20px;
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.testimonial.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-content {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: var(--light-gray);
    transform: rotate(45deg);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--light-gray);
    color: var(--primary-color);
    cursor: pointer;
    margin: 0 5px;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* 联系区域样式 */
.contact-section {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 100px 0;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    flex: 1;
    padding-right: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background-color: var(--light-text);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 3px;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 177, 0.2);
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    width: 100%;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    flex: 1;
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex: 3;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    transition: color var(--transition-speed) ease;
}

.footer-column ul li a:hover,
.footer-column ul li i {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 响应式样式 */
@media screen and (max-width: 1024px) {
    #hero-video {
        width: 100%;
        height: 100vh;
        min-width: auto;
        min-height: 100%;
        object-fit: cover;
    }
    
    .overlay h1 {
        font-size: 3.5rem;
    }
    
    .service-card {
        flex-basis: 45%;
        margin-bottom: 30px;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .floating-meme {
        max-width: 100px;
    }
}

@media screen and (max-width: 768px) {
    #hero-video {
        width: auto;
        height: 100%; 
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
    
    .overlay h1 {
        font-size: 3rem;
    }
    
    .overlay p {
        font-size: 1rem;
    }
    
    .logo-container {
        max-width: 50%;
        overflow: visible;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 35px;
        width: auto;
        max-width: 40%;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: var(--light-text);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: all 0.3s ease;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .service-card {
        flex-basis: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        flex-basis: 100%;
    }
    
    .rotate-emoji {
        width: 60px;
        height: 60px;
    }
    
    .funny-element {
        right: 5%;
        bottom: 10%;
    }
    
    .floating-meme {
        top: 80px;
        right: 10px;
        max-width: 80px;
    }
    
    .joke-container {
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    #hero-video {
        width: auto;
        height: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .overlay {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .overlay h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .rotate-emoji {
        width: 40px;
        height: 40px;
    }
    
    .logo-container {
        max-width: 60%;
    }
    
    .logo {
        height: 30px;
        max-width: 30%;
    }
    
    .logo-text {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .floating-meme {
        max-width: 60px;
    }
}

/* 超小屏幕设备 */
@media screen and (max-width: 360px) {
    #hero-video {
        width: auto;
        height: 100%;
    }
    
    .overlay h1 {
        font-size: 1.8rem;
    }
    
    .overlay p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-btn.secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .logo-container {
        max-width: 70%;
    }
    
    .logo {
        height: 25px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

/* 添加搞怪文字动画 */
.bounce-text {
    display: inline-block;
    color: var(--accent-color);
    animation: bounce 2s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 旋转表情 */
.funny-element {
    position: absolute;
    right: 10%;
    bottom: 15%;
}

.rotate-emoji {
    width: 80px;
    height: 80px;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 特色卡片样式 */
.funny-card {
    transition: all 0.5s ease;
    border: 2px dashed transparent;
}

.funny-card:hover {
    transform: translateY(-15px) rotate(2deg);
    border-color: var(--accent-color);
    background: linear-gradient(145deg, var(--light-text), var(--light-gray));
}

.funny-card i {
    transition: all 0.5s ease;
}

.funny-card:hover i {
    transform: scale(1.2) rotate(15deg);
    color: var(--secondary-color);
}

/* 抖动按钮效果 */
.shake-btn {
    position: relative;
    overflow: hidden;
}

.shake-btn:hover {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.shake-btn:hover::after {
    left: 100%;
    opacity: 1;
}

/* 社交图标弹跳效果 */
.bounce-icon {
    transition: all 0.3s ease;
}

.social-icon:hover .bounce-icon {
    animation: icon-bounce 0.8s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* 光标样式 */
input, textarea {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23FF6B6B"><path d="M7 10l5 5 5-5z"/></svg>'), auto;
} 