/* Glass Page Common Styles - 栖屿间科技 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0e1a;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.55);
    z-index: 2;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(10, 14, 26, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-name {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-name::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    color: white;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 1px;
}

.card-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(820px, 90vw);
    z-index: 10;
    animation: cardFadeIn 0.8s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 40px 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    max-height: 78vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glass-card::-webkit-scrollbar {
    display: none;
}

.card-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.content-section {
    margin-bottom: 24px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 2px;
}

.content-section p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 16px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.service-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
}

.service-item p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.case-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.case-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.case-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.case-badge {
    flex-shrink: 0;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    white-space: nowrap;
}

.case-badge.web {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.25));
    border-color: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
}

.case-badge.mp {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.case-badge.auto {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.2));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.case-badge.ops {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.case-badge.ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.2));
    border-color: rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

.case-badge.host {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.2));
    border-color: rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
}

.case-content {
    flex: 1;
    min-width: 0;
}

.case-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
}

.case-content p {
    font-size: 0.83rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.case-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 6px;
    font-size: 0.72rem;
    color: #93c5fd;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.template-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.template-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
}

.template-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.preview-btn {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #93c5fd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.preview-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    color: #bfdbfe;
}

.preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.preview-overlay.active {
    display: flex;
}

.preview-content {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.mock-desktop {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111827;
    overflow: hidden;
    margin-bottom: 20px;
}

.mock-header {
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mock-dot.r { background: #ef4444; }
.mock-dot.y { background: #eab308; }
.mock-dot.g { background: #22c55e; }

.mock-url {
    margin-left: auto;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: monospace;
}

.mock-body {
    padding: 20px;
    min-height: 200px;
}

.mock-phone {
    width: 260px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #0a0e1a;
    overflow: hidden;
    margin: 0 auto 20px;
}

.mock-notch {
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-notch::after {
    content: '';
    width: 60px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.mock-screen {
    padding: 12px;
    min-height: 340px;
}

.mock-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.mock-block.primary {
    background: rgba(37, 99, 235, 0.15);
    color: rgba(147, 197, 253, 0.8);
    font-weight: 500;
    padding: 16px;
    text-align: center;
}

.mock-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

.mock-chat-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.mock-chat-row.user {
    flex-direction: row-reverse;
}

.mock-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #93c5fd;
}

.mock-avatar.user {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.mock-bubble {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 180px;
}

.mock-chat-row.user .mock-bubble {
    background: rgba(37, 99, 235, 0.2);
    color: rgba(147, 197, 253, 0.85);
}

.mock-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mock-metric {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.mock-metric-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.mock-metric-val {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.mock-metric-val.green { color: #86efac; }
.mock-metric-val.yellow { color: #fcd34d; }

.mock-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.mock-table-row.header {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.preview-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.preview-desc h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.preview-desc ul {
    padding-left: 18px;
    margin: 8px 0;
}

.preview-desc li {
    margin-bottom: 4px;
}

/* Lightbox styles */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 16px;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

/* Template card with image thumbnail */
.template-thumb {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.template-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-type {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    margin: 8px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.contact-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
}

.contact-block h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-block p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.contact-block a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-block a:hover {
    color: white;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #93c5fd;
}

.feature-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

.page-footer {
    position: fixed;
    bottom: 14px;
    right: 28px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    z-index: 50;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .top-nav { padding: 12px 20px; }
    .site-name { font-size: 1.1rem; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.82rem; }
    .glass-card { padding: 28px 22px; border-radius: 18px; }
    .service-grid, .contact-info, .feature-list { grid-template-columns: 1fr; }
    .case-item { flex-direction: column; gap: 10px; }
    .page-footer { display: none; }
}

@media (max-width: 480px) {
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.75rem; }
    .card-title { font-size: 1.5rem; }
    .glass-card { padding: 24px 18px; }
}
