* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: left;
}

header p {
    text-align: left;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-content {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.warehouse-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.warehouse-info h5 {
    color: #667eea;
    margin-bottom: 10px;
}

.list {
    margin-top: 20px;
}

.list-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #667eea;
}

.info {
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

.info-text {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    color: #1976d2;
    margin-bottom: 20px;
    line-height: 1.6;
    border-left: 4px solid #1976d2;
}

.info-text strong {
    color: #d32f2f;
    font-size: 1.1em;
}

/* 仓库地址卡片样式 */
.warehouse-address-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.warehouse-address-card h5 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.address-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warehouse-address-text {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    border: 1px solid #dee2e6;
    color: #333;
}

.btn-copy {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    white-space: nowrap;
    min-width: 140px;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

/* 使用指南样式 */
.usage-tips {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
}

.usage-tips h5 {
    color: #856404;
    margin-bottom: 15px;
}

.usage-tips ol {
    margin-left: 20px;
    color: #856404;
    line-height: 2;
}

.usage-tips ol li {
    margin-bottom: 8px;
}

.usage-tips strong {
    color: #d32f2f;
    font-size: 1.05em;
}

/* Checkbox样式 */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 收货地址列表样式 */
.delivery-address-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
    position: relative;
}

.delivery-address-item.default-address {
    border-left-color: #28a745;
    background: #e8f5e9;
}

.default-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.address-info {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
}

.address-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Textarea样式 */
textarea.input {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .address-content {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .address-actions {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
    }
    
    .default-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
}
