/* 主样式文件 */

* {
    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;
    overflow: hidden;
    background: #ffffff;
    color: #333;
}

.app-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* 顶部导航栏 */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.nav-center {
    display: flex;
    align-items: center;
}

.signal-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #666;
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-right {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-btn-primary {
    padding: 10px 24px;
    border: 2px solid #ff6b35;
    background: #ff6b35;
    color: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn-primary:hover {
    background: #ff5520;
    border-color: #ff5520;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 左侧文案区 */
.sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 320px;
    z-index: 90;
}

.sidebar-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin-bottom: 16px;
}

.sidebar-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

.drag-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.drag-hint span {
    font-size: 11px;
    letter-spacing: 1px;
    color: #666;
}

/* 3D 画布容器 */
.canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 悬停卡片 */
.hover-card {
    position: fixed;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.hover-card.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.card-location {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.card-story {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 32px;
    padding: 40px;
}

.modal-image {
    flex-shrink: 0;
    width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-location {
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-tag {
    padding: 6px 14px;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    border-radius: 14px;
    font-size: 13px;
}

.modal-story {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 32px;
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover {
    background: #ff6b35;
    color: white;
}

.like-btn.liked {
    background: #ff6b35;
    color: white;
}

.like-icon {
    font-size: 20px;
}

.detail-btn {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #333;
    background: #333;
    color: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-btn:hover {
    background: #000;
    border-color: #000;
}

/* 发射表单 */
.launch-form {
    width: 500px;
    padding: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: #ff6b35;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #ff5520;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 底部筛选栏 */
.filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.filter-categories {
    display: flex;
    gap: 12px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn .filter-icon {
    font-size: 24px;
}

.filter-btn span:last-child {
    font-size: 12px;
    color: #666;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.filter-btn.active span:last-child {
    color: #ff6b35;
    font-weight: 600;
}

.signal-counter {
    font-size: 12px;
    letter-spacing: 1px;
    color: #999;
    font-weight: 500;
}

.signal-counter span {
    color: #ff6b35;
    font-weight: 700;
}

/* 响应式 */
@media (max-width: 768px) {
    .navigation {
        padding: 0 20px;
        height: 60px;
    }

    .logo {
        font-size: 14px;
    }

    .nav-btn {
        display: none;
    }

    .nav-btn-primary {
        font-size: 12px;
        padding: 8px 16px;
    }

    .sidebar {
        left: 20px;
        max-width: 260px;
    }

    .sidebar-title {
        font-size: 24px;
    }

    .modal-body {
        flex-direction: column;
        padding: 20px;
    }

    .modal-image {
        width: 100%;
        height: 300px;
    }

    .launch-form {
        width: 100%;
    }

    .filter-bar {
        padding: 0 20px;
        height: 70px;
    }

    .filter-btn {
        padding: 6px 10px;
    }

    .filter-btn .filter-icon {
        font-size: 20px;
    }

    .filter-btn span:last-child {
        font-size: 10px;
    }
}
/* 太极 Loading 动画样式 */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* 太极图案 */
.taichi-loader {
    position: relative;
    width: 120px;
    height: 120px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 主体 - 使用 CSS 绘制太极图 */
.taichi-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(to right, #333 50%, #f5f5f5 50%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 上半圆（黑色） */
.taichi-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    box-shadow: 0 60px 0 #f5f5f5;
}

/* 拖尾效果 - 使用多个图层 */
.taichi-loader {
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3))
            drop-shadow(0 0 20px rgba(255, 107, 53, 0.2))
            drop-shadow(0 0 30px rgba(255, 107, 53, 0.1));
}

/* 小圆点（阴阳鱼的眼睛） */
.taichi-loader {
    --dot-size: 16px;
}

.taichi-loader::before {
    box-shadow:
        inset 30px 30px 0 0 white,
        inset 30px -30px 0 0 #333;
}

/* 进度文字 */
.loading-progress {
    margin-top: 40px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    letter-spacing: 2px;
}

#loading-percent {
    color: #ff6b35;
    font-weight: 700;
    font-size: 18px;
}

/* 额外的拖尾效果层 */
.taichi-loader {
    position: relative;
}

.taichi-loader::before,
.taichi-loader::after {
    animation: fade-trail 2s linear infinite;
}

@keyframes fade-trail {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 优化的太极图案（使用 SVG 会更好，但这里用纯 CSS） */
.loader-container {
    background: radial-gradient(circle at center, #ffffff 0%, #fafafa 100%);
}
