/*****************************************
 * 四川国锃招标代理有限公司 - 自定义样式
 * Sichuan Guozheng Tendering Agency Co., Ltd.
 *****************************************/

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 动画类 */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease-out;
}

/* 延迟动画 */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* 导航栏增强 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #3b82f6;
}

.nav-link.active::after {
    width: 100%;
}

/* 卡片悬停效果增强 */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* 按钮增强 */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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: left 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* 表单输入增强 */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #10b981;
}

/* 项目卡片状态标签 */
.status-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-ongoing {
    background: #dcfce7;
    color: #166534;
}

.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #f3f4f6;
    color: #6b7280;
}

/* 新闻标签 */
.news-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-company {
    background: #3b82f6;
}

.news-industry {
    background: #10b981;
}

.news-project {
    background: #8b5cf6;
}

/* 响应式优化 */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .mobile-menu {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 768px) {
    .contact-form {
        margin-top: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 8rem 0;
    }

    .section-padding {
        padding: 6rem 0;
    }
}

/* 打印样式 */
@media print {
    nav, footer, #back-to-top, .mobile-menu-button {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: more) {
    .nav-link {
        border-bottom: 2px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: #3b82f6;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e5e5e5;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功提示 */
.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    animation: fadeInUp 0.5s ease-out;
}

/* 错误提示 */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    animation: fadeInUp 0.5s ease-out;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 响应式字体大小 */
html {
    font-size: 16px;
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

/* 轮播图样式增强 */
.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 轮播控制按钮样式 */
#carousel-prev, #carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem; /* rounded-xl */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#carousel-prev:hover, #carousel-next:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

#carousel-prev:active, #carousel-next:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

#carousel-prev {
    left: 2rem;
    border-radius: 0.75rem 0.5rem 0.5rem 0.75rem; /* 左圆角更圆，右圆角稍小 */
}

#carousel-next {
    right: 2rem;
    border-radius: 0.5rem 0.75rem 0.75rem 0.5rem; /* 右圆角更圆，左圆角稍小 */
}

/* 图标动画效果 */
#carousel-prev span, #carousel-next span {
    transition: all 0.3s ease;
}

#carousel-prev:hover span {
    transform: translateX(-2px);
}

#carousel-next:hover span {
    transform: translateX(2px);
}

/* SVG图标样式 */
#carousel-prev svg, #carousel-next svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
    transition: all 0.3s ease;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

#carousel-prev:hover svg, #carousel-next:hover svg {
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 按钮内层span样式 */
#carousel-prev span, #carousel-next span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* 确保SVG图标正确显示 */
#carousel-prev svg {
    margin-right: 1px; /* 微调居中对齐 */
}

#carousel-next svg {
    margin-left: 1px; /* 微调居中对齐 */
}

/* 跨浏览器兼容性 */
#carousel-prev svg path, #carousel-next svg path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* 防止图标在某些浏览器中模糊 */
#carousel-prev, #carousel-next {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateY(-50%) translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 脉冲动画效果 */
@keyframes pulse-light {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.group-hover\:animate-pulse:hover {
    animation: pulse-light 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 轮播指示器容器样式 */
.carousel-indicators-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-indicators-container:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 轮播指示器样式 */
.carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicator.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 播放/暂停按钮样式 */
#carousel-play-pause {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

#carousel-play-pause:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

#carousel-play-pause:active {
    transform: scale(0.9);
}

/* 轮播进度条样式 */
#carousel-progress {
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* 招标信息响应式优化 */
@media (max-width: 1024px) {
    .project-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        margin-bottom: 0.75rem;
    }

    .project-card .p-6 {
        padding: 1.25rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .budget-amount {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .project-card .p-6 {
        padding: 1rem;
    }

    .project-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .project-card p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .budget-amount {
        font-size: 0.85rem;
    }
}

/* 移动端轮播优化 */
@media (max-width: 768px) {
    .carousel-slide h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .carousel-slide p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    #carousel-prev, #carousel-next {
        width: 3rem;
        height: 3rem;
        border-radius: 0.625rem; /* rounded-lg */
        font-size: 0.875rem;
    }

    #carousel-prev {
        left: 1rem;
    }

    #carousel-next {
        right: 1rem;
    }

    .carousel-indicators-container {
        bottom: 1.5rem;
        padding: 0.5rem 1rem;
        gap: 0.75rem;
    }

    .carousel-indicator {
        width: 12px;
        height: 12px;
    }

    #carousel-play-pause {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .carousel-slide h1 {
        font-size: 1.75rem;
    }

    .carousel-slide .text-xl {
        font-size: 1rem;
    }

    .carousel-slide .text-lg {
        font-size: 0.875rem;
    }
}

/* 招标信息卡片增强样式 */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-2px);
}

