/* PinCloud 共享样式 - 补充 Tailwind */

:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --accent-red: #EF4444;
    --accent-yellow: #F59E0B;
    --accent-cyan: #06B6D4;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

html.light ::-webkit-scrollbar-thumb {
    background: #ccc;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义选择 */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: inherit;
}

/* 渐变文字 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #F59E0B 100%);
}

/* 毛玻璃 */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .glass-nav {
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 背景光晕 */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* 滚动显示 */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片悬停 */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

html.dark .card-hover:hover {
    box-shadow: 0 20px 40px -12px rgba(14, 165, 233, 0.15);
}

/* 地图脉冲 */
.map-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.map-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.map-dot-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(5, 5, 5, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    pointer-events: none;
}

html.light .map-dot-label {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

/* 跑马灯 */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* 虚线动画 */
@keyframes dash {
    to { stroke-dashoffset: -20; }
}

.animate-dash {
    animation: dash 1s linear infinite;
}

/* 发光脉冲 */
.glow-pulse {
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Tab 按钮 */
.tab-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

html.dark .tab-btn {
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 税务表格 */
.tax-table th,
.tax-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html.light .tax-table th,
html.light .tax-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 按钮发光 */
.btn-glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.45);
}

/* 移动端菜单遮罩 */
.mobile-menu-open {
    overflow: hidden;
}

/* 浮动客服 */
#floatingService {
    animation: float-bounce 3s ease-in-out infinite;
}

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

#floatingService:hover {
    animation: none;
}

/* 弹窗淡入动画 */
.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

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