/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* 手机屏幕模拟器 */
.phone-container {
    width: 375px;
    height: 812px;
    margin: 20px auto;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #333;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 100;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 导航栏 */
.nav-bar {
    height: 56px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-back,
.nav-action {
    background: none;
    border: none;
    font-size: 16px;
    color: #007AFF;
    cursor: pointer;
    padding: 8px 0;
}

/* 底部导航 */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 83px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    padding-bottom: 34px;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: #007AFF;
}

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

/* 主要内容区域 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 83px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    margin: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-body {
    padding: 16px;
}

.card-footer {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007AFF;
    color: white;
}

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-full {
    width: 100%;
    display: block;
}

/* 输入框样式 */
.form-group {
    margin-bottom: 16px;
}

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

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

.form-input:focus {
    outline: none;
    border-color: #007AFF;
}

/* 列表样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.list-item:hover {
    background: #f8f9fa;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-content {
    flex: 1;
    margin-left: 12px;
}

.list-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 14px;
    color: #666;
}

.list-item-arrow {
    color: #ccc;
    font-size: 14px;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007AFF;
    transition: width 0.3s;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 8px;
}

.tag.primary {
    background: #007AFF;
    color: white;
}

.tag.success {
    background: #34C759;
    color: white;
}

.tag.warning {
    background: #FF9500;
    color: white;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.p-16 {
    padding: 16px;
}

.p-20 {
    padding: 20px;
}

.text-gray {
    color: #666;
}

.text-light {
    color: #999;
}

.text-primary {
    color: #007AFF;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* 水印样式 */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 36px;
    color: rgba(0, 0, 0, 0.03);
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    white-space: nowrap;
}

/* AI浮动按钮 */
.ai-float-button {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.ai-float-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.ai-float-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }

    .phone-screen {
        border-radius: 0;
    }

    .phone-container::before {
        display: none;
    }

    .ai-float-button {
        bottom: 110px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}