/* 状态标签样式增强 */
.status-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.status-ongoing {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.status-upcoming {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.status-soon {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #9a3412;
}

.status-prequal {
    background: linear-gradient(135deg, #e9d5ff, #c084fc);
    color: #6b21a8;
}

.status-announcement {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #b91c1c;
}

.status-awarded {
    background: linear-gradient(135deg, #ccfbf1, #5eead4);
    color: #0f766e;
}

/* 预算价格强调 */
.budget-amount {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 查看更多按钮优化 */
.view-more-btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-more-btn::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: left 0.5s ease;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}
.carousel-slide .animate-fadeInUp {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.carousel-slide.active .animate-fadeInUp {
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* 轮播按钮动画 */
.carousel-slide .flex a {
    animation: bounceIn 0.8s ease-out 1s both;
}

.carousel-slide.active .flex a {
    animation: bounceIn 0.8s ease-out 1s both;
}

/* 图片加载动画 */
.carousel-slide img {
    animation: zoomIn 1.2s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 轮播渐变遮罩增强 */
.carousel-slide .bg-gradient-to-r {
    backdrop-filter: blur(2px);
}

/* 触摸滑动指示器 */
.carousel-container {
    touch-action: pan-y;
}

/* 无障碍支持 */
.carousel-indicator:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

#carousel-prev:focus,
#carousel-next:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: more) {
    .carousel-indicator {
        border: 2px solid white;
    }

    #carousel-prev,
    #carousel-next {
        border: 2px solid white;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: none;
    }

    .carousel-slide .animate-fadeInUp,
    .carousel-slide .flex a {
        animation: none;
    }

    .carousel-slide img {
        animation: none;
    }

    #carousel-progress {
        transition: none;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .carousel-indicator {
        background: rgba(255, 255, 255, 0.3);
    }

    .carousel-indicator:hover {
        background: rgba(255, 255, 255, 0.6);
    }

    .carousel-indicator.active {
        background: white;
    }
}

/* 可访问性增强 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 联系我们板块增强样式 */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #c7d2fe 100%);
    overflow: hidden;
}

/* 背景装饰元素动画 */
.contact-bg-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.contact-bg-element:nth-child(1) {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.contact-bg-element:nth-child(2) {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(165, 180, 252, 0.1));
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.contact-bg-element:nth-child(3) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(196, 181, 253, 0.1));
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 网格背景 */
.contact-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 联系卡片悬停效果和等高布局 */
.contact-info-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 联系方式卡片内容区域 */
.contact-info-card .relative.z-10 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 在线留言表单内容区域 */
.contact-info-card form.flex-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 表单字段协调分布 */
.contact-info-card .grid-cols-2 {
    flex: 0 0 auto;
}

.contact-info-card .relative:not(.grid-cols-2) {
    flex: 0 0 auto;
}

.contact-info-card .relative.flex-1 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.contact-info-card .relative.flex-1 textarea {
    flex: 1;
    min-height: 120px;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 图标悬停动画 */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* 输入框增强样式 */
.contact-input {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.contact-input:focus {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

/* 提交按钮动画 */
.contact-submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* 装饰性线条 */
.decorative-line {
    background: linear-gradient(to bottom, #3b82f6, #6366f1);
    border-radius: 2px;
}

/* 地图区域 */
.map-placeholder {
    position: relative;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-bg-element {
        display: none;
    }

    .contact-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .contact-info-card {
        margin-bottom: 1rem;
        height: auto;
    }

    /* 移动端移除等高布局 */
    .contact-info-card .relative.z-10,
    .contact-info-card form.flex-col {
        display: block;
    }

    /* 移动端表单优化 */
    .contact-info-card .grid-cols-2 {
        flex: none;
        display: grid;
    }

    .contact-info-card .relative.flex-1 {
        flex: none;
        min-height: 100px;
    }
}

/* 图片悬停放大效果 */
.image-hover-scale {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-scale:hover {
    transform: scale(1.1);
}

/* 图片容器悬停效果增强 */
.image-container-hover {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-container-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.image-container-hover:hover::before {
    transform: translateX(100%);
}

.image-container-hover img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container-hover:hover img {
    transform: scale(1.1);
}

/* 新闻卡片图片特殊效果 */
.news-image-container {
    position: relative;
    overflow: hidden;
}

.news-image-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-image-container:hover img {
    transform: scale(1.1);
}

/* 关于我们图片效果 */
.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-image-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-container:hover img {
    transform: scale(1.1);
}
/* 导航栏渐变背景 */
.gradient-nav {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

.gradient-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.gradient-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gradient-nav .mobile-menu-button {
    color: rgba(255, 255, 255, 0.9);
}

.gradient-nav .mobile-menu-button:hover {
    color: white;
}

.gradient-nav .text-primary {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-nav .mobile-menu {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    backdrop-filter: blur(10px);
}

/* 导航栏滚动效果 */
.gradient-nav.scrolled {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(59, 130, 246, 0.95) 50%, rgba(96, 165, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
}

/* 导航栏动画效果 */
.gradient-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏悬停效果 */
.gradient-nav:hover {
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.4);
}

/* Logo悬停效果 */
.gradient-nav .text-primary {
    transition: all 0.3s ease;
}

.gradient-nav .text-primary:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.delay-1000 { animation-delay: 1s; }
.delay-2000 { animation-delay: 2s; }
.delay-3000 { animation-delay: 3s; }

/* 移动端优化 - 禁用悬停效果 */
@media (hover: none) and (pointer: coarse) {
    .image-container-hover:hover img,
    .news-image-container:hover img,
    .about-image-container:hover img,
    .group:hover .transition-transform {
        transform: none !important;
    }

    .image-container-hover:hover::before {
        transform: none !important;
    }

    .group:hover .group-hover\:scale-110 {
        transform: none !important;
    }
}

/* 触摸设备优化 */
@media (max-width: 768px) {
    .group:active .transition-transform {
        transform: scale(1.05) !important;
    }

    .group:active .group-hover\:scale-110 {
        transform: scale(1.05) !important;
    }
}

/* 焦点样式 */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 跳过导航链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3b82f6;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* 自定义复选框和单选按钮 */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 响应式表格 */
.responsive-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.responsive-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

@media (max-width: 640px) {
    .responsive-table table {
        font-size: 0.875rem;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 0.75rem;
    }
}