/* 全局样式重置 */
* {
    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;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-weight: 500;
}

.description {
    font-size: 1rem;
    color: #95a5a6;
    max-width: 600px;
    margin: 0 auto;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "location actions"
        "preset preset"
        "status status";
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "location"
            "actions"
            "preset"
            "status";
    }
}

/* 通用卡片样式 */
.current-location, .actions, .preset-locations, .status-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.current-location {
    grid-area: location;
}

.actions {
    grid-area: actions;
}

.preset-locations {
    grid-area: preset;
}

.status-section {
    grid-area: status;
}

/* 区域标题 */
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 6px solid #667eea;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

/* 位置信息样式 */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.status.real {
    background: #34C759;
    color: white;
}

.status.spoofed {
    background: #FF9500;
    color: white;
}

/* 按钮样式 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 80px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
    background: #7f8c8d;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.3rem;
}

/* 预设位置样式 */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.preset-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.preset-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.preset-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.coord {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* 状态消息样式 */
.status-message {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    border-left: 6px solid #667eea;
    color: #2c3e50;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    color: #155724;
}

.status-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border-left-color: #dc3545;
    color: #721c24;
}

.status-message.info {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    border-left-color: #007bff;
    color: #004085;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 5px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .current-location, .actions, .preset-locations, .status-section {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .preset-grid {
        grid-template-columns: 1fr;
    }
}