* {
    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;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    color: #999;
}

/* NFC状态样式 */
.nfc-status {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.nfc-status.success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.nfc-status.error {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.nfc-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

#nfcMessage {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 内容预览区样式 */
.content-preview {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-preview h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.content-section {
    margin-bottom: 25px;
}

.content-section h3 {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.text-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.image-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    display: block;
}

/* 平台选择器样式 */
.platform-selector {
    animation: fadeIn 0.5s ease;
}

.platform-selector h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.platform-btn:active {
    transform: translateY(-2px);
}

.platform-btn.douyin {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.platform-btn.xiaohongshu {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: white;
}

.platform-btn.kuaishou {
    background: linear-gradient(135deg, #ff4906 0%, #ff7849 100%);
    color: white;
}

.platform-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.platform-btn span {
    font-size: 14px;
    font-weight: 600;
}

/* 提示样式 */
.tips {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.tips p {
    font-size: 13px;
    color: #856404;
    margin-bottom: 5px;
    line-height: 1.5;
}

.tips p:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}