/* 通用样式 */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --accent-color: #FF9500;
    --background-color: #000000;
    --text-color: #FFFFFF;
    --text-secondary: #8E8E93;
    --border-radius: 10px;
    --padding-standard: 16px;
    --blur-strength: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 自定义滚动条样式 - 极简 */
::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 隐藏横向滚动条 */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: auto;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 状态栏样式 - 极简 */
.status-bar {
    height: 44px;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.status-bar-left,
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
}

/* 底部导航栏样式 - 极简 */
.tab-bar {
    height: 83px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10px;
    width: 80px;
    padding: 8px;
    transition: color 0.2s ease;
}

.tab-item.active {
    color: var(--text-color);
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 按钮样式 - 极简 */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

.btn:active {
    opacity: 0.8;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 卡片样式 - 极简 */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: var(--padding-standard);
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 滑块样式 */
.slider-container {
    width: 100%;
    padding: 8px 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* 相机界面 - 全屏简洁 */
.camera-view {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.camera-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 10;
}

.shutter-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

.shutter-btn:active {
    transform: scale(0.95);
}

/* 参数控制面板 - 简洁 */
.parameter-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    max-height: 70vh;
}

.parameter-panel.active {
    transform: translateY(0);
}

/* 网格布局 - 简洁 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

/* 搜索栏 - 简洁 */
.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    outline: none;
    font-size: 16px;
    margin-left: 8px;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

/* 内容区域 */
.content-area {
    padding: 16px;
    padding-bottom: 100px;
    overflow-y: auto;
    height: calc(100vh - 44px - 83px);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 参数预览卡片 */
.parameter-preview {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 16px;
    color: white;
    margin-bottom: 16px;
}

.parameter-preview h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.parameter-value {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

/* 标签样式 - 简洁 */
.tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

/* 头像样式 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

/* 相机模式选择器 - 简洁 */
.mode-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    z-index: 5;
}

.mode-item {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.mode-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 相机参数控制 - 简洁 */
.camera-params {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.param-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.param-btn:active {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
}

/* 参数调节面板 */
.adjust-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.adjust-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.adjust-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 参数组 */
.param-group {
    margin-bottom: 20px;
}

.param-group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* 系统相机集成样式 */
.camera-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.camera-grid.visible {
    opacity: 0.3;
}

.focus-point {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.focus-point.active {
    opacity: 1;
    width: 60px;
    height: 60px;
}

/* 曝光控制 */
.exposure-control {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    z-index: 4;
}

.exposure-indicator {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* 快速识别区域 */
.quick-recognition {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    z-index: 10;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.quick-recognition.visible {
    transform: translateY(0);
    opacity: 1;
}

.quick-recognition input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
}

.quick-recognition input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 极简模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 20px;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .camera-controls {
        gap: 30px;
    }
    
    .shutter-btn {
        width: 60px;
        height: 60px;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000000;
    }
} 