/* css/content.css */
/* 内容区、卡片、横幅、筛选器 */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.category-filter {
    position: sticky;
    top: 60px;
    z-index: 5;
    background: var(--dark-2);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
}

.page-number {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: var(--gray-1);
    color: var(--gray-3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number.active {
    background: var(--gray-3);
    color: var(--dark-1);
}

.recommend-banner {
    position: relative;
    height: 480px;
    background: linear-gradient(135deg,
            var(--dark-2) 0%,
            rgba(41, 63, 98, 0.8) 50%,
            var(--dark-1) 100%);
    border-radius: 0.25rem;
    margin: 2rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.banner-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg,
            rgba(204, 220, 245, 0.05) 25%,
            transparent 25%,
            transparent 50%,
            rgba(204, 220, 245, 0.05) 50%,
            rgba(204, 220, 245, 0.05) 75%,
            transparent 75%),
        radial-gradient(circle at 50% 50%,
            rgba(204, 220, 245, 0.1) 0%,
            transparent 60%);
    background-size: 8px 8px, 100% 100%;
    animation: bgMove 40s linear infinite;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg,
            rgba(26, 26, 26, 0.8) 40%,
            transparent 100%);
}

.banner-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg,
            #fff 30%,
            var(--blue-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(204, 220, 245, 0.2);
}

.banner-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.banner-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-button {
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blue-accent);
    color: var(--blue-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.action-button:hover {
    background: var(--blue-accent);
    color: var(--dark-1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 220, 245, 0.3);
}

.deco-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--blue-accent);
    border-radius: 50%;
    animation: particleFloat 6s infinite;
}

.filters-container {
    padding: 1rem 2rem 0;
    border-bottom: 1px solid var(--gray-2);
    position: relative;
    transition:
        height 0.4s ease,
        padding 0.4s ease,
        border 0.4s ease;
    box-sizing: border-box;
    height: auto;
}

.filter-group {
    flex: 1 1 300px;
    min-width: 400px;
}

.filter-group h4 {
    color: var(--blue-accent);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.filter-pill {
    font-size: 0.9em;
    padding: 0.3rem 0.8rem;
    border-radius: 0.25rem;
    border: 1px solid var(--gray-2);
    background: var(--dark-2);
    color: var(--light);
    cursor: pointer;
    transition: transform 0.2s;
}

.filter-pill:hover {
    transform: scale(1.05);
}

.filter-pill.active {
    background: var(--blue-accent);
    color: var(--dark-1);
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(204, 220, 245, 0.2);
    transform: scale(1.05);
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

.filter-collapse-control {
    position: relative;
    height: 0px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.collapse-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark-2);
    border: 1px solid var(--gray-2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-toggle:hover {
    background: var(--dark-1);
    border-color: var(--blue-accent);
    box-shadow: 0 0 8px rgba(204, 220, 245, 0.2);
}

.toggle-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

.filters-container.collapsed {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filters-container.collapsed .tech-filters {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-bottom: 0;
}

.filters-container.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.tech-filters {
    transition:
        max-height 0.3s ease 0.1s,
        opacity 0.2s ease,
        padding 0.3s ease;
    max-height: 1000px;
    opacity: 1;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 2rem;
}

.card-grid[data-content="recommend"] {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 1600px;
}

.card {
    background: linear-gradient(145deg, var(--dark-2), var(--gray-1));
    border: 1px solid var(--gray-2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    padding: 1.5rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

.card[data-content="recommend"] {
    position: relative;
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--gray-1) 100%);
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.card-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card:hover .card-cover {
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--gray-3);
}

.card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    background: linear-gradient(45deg, #fff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.card-hover-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card:hover .card-hover-layer {
    transform: translateY(0);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.25rem;
    pointer-events: none;
    z-index: 1;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gray-1);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tag {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.3rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--gray-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gray-3);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.card-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.card-tag::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--blue-accent);
    filter: blur(12px);
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.card-tag:hover::before {
    opacity: 0.25;
}

.card-tag.gray {
    background: rgba(128, 128, 128, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.card-tag.dark {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.card-tag.project {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.card-tag.blue::before {
    background: var(--blue-accent);
}

.card-tag.purple::before {
    background: #8B5CF6;
}

.card-tag.green::before {
    background: #10B981;
}

.card-tag[data-glow-intensity="weak"]::before {
    opacity: 0.1;
}

.card-tag[data-glow-intensity="strong"]::before {
    opacity: 0.3;
}

.card-link {
    color: var(--blue-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    text-decoration: underline;
}

.timeline-year {
    font-size: 1.2rem;
    color: var(--white-accent);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--gray-3);
}

.tech-filters {
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
}

.tech-showcase {
    position: relative;
    padding: 1.5rem;
}

.tech-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gray-3);
}

.comparison-card {
    grid-column: span 2;
}

.comparison-item {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-2);
}

.comparison-bar {
    height: 4px;
    background: var(--gray-1);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
}

.traditional {
    background: var(--gray-3);
}

.modern {
    background: var(--white-accent);
}

.tech-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-3);
}

.tech-name span:first-child {
    color: var(--white-accent);
}

.cyber-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(204, 220, 245, 0.1) 0%,
            rgba(204, 220, 245, 0) 50%,
            rgba(204, 220, 245, 0.1) 100%);
    animation: glow-pulse 6s linear infinite;
    pointer-events: none;
}

