/* 全局样式 */
:root {
    --primary-color: #fdd209;
    --primary-dark: #e6bd00;
    --primary-deep: #c99700;
    --primary-light: #fff3a0;
    --primary-gradient: linear-gradient(135deg, #ffe23c 0%, #fdd209 100%);
    --ink-color: #1d1c18;
    --secondary-color: #333333;
    --light-color: #faf6e9;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --shadow-sm: 0 2px 8px rgba(201, 151, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(201, 151, 0, 0.16);
    --shadow-lg: 0 8px 30px rgba(201, 151, 0, 0.22);
}

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: 10px;
}

.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(--ink-color) !important;
    background: rgba(253, 210, 9, 0.18);
}

.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);
    }
}

/* 首页横幅样式 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #262419 0%, #191712 55%, #100f0b 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 18% 25%, rgba(253, 210, 9, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 82% 75%, rgba(253, 210, 9, 0.1) 0%, transparent 45%),
        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(255,255,255,0.05)" stroke-width="1"/></svg>') repeat;
    opacity: 1;
    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 8px 24px rgba(0,0,0,0.5));
    margin-bottom: 2rem;
    max-height: 120px;
    width: auto;
    border-radius: 16px;
    animation: float 6s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.hero-section .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--ink-color);
    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: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.08);
}

.hero-section .btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--ink-color);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.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(--ink-color);
    margin-bottom: 1rem;
}

.service-icon {
    display: inline-block;
    width: 84px;
    height: 84px;
    line-height: 84px;
    border-radius: 24px;
    background: rgba(253, 210, 9, 0.16);
    color: var(--ink-color);
    animation: float-rotate 6s ease-in-out infinite;
}

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

.text-brand {
    color: var(--ink-color);
}

.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-deep);
}

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

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(253,210,9,0.3);
    border-color: var(--primary-dark);
}

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

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

.btn.btn-primary:hover {
    color: var(--ink-color);
    background: var(--primary-gradient);
    filter: brightness(0.96);
}

.btn.btn-primary:focus,
.btn.btn-primary:focus-visible,
.btn.btn-primary:active,
.btn.btn-primary:active:focus {
    color: var(--ink-color);
    background: var(--primary-gradient);
    border: none;
    box-shadow: none;
    outline: none;
}

.btn-outline-light:focus,
.btn-outline-light:focus-visible,
.btn-outline-light:active,
.btn-outline-light:active:focus {
    box-shadow: none;
    outline: none;
}

.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);
    }
}

/* 通用样式 */
.bg-light {
    background-color: #faf6e9 !important;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.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-deep);
}

/* 页脚样式 */
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;
    pointer-events: none;
}

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(253, 210, 9, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(253, 210, 9, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(253, 210, 9, 0.5);
    }
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
} 
/* 官网咨询表单 */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.consult-tip {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.95rem;
    text-align: center;
}

.consult-tip-ok {
    color: #198754;
}

.consult-tip-error {
    color: #dc3545;
}
