* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.demo-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: #667eea;
}
.video-player-container {
    margin-bottom: 40px;
}
.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.video-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.video-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}
.video-info {
    padding: 20px;
}
.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #2d3436;
}
.video-info p {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.5;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.video-management-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.video-management-section .section-title {
    margin-top: 30px;
}

.video-management-section .section-title:first-child {
    margin-top: 0;
}

.controls-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.control-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.control-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2d3436;
}
.control-card i {
    color: #667eea;
}
.feature-list {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.feature-text h4 {
    margin-bottom: 8px;
    color: #2d3436;
}
.feature-text p {
    color: #636e72;
    line-height: 1.5;
}
footer {
    text-align: center;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    padding: 20px;
}
footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}
footer a:hover {
    text-decoration: underline;
}
.instruction {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.instruction strong {
    color: #d63031;
}
@media (max-width: 768px) {
    .demo-section {
        padding: 25px;
    }
    header h1 {
        font-size: 2.2rem;
    }
    .video-list {
        grid-template-columns: 1fr;
    }
    .controls-grid, .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Vue应用容器 */
.vue-app-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* URL提交部分 */
.url-submit-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.url-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.url-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.url-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.submit-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-hint {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 视频列表部分 */
.video-list-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.video-item.active {
    border: 3px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.json-path {
    font-size: 0.85rem;
    color: #666;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.json-path i {
    color: #667eea;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #ff3838;
    transform: scale(1.1);
}

.empty-list {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
    margin-top: 20px;
}

.video-message {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

.message-container {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.message-container.error {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

.message-container.success {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-content i {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SDK 部分样式 */
.sdk-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.sdk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.sdk-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sdk-card h4 {
    color: #2d3436;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sdk-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sdk-card ul {
    margin-left: 20px;
    color: #555;
}

.sdk-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.sdk-card li strong {
    color: #2d3436;
}

.sdk-status {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e0e0e0;
}

.sdk-status p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.sdk-hint {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.sdk-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.sdk-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.sdk-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.sdk-link-btn i {
    font-size: 1.1rem;
}

#sdk-status-icon {
    color: #ffa502; /* 橙色 - 检测中 */
}

#sdk-status-icon.active {
    color: #4CAF50; /* 绿色 - 活跃 */
}

#sdk-status-icon.error {
    color: #f44336; /* 红色 - 错误 */
}

#bluetooth-status-icon {
    color: #ffa502; /* 橙色 - 检测中 */
}

#bluetooth-status-icon.connected {
    color: #4CAF50; /* 绿色 - 已连接 */
}

#bluetooth-status-icon.disconnected {
    color: #f44336; /* 红色 - 未连接 */
}

/* SDK 集成指南样式 */
.sdk-guide {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.integration-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.step {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.step:hover {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #2d3436;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-content p {
    color: #636e72;
    margin-bottom: 15px;
    line-height: 1.6;
}

.step-content pre {
    background: #2d3436;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: none;
    padding: 0;
}

.step-content .language-html {
    color: #f8f9fa;
}

.step-content .language-javascript {
    color: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content pre {
        font-size: 0.85rem;
        padding: 15px;
    }
}

/* API参考样式 */
.api-reference {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.api-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.api-card:hover {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.api-card h4 {
    color: #2d3436;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-card h4 i {
    color: #667eea;
}

.api-card ul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.api-card li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
    color: #555;
}

.api-card li:before {
    content: "▸";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.api-card code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d3436;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .api-grid {
        grid-template-columns: 1fr;
    }

    .api-card {
        padding: 20px;
    }
}

/* 演示系统操作说明样式 */
.demo-instructions-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.important-notes {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid #ffd43b;
}

.important-notes h3 {
    color: #e8590c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-notes ul {
    margin-left: 20px;
    color: #555;
}

.important-notes li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.important-notes li strong {
    color: #2d3436;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .demo-instructions-section {
        padding: 25px;
    }

    .important-notes {
        padding: 20px;
    }
}