.cyber-form {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 26, 0.7);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--blue-accent);
    font-size: 0.9em;
}

.cyber-input {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark-2);
    border: 1px solid var(--gray-2);
    border-radius: 0.25rem;
    color: var(--white-accent);
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--white-accent);
    box-shadow: 0 0 0 3px rgba(204, 220, 245, 0.2);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-accent);
    transition: width 0.3s ease;
}

.cyber-input:focus~.input-border {
    width: 100%;
}

.cyber-button.sending {
    opacity: 0.7;
    pointer-events: none;
    background: linear-gradient(45deg, #1a5fb460, #1a3cb460);
}

.cyber-select {
    position: relative;
}

.cyber-select select {
    appearance: none;
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.tag-input {
    border: 1px solid var(--gray-2);
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background: rgba(204, 220, 245, 0.15);
    color: var(--blue-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.upload-area {
    border: 2px dashed var(--gray-2);
    border-radius: 0.25rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: var(--blue-accent);
    background: rgba(204, 220, 245, 0.05);
}

.upload-area.dragover {
    border-color: var(--blue-accent);
    background: rgba(204, 220, 245, 0.1);
}

.cyber-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #1a5fb4, #1a3cb4);
    border: none;
    border-radius: 0.25rem;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyber-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.3);
}

.value-item {
    position: relative;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.25rem;
    transition: transform 0.2s ease;
}

.value-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg,
            rgba(204, 220, 245, 0.05),
            rgba(204, 220, 245, 0.02));
}

.team-member .avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-member .avatar:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 12px var(--blue-accent),
        0 4px 24px rgba(0, 0, 0, 0.5);
}

.card[data-content="about"] h3 {
    position: relative;
    padding-left: 1.2rem;
}

.card[data-content="about"] h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--blue-accent);
    border-radius: 0.25rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(204, 220, 245, 0.2),
            rgba(204, 220, 245, 0.05));
}

.timeline-item {
    position: relative;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    background: linear-gradient(90deg,
            rgba(var(--accent), 0.1),
            transparent);
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.data-item {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.data-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--color), #fff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-carousel {
    position: relative;
    min-height: 300px;
    perspective: 1000px;
}

.testimonial {
    position: absolute;
    width: 80%;
    padding: 2rem;
    background: var(--dark-2);
    border-radius: 0.25rem;
    opacity: 0;
    transform: rotateY(30deg) translateZ(-100px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial.active {
    opacity: 1;
    transform: none;
    z-index: 2;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 6rem;
    opacity: 0.1;
    transform: rotate(15deg);
}