/**
 * Shared UI Components
 * 共享UI组件样式 - 按钮、标签、表单等
 */

/* === Text Colors === */
.text-primary { color: #0F172A; }
.text-secondary { color: #64748B; }
.text-accent { color: #3B82F6; }

/* === Text Gradients === */
.text-gradient {
    background: linear-gradient(135deg, #0089FF 0%, #00C1DE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(-45deg, #3B82F6, #8B5CF6, #06B6D4, #2563EB);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

.text-gradient-premium {
    background: linear-gradient(135deg, #1E293B 0%, #3B82F6 50%, #7C3AED 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-move 5s ease infinite;
}

.text-gradient-vivid {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #7B61FF 0%, #00C1DE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Button Styles === */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.btn-solid {
    background: linear-gradient(135deg, #0089FF 0%, #7B61FF 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* === Filter Buttons === */
.filter-btn {
    background: white;
    border: 1px solid #E2E8F0;
    color: #64748B;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* === Category Tags === */
.category-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tag-blue,
.category-tag.product { background: #EFF6FF; color: #3B82F6; border: 1px solid #BFDBFE; }
.tag-green,
.category-tag.company { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.tag-red,
.category-tag.tech { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.tag-yellow,
.category-tag.industry { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.tag-purple { background: rgba(123, 97, 255, 0.1); color: #7B61FF; }
.tag-cyan { background: rgba(0, 193, 222, 0.1); color: #00C1DE; }

.tag-manufacturing { background: #EFF6FF; color: #3B82F6; border: 1px solid #BFDBFE; }
.tag-education { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.tag-government { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.tag-finance { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }

/* === Tech Badge === */
.tech-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(241, 245, 249, 0.8);
    color: #64748B;
    border: 1px solid rgba(226, 232, 240, 1);
}

/* === Form Inputs === */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    transition: all 0.2s ease;
    color: #1E293B;
}

.form-input:focus {
    background-color: #FFFFFF;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.search-input {
    background: white;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* === Accordion === */
.accordion-item {
    border: 1px solid #E2E8F0;
    background: white;
    transition: all 0.2s ease;
}

.accordion-item.active {
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.accordion-content {
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #3B82F6;
}

/* === Icon Containers === */
.icon-glass,
.icon-container {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.icon-glass-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.05),
        inset 0 1px 1px rgba(255,255,255,1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 10;
}

/* === Stat Number === */
.stat-number,
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #0089FF, #7B61FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Section Title === */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #2563EB;
    margin-top: 1rem;
}

.section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563EB;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* === Glow Effects === */
.glow-blue { box-shadow: 0 0 40px rgba(0, 137, 255, 0.3); }
.glow-purple { box-shadow: 0 0 40px rgba(123, 97, 255, 0.3); }
.glow-cyan { box-shadow: 0 0 40px rgba(0, 193, 222, 0.3); }
.glow-pink { box-shadow: 0 0 40px rgba(244, 114, 182, 0.3); }

/* === Map Wrapper === */
.map-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* === Photo Frame === */
.photo-frame {
    position: relative;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid #E2E8F0;
    z-index: 0;
}

.photo-frame img {
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === Timeline === */
.timeline-item {
    padding-left: 3rem;
    border-left: 2px solid #E2E8F0;
    padding-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #2563EB;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #E2E8F0;
}

/* === Accessibility === */
.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;
}

.focus-visible:focus {
    outline: 2px solid #00C4CC;
    outline-offset: 2px;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.5); }

.bg-white ::-webkit-scrollbar-track,
.bg-aurora ::-webkit-scrollbar-track { background: #f1f5f9; }
.bg-white ::-webkit-scrollbar-thumb,
.bg-aurora ::-webkit-scrollbar-thumb { background: #cbd5e1; }
.bg-white ::-webkit-scrollbar-thumb:hover,
.bg-aurora ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
