/* 通用样式 - 移动端优先设计 */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #3b82f6;
    --secondary-dark: #2563eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 主容器 */
.main-wrapper {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

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

/* 头部区域 */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 24px;
    text-align: center;
    color: white;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

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

.car-icon {
    width: 48px;
    height: 48px;
    color: white;
}

.header-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.subtitle {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
    color: white;
}

/* 卡片容器 */
.card-container {
    padding: 24px;
}

/* 信息卡片 */
.info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 按钮容器 */
.actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 按钮样式 */
.action-btn {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.action-btn:active::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(16, 185, 129, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2563eb 100%);
    color: white;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(59, 130, 246, 0.4);
}

.secondary-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-title {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.btn-desc {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 400;
    display: block;
}

/* 底部区域 */
.footer-section {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 加载遮罩 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

/* 隐藏元素 */
.hide-notify,
.hide-call {
    display: none !important;
}

/* 响应式设计 */
@media (min-width: 640px) {
    .header-section h1 {
        font-size: 32px;
    }

    .btn-title {
        font-size: 17px;
    }

    .btn-desc {
        font-size: 14px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .action-btn:hover {
        transform: none;
    }

    .action-btn:active {
        transform: scale(0.98);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-light: #1f2937;
        --bg-white: #111827;
        --border-color: #374151;
    }

    body {
        background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    }

    .info-card {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    }

    .info-text {
        color: rgba(255, 255, 255, 0.8);
    }
}
