/* iOS风格磨砂玻璃效果 - 公共样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    color: #05AFB5;
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}
/* 通屏下拉菜单 */
.dropdown-menu {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    padding: 30px 40px;
    border-radius: 0 0 24px 24px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #05AFB5;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(5, 175, 181, 0.3);
}

.dropdown-menu-item > a {
    display: block;
    padding: 10px 0;
    color: #333333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dropdown-menu-item > a:hover {
    color: #05AFB5;
    padding-left: 8px;
}

/* Footer */
.footer {
    background: rgba(35, 76, 79, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 磨砂玻璃基础效果 */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

.glass-strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.glass-dark {
    background: rgba(35, 76, 79, 0.82);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(5, 175, 181, 0.3); }
    50% { box-shadow: 0 0 40px rgba(5, 175, 181, 0.6); }
}

/* 呼吸效果 */
@keyframes breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(5, 175, 181, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(5, 175, 181, 0.1);
        transform: scale(1.02);
    }
}

/* 按钮流光动画 */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

/* 平滑淡入 */
@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 加载动画 */
@keyframes loading {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

/* 输入框聚焦动画 */
@keyframes focusExpand {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 175, 181, 0);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(5, 175, 181, 0.15);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* 初始隐藏 */
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* 输入框样式优化 */
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 2px solid rgba(200, 200, 200, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 4px rgba(5, 175, 181, 0.12),
        0 4px 20px rgba(5, 175, 181, 0.1);
    animation: focusExpand 0.3s ease-out;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    animation: loading 1.5s ease-in-out infinite;
}

/* 平滑过渡效果 */
.smooth-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 延迟类 */
.delay-1s { animation-delay: 0.3s; }
.delay-2s { animation-delay: 0.6s; }
.delay-3s { animation-delay: 0.9s; }
.delay-4s { animation-delay: 0.8s; }
.delay-5s { animation-delay: 1s; }

/* 右下角联系挂件 - daisyUI Fab Flower 自定义样式 */
.contact-widget-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.contact-widget-fab .fab-flower {
    --flower-bg: rgba(255, 255, 255, 0.95);
    --flower-shadow: 0 8px 32px rgba(5, 175, 181, 0.2);
}

.contact-widget-fab .btn {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.contact-widget-fab .fab-main-action {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.contact-widget-fab .fab-main-action:hover {
    background: var(--primary-hover) !important;
}

.contact-widget-fab .btn-success {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.contact-widget-fab .btn-success:hover {
    background: var(--primary-hover) !important;
}

.contact-widget-fab .btn svg {
    width: 24px;
    height: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-widget-fab {
        bottom: 20px;
        right: 20px;
    }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.88);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    box-shadow:
        0 4px 20px rgba(5, 175, 181, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(5, 175, 181, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(5, 175, 181, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 链接 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 响应式 */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 30px 20px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .navbar {
        height: 60px;
        padding: 0 15px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .nav-menu {
        display: none; /* 移动端可以改为汉堡菜单 */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 筛选模块样式 */
.cases-filter {
    position: relative;
    background: transparent;
    padding: 20px 0;
}

.cases-filter .container {
    display: flex;
    justify-content: center;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(200, 200, 200, 0.3);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(5, 175, 181, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(5, 175, 181, 0.3);
}

/* 响应式筛选模块 */
@media (max-width: 768px) {
    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cases-filter .container {
        flex-direction: column;
        align-items: center;
    }

    .filter-tabs {
        flex-direction: column;
        width: 100%;
    }

    .filter-tab {
        width: 100%;
        text-align: center;
    }
}

