/* 全局样式 */
:root {
    --primary-color: #ffe60f;
    --primary-dark: #e6cf0d;
    --primary-light: #fff8b3;
    --primary-gradient: linear-gradient(135deg, #ffe60f 0%, #e6cf0d 100%);
    --secondary-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --shadow-sm: 0 2px 8px rgba(230, 207, 13, 0.1);
    --shadow-md: 0 4px 15px rgba(230, 207, 13, 0.15);
    --shadow-lg: 0 8px 30px rgba(230, 207, 13, 0.2);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
.navbar {
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-color) !important;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    animation: pulse-glow 3s infinite;
}

.navbar-brand:hover img {
    transform: scale(1.05) rotate(2deg);
}

.nav-link {
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
    color: var(--text-color) !important;
    position: relative;
    margin: 0 0.2rem;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 230, 15, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(230, 207, 13, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 44, 44, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.2rem 0;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        background: rgba(230, 207, 13, 0.1);
        transform: translateX(5px);
    }
}

/* 添加滚动监听脚本 */
<script>
document.addEventListener('DOMContentLoaded', function() {
    window.addEventListener('scroll', function() {
        if (window.scrollY > 50) {
            document.querySelector('.navbar').classList.add('scrolled');
        } else {
            document.querySelector('.navbar').classList.remove('scrolled');
        }
    });
});
</script>

/* 首页横幅样式 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #d4c00c 0%, #e6cf0d 40%, #f5e67a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0L60 30L30 60L0 30L30 0z" fill="none" stroke="rgba(0,0,0,0.1)" stroke-width="1"/></svg>') repeat;
    opacity: 0.3;
    animation: float 30s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section img {
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.2));
    margin-bottom: 2rem;
    max-height: 120px;
    width: auto;
    animation: float 6s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #2c2c2c;
    border-radius: 2px;
}

.hero-section .lead {
    font-size: 1.5rem;
    color: #3a3a3a;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-section .btn-primary {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.hero-section .btn-primary:hover::before {
    left: 100%;
}

.hero-section .btn-primary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-outline-light {
    color: #2c2c2c;
    border-color: #2c2c2c;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.hero-section .btn-outline-light:hover {
    background-color: #2c2c2c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    opacity: 0.8;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.1));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 业务卡片样式 */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, #ffffff 0%, #fffdf0 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 230, 15, 0.1), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite;
    pointer-events: none;
}

.card-body {
    padding: 2rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: float-rotate 6s ease-in-out infinite;
}

/* 关于我们样式 */
.about-content {
    padding: 2rem;
}

.about-image img {
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* 联系我们样式 */
.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.form-control {
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,230,15,0.25);
    border-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: rgba(255,255,255,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .hero-section .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-section img {
        max-height: 100px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 30px !important;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .card:hover {
        transform: translateY(-3px);
    }
    
    .service-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* 通用样式 */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 列表样式 */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

.bi-check-circle-fill {
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 230, 15, 0.05), transparent);
    animation: shine 5s infinite;
}

footer a {
    color: var(--primary-color) !important;
}

footer a:hover {
    color: var(--primary-dark) !important;
}

/* 添加新的动画类 */
.animate-shine {
    position: relative;
    overflow: hidden;
}

.animate-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite;
}

.animate-float-rotate {
    animation: float-rotate 6s ease-in-out infinite;
}

/* 添加新的动画关键帧 */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 230, 15, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 230, 15, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 230, 15, 0.5);
    }
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
